/*
 * ANT ART YAPI — "Traverten & Antrasit" design system (UI.md).
 * Mobile-first, light stone ground, anthracite ink sections, one crimson accent.
 * Everything is readable and operable without JavaScript; hidden start states for
 * motion live in animations.css and only apply under html.motion-ok.
 */
:root {
    --paper: #f4f1ea;
    --paper-deep: #eae6dc;
    --paper-bright: #fbfaf6;
    --ink: #16161a;
    --ink-soft: #24242a;

    --text: #16161a;
    --text-muted: #5c5a56;
    --on-ink: #f4f1ea;
    --on-ink-muted: #b5b1a8;

    --accent: #a90810;
    --accent-hover: #8a060d;
    --accent-on-ink: #f0545c;
    --accent-text: var(--accent);

    --line: rgb(22 22 26 / 14%);
    --line-strong: rgb(22 22 26 / 32%);
    --line-on-ink: rgb(244 241 234 / 16%);

    --success: #1f6b45;
    --error: #a90810;
    --focus: #16161a;

    --btn-bg: var(--ink);
    --btn-fg: var(--paper);
    --button-sheen: rgb(255 255 255 / 13%);

    --font-sans: 'Archivo', 'Helvetica Neue', Arial, system-ui, sans-serif;
    --font-serif: 'Instrument Serif', 'Times New Roman', serif;

    --fs-display: clamp(2.5rem, 5.4vw, 5.75rem);
    --fs-page: clamp(3rem, 8.5vw, 8.5rem);
    --fs-title: clamp(2.25rem, 4.6vw, 4.75rem);
    --fs-h2: clamp(1.875rem, 3.6vw, 3.5rem);
    --fs-h3: clamp(1.25rem, 1.8vw, 1.625rem);
    --fs-lead: clamp(1.125rem, 1.5vw, 1.375rem);
    --fs-body: 1rem;
    --fs-small: .875rem;
    --fs-label: .75rem;
    --fs-stat: clamp(3.5rem, 9vw, 8.5rem);

    --gutter: clamp(1.25rem, 4vw, 4rem);
    --container: 1440px;
    --section: clamp(5rem, 11vw, 11rem);
    --section-tight: clamp(3rem, 6vw, 6rem);
    --header-h: 64px;
    --radius-control: 999px;
    --tap: 48px;
    --rail-h: clamp(300px, 46svh, 560px);

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-in-out: cubic-bezier(.76, 0, .24, 1);
    --t-fast: 200ms;
    --t-base: 450ms;
    --t-slow: 900ms;
}

@media (min-width: 768px) { :root { --header-h: 76px; } }

.is-ink {
    background: var(--ink);
    color: var(--on-ink);
    --text: var(--on-ink);
    --text-muted: var(--on-ink-muted);
    --line: var(--line-on-ink);
    --line-strong: rgb(244 241 234 / 32%);
    --focus: var(--on-ink);
    --accent-text: var(--accent-on-ink);
    --btn-bg: var(--paper);
    --btn-fg: var(--ink);
    --button-sheen: rgb(22 22 26 / 9%);
}

*, *::before, *::after { box-sizing: border-box; }
html {
    color-scheme: light;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 1.5rem);
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) var(--paper);
}
body {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    background: var(--paper);
    color: var(--text);
    font: 400 var(--fs-body)/1.65 var(--font-sans);
    font-stretch: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.menu-open, html.is-preloading body { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, dl, dd, figure { margin: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
main:focus { outline: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: var(--gutter); top: -100px; z-index: 2000; padding: .75rem 1.25rem; background: var(--ink); color: var(--paper); transition: top var(--t-fast); }
.skip-link:focus { top: 1rem; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Typography ------------------------------------------------------------ */
h1, h2, h3 {
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.02;
    text-wrap: balance;
    overflow-wrap: break-word;
}
@media (min-width: 641px) { h1, h2, h3 { font-stretch: 108%; } }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.02em; }
h1 em, h2 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-stretch: 100%;
    letter-spacing: -.01em;
    font-size: 1.06em;
    color: var(--accent-text);
}
.eyebrow {
    display: flex;
    align-items: center;
    gap: .9rem;
    font-size: var(--fs-label);
    font-weight: 500;
    font-stretch: 125%;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--text-muted);
}
.section-index { color: var(--accent-text); font-variant-numeric: tabular-nums; }
.section-index::after { content: ''; display: inline-block; width: 2.5rem; height: 1px; margin-left: .9rem; vertical-align: middle; background: currentColor; opacity: .6; }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.1em; }
.prose.lead { font-size: var(--fs-lead); line-height: 1.6; }
.prose--caps { font-size: var(--fs-body); line-height: 1.7; letter-spacing: 0; max-width: 60ch; }
.muted { color: var(--text-muted); }
.meta-line { display: flex; flex-wrap: wrap; gap: .4rem 0; font-size: var(--fs-label); font-weight: 500; font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.meta-line > span + span::before { content: '·'; margin: 0 .8rem; }
.meta-line .is-accent { color: var(--accent); }

/* Controls -------------------------------------------------------------- */
.button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    min-height: 56px;
    padding: 0 22px 0 28px;
    border-radius: var(--radius-control);
    border: 1px solid rgb(255 255 255 / 9%);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 500;
    font-size: .9375rem;
    letter-spacing: .01em;
    box-shadow: 0 7px 22px rgb(22 22 26 / 12%), inset 0 1px rgb(255 255 255 / 16%);
    transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast);
}
.button::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 20%, var(--button-sheen) 50%, transparent 80%); transform: translateX(-115%); transition: transform 650ms var(--ease-out); }
.button--small { min-height: var(--tap); padding: 0 15px 0 21px; font-size: var(--fs-small); }
.button--ghost { --button-sheen: rgb(255 255 255 / 13%); background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: inset 0 1px rgb(255 255 255 / 20%); }
.button__arrow { display: inline-grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 50%; background: rgb(255 255 255 / 12%); font-size: 1rem; line-height: 1; transition: transform var(--t-fast) var(--ease-out), background var(--t-fast); }
.button--ghost .button__arrow { background: var(--paper-deep); }
.button:focus-visible { box-shadow: 0 0 0 4px rgb(22 22 26 / 12%), 0 10px 25px rgb(22 22 26 / 17%); }
.button:active { transform: scale(.97); box-shadow: 0 2px 7px rgb(22 22 26 / 14%); }
@media (hover: hover) and (pointer: fine) {
    .button:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgb(22 22 26 / 19%), inset 0 1px rgb(255 255 255 / 20%); }
    .button:hover::before { transform: translateX(115%); }
    .button:hover .button__arrow { transform: translate(3px, -3px); }
    .button--ghost:hover { color: var(--paper); background: var(--ink); }
    .button:hover .button__arrow { background: rgb(255 255 255 / 20%); }
    .button:hover:active { transform: scale(.97); }
}
.text-link { display: inline-flex; align-items: center; gap: .8rem; min-height: var(--tap); font-weight: 500; transition: color var(--t-fast); }
@media (hover: hover) and (pointer: fine) {
    .text-link:hover { color: var(--text); }
    .text-link:hover > span:last-child { transform: translate(3px, -3px); border-color: currentColor; }
}
.text-link > span:last-child { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 1rem; line-height: 1; transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast); }
.icon-button { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border: 1px solid var(--line-strong); border-radius: 50%; background: var(--paper-bright); box-shadow: 0 4px 12px rgb(22 22 26 / 8%); font-size: 1.05rem; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); }
.icon-button:active { transform: scale(.93); }
@media (hover: hover) and (pointer: fine) { .icon-button:hover { background: var(--ink); color: var(--paper); box-shadow: 0 8px 20px rgb(22 22 26 / 14%); } }

/* Header ---------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--header-h); transition: transform var(--t-base) var(--ease-in-out); }
.site-header::before { content: ''; position: absolute; inset: 0; background: rgb(244 241 234 / 92%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity var(--t-base); pointer-events: none; }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
body.menu-open .site-header { transform: none; }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { position: relative; z-index: 3; display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; letter-spacing: .04em; }
.brand__logo { display: block; height: 48px; width: auto; max-width: min(43vw, 180px); object-fit: contain; transition: filter var(--t-base); }
@media (min-width: 768px) { .brand__logo { height: 58px; max-width: none; } }
.brand__logo--mono { filter: brightness(0) invert(1); }
.brand__logo--footer { height: clamp(68px, 8vw, 96px); max-width: min(75vw, 260px); }
body.menu-open .site-header .brand__logo { filter: brightness(0) invert(1); }
.desktop-nav, .header-actions { display: none; }
.menu-toggle { position: relative; z-index: 3; display: grid; place-items: center; width: 48px; height: 48px; flex: none; list-style: none; cursor: pointer; color: var(--ink); transition: color var(--t-fast), transform var(--t-fast); }
.menu-toggle::-webkit-details-marker { display: none; }
.menu-toggle:active { transform: scale(.94); }
.menu-toggle svg { grid-area: 1 / 1; width: 27px; height: 27px; transition: opacity var(--t-fast), transform var(--t-fast) var(--ease-out); }
.menu-toggle__cross { opacity: 0; transform: rotate(-35deg) scale(.75); }
body.menu-open .menu-toggle { color: var(--on-ink); }
body.menu-open .menu-toggle__building { opacity: 0; transform: rotate(35deg) scale(.75); }
body.menu-open .menu-toggle__cross { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .menu-toggle:hover { transform: translateY(-2px); } body.menu-open .menu-toggle:hover { color: var(--on-ink); } }
.mobile-nav { position: fixed; inset: 0; z-index: 2; overflow-y: auto; overflow-x: hidden; background: radial-gradient(circle at 84% 82%, #303037 0%, transparent 48%), #151519; }
.mobile-nav::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgb(255 255 255 / 3%) calc(25% - 1px), rgb(255 255 255 / 3%) 25%); }
.mobile-nav::after { content: ''; position: fixed; left: var(--gutter); top: calc(var(--header-h) + .35rem); width: 38px; height: 2px; background: var(--accent-on-ink); }
.mobile-nav__structure { position: fixed; right: -10%; bottom: -14%; width: min(90vw, 500px); height: auto; stroke: rgb(244 241 234 / 17%); stroke-width: 1; pointer-events: none; transform: rotate(-8deg); }
.mobile-nav__content { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100svh; padding: calc(var(--header-h) + 1.25rem) var(--gutter) max(2rem, env(safe-area-inset-bottom)); }
.mobile-nav__eyebrow { display: flex; justify-content: space-between; gap: 1rem; padding-top: .9rem; color: var(--on-ink-muted); font-size: .65rem; font-weight: 500; letter-spacing: .22em; }
.mobile-nav__links { display: grid; margin-block: auto; padding-block: clamp(2rem, 6vh, 4rem); }
.mobile-nav__links a { display: block; overflow: hidden; border-bottom: 1px solid rgb(244 241 234 / 20%); transition: border-color var(--t-fast), color var(--t-fast); }
.mobile-nav__links a:active { color: var(--accent-on-ink); }
.mobile-nav__links a:last-child { border-bottom-color: transparent; }
.mobile-nav__item { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 2rem; align-items: center; gap: .65rem; min-height: clamp(68px, 10vh, 92px); font-size: clamp(1.7rem, 7.2vw, 3.1rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.05; }
.mobile-nav__item small { align-self: start; padding-top: 1.25rem; font-size: .66rem; font-weight: 500; letter-spacing: .12em; color: var(--accent-on-ink); }
.mobile-nav__arrow { justify-self: end; color: var(--on-ink-muted); font-family: var(--font-sans); font-size: 1.25rem; font-weight: 400; transition: transform var(--t-fast), color var(--t-fast); }
.mobile-nav a[aria-current='page'] .mobile-nav__item { color: var(--on-ink); }
.mobile-nav a[aria-current='page'] .mobile-nav__arrow { color: var(--accent-on-ink); }
.mobile-nav__foot { display: grid; gap: 1rem; }
.mobile-nav__foot > span { color: var(--on-ink-muted); font-size: .6rem; font-weight: 500; letter-spacing: .16em; }
.mobile-nav__foot a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 56px; padding: .8rem 1.25rem; border: 1px solid rgb(244 241 234 / 35%); border-radius: 999px; color: var(--on-ink); font-size: .9rem; font-weight: 500; transition: background var(--t-fast), border-color var(--t-fast); }
.mobile-nav__foot a span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); font-size: 1rem; }
.mobile-nav__foot a:active { background: rgb(255 255 255 / 12%); }
@media (hover: hover) and (pointer: fine) { .mobile-nav__links a:hover { border-color: var(--on-ink); color: var(--on-ink); } .mobile-nav__links a:hover .mobile-nav__arrow { color: var(--on-ink); transform: translate(3px, -3px); } .mobile-nav__foot a:hover { border-color: var(--on-ink); background: rgb(255 255 255 / 9%); } }

@media (min-width: 1024px) {
    .mobile-menu { display: none; }
    .desktop-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.5rem); margin-left: auto; }
    .desktop-nav a { position: relative; display: inline-flex; align-items: center; min-height: var(--tap); font-size: .9375rem; font-weight: 500; }
    .desktop-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--t-base) var(--ease-out); }
    .desktop-nav a[aria-current='page']::after { height: 2px; background: var(--accent); transform: scaleX(1); }
    .header-actions { display: flex; align-items: center; gap: 1.5rem; }
    .header-phone { display: none; font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums; }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    .desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}
@media (min-width: 1280px) { .header-phone { display: inline-flex; } }

/* Section scaffolding ---------------------------------------------------- */
.section { padding-block: var(--section); }
.section--compact { padding-block: var(--section-tight) var(--section); }
.section-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; margin-bottom: clamp(2rem, 5vw, 4.5rem); }
.section-heading h2 { margin-top: 1.25rem; max-width: 18ch; }
@media (min-width: 768px) { .section-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

.page-heading { padding: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)) 0 clamp(2.5rem, 5vw, 4.5rem); }
.page-heading__inner { display: grid; gap: 1.25rem; justify-items: start; }
.page-heading__title { font-size: var(--fs-page); line-height: .98; max-width: 14ch; }
.page-heading__title--long { font-size: var(--fs-title); max-width: 20ch; }
.page-heading__lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); max-width: 52ch; }
.page-heading__rule { display: block; width: 100%; height: 1px; margin-top: clamp(1rem, 3vw, 2.5rem); background: var(--line-strong); transform-origin: left; }
.page-heading--home h1 { font-size: var(--fs-display); max-width: 18ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: var(--fs-label); font-weight: 500; font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.breadcrumbs a { min-height: var(--tap); display: inline-flex; align-items: center; border-radius: 999px; transition: color var(--t-fast); }
@media (hover: hover) and (pointer: fine) { .breadcrumbs a:hover { color: var(--text); } }
.breadcrumbs [aria-current] { color: var(--text); }
@media (min-width: 1024px) {
    .page-heading__inner { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; }
    .page-heading__inner > * { grid-column: 1 / -1; }
    .page-heading__lead { grid-column: 7 / -1; }
}

/* Frames: image reveal + low-resolution guard ----------------------------- */
.frame { position: relative; overflow: hidden; background: var(--paper-deep); }
.frame > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame--natural { width: 100%; max-width: calc(var(--w, 1600) * 1.3px); aspect-ratio: var(--w) / var(--h); }
.frame.is-empty { min-height: 200px; }
@media (min-width: 1024px) {
    html.motion-ok .frame[data-parallax] > img { position: absolute; left: 0; top: -8%; height: 116%; }
}

/* Hero ------------------------------------------------------------------ */
.hero { display: flex; flex-direction: column; min-height: 100svh; padding-top: calc(var(--header-h) + 1.5rem); }
.hero__layout { flex: 1; display: grid; gap: 2rem; align-content: center; padding-block: 1.5rem 2rem; }
.hero__texts { display: grid; }
.hero__slide { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; visibility: hidden; }
.hero__slide.is-active { visibility: visible; }
.hero__eyebrow { color: var(--text-muted); }
.hero__eyebrow-line { width: 2.5rem; height: 1px; background: var(--accent); transform-origin: left; flex: none; }
.hero__title { font-size: var(--fs-display); line-height: 1; max-width: 17ch; }
.hero__description { max-width: 46ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; margin-top: .5rem; }
.hero__stage { position: relative; }
.hero__window { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 56svh; margin-inline: auto; overflow: hidden; background: var(--paper-deep); }
.hero__shot { position: absolute; inset: 0; overflow: hidden; opacity: 0; }
.hero__shot.is-active { opacity: 1; z-index: 2; }
.hero__shot-frame, .hero__shot img { width: 100%; height: 100%; }
.hero__shot img { object-fit: cover; }
.hero__ruler { display: none; }
.hero__next { display: none; }
.hero__bottom { display: flex; align-items: center; gap: 1.25rem; padding-bottom: 1.5rem; }
.scroll-cue { display: none; align-items: center; gap: 1rem; font-size: var(--fs-label); font-weight: 500; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue__line { width: 1px; height: 40px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ''; position: absolute; inset: 0; background: var(--accent); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero__progress { flex: 1; height: 1px; background: var(--line-strong); }
.hero__progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
html[data-effect-hero-autoplay='0'] .hero__progress, html[data-effect-hero-autoplay='0'] [data-slide-pause] { display: none; }
html[data-effect-scroll-progress='0'] .scroll-progress { display: none; }
.hero__controls { display: flex; align-items: center; gap: .6rem; }
.hero__pagination { margin-right: .75rem; font-variant-numeric: tabular-nums; font-size: var(--fs-small); font-weight: 500; letter-spacing: .08em; }
@media (min-width: 1024px) {
    .hero__layout { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; align-items: center; }
    .hero__copy { grid-column: 1 / 8; }
    .hero__stage { grid-column: 8 / 13; justify-self: end; width: 100%; }
    .hero__window { aspect-ratio: 4 / 5; height: min(68svh, 720px); width: auto; max-height: none; margin-left: auto; margin-right: 0; }
    .hero__ruler { display: block; position: absolute; left: -28px; top: 0; bottom: 0; width: 12px; border-left: 1px solid var(--line-strong); }
    .hero__ruler::before, .hero__ruler::after { content: ''; position: absolute; left: -1px; width: 12px; height: 1px; background: var(--line-strong); }
    .hero__ruler::before { top: 0; }
    .hero__ruler::after { bottom: 0; }
    .hero__ruler span { position: absolute; left: -22px; bottom: 0; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .6875rem; font-weight: 500; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; max-height: 100%; overflow: hidden; text-overflow: ellipsis; }
    .hero__next { display: block; position: absolute; left: -60px; bottom: -22px; width: 120px; height: 150px; z-index: 3; border: 1px solid var(--paper); background: var(--paper-deep); overflow: hidden; }
    .hero__next-item { position: absolute; inset: 0; opacity: 0; }
    .hero__next-item.is-active { opacity: 1; }
    .hero__next-item img { width: 100%; height: 100%; object-fit: cover; }
    .scroll-cue { display: inline-flex; }
}

/* Marquee --------------------------------------------------------------- */
.marquee-band { overflow: hidden; background: var(--paper-deep); border-block: 1px solid var(--line); }
.marquee-band__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-band__group { display: flex; align-items: center; flex: none; }
.marquee-band__group span { padding: 1.25rem 2rem; font-size: var(--fs-h3); font-weight: 500; font-stretch: 112%; letter-spacing: -.01em; white-space: nowrap; }
.marquee-band__group i { width: 8px; height: 8px; background: var(--accent); flex: none; }
html[data-effect-marquee='0'] .marquee-band__track { animation: none; }
html[data-effect-motion='0'] *, html[data-effect-motion='0'] *::before, html[data-effect-motion='0'] *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Home: intro ------------------------------------------------------------ */
.editorial-grid { display: grid; gap: 2rem; }
.editorial-grid .section-intro h2 { margin-top: 1.25rem; max-width: 16ch; }
.about-preview__copy, .about-copy { display: grid; gap: 2rem; align-content: start; }
.about-preview__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; margin-top: .5rem; }
.founder-badge { display: flex; align-items: center; gap: 1.25rem; }
.founder-badge__line { width: 3rem; height: 1px; background: var(--accent); flex: none; }
.founder-badge strong { display: block; font-weight: 600; }
.founder-badge span:not(.founder-badge__line) { font-size: var(--fs-small); color: var(--text-muted); }
.signature { font-family: var(--font-serif); font-style: italic; font-size: 1.75rem; }
.about-pillars { display: grid; margin-top: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--line-strong); }
.about-pillars--stack { margin-top: 2rem; }
.about-pillar { display: grid; gap: .35rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.about-pillar strong { font-weight: 600; font-stretch: 110%; }
.about-pillar span { color: var(--text-muted); font-size: var(--fs-small); max-width: 36ch; }
.editorial-image { margin-top: clamp(3rem, 7vw, 6rem); }
.editorial-image__caption { display: flex; flex-direction: column; gap: .35rem; margin-top: 1rem; font-size: var(--fs-label); font-weight: 500; font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
@media (min-width: 768px) {
    .about-pillars { grid-template-columns: repeat(3, 1fr); }
    .about-pillars--stack { grid-template-columns: 1fr; }
    .about-pillars:not(.about-pillars--stack) .about-pillar { padding: 1.75rem 1.75rem 1.75rem 0; }
    .about-pillars:not(.about-pillars--stack) .about-pillar + .about-pillar { padding-left: 1.75rem; border-left: 1px solid var(--line); }
    .editorial-image__caption { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1024px) {
    .editorial-grid { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; }
    .editorial-grid .section-intro { grid-column: 1 / 6; }
    .editorial-grid > :last-child { grid-column: 7 / -1; }
    .editorial-grid--sticky .section-intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* Stats (ink) ----------------------------------------------------------- */
.stats-band { padding-block: clamp(4rem, 8vw, 8rem); }
.stats-grid { display: grid; grid-template-columns: 1fr; }
.stat { display: grid; gap: .5rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.stat__index { font-size: var(--fs-label); font-weight: 500; font-stretch: 125%; letter-spacing: .14em; color: var(--text-muted); }
.stat__value { display: flex; align-items: baseline; gap: 0; font-size: var(--fs-stat); font-weight: 500; font-stretch: 112%; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.stat__suffix { font-size: .4em; margin-left: .25em; color: var(--accent-text); letter-spacing: 0; white-space: pre; }
.stat__label { max-width: 24ch; font-size: var(--fs-small); color: var(--text-muted); }
@media (min-width: 480px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(odd) { padding-right: 1.5rem; } .stat:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); } }
@media (min-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .stat { border-bottom: 0; padding: 0 1.75rem; }
    .stat:first-child { padding-left: 0; }
    .stat:not(:first-child) { border-left: 1px solid var(--line); }
    .stat:nth-child(odd) { padding-right: 1.75rem; }
    .stat__value { font-size: clamp(3rem, 5.4vw, 6rem); }
}

/* Services (home list) ---------------------------------------------------- */
.svc { display: grid; gap: 0; }
.svc__item { border-top: 1px solid var(--line-strong); }
.svc__item:last-child { border-bottom: 1px solid var(--line-strong); }
.svc__head { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 1rem; padding: 1.5rem .85rem; margin-inline: -.85rem; min-height: var(--tap); border-radius: 12px; transition: transform var(--t-base) var(--ease-out), background var(--t-fast); }
.svc__head:active { background: rgb(22 22 26 / 6%); }
@media (hover: hover) and (pointer: fine) { .svc__head:hover { background: rgb(22 22 26 / 4%); } }
.svc__head h3 { font-size: clamp(1.375rem, 2.6vw, 2.5rem); letter-spacing: -.03em; line-height: 1.1; }
.svc__index { font-size: var(--fs-label); font-weight: 500; font-stretch: 125%; letter-spacing: .14em; color: var(--text-muted); transition: color var(--t-fast); }
.svc__arrow { font-size: 1.4rem; transition: transform var(--t-base) var(--ease-out); }
.svc__more { display: grid; grid-template-rows: 1fr; }
.svc__more-inner { overflow: hidden; display: grid; gap: 1rem; padding-bottom: 1.75rem; min-height: 0; }
@media (min-width: 1024px) { .svc__more-inner { padding-bottom: 0; } .svc__item.is-active .svc__more-inner { padding-bottom: 1.75rem; } }
.svc__media .frame { aspect-ratio: 16 / 10; }
.svc__media video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc__more p { max-width: 52ch; color: var(--text-muted); }
.svc__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc__tags li { padding: .35rem .8rem; border: 1px solid var(--line-strong); font-size: var(--fs-label); font-weight: 500; letter-spacing: .06em; }
.svc__visual { display: none; }
@media (min-width: 1024px) {
    .svc { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; }
    .svc__list { grid-column: 1 / 8; }
    .svc__visual { display: block; grid-column: 9 / 13; }
    .svc__window { position: sticky; top: calc(var(--header-h) + 2rem); aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-deep); }
    .svc__shot { position: absolute; inset: 0; opacity: 0; overflow: hidden; }
    .svc__shot.is-active { opacity: 1; z-index: 2; }
    .svc__shot img, .svc__shot video { width: 100%; height: 100%; object-fit: cover; }
    .svc__media { display: none; }
    .svc__more { grid-template-rows: 0fr; transition: grid-template-rows var(--t-base) var(--ease-out); }
    .svc__item.is-active .svc__more { grid-template-rows: 1fr; }
    .svc__item.is-active .svc__head { transform: translateX(24px); }
    .svc__item.is-active .svc__index { color: var(--accent); }
    .svc__item.is-active .svc__arrow { transform: rotate(45deg); }
    .svc__more-inner { padding-left: 4.5rem; }
}

.process-strip { position: relative; display: grid; gap: 0; margin-top: clamp(4rem, 8vw, 7rem); padding-left: 1.75rem; }
.process-strip__rail { position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line-strong); }
.process-strip__rail b { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleY(0); transform-origin: top; }
html[data-effect-process-line='0'] .process-strip__rail b { transform: scaleY(1); }
html:not(.motion-ok) .process-strip__rail b { transform: scaleY(1); }
.process-step { position: relative; display: grid; gap: .5rem; padding-bottom: 2rem; }
.process-step::before { content: ''; position: absolute; left: calc(-1.75rem - 4px); top: .45rem; width: 9px; height: 9px; background: var(--paper); border: 1px solid var(--line-strong); transition: background var(--t-base), border-color var(--t-base); }
.process-step.is-lit::before, html:not(.motion-ok) .process-step::before { background: var(--accent); border-color: var(--accent); }
html[data-effect-process-line='0'] .process-step::before { background: var(--accent); border-color: var(--accent); }
.process-step__num { font-size: var(--fs-label); font-weight: 500; font-stretch: 125%; letter-spacing: .14em; color: var(--accent); }
.process-step strong { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.02em; }
.process-step p { color: var(--text-muted); max-width: 34ch; font-size: var(--fs-small); }
@media (min-width: 1024px) {
    .process-strip { grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 2.25rem 0 0; }
    .process-strip__rail { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
    .process-strip__rail b { transform: scaleX(0); transform-origin: left; }
    html:not(.motion-ok) .process-strip__rail b { transform: scaleX(1); }
    html[data-effect-process-line='0'] .process-strip__rail b { transform: scaleX(1); }
    .process-step::before { left: 0; top: calc(-2.25rem - 4px); }
}

/* Filters --------------------------------------------------------------- */
.filter-bar { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; white-space: nowrap; padding: .25rem 2.5rem .75rem 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; flex: none; min-height: var(--tap); padding: .5rem 1.05rem; border: 1px solid var(--line-strong); border-radius: 999px; background: rgb(255 255 255 / 30%); font-size: .875rem; font-weight: 500; color: var(--text-muted); transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.filter-chip.is-active { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.filter-chip:active { transform: scale(.96); }
.filter-chip.is-active .filter-count { color: var(--paper); }
.filter-count { font-size: .6875rem; font-variant-numeric: tabular-nums; color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .filter-chip:hover { color: var(--text); background: var(--paper-bright); border-color: var(--ink); } .filter-chip.is-active:hover { color: var(--paper); background: var(--ink-soft); } }
.filter-bar--static { margin-bottom: 1rem; }

/* Project cards --------------------------------------------------------- */
.project-card__link { display: block; border-radius: 16px; transition: transform var(--t-fast) var(--ease-out); }
.project-card__link:active { transform: scale(.99); }
.project-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--paper-deep); }
.project-card__frame { position: absolute; inset: 0; }
.project-card__frame img { transition: transform 900ms var(--ease-out); }
.project-card__badge { position: absolute; left: .75rem; top: .75rem; z-index: 2; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border: 1px solid rgb(255 255 255 / 55%); border-radius: 999px; background: rgb(244 241 234 / 91%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: .6875rem; font-weight: 500; font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; }
.project-card__badge.is-ongoing::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.project-card__body { display: grid; gap: .6rem; padding-top: 1.1rem; position: relative; }
.project-card__body::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease-out); }
.project-card__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .9rem; font-size: .6875rem; font-weight: 500; font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.project-card__num { color: var(--accent); font-variant-numeric: tabular-nums; }
.project-card__location { margin-left: auto; text-align: right; }
.project-card h3 { margin-top: .35rem; }
.project-card__scope { font-size: var(--fs-small); color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
    .project-card__link:hover .project-card__frame img { transform: scale(1.05); }
    .project-card__link:hover .project-card__body::before { transform: scaleX(1); }
}
html[data-effect-image-hover='0'] .project-card__link:hover .project-card__frame img { transform: none; }
.project-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } .project-grid > :nth-child(3n + 2) { margin-top: 72px; } }
.archive-toolbar { position: sticky; top: var(--header-h); z-index: 20; display: flex; flex-direction: column; gap: .25rem; margin: 0 calc(var(--gutter) * -1) clamp(2rem, 4vw, 3.5rem); padding: .25rem var(--gutter) 0; background: rgb(244 241 234 / 94%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.results-count { padding-bottom: .6rem; font-size: var(--fs-label); font-weight: 500; font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
@media (min-width: 768px) { .archive-toolbar { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.empty-state { display: grid; justify-items: start; gap: 1rem; padding: 3rem 0; color: var(--text-muted); }

/* Rail (home projects) ------------------------------------------------- */
.featured-projects { padding-bottom: calc(var(--section) * .8); overflow: clip; }
.rail__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .5rem var(--gutter) 1rem; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
.rail__viewport::-webkit-scrollbar { display: none; }
.rail__track { display: flex; gap: clamp(1.25rem, 3vw, 3rem); width: max-content; }
.project-card--rail { flex: 0 0 auto; width: 78vw; max-width: 420px; scroll-snap-align: start; }
.project-card--rail .project-card__media { aspect-ratio: 4 / 5; }
.rail__more { flex: 0 0 auto; width: 60vw; max-width: 320px; display: grid; align-content: space-between; gap: 2rem; padding: 1.75rem; border-radius: 18px; background: var(--ink); color: var(--on-ink); scroll-snap-align: start; --text-muted: var(--on-ink-muted); transition: background var(--t-fast), transform var(--t-fast); }
.rail__more:active { transform: scale(.98); }
.rail__more .eyebrow { color: var(--on-ink-muted); }
.rail__more strong { font-size: var(--fs-stat); font-weight: 500; font-stretch: 112%; letter-spacing: -.04em; line-height: 1; }
.rail__more-arrow { font-size: 2rem; transition: transform var(--t-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .rail__more:hover .rail__more-arrow { transform: translate(6px, -6px); } }
.rail__meta { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
.rail__count { font-size: var(--fs-small); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.rail__bar { flex: 1; height: 1px; background: var(--line-strong); }
.rail__bar b { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
@media (min-width: 768px) { .project-card--rail { width: 44vw; } .rail__more { width: 28vw; } }
@media (min-width: 1024px) {
    .project-card--rail { width: calc(var(--rail-h) * var(--ar, 1.33)); max-width: none; }
    .project-card--rail .project-card__media { aspect-ratio: var(--ar, 1.33); }
    .rail__more { width: 280px; }
    .rail__track { align-items: flex-start; }
    .featured-projects.is-pinned { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 1rem) 1.5rem; }
    .featured-projects.is-pinned .section-heading { margin-bottom: 1rem; }
    .featured-projects.is-pinned .rail__viewport { overflow: visible; scroll-snap-type: none; }
}

/* CTA (single crimson moment) ------------------------------------------ */
.cta { background: var(--accent); color: #fff; padding-block: clamp(5rem, 10vw, 9rem); --text-muted: rgb(255 255 255 / 80%); --accent-text: #fff; --focus: #fff; }
.cta__inner { display: grid; gap: 2.5rem; align-items: end; }
.cta h2 { font-size: var(--fs-display); line-height: 1; max-width: 16ch; margin-top: 1.25rem; }
.cta h2 em { color: #fff; }
.cta .eyebrow { color: rgb(255 255 255 / 80%); }
.cta__text { margin-top: 1.5rem; max-width: 46ch; color: rgb(255 255 255 / 85%); font-size: var(--fs-lead); }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.cta__button { display: inline-flex; flex-direction: column; justify-content: space-between; width: 168px; height: 168px; padding: 1.5rem; border: 1px solid rgb(255 255 255 / 70%); border-radius: 50%; background: radial-gradient(circle at 35% 25%, #fff 0%, var(--paper) 78%); color: var(--ink); box-shadow: 0 18px 40px rgb(0 0 0 / 19%), inset 0 1px #fff; font-weight: 500; font-size: .9375rem; line-height: 1.25; text-align: center; align-items: center; justify-content: center; gap: .5rem; transition: background var(--t-base), color var(--t-base), transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
.cta__button:active { transform: scale(.96); }
.cta__button span:last-child { font-size: 1.4rem; }
@media (hover: hover) and (pointer: fine) { .cta__button:hover { background: var(--ink); color: #fff; box-shadow: 0 24px 50px rgb(0 0 0 / 26%); } }
.cta__phone { font-size: var(--fs-lead); font-weight: 500; font-variant-numeric: tabular-nums; background: linear-gradient(currentColor, currentColor) left bottom 2px / 100% 1px no-repeat; }
@media (min-width: 1024px) { .cta__inner { grid-template-columns: 1fr auto; } .cta__actions { flex-direction: column; align-items: flex-end; } }

/* Project detail --------------------------------------------------------- */
.project-cover__link { position: relative; display: block; width: 100%; max-width: calc(var(--w, 1600) * 1.3px); overflow: hidden; border-radius: 16px; }
.project-cover__link img { transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .project-cover__link:hover img { transform: scale(1.025); } }
.project-cover--video { max-width: 620px; }
.project-cover--video video { width: 100%; max-height: min(72svh, 820px); background: var(--ink); object-fit: contain; }
.project-cover--video figcaption, .project-videos-grid figcaption { margin-top: .75rem; font-size: var(--fs-small); color: var(--text-muted); }
.project-videos-grid { display: grid; gap: clamp(1.25rem, 3vw, 3rem); }
.project-videos-grid video { width: 100%; max-height: 660px; aspect-ratio: 3 / 4; background: var(--ink); object-fit: contain; }
@media (min-width: 768px) { .project-videos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.project-overview { display: grid; gap: 2.5rem; }
.project-facts { display: grid; align-content: start; border-top: 1px solid var(--line-strong); }
.project-facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.project-facts dt { font-size: .6875rem; font-weight: 500; font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); padding-top: .25rem; }
.project-facts dd { font-weight: 500; }
.project-description { display: grid; gap: 1.75rem; align-content: start; }
@media (min-width: 1024px) {
    .project-overview { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; }
    .project-facts { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 2rem); }
    .project-description { grid-column: 6 / -1; }
}
.gallery-grid { display: grid; gap: clamp(1.25rem, 3vw, 3rem); grid-template-columns: 1fr; }
.gallery-item a { display: grid; justify-items: start; overflow: hidden; border-radius: 14px; }
.gallery-item a img { transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gallery-item a:hover img { transform: scale(1.025); } }
.gallery-item figcaption { margin-top: .75rem; font-size: var(--fs-small); color: var(--text-muted); }
@media (min-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(12, 1fr); align-items: start; }
    .gallery-item { grid-column: span 6; }
    .gallery-item:nth-child(3n + 1) { grid-column: 1 / -1; }
    .gallery-item:nth-child(3n + 2) { grid-column: 1 / 8; }
    .gallery-item:nth-child(3n + 3) { grid-column: 8 / -1; margin-top: 96px; }
}
.project-next { padding-block: clamp(4rem, 9vw, 8rem) 2rem; }
.project-next__inner { display: grid; gap: 3rem; }
.project-next__main { position: relative; display: grid; gap: 1.25rem; align-items: end; }
.project-next__title { font-size: var(--fs-title); font-weight: 500; font-stretch: 108%; letter-spacing: -.035em; line-height: 1.02; max-width: 18ch; text-wrap: balance; }
.project-next__thumb { display: block; width: min(100%, 360px); aspect-ratio: 4 / 3; }
.project-next__thumb .frame { height: 100%; }
.project-next__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--on-ink-muted); }
.project-next__foot a { display: inline-flex; align-items: center; min-height: var(--tap); border-radius: 999px; transition: color var(--t-fast); }
@media (hover: hover) and (pointer: fine) { .project-next__foot a:hover { color: var(--on-ink); } }
@media (min-width: 1024px) {
    .project-next__main { grid-template-columns: 1fr 360px; gap: 3rem; }
    .project-next__thumb { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-in-out); }
    .project-next__main:hover .project-next__thumb, .project-next__main:focus-visible .project-next__thumb { clip-path: inset(0); }
}
@media (hover: none) { .project-next__thumb { clip-path: none !important; } }

/* Lightbox -------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--ink); color: var(--on-ink); }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: var(--ink); }
.lightbox__stage { position: absolute; inset: 0; touch-action: none; }
.lightbox__img { position: absolute; max-width: none; height: auto; user-select: none; -webkit-user-drag: none; cursor: zoom-in; }
.lightbox__bar { position: absolute; z-index: 3; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; padding: max(1rem, env(safe-area-inset-top)) var(--gutter) 1rem; }
.lightbox__counter { font-size: var(--fs-small); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.lightbox__close { min-height: var(--tap); padding: 0 1rem; border: 1px solid var(--line-on-ink); border-radius: 999px; background: rgb(255 255 255 / 8%); font-size: var(--fs-label); font-weight: 500; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; transition: background var(--t-fast); }
.lightbox__close:active { background: rgb(255 255 255 / 18%); }
.lightbox__caption { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: max(1rem, env(safe-area-inset-bottom)); text-align: center; font-size: var(--fs-small); color: var(--on-ink-muted); pointer-events: none; }
.lightbox__nav { position: absolute; z-index: 3; top: 50%; width: var(--tap); height: var(--tap); margin-top: calc(var(--tap) / -2); display: none; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 1.1rem; background: rgb(22 22 26 / 72%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background var(--t-fast), transform var(--t-fast); }
.lightbox__nav:active { transform: scale(.92); }
.lightbox__nav--prev { left: 1.25rem; }
.lightbox__nav--next { right: 1.25rem; }
.lightbox__thumbs { position: absolute; z-index: 3; left: 0; right: 0; bottom: 3.25rem; display: none; justify-content: center; gap: .6rem; }
.lightbox__thumb { height: 52px; aspect-ratio: 4 / 3; overflow: hidden; opacity: .55; border: 2px solid transparent; border-radius: 8px; transition: opacity var(--t-fast), border-color var(--t-fast); }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb.is-active { opacity: 1; border-color: var(--accent-on-ink); }
.lightbox.is-single .lightbox__counter, .lightbox.is-single .lightbox__nav, .lightbox.is-single .lightbox__thumbs { display: none !important; }
@media (min-width: 1024px) {
    .lightbox:not(.is-single) .lightbox__nav { display: grid; }
    .lightbox__thumb { height: 64px; }
    .lightbox.has-thumbs .lightbox__thumbs { display: flex; }
}

/* Values / services detail ------------------------------------------------ */
.values-grid { display: grid; border-top: 1px solid var(--line-strong); }
.value-item { display: grid; gap: .75rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.value-item__index { font-size: var(--fs-label); font-weight: 500; font-stretch: 125%; letter-spacing: .14em; color: var(--accent); }
.value-item p { color: var(--text-muted); max-width: 40ch; }
@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
    .value-item { border-bottom: 0; padding: 2rem 2rem 2.5rem 0; }
    .value-item + .value-item { padding-left: 2rem; border-left: 1px solid var(--line); }
}
.service-list { display: grid; }
.services-intro { margin-bottom: clamp(2rem, 5vw, 4rem); }
.service-detail { display: grid; gap: 1.5rem; padding-block: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--line-strong); scroll-margin-top: calc(var(--header-h) + 2rem); }
.service-detail__index { font-size: var(--fs-stat); font-weight: 500; font-stretch: 112%; letter-spacing: -.04em; line-height: 1; color: var(--line-strong); font-variant-numeric: tabular-nums; }
.service-detail__body { display: grid; gap: 1.5rem; align-content: start; justify-items: start; }
.service-detail__body h2 { max-width: 18ch; }
.service-detail__image .frame { aspect-ratio: 4 / 5; }
.feature-list { display: grid; gap: .6rem 2rem; }
.feature-list li { position: relative; padding-left: 1.4rem; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; background: var(--accent); }
@media (min-width: 768px) { .feature-list { grid-template-columns: repeat(2, auto); justify-content: start; } }
@media (min-width: 1024px) {
    .service-detail { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; }
    .service-detail__index { grid-column: 1 / 3; font-size: clamp(3rem, 6vw, 5.5rem); }
    .service-detail__body { grid-column: 3 / 8; }
    .service-detail__image { grid-column: 8 / -1; }
}

/* Page covers ----------------------------------------------------------- */
.page-cover figcaption { margin-top: .75rem; font-size: var(--fs-small); color: var(--text-muted); }

/* Contact --------------------------------------------------------------- */
.contact-grid { display: grid; gap: 3rem; }
.contact-details { display: grid; gap: 2rem; align-content: start; }
.contact-logo { width: min(100%, 320px); }
.contact-logo__img { display: block; width: 100%; height: auto; }
.contact-details h2 { max-width: 14ch; }
.contact-address { display: grid; border-top: 1px solid var(--line-strong); }
.contact-card { display: grid; gap: .5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.contact-direct { display: inline-flex; align-items: center; min-height: var(--tap); width: fit-content; font-size: clamp(1.375rem, 3.2vw, 2.25rem); font-weight: 500; font-stretch: 108%; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size var(--t-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .contact-direct:hover { background-size: 100% 1px; } }
.contact-person { display: grid; gap: .35rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.contact-person__name { font-size: var(--fs-h3); font-weight: 500; }
.contact-form-panel { padding: clamp(1.5rem, 4vw, 3rem); background: var(--paper-bright); border: 1px solid var(--line); display: grid; gap: 1.5rem; align-content: start; }
.contact-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 1.5rem; }
.form-grid { display: grid; gap: 1.5rem; }
.form-field { display: grid; gap: .35rem; }
.form-field label { font-size: .6875rem; font-weight: 500; font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.form-field input, .form-field textarea { width: 100%; min-height: 56px; padding: .75rem 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.0625rem; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 2px no-repeat; transition: background-size var(--t-base) var(--ease-out); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 0; background-size: 100% 2px; }
.form-field [aria-invalid='true'] { border-bottom-color: var(--error); }
.field-error { color: var(--error); font-size: var(--fs-small); }
.form-help { font-size: var(--fs-small); color: var(--text-muted); }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.25rem; border-left: 3px solid var(--line-strong); background: var(--paper-bright); }
.notice--success { border-left-color: var(--success); }
.notice--error { border-left-color: var(--error); }
.notice ul { margin-top: .5rem; padding-left: 1.1rem; list-style: disc; }
.contact-form .button { width: 100%; }
.contact-map { min-width: 0; }
.contact-map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; border: 0; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .form-field--full { grid-column: 1 / -1; } .contact-form .button { width: auto; justify-self: start; } .contact-map iframe { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; }
    .contact-details { grid-column: 1 / 6; }
    .contact-map { grid-column: 7 / -1; }
    .contact-form-panel { grid-column: 7 / -1; }
}

/* 404 ------------------------------------------------------------------- */
.error-page { min-height: 100svh; display: grid; align-items: center; padding-top: calc(var(--header-h) + 3rem); }
.error-page .container { display: grid; gap: 1.5rem; justify-items: start; }
.error-page__code { font-size: clamp(6rem, 24vw, 22rem); font-weight: 600; font-stretch: 125%; letter-spacing: -.05em; line-height: .85; color: transparent; -webkit-text-stroke: 1px var(--ink); }
.error-page h1 { font-size: var(--fs-h2); max-width: 20ch; }
.error-page__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; }

/* Footer ---------------------------------------------------------------- */
.site-footer { position: relative; isolation: isolate; padding-top: clamp(4rem, 8vw, 7rem); overflow: hidden; background: radial-gradient(circle at 84% 78%, #303037 0%, transparent 50%), #151519; }
.site-footer::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgb(255 255 255 / 3%) calc(25% - 1px), rgb(255 255 255 / 3%) 25%); }
.site-footer__structure { position: absolute; z-index: -1; right: -4%; bottom: -12%; width: min(48vw, 640px); height: auto; stroke: rgb(244 241 234 / 17%); stroke-width: 1; pointer-events: none; transform: rotate(-8deg); }
@media (max-width: 767px) { .site-footer { background: radial-gradient(circle at 84% 84%, #303037 0%, transparent 50%), #151519; } .site-footer__structure { right: -13%; bottom: -8%; width: min(95vw, 460px); } }
.footer-top { display: grid; gap: 3rem; }
.footer-brand { display: grid; gap: 1.1rem; align-content: start; max-width: 44ch; color: var(--on-ink-muted); }
.footer-logo { color: var(--on-ink); }
.footer-legal { color: var(--on-ink); font-size: var(--fs-small); font-weight: 500; letter-spacing: .02em; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-badges span { padding: .35rem .7rem; border: 1px solid var(--line-on-ink); font-size: .6875rem; font-weight: 500; font-stretch: 125%; letter-spacing: .1em; }
.footer-socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-socials a { display: inline-flex; gap: .6rem; min-height: var(--tap); padding: .45rem 1rem; align-items: center; border: 1px solid var(--line-on-ink); border-radius: 999px; color: var(--on-ink); transition: border-color var(--t-fast), background var(--t-fast); }
@media (hover: hover) and (pointer: fine) { .footer-socials a:hover { border-color: var(--on-ink); background: rgb(255 255 255 / 8%); } }
.footer-links, .footer-contact { display: grid; gap: .25rem; align-content: start; }
.footer-links .eyebrow, .footer-contact .eyebrow { margin-bottom: 1rem; color: var(--on-ink-muted); }
.footer-links a { display: flex; justify-content: space-between; align-items: center; min-height: var(--tap); padding-inline: .4rem; margin-inline: -.4rem; border-bottom: 1px solid var(--line-on-ink); border-radius: 8px; font-size: 1.125rem; font-weight: 500; transition: background var(--t-fast), padding var(--t-fast); }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { background: rgb(255 255 255 / 7%); padding-inline: .8rem; } }
.footer-contact address { display: grid; gap: .5rem; color: var(--on-ink-muted); }
.footer-contact a { min-height: var(--tap); display: inline-flex; align-items: center; color: var(--on-ink); width: fit-content; transition: color var(--t-fast); }
@media (hover: hover) and (pointer: fine) { .footer-contact a:hover { color: var(--on-ink); } }
.footer-engineer { display: grid; margin-top: 1.5rem; }
.footer-engineer span { color: var(--on-ink-muted); font-size: var(--fs-small); }
.site-footer__watermark { width: 100%; margin-top: clamp(2.5rem, 6vw, 5rem); padding: 0 var(--gutter) .12em; overflow: hidden; white-space: nowrap; text-align: center; font-size: clamp(2.25rem, 12vw, 12rem); font-weight: 500; font-stretch: 100%; letter-spacing: -.065em; line-height: 1.05; color: rgb(244 241 234 / 11%); user-select: none; }
.site-footer__watermark span { display: inline-block; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; padding-block: 1.5rem max(1.5rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-on-ink); font-size: var(--fs-small); color: var(--on-ink-muted); }
.footer-bottom a { display: inline-flex; align-items: center; gap: .5rem; min-height: var(--tap); border-radius: 999px; transition: color var(--t-fast); }
.back-top span:last-child { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-on-ink); border-radius: 50%; transition: transform var(--t-fast); }
@media (hover: hover) and (pointer: fine) { .back-top:hover span:last-child { transform: translateY(-3px); } }
@media (hover: hover) and (pointer: fine) { .footer-bottom a:hover { color: var(--on-ink); } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.4fr 1fr; column-gap: 4rem; } }

/* Scroll progress, overlays ------------------------------------------------ */
.scroll-progress { position: fixed; inset: 0 0 auto 0; z-index: 95; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.preloader { display: none; position: fixed; inset: 0; z-index: 1000; }
html.is-preloading .preloader { display: block; }
.preloader__panels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.preloader__panels i { background: var(--ink); transform-origin: top; margin-right: -1px; }
.preloader__stage { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.75rem; color: var(--on-ink); }
.preloader__drawing { width: min(46vw, 260px); height: auto; overflow: visible; }
.preloader__drawing path { stroke: var(--on-ink); stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.preloader__drawing .preloader__roof { stroke: var(--accent-on-ink); stroke-width: 2; }
.preloader__word { font-size: .9375rem; font-weight: 500; font-stretch: 125%; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.preloader__meta { position: fixed; left: var(--gutter); right: var(--gutter); bottom: max(1.25rem, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 1rem; font-size: .6875rem; font-weight: 500; font-stretch: 125%; letter-spacing: .14em; color: var(--on-ink-muted); }
.preloader__counter { font-variant-numeric: tabular-nums; color: var(--on-ink); }
.page-transition { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: var(--gutter); background: rgb(244 241 234 / 92%); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: var(--ink); opacity: 0; }
.page-transition__inner { display: grid; justify-items: center; gap: 1rem; }
.page-transition__mark { width: 1px; height: 36px; background: var(--accent); }
.page-transition__label { font-size: .8rem; font-weight: 500; letter-spacing: .2em; text-align: center; text-transform: uppercase; }
.page-transition__label span { display: inline-block; }
.page-transition__rule { width: 96px; height: 1px; background: var(--line-strong); }
.cursor { position: fixed; left: 0; top: 0; z-index: 950; width: 88px; height: 88px; margin: -44px 0 0 -44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .6875rem; font-weight: 500; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; opacity: 0; transform: scale(0); }

/* Back to top / misc ----------------------------------------------------- */
.back-top { cursor: pointer; }

@media (forced-colors: active) {
    .button, .filter-chip.is-active { border: 1px solid CanvasText; }
    .site-footer__watermark { color: GrayText; }
}
@media (prefers-contrast: more) {
    :root { --text-muted: #3d3b38; --on-ink-muted: #d8d4cb; --line: rgb(22 22 26 / 40%); }
}
@media print {
    .site-header, .preloader, .page-transition, .cursor, .scroll-progress, .marquee-band, .lightbox, .hero__controls, .site-footer__watermark { display: none !important; }
    body { background: #fff; color: #000; }
    .is-ink, .cta { background: #fff !important; color: #000 !important; }
    .hero, .page-heading { padding-top: 1rem; min-height: 0; }
    html.motion-ok [data-reveal], html.motion-ok [data-frame] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.archive-toolbar { transition: top var(--t-base) var(--ease-in-out); }
html.header-hidden .archive-toolbar { top: 0; }
