/* BALATZIS — industrial editorial. Graphite, concrete, one signal orange. */

:root {
    --ink: #111213;
    --ink-2: #1a1c1e;
    --steel: #2b2e31;
    --paper: #f4f2ec;
    --concrete: #e6e2d8;
    --text: #151617;
    --mute: #5c5d5a;
    --mute-d: #a3a49f;
    --line: rgba(17, 18, 19, .14);
    --line-d: rgba(244, 242, 236, .14);
    --accent: #f26b1d;
    --accent-ink: #b0470b;
    --danger: #b3261e;
    --ok: #1e6b3a;

    --f-display: 'Sofia Sans Condensed', 'Arial Narrow', sans-serif;
    --f-body: 'IBM Plex Sans', system-ui, sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, monospace;

    --gutter: clamp(16px, 4vw, 56px);
    --edge: max(var(--gutter), (100vw - 1440px) / 2); /* aligns full-bleed layouts with .wrap */
    --header: 72px;
    --section: clamp(88px, 11vw, 176px);
    --ease: cubic-bezier(.2, .7, 0, 1);
    --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
html:has(.menu[open]) { overflow: hidden; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font: 400 1rem/1.6 var(--f-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
svg { width: 1.25em; height: 1.25em; flex: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }
.top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
.skip {
    position: fixed; left: 16px; top: 16px; z-index: 100;
    background: var(--accent); color: var(--ink); padding: 12px 18px; font-weight: 600;
    translate: 0 -200%; transition: translate .3s var(--ease);
}
.skip:focus { translate: 0 0; }
.muted { color: var(--mute); }

/* ---------- Type ---------- */
.label {
    font: 500 .72rem/1.4 var(--f-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    display: flex; align-items: center; gap: .75em;
}
.idx { color: var(--accent-ink); }
.tick { width: 28px; height: 1px; background: var(--accent); }
.display {
    font: 800 clamp(2.75rem, 7vw, 7.5rem)/.88 var(--f-display);
    text-transform: uppercase;
    letter-spacing: -.005em;
    text-wrap: balance;
}
.display--md { font-size: clamp(2.4rem, 4.8vw, 4.9rem); }
.display em { font-style: normal; color: var(--accent); }

/* ---------- Buttons & links ---------- */
.btn {
    --bg: var(--ink); --fg: var(--paper); --hover-bg: var(--accent); --hover-fg: var(--ink);
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
    min-height: 54px; padding: 0 24px;
    background: var(--bg); color: var(--fg);
    font-weight: 500; font-size: .95rem; letter-spacing: .01em;
    transition: color .45s var(--ease);
}
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--hover-bg);
    transform: scaleY(0); transform-origin: bottom;
    transition: transform .5s var(--ease);
}
.btn svg { transition: transform .5s var(--ease); }
.btn:hover { color: var(--hover-fg); }
.btn:hover::before { transform: scaleY(1); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--accent { --bg: var(--accent); --fg: var(--ink); --hover-bg: var(--paper); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--line { --bg: transparent; --fg: currentColor; --hover-bg: var(--paper); box-shadow: inset 0 0 0 1px var(--line-d); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .88rem; }
.btn--block { width: 100%; justify-content: space-between; }

.link-line {
    position: relative; display: inline-flex; align-items: center; gap: .6em;
    padding: 6px 0; font-weight: 500; cursor: pointer;
}
.link-line::before { content: "→"; order: 2; color: var(--accent); transition: transform .5s var(--ease); }
.link-line[target="_blank"]::before { content: "↗"; }
.link-line::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: currentColor; transform-origin: right;
}
.link-line:hover::before { transform: translateX(4px); }
.link-line[target="_blank"]:hover::before { transform: translate(2px, -2px); }
.link-line:hover::after { animation: underline .8s var(--ease-io); }
@keyframes underline {
    0% { transform: scaleX(1); transform-origin: right; }
    45% { transform: scaleX(0); transform-origin: right; }
    46% { transform: scaleX(0); transform-origin: left; }
    100% { transform: scaleX(1); transform-origin: left; }
}

.icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    transition: background .3s, color .3s;
}
.icon-btn--line { box-shadow: inset 0 0 0 1px var(--line); }
.icon-btn--line:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
.header {
    position: fixed; inset: 0 0 auto; z-index: 50;
    color: var(--paper);
    transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.header.is-scrolled { background: rgba(17, 18, 19, .97); box-shadow: 0 1px 0 var(--line-d); }
.header__bar { height: var(--header); display: flex; align-items: center; gap: 32px; }
.mark { display: grid; line-height: 1; margin-right: auto; }
.mark__name { font: 800 1.6rem/1 var(--f-display); letter-spacing: .06em; }
.mark__sub { font: 500 .6rem/1.6 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute-d); }
.nav { display: flex; gap: clamp(18px, 2.2vw, 34px); font-size: .9rem; }
.nav a { position: relative; padding: 8px 0; color: rgba(244, 242, 236, .72); transition: color .3s; }
.nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--paper); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone { display: flex; align-items: center; gap: 8px; font: 500 .82rem var(--f-mono); letter-spacing: .04em; color: rgba(244, 242, 236, .8); transition: color .3s; }
.header__phone:hover { color: var(--accent); }
.header__phone svg { width: 1rem; height: 1rem; }
.header__call, .menu-btn { display: none; }

.menu-btn { align-items: center; gap: 12px; min-height: 44px; font: 500 .72rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.menu-btn__lines { position: relative; width: 26px; height: 8px; }
.menu-btn__lines::before, .menu-btn__lines::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
    transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-btn__lines::before { top: 0; }
.menu-btn__lines::after { top: 6.5px; }
.menu-btn.is-open .menu-btn__lines::before { top: 3.25px; transform: rotate(35deg); }
.menu-btn.is-open .menu-btn__lines::after { top: 3.25px; transform: rotate(-35deg); }

/* ---------- Mobile menu (native dialog) ---------- */
.menu {
    width: 100%; height: 100dvh; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0;
    background: var(--ink); color: var(--paper);
    display: none; flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
}
.menu[open] { display: flex; animation: menu-in .5s var(--ease); }
.menu::backdrop { background: var(--ink); }
@keyframes menu-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
.menu__top { height: var(--header); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-d); }
.menu__top .menu-btn { display: inline-flex; }
.menu__nav { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.menu__nav a {
    display: flex; align-items: baseline; gap: 16px;
    padding: 10px 0; border-bottom: 1px solid var(--line-d);
    font: 800 clamp(2.3rem, 11vw, 3.6rem)/1 var(--f-display); text-transform: uppercase;
}
.menu__nav small { font: 500 .72rem var(--f-mono); color: var(--accent); letter-spacing: .1em; }
.menu[open] .menu__nav a { animation: rise .7s var(--ease) both; }
.menu__nav a:nth-child(2) { animation-delay: 50ms; }
.menu__nav a:nth-child(3) { animation-delay: 100ms; }
.menu__nav a:nth-child(4) { animation-delay: 150ms; }
.menu__nav a:nth-child(5) { animation-delay: 200ms; }
.menu__foot { display: grid; gap: 20px; padding-block: 24px; }
.menu__phones { display: flex; flex-wrap: wrap; gap: 8px 24px; font: 500 1rem var(--f-mono); }
.menu__phones a { padding: 6px 0; }
.menu__foot .label { color: var(--mute-d); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
    grid-template-rows: 1fr auto;
    min-height: clamp(660px, 100svh, 1120px);
    background: var(--ink); color: var(--paper);
}
.hero__copy {
    container-type: inline-size;
    display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(20px, 3vh, 32px);
    padding: calc(var(--header) + 48px) var(--gutter) clamp(36px, 6vh, 72px) var(--edge);
}
.hero__eyebrow { color: var(--mute-d); }
.hero__title {
    font: 800 clamp(3rem, 18cqi, 10.5rem)/.84 var(--f-display);
    text-transform: uppercase; letter-spacing: -.01em;
}
.hero__title .line { display: block; overflow: hidden; padding-block: .03em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line:nth-child(2) { color: var(--accent); }
.hero__lead { max-width: 34ch; color: var(--mute-d); font-size: clamp(1rem, .5vw + .85rem, 1.15rem); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

.hero__media { position: relative; overflow: hidden; background: var(--steel); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; filter: saturate(.88) contrast(1.06); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 18, 19, .55), transparent 22%, transparent 70%, rgba(17, 18, 19, .45)); pointer-events: none; }
.hero__meta { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: flex; justify-content: space-between; gap: 16px; color: var(--paper); }
.corner { position: absolute; z-index: 1; width: 22px; height: 22px; border: 0 solid rgba(244, 242, 236, .7); }
.corner--tl { top: calc(var(--header) + 16px); left: 24px; border-width: 1px 0 0 1px; }
.corner--br { right: 24px; bottom: 60px; border-width: 0 1px 1px 0; }

.hero__facts {
    grid-column: 1 / -1; margin: 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line-d);
}
.hero__facts > div { padding: 22px var(--gutter) 26px; border-left: 1px solid var(--line-d); display: grid; gap: 4px; align-content: start; }
.hero__facts > div:first-child { border-left: 0; padding-left: var(--edge); }
.hero__facts dt { font: 500 .7rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute-d); order: 2; }
.hero__facts dd { font: 800 clamp(2.4rem, 4vw, 4rem)/.95 var(--f-display); font-variant-numeric: tabular-nums; order: 1; }
.hero__facts sup { font-size: .5em; line-height: 0; color: var(--accent); position: relative; top: -.5em; vertical-align: baseline; margin-left: 2px; }
.hero__facts p { font-size: .82rem; color: rgba(244, 242, 236, .5); order: 3; }

/* hero entrance */
.hero__media img { animation: settle 2s var(--ease) both; }
.hero__media::before {
    content: ""; position: absolute; inset: 0; z-index: 2; background: var(--ink);
    transform-origin: right; animation: curtain 1.2s var(--ease-io) .1s both;
}
.hero__title .line > span { animation: line-up 1.1s var(--ease) both .35s; }
.hero__title .line:nth-child(2) > span { animation-delay: .47s; }
.hero__eyebrow, .hero__lead, .hero__cta, .hero__meta, .hero__facts > div { animation: fade-up 1s var(--ease) both; }
.hero__eyebrow { animation-delay: .25s; }
.hero__lead { animation-delay: .65s; }
.hero__cta { animation-delay: .75s; }
.hero__meta { animation-delay: 1.1s; }
.hero__facts > div:nth-child(1) { animation-delay: .9s; }
.hero__facts > div:nth-child(2) { animation-delay: .97s; }
.hero__facts > div:nth-child(3) { animation-delay: 1.04s; }
.hero__facts > div:nth-child(4) { animation-delay: 1.11s; }
@keyframes settle { from { scale: 1.14; } to { scale: 1; } }
@keyframes curtain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Scroll reveals ---------- */
.js [data-reveal]:not([data-reveal="img"]) { opacity: 0; translate: 0 32px; transition: opacity 1s var(--ease), translate 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; translate: none; }
.js [data-reveal="img"]::after {
    content: ""; position: absolute; inset: 0; z-index: 2; background: var(--curtain, var(--paper));
    transform-origin: top; transition: transform 1.2s var(--ease-io);
}
.js [data-reveal="img"] img { scale: 1.15; transition: scale 1.8s var(--ease); }
.js [data-reveal="img"].is-in::after { transform: scaleY(0); }
.js [data-reveal="img"].is-in img { scale: 1; }

/* ---------- Section head ---------- */
.products { padding-block: var(--section); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(56px, 8vw, 120px); }
.section-head .label { color: var(--mute); }
.toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); }
.toc a {
    display: flex; align-items: baseline; gap: 12px; padding: 16px 16px 16px 0;
    border-bottom: 1px solid var(--line); font-weight: 500; transition: color .3s, padding .5s var(--ease);
}
.toc span { font: 500 .72rem var(--f-mono); color: var(--accent-ink); }
.toc a:hover { color: var(--accent-ink); padding-left: 8px; }

/* ---------- Product chapters ---------- */
.chapter {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
    align-items: center;
}
.chapter + .chapter { margin-top: clamp(96px, 12vw, 200px); }
.chapter__media { grid-column: 1 / span 7; position: relative; padding-bottom: 9%; }
.chapter__copy { grid-column: 9 / span 4; display: grid; gap: 18px; justify-items: start; }
.chapter--flip .chapter__media { grid-column: 6 / span 7; order: 2; }
.chapter--flip .chapter__copy { grid-column: 1 / span 4; }
.chapter__num {
    font: 800 clamp(5rem, 9vw, 9rem)/.8 var(--f-display);
    color: transparent; -webkit-text-stroke: 1px rgba(17, 18, 19, .28);
    margin-bottom: 8px;
}
.chapter__copy > .label { color: var(--accent-ink); }
.chapter__title { font: 800 clamp(2.3rem, 3.8vw, 3.9rem)/.9 var(--f-display); text-transform: uppercase; text-wrap: balance; }
.chapter__lead { font-size: 1.1rem; font-weight: 500; line-height: 1.5; }
.chapter__copy > p:not([class]) { color: var(--mute); }

.frame { position: relative; overflow: hidden; background: var(--concrete); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--main { aspect-ratio: 4 / 3; }
.frame--inset {
    position: absolute; right: -4%; bottom: 0; width: 38%; aspect-ratio: 4 / 3;
    box-shadow: 0 0 0 10px var(--paper); z-index: 1;
}
.chapter--flip .frame--inset { right: auto; left: -4%; }
.frame--inset figcaption { position: absolute; left: 10px; bottom: 8px; z-index: 1; background: var(--ink); color: var(--paper); padding: 4px 8px; }
.frame--product img { object-fit: contain; mix-blend-mode: multiply; padding: 8%; filter: brightness(1.02); }
.frame--inset.frame--product figcaption { background: var(--paper); color: var(--ink); }
.chapter__media .frame--main img { transition: scale 1.6s var(--ease); }
.chapter:hover .frame--main.is-in img { scale: 1.04; }

.spec { width: 100%; margin-top: 6px; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: minmax(96px, 36%) 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 500 .7rem/1.9 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.spec dd { font-size: .95rem; }

/* JAB — product-shot panel */
.chapter--panel {
    --curtain: var(--concrete);
    background: var(--concrete);
    padding: clamp(32px, 5vw, 80px) 0;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
}
.chapter--panel .chapter__media { grid-column: 1 / span 6; padding: 0; }
.chapter--panel .chapter__copy { grid-column: 8 / span 5; }
.frame--solo { aspect-ratio: 1; display: grid; place-items: center; }
.frame--solo img { width: min(100%, 500px); height: auto; padding: 0; }

/* 04–06 tiles */
.more {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter);
    margin-top: clamp(96px, 12vw, 200px); padding-top: 40px; border-top: 1px solid var(--line);
}
.tile { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.tile > p:not(.label) { color: var(--mute); }
.tile .label { color: var(--mute); }
.tile__media { width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--concrete); margin-bottom: 8px; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease); }
.tile:hover .tile__media img { scale: 1.05; }
.tile__title { font: 800 clamp(1.8rem, 2.4vw, 2.4rem)/.95 var(--f-display); text-transform: uppercase; }
.ticks { display: grid; width: 100%; border-top: 1px solid var(--line); font-size: .92rem; }
.ticks li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; width: 6px; height: 6px; margin-top: .6em; background: var(--accent); flex: none; }
.tile .link-line { margin-top: auto; }
.more > :nth-child(2) { transition-delay: .1s; }
.more > :nth-child(3) { transition-delay: .2s; }

/* ---------- Base (cinematic) ---------- */
.base {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: clamp(560px, 92svh, 980px);
    display: flex; align-items: flex-end;
    background: var(--ink); color: var(--paper);
}
.base__media { position: absolute; inset: 0; z-index: -1; }
.base__media video { width: 100%; height: 100%; object-fit: cover; scale: 1.12; }
.base__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17, 18, 19, .92), rgba(17, 18, 19, .2) 55%, rgba(17, 18, 19, .45)); }
.base__copy { display: grid; gap: 18px; justify-items: start; padding-block: clamp(48px, 8vw, 112px); }
.base__copy .label { color: var(--mute-d); }
.base .display { font-size: clamp(4.5rem, 17vw, 17rem); line-height: .78; letter-spacing: -.02em; }
.base__addr { font-size: clamp(1.05rem, 1vw + .8rem, 1.4rem); }

/* ---------- Company ---------- */
.company { background: var(--ink); color: var(--paper); padding-block: var(--section); }
.company__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.company__story { grid-column: 1 / span 5; }
.company__sticky { position: sticky; top: calc(var(--header) + 40px); display: grid; gap: 22px; justify-items: start; }
.company__story .label { color: var(--mute-d); }
.company__story .idx { color: var(--accent); }
.company__story p:not(.label) { color: var(--mute-d); max-width: 54ch; }
.pledges { width: 100%; border-top: 1px solid var(--line-d); margin: 6px 0 10px; }
.pledges li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-d); }
.pledges li::before { content: ""; width: 6px; height: 6px; margin-top: .65em; background: var(--accent); flex: none; }
.company__why { grid-column: 7 / span 6; }
.why__title { color: var(--mute-d); padding-bottom: 20px; }
.why { border-top: 1px solid var(--line-d); counter-reset: why; }
.why li {
    position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 16px;
    padding: clamp(24px, 3vw, 38px) 0; border-bottom: 1px solid var(--line-d);
}
.why li::before {
    content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.why li:hover::before { transform: scaleX(1); }
.why__n { grid-row: span 2; font: 500 .75rem/2.2 var(--f-mono); color: var(--accent); }
.why h4 { font: 700 clamp(1.5rem, 2.2vw, 2.1rem)/1 var(--f-display); text-transform: uppercase; margin-bottom: 10px; transition: transform .5s var(--ease); }
.why li:hover h4 { transform: translateX(6px); }
.why p { color: var(--mute-d); max-width: 52ch; }

/* ---------- Facilities ---------- */
.facilities { background: var(--concrete); padding-block: var(--section); --curtain: var(--concrete); }
.facilities__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.facilities__head .label { color: var(--mute); }
.gallery-nav { display: flex; align-items: center; gap: 8px; }
.gallery-nav .label { margin-right: 12px; font-variant-numeric: tabular-nums; }
.gallery {
    --pad: max(var(--gutter), (100% - 1440px) / 2);
    display: flex; gap: clamp(12px, 1.4vw, 20px);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    padding-inline: var(--pad); scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline-offset: -2px; }
.gallery li { flex: none; scroll-snap-align: start; height: clamp(280px, 44vw, 640px); background: var(--stone, #d6d1c5); }
.gallery img { height: 100%; width: auto; max-width: none; object-fit: cover; }

/* ---------- Partners ---------- */
.brands { padding-block: var(--section); }
.logos {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
}
.logos a {
    position: relative; display: grid; place-items: center;
    aspect-ratio: 4 / 3; padding: 18% 16%; background: var(--paper);
    transition: background .4s;
}
.logos img {
    max-height: 64px; width: auto; object-fit: contain;
    filter: grayscale(1) contrast(1.15); opacity: .62; mix-blend-mode: multiply;
    transition: filter .5s, opacity .5s, scale .6s var(--ease);
}
.logos .label { position: absolute; left: 14px; bottom: 12px; font-size: .62rem; color: var(--mute); letter-spacing: .08em; text-transform: none; }
.logos svg { position: absolute; right: 14px; top: 14px; width: 18px; height: 18px; color: var(--mute); transition: transform .5s var(--ease), color .3s; }
.logos a:hover { background: #fff; }
.logos a:hover img { filter: none; opacity: 1; scale: 1.04; }
.logos a:hover svg { transform: translate(3px, -3px); color: var(--accent-ink); }
.brand-strip {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 24px;
    padding: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px);
    background: var(--paper); border: 1px solid var(--line); border-top: 0;
    transition: background .4s;
}
.brand-strip > .label { color: var(--mute); }
.brand-strip__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; letter-spacing: .01em; text-transform: uppercase; color: var(--mute); transition: color .4s; }
.brand-strip__name span { font-weight: 600; }
.brand-strip__url { justify-self: end; display: inline-flex; align-items: center; gap: 10px; }
.brand-strip__url .label { color: var(--mute); text-transform: none; letter-spacing: .08em; }
.brand-strip svg { width: 18px; height: 18px; color: var(--mute); transition: transform .5s var(--ease), color .3s; }
.brand-strip:hover { background: #fff; }
.brand-strip:hover .brand-strip__name { color: var(--text); }
.brand-strip:hover .brand-strip__name span { color: var(--accent); }
.brand-strip:hover svg { transform: translate(3px, -3px); color: var(--accent-ink); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; }
.contact__info { background: var(--ink); color: var(--paper); }
.contact__form { background: var(--concrete); --line: rgba(17, 18, 19, .22); }
.contact__inner { width: min(100%, 680px); display: grid; gap: 24px; align-content: start; padding: var(--section) var(--gutter); }
.contact__info .contact__inner { margin-left: auto; }
.contact__info .label { color: var(--mute-d); }
.contact__info .idx { color: var(--accent); }
.contact__lead { color: var(--mute-d); font-size: 1.1rem; }
.phones { border-top: 1px solid var(--line-d); }
.phones a {
    display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 16px;
    padding: 16px 0; border-bottom: 1px solid var(--line-d);
}
.phones .label { color: var(--mute-d); }
.phones strong { grid-row: 2; font: 700 clamp(1.8rem, 3vw, 2.7rem)/1 var(--f-display); letter-spacing: .01em; transition: color .3s, transform .5s var(--ease); }
.phones svg { grid-row: 1 / span 2; align-self: center; width: 28px; height: 28px; color: var(--accent); transition: transform .5s var(--ease); }
.phones a:hover strong { color: var(--accent); transform: translateX(6px); }
.phones a:hover svg { transform: translateX(6px); }
.messengers { display: flex; flex-wrap: wrap; gap: 12px; }
.facts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; margin-top: 8px; }
.facts-list > div:last-child { grid-column: 1 / -1; }
.facts-list dd { margin-top: 8px; color: rgba(244, 242, 236, .86); }
.facts-list a { background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.facts-list a:hover { background-size: 100% 1px; }
.contact__info .muted { color: var(--mute-d); }
.map { border-top: 1px solid var(--line-d); padding-top: 18px; display: grid; gap: 18px; }
.map__actions { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.map iframe { width: 100%; aspect-ratio: 16 / 10; border: 0; filter: grayscale(.6) contrast(1.05); }

.form-title { font: 800 clamp(2.4rem, 4.8vw, 4.9rem)/.88 var(--f-display); text-transform: uppercase; }
.contact__form .label { color: var(--mute); }
.form-note { color: var(--mute); max-width: 48ch; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; margin-top: 12px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.req { color: var(--accent-ink); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 52px; padding: 12px 0;
    background: transparent; border: 0; border-bottom: 1px solid rgba(17, 18, 19, .4); border-radius: 0;
    font-size: 1.1rem; color: var(--text);
    box-shadow: inset 0 -2px 0 transparent;
    transition: box-shadow .4s var(--ease), border-color .3s;
    appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select {
    cursor: pointer; padding-right: 32px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23151617' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 4px center no-repeat;
}
.field select:invalid { color: var(--mute); }
.field ::placeholder { color: rgba(17, 18, 19, .4); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 -2px 0 var(--danger); }
.field select.is-flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: inset 0 -2px 0 var(--accent); background-color: rgba(242, 107, 29, .12); } }
.form-feedback:empty { display: none; }
.form-feedback { padding: 14px 16px; font-size: .95rem; border-left: 3px solid; }
.form-feedback.error { color: var(--danger); background: rgba(179, 38, 30, .07); }
.form-feedback.success { color: var(--ok); background: rgba(30, 107, 58, .08); }
.form__submit { display: grid; gap: 14px; }
.form__submit .muted a { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding-top: clamp(72px, 8vw, 120px); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px var(--gutter); }
.footer__brand { display: grid; gap: 24px; justify-items: start; align-content: start; }
.footer__brand p { color: var(--mute-d); max-width: 36ch; }
.footer__col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.footer__col .label { color: var(--mute-d); margin-bottom: 8px; }
.footer__col a { color: rgba(244, 242, 236, .82); background: linear-gradient(var(--accent) 0 0) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; padding-block: 2px; }
.footer__col a:hover { color: var(--paper); background-size: 100% 1px; }
.footer .muted { color: var(--mute-d); }
.footer__mark {
    font: 800 29vw/.74 var(--f-display); letter-spacing: -.01em; text-align: center;
    color: #1c1e20; margin-top: clamp(48px, 7vw, 96px); white-space: nowrap; user-select: none;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px; border-top: 1px solid var(--line-d); font-size: .85rem; color: var(--mute-d); }

/* ---------- Mobile quick bar ---------- */
.quickbar { display: none; }

/* ---------- Scroll-driven parallax (progressive) ---------- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .base__media video { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
        .hero__media img { animation: settle 2s var(--ease) both, lift linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 100vh; }
    }
    @keyframes drift { from { translate: 0 -7%; } to { translate: 0 7%; } }
    @keyframes lift { to { translate: 0 12%; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .nav, .header__phone { display: none; }
    .menu-btn { display: inline-flex; }
    .header__call { display: inline-grid; }
}

@media (max-width: 959px) {
    :root { --header: 64px; }
    .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
    .hero__media { grid-row: 1; height: 56svh; min-height: 340px; }
    .hero__copy { grid-row: 2; padding-top: 36px; }
    .hero__title { font-size: clamp(3rem, 16cqi, 6.5rem); }
    .hero__facts > div:nth-child(3) { padding-left: var(--edge); }
    .hero__facts { grid-row: 3; grid-template-columns: 1fr 1fr; }
    .hero__facts > div:nth-child(3) { border-left: 0; }
    .hero__facts > div:nth-child(n + 3) { border-top: 1px solid var(--line-d); }
    .corner--br { bottom: 58px; }

    .toc { grid-template-columns: 1fr 1fr; }
    .chapter, .company__grid { grid-template-columns: 1fr; row-gap: 40px; }
    .chapter__media, .chapter__copy,
    .chapter--flip .chapter__media, .chapter--flip .chapter__copy,
    .chapter--panel .chapter__media, .chapter--panel .chapter__copy,
    .company__story, .company__why { grid-column: 1; }
    .chapter--flip .chapter__media { order: 0; }
    .chapter__media { margin-right: 6%; padding-bottom: 14%; }
    .chapter--flip .chapter__media { margin: 0 0 0 6%; }
    .frame--inset { width: 46%; right: -8%; }
    .chapter--flip .frame--inset { left: -8%; }
    .chapter--panel .chapter__media { margin: 0; }
    .frame--solo { aspect-ratio: 4 / 3; }
    .frame--solo img { width: min(78%, 420px); }
    .chapter__num { font-size: 4.5rem; margin-bottom: 0; }

    .more {
        grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 400px);
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
        border-top: 0; padding-top: 0;
    }
    .more::-webkit-scrollbar { display: none; }
    .tile { scroll-snap-align: start; }

    .company__sticky { position: static; }
    .company__why { margin-top: 24px; }

    .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .logos a { aspect-ratio: 3 / 2; }
    .logos img { max-height: 48px; }
    .brand-strip { grid-template-columns: 1fr auto; }
    .brand-strip > .label { grid-column: 1 / -1; }
    .brand-strip__url .label { display: none; }

    .contact { grid-template-columns: 1fr; }
    .contact__inner { width: 100%; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }

    .quickbar {
        position: fixed; inset: auto 0 0; z-index: 40;
        display: grid; grid-template-columns: 1fr 1fr 1.3fr;
        background: var(--ink); color: var(--paper);
        box-shadow: 0 -1px 0 var(--line-d);
        padding-bottom: env(safe-area-inset-bottom);
        transform: translateY(110%); transition: transform .5s var(--ease);
    }
    .quickbar.is-visible { transform: none; }
    .quickbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; font-size: .9rem; font-weight: 500; }
    .quickbar a + a { box-shadow: -1px 0 0 var(--line-d); }
    .quickbar svg { width: 1.1rem; height: 1.1rem; }
    .quickbar__cta { background: var(--accent); color: var(--ink); }
    .footer { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

@media (max-width: 599px) {
    .header .btn { display: none; }
    .mark__sub { display: none; }
    .header__actions { gap: 4px; }
    .hero__media { height: 50svh; }
    .hero__meta .label:last-child { display: none; }
    .hero__facts > div { padding: 18px var(--gutter) 20px; }
    .hero__facts p { display: none; }
    .toc { grid-template-columns: 1fr; }
    .spec > div { grid-template-columns: 1fr; gap: 2px; }
    .facilities__head { flex-direction: column; align-items: flex-start; }
    .form, .facts-list { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
    .js [data-reveal] { opacity: 1 !important; translate: none !important; }
}
