/* =====================================================================
   XYZ TEAM — site stylesheet
   Concept: "The Split" – the logo's horizontal cut drives intro, page
   transitions and image reveals. Editorial, architectural, ivory on black.
   ===================================================================== */

/* ---------- tokens ---------- */
:root {
    --bg: #0b0b0c;
    --bg-2: #111112;
    --bg-3: #18181a;
    --ink: #ede6da;
    --ink-2: #a8a197;
    --ink-3: #6e6961;
    --gold: #c5a47e;
    --gold-2: #e3cba6;
    --gold-3: #8a6a43;
    --line: rgba(237, 230, 218, .12);
    --line-2: rgba(237, 230, 218, .22);

    --ff-display: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    --ff-ui: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    --ff-body: Georgia, 'Times New Roman', Times, serif;

    --gutter: clamp(20px, 4vw, 56px);
    --wrap: 1360px;
    --sec: clamp(110px, 13vw, 200px);
    --radius: 18px;

    --ease: cubic-bezier(.16, 1, .3, 1);
    --ease-io: cubic-bezier(.76, 0, .24, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
    background: var(--bg); color: var(--ink);
    font: 400 16px/1.65 var(--ff-body);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* film grain for depth */
body::after {
    content: ''; position: fixed; inset: -50%; z-index: 9000; pointer-events: none; opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }

/* ---------- layout & type ---------- */
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.sec { padding-block: var(--sec); position: relative; }

.label {
    display: inline-flex; align-items: center; gap: .8em;
    font: 500 11.5px/1 var(--ff-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
}
.label--gold { color: var(--gold); }
.label__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(197,164,126,.15); }

.sec-head { display: flex; align-items: center; gap: 1.6rem; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .rule { flex: 1; height: 1px; background: var(--line); transform-origin: left; }

.display {
    font-family: var(--ff-display); font-weight: 700; text-transform: uppercase; line-height: .98; letter-spacing: -.01em;
    font-size: clamp(44px, 7.4vw, 124px);
}
.display--md { font-size: clamp(38px, 5.4vw, 88px); }
.display--sm { font-size: clamp(32px, 3.8vw, 60px); line-height: 1.05; }
.display em, .em { font-style: normal; color: var(--gold); }
.lead { font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
    --h: 54px;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; gap: 14px; height: var(--h); padding: 0 28px;
    border-radius: 100px; border: 1px solid var(--line-2);
    font: 500 12.5px/1 var(--ff-ui); letter-spacing: .16em; text-transform: uppercase;
    transition: color .5s var(--ease), border-color .5s;
}
.btn::before {
    content: ''; position: absolute; inset: 0; z-index: -1; background: var(--gold);
    clip-path: inset(50% 0 50% 0); transition: clip-path .6s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--gold); }
.btn:hover::before { clip-path: inset(0 0 0 0); }
.btn--gold { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn--gold::before { background: var(--ink); }
.btn--lg { --h: 68px; padding: 0 38px; font-size: 13px; }
.arrow { width: 18px; height: 10px; overflow: visible; flex-shrink: 0; }
.arrow path { fill: none; stroke: currentColor; stroke-width: 1.3; }
.btn .arrow, .link-arrow .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(5px); }

.link-arrow { display: inline-flex; align-items: center; gap: 12px; font: 500 12.5px/1 var(--ff-ui); letter-spacing: .16em; text-transform: uppercase; padding-bottom: 8px; position: relative; }
.link-arrow::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.link-arrow:hover::after { transform: scaleX(0); }

/* ---------- motion primitives ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 48px, 0); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.w-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .02em .12em; margin: -.06em -.02em -.12em; }
.w-mask > span { display: inline-block; transform: translate3d(0, 115%, 0); transition: transform 1.2s var(--ease); transition-delay: calc(var(--w, 0) * 55ms + var(--d, 0s)); }
.js [data-split]:not(.is-in) .w-mask > span { transform: translate3d(0, 115%, 0); }
[data-split].is-in .w-mask > span { transform: none; }

.js [data-draw] { transform: scaleX(0); transition: transform 1.6s var(--ease-io); transform-origin: left; }
.js [data-draw].is-in { transform: none; }

/* image reveal: opens from the middle like the logo's split */
.img-mask { position: relative; overflow: hidden; }
.img-mask img { width: 100%; height: 100%; object-fit: cover; }
/* the clip lives on the image so the frame stays measurable for IntersectionObserver */
.js .img-mask img { clip-path: inset(50% 0 50% 0); transform: scale(1.3); transition: clip-path 1.5s var(--ease-io), transform 2s var(--ease); }
.js .img-mask.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
[data-speed] { will-change: transform; }

.icon-draw path, .icon-draw circle, .icon-draw line { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease-io) .2s; }
.is-in .icon-draw path, .is-in .icon-draw circle, .is-in .icon-draw line { stroke-dashoffset: 0; }

/* ---------- logo ---------- */
.xyz-logo { overflow: visible; }
.xyz-logo .lg-t path, .xyz-logo .lg-b path { fill: currentColor; }
.xyz-logo .lg-team path { stroke: currentColor; }
.xyz-logo .lg-t, .xyz-logo .lg-b { transition: transform .6s var(--ease); }

/* ======================= INTRO / PAGE TRANSITION ======================= */
.intro { position: fixed; inset: 0; z-index: 8000; pointer-events: all; }
.intro.is-done { pointer-events: none; visibility: hidden; }
.intro__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bg); }
.intro__panel--top { top: 0; }
.intro__panel--bot { bottom: 0; }
.intro__panel::after { content: ''; position: absolute; inset: 0; background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 12.5% 100%; opacity: .35; }
.intro__line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-2) 50%, var(--gold) 80%, transparent); transform: scaleX(0); }
.intro__logo { position: absolute; left: 50%; top: 50%; width: clamp(200px, 26vw, 360px); transform: translate(-50%, -50%); color: var(--ink); }
.intro__logo .xyz-logo { width: 100%; height: auto; }
.intro__logo .lg-t path, .intro__logo .lg-b path { fill-opacity: 0; stroke: var(--gold); stroke-width: .6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__logo .lg-team path { stroke-dasharray: 1; stroke-dashoffset: 1; }
/* arriving from a page transition: logo already assembled behind closed panels */
.is-nav .intro__logo .lg-t path, .is-nav .intro__logo .lg-b path { fill-opacity: 1; stroke-opacity: 0; stroke-dashoffset: 0; }
.is-nav .intro__logo .lg-team path { stroke-dashoffset: 0; }
.is-nav .intro__line { transform: none; }
.intro__meta { position: absolute; bottom: clamp(24px, 5vh, 48px); font: 500 11px/1 var(--ff-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); opacity: 0; }
.intro__meta--l { left: var(--gutter); }
.intro__meta--r { right: var(--gutter); }
.intro__count { position: absolute; top: clamp(24px, 5vh, 48px); right: var(--gutter); font: 700 clamp(56px, 9vw, 140px)/1 var(--ff-display); color: var(--ink); opacity: .08; font-variant-numeric: tabular-nums; }
.no-js .intro { display: none; }

/* ======================= CURSOR ======================= */
.cursor { position: fixed; left: 0; top: 0; z-index: 8500; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: var(--gold); transition: width .4s var(--ease), height .4s var(--ease), background .4s; }
.cursor__ring { width: 38px; height: 38px; border: 1px solid rgba(197,164,126,.5); transition: width .5s var(--ease), height .5s var(--ease), opacity .3s, border-color .3s; }
.cursor__label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.5); font: 600 10.5px/1 var(--ff-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .3s, transform .5s var(--ease); white-space: nowrap; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; border-color: var(--gold); }
.cursor.is-label .cursor__dot { width: 96px; height: 96px; background: var(--gold); }
.cursor.is-label .cursor__ring { opacity: 0; }
.cursor.is-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }

/* ======================= HEADER ======================= */
.hdr {
    position: fixed; z-index: 7000; top: 0; left: 0; right: 0;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
    padding: 22px var(--gutter);
    transition: transform .8s var(--ease), padding .5s var(--ease), background-color .5s;
}
.hdr::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(11,11,12,.6); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .5s; }
.hdr.is-scrolled { padding-block: 14px; }
.hdr.is-scrolled::before { opacity: 1; }
.hdr.is-hidden { transform: translateY(-105%); }
.hdr__logo { width: 92px; color: var(--ink); justify-self: start; }
.hdr__logo:hover .lg-t { transform: translateY(-3px); }
.hdr__logo:hover .lg-b { transform: translateY(3px); }
.hdr__nav { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 100px; background: rgba(17,17,18,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hdr__nav a { position: relative; overflow: hidden; display: block; padding: 10px 16px; border-radius: 100px; font: 500 12px/1 var(--ff-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); transition: color .4s, background .4s; }
.hdr__nav a span { display: block; transition: transform .5s var(--ease); }
.hdr__nav a span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; width: 100%; text-align: center; color: var(--gold); padding-top: 10px; }
.hdr__nav a:hover span { transform: translateY(calc(-100% - 10px)); }
.hdr__nav a.is-active { background: var(--ink); color: var(--bg); }
.hdr__nav a.is-active span::after { color: var(--bg); }
.hdr__right { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.hdr__time { font: 500 11px/1.3 var(--ff-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); text-align: right; }
.hdr__time b { display: block; color: var(--ink); font-weight: 500; letter-spacing: .1em; }
.hdr .btn { --h: 46px; padding: 0 22px; }
.burger { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: none; place-items: center; position: relative; }
.burger span { position: absolute; left: 50%; width: 18px; height: 1.4px; background: var(--ink); transform: translateX(-50%); transition: transform .6s var(--ease), top .6s var(--ease); }
.burger span:nth-child(1) { top: 20px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 23px; transform: translateX(-50%) rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 23px; transform: translateX(-50%) rotate(-45deg); }

/* ======================= MENU ======================= */
.menu { position: fixed; inset: 0; z-index: 6500; visibility: hidden; }
.menu.is-open { visibility: visible; }
.menu__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bg-2); }
.menu__panel--top { top: 0; transform: translateY(-101%); }
.menu__panel--bot { bottom: 0; transform: translateY(101%); }
.menu__inner { position: relative; height: 100%; display: grid; grid-template-columns: 1.4fr 1fr; gap: 6vw; align-items: center; padding: 120px var(--gutter) 60px; }
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu__link { display: flex; align-items: baseline; gap: 22px; padding: 10px 0; font: 700 clamp(38px, 6vw, 84px)/1.05 var(--ff-display); letter-spacing: -.01em; transform: translateY(105%); color: var(--ink); transition: color .4s, padding-left .6s var(--ease); }
.menu__link small { font: 500 12px/1 var(--ff-body); letter-spacing: .16em; color: var(--gold); }
.menu__link:hover { color: var(--gold); padding-left: 18px; }
.menu__side { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; opacity: 0; }
.menu__preview { flex: 1; min-height: 200px; max-height: 52vh; border-radius: var(--radius); overflow: hidden; position: relative; }
.menu__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.menu__preview img.is-on { opacity: 1; transform: none; }
.menu__contact { display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.menu__contact a:hover { color: var(--gold); }

/* ======================= HERO ======================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; will-change: clip-path; }
.hero__slide { position: absolute; inset: 0; overflow: hidden; z-index: 0; visibility: hidden; }
.hero__slide.is-active { z-index: 2; visibility: visible; }
.hero__slide.is-prev { z-index: 1; visibility: visible; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background:
    linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.05) 32%, rgba(11,11,12,.25) 58%, rgba(11,11,12,.92) 100%),
    linear-gradient(90deg, rgba(11,11,12,.55), transparent 55%); }
.hero__marks { position: absolute; inset: clamp(86px, 12vh, 120px) var(--gutter) clamp(24px, 4vh, 40px); z-index: 4; pointer-events: none; }
.hero__marks span { position: absolute; width: 22px; height: 22px; border-color: rgba(237,230,218,.5); border-style: solid; border-width: 0; }
.hero__marks span:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.hero__marks span:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.hero__marks span:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.hero__marks span:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.hero__content { position: absolute; z-index: 5; left: 0; right: 0; bottom: clamp(70px, 12vh, 130px); }
.hero__items { display: grid; }
.hero__item { grid-area: 1 / 1; pointer-events: none; }
.hero__item.is-active { pointer-events: auto; }
.hero__eyebrow { margin-bottom: clamp(18px, 3vh, 30px); }
.hero__title { font: 700 clamp(40px, min(6vw, 11vh), 104px)/1 var(--ff-display); letter-spacing: -.01em; text-transform: uppercase; max-width: 18ch; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .ln > span { display: inline-block; transform: translateY(110%); }
.hero__title em { color: var(--gold); }
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: clamp(26px, 4vh, 44px); }
.hero__desc { max-width: 44ch; color: rgba(237,230,218,.78); font-size: clamp(15px, 1.1vw, 17px); opacity: 0; transform: translateY(24px); }
.hero__item .btn, .hero__item .hero__eyebrow { opacity: 0; transform: translateY(24px); }
.hero__ui { position: absolute; z-index: 6; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.hero__count { font: 700 15px/1 var(--ff-display); letter-spacing: .08em; color: var(--ink-2); }
.hero__count b { color: var(--ink); font-weight: 400; font-size: 26px; }
.hero__bars { display: flex; flex-direction: column; gap: 10px; }
.hero__bar { width: 2px; height: 54px; background: rgba(237,230,218,.2); position: relative; overflow: hidden; padding: 0; }
.hero__bar i { position: absolute; inset: 0; background: var(--gold); transform: scaleY(0); transform-origin: top; }
.hero__scroll { position: absolute; z-index: 6; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll i { display: block; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: scrollCue 2.2s var(--ease-io) infinite; transform-origin: top; }
@keyframes scrollCue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ======================= MARQUEE ======================= */
.marquee { overflow: hidden; padding: clamp(28px, 4vw, 48px) 0; border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item { display: flex; align-items: center; gap: clamp(26px, 3vw, 48px); padding-right: clamp(26px, 3vw, 48px); font: 700 clamp(38px, 6vw, 96px)/1 var(--ff-display); letter-spacing: -.01em; white-space: nowrap; }
.marquee__item.is-outline { color: transparent; -webkit-text-stroke: 1px var(--ink-2); }
.marquee__sep { width: clamp(34px, 3.4vw, 54px); color: var(--gold); flex-shrink: 0; }

/* ======================= ORNAMENTS ======================= */
/* faint architectural column guides across the page */
body::before { content: ''; position: fixed; z-index: 1; top: 0; bottom: 0; left: var(--gutter); right: var(--gutter); pointer-events: none;
    background: linear-gradient(90deg, rgba(237,230,218,.032) 1px, transparent 1px) 0 0 / 25% 100%;
    border-right: 1px solid rgba(237,230,218,.032); }
.deco { position: absolute; pointer-events: none; z-index: 0; overflow: visible; height: auto; }
.deco-arc { color: var(--gold); opacity: .2; transform-origin: 50% 50%; }
.deco-arc circle, .deco-arc path { fill: none; stroke: currentColor; stroke-width: .7; }
.deco-arc .d-dash { stroke-dasharray: 2 6; }
.deco-arc .d-faint { opacity: .5; stroke-dasharray: 1 5; }
.deco-arc .d-fill { fill: currentColor; }
.deco-arc .d-text { font: 500 9.5px/1 var(--ff-body); letter-spacing: .34em; fill: currentColor; }
.deco-plan { color: var(--gold); }
.deco-plan path, .deco-plan circle { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: square; }
.deco-plan .d-faint { opacity: .55; }
.deco-plan .d-dim { opacity: .65; stroke-width: .8; }
.deco-plan .d-label { font: 500 9px/1 var(--ff-body); letter-spacing: .22em; fill: currentColor; opacity: .75; }
.sec > .wrap, .sec > .logos { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* registration marks (+) in the corners */
.marks { position: absolute; inset: clamp(18px, 2.4vw, 34px); pointer-events: none; z-index: 0; }
.marks i { position: absolute; width: 15px; height: 15px; }
.marks i::before, .marks i::after { content: ''; position: absolute; background: var(--gold); opacity: .6; }
.marks i::before { left: 7px; top: 0; bottom: 0; width: 1px; }
.marks i::after { top: 7px; left: 0; right: 0; height: 1px; }
.marks i:nth-child(1) { left: -7px; top: -7px; }
.marks i:nth-child(2) { right: -7px; top: -7px; }
.marks i:nth-child(3) { left: -7px; bottom: -7px; }
.marks i:nth-child(4) { right: -7px; bottom: -7px; }

/* rotating circular badge */
.badge { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 120px; color: var(--ink); }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 20s linear infinite; overflow: visible; }
.badge__ring text { font: 500 13px/1 var(--ff-body); letter-spacing: .08em; fill: currentColor; }
.badge__edge { fill: none; stroke: var(--line-2); }
.badge__core { position: relative; width: 44%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(197,164,126,.4); transition: background .5s, color .5s, transform .7s var(--ease); }
.badge__core .xyz-logo { width: 64%; height: auto; }
.badge__core .arrow { width: 26px; height: 14px; }

/* odometer digits */
.odo { display: inline-flex; font-variant-numeric: tabular-nums; }
.odo__col { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.odo__strip { display: flex; flex-direction: column; transition: transform 3s cubic-bezier(.19, 1, .22, 1); transition-delay: calc(var(--d, 0s) + var(--i) * .14s + .25s); }
.odo__strip span { display: block; height: 1em; line-height: 1; }
.is-in .odo__strip { transform: translateY(calc(var(--n) * -1em)); }

/* ======================= ABOUT ======================= */
.about { overflow-x: clip; }
.about__intro { display: grid; grid-template-columns: minmax(230px, .85fr) 2.4fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.about__side { position: sticky; top: 130px; display: grid; gap: 30px; justify-items: start; padding-top: 10px; }
.about__badge { width: 136px; }
.about__big { font: 400 clamp(30px, 4.1vw, 68px)/1.14 var(--ff-display); letter-spacing: -.01em; }
.about__big .w { opacity: .14; transition: opacity .3s linear, color .3s; }
.about__big .w.on { opacity: 1; }
.about__big .w.em { color: var(--gold); }
.pill { display: inline-block; width: 1.9em; height: .9em; border-radius: 1em; overflow: hidden; vertical-align: .05em; margin: 0 .12em; position: relative; }
.pill img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); transition: transform 1.4s var(--ease); }
.pill.on img { transform: scale(1); }

.about__stage { margin-top: clamp(100px, 12vw, 180px); }
.stage__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 22px 46px; }
.stage__steps { display: flex; align-items: center; gap: 12px; }
.stage__steps button { font: 500 10.5px/1 var(--ff-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); padding: 8px 12px; border-radius: 100px; border: 1px solid var(--line); transition: color .5s, background .5s, border-color .5s; }
.stage__steps button.is-on { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.stage__steps i { width: 28px; height: 1px; background: var(--line-2); }
.about__shot { position: relative; border-radius: var(--radius); aspect-ratio: 3 / 4; }
.about__shot--a { margin-top: 42%; }
.about__shot--b { aspect-ratio: 4 / 5; margin-top: 8%; }
.about__shot figcaption { position: absolute; z-index: 1; left: 16px; bottom: 16px; color: var(--ink); padding: 7px 12px; border-radius: 100px; background: rgba(11,11,12,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 10px; }
.about__main { --p: 1; position: relative; padding: 46px 0 0 46px; }
.about__fig { display: none; text-align: center; line-height: 1.9; margin-top: 30px; font-size: 10.5px; }
.dim { position: absolute; color: var(--gold); font: 500 10.5px/1 var(--ff-ui); letter-spacing: .2em; text-transform: uppercase; }
.dim--h { left: 46px; right: 0; top: 0; height: 22px; border-left: 1px solid; border-right: 1px solid; }
.dim--h::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; }
.dim--h span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--bg); padding: 0 12px; }
.dim--v { left: 0; top: 46px; bottom: 0; width: 22px; border-top: 1px solid; border-bottom: 1px solid; }
.dim--v::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: currentColor; }
.dim--v span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); background: var(--bg); padding: 0 12px; white-space: nowrap; }

/* blueprint → reality */
.bp { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 210px); max-height: calc(100svh - 210px); transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--ease); will-change: transform; border-radius: var(--radius); overflow: hidden; background: #0e1b2e; isolation: isolate; }
.bp__plan, .bp__real { position: absolute; inset: 0; }
.bp__plan img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.5) brightness(.85); mix-blend-mode: luminosity; opacity: .26; }
.bp__plan::after { content: ''; position: absolute; inset: 0; background:
    linear-gradient(rgba(197,164,126,.14) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgba(197,164,126,.14) 1px, transparent 1px) 0 0 / 30px 30px; }
.bp__lines { position: absolute; z-index: 1; left: 50%; top: 9%; height: 82%; width: auto; translate: -50% 0; color: var(--gold-2); filter: drop-shadow(0 0 3px rgba(197,164,126,.45)); }
.bp__block { position: absolute; z-index: 1; right: 5%; bottom: 4%; display: grid; grid-template-columns: auto auto; gap: 1px; background: rgba(197,164,126,.45); border: 1px solid rgba(197,164,126,.45); font: 500 8px/1 var(--ff-ui); letter-spacing: .16em; text-transform: uppercase; }
.bp__block > div { background: rgba(14,27,46,.92); padding: 7px 11px; }
.bp__block .bp__brand { grid-column: 1 / -1; display: flex; justify-content: center; padding: 9px; color: var(--gold-2); }
.bp__brand .xyz-logo { width: 52px; height: auto; }
.bp__block dt { color: rgba(227,203,166,.55); margin-bottom: 5px; }
.bp__block dd { color: var(--gold-2); font-size: 9.5px; letter-spacing: .1em; }
.bp__sheen { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,240,220,.18), transparent 45%); opacity: 0; transition: opacity .6s; }
.bp.is-hover .bp__sheen { opacity: 1; }
.crop { position: absolute; left: 46px; top: 46px; right: 0; bottom: 0; pointer-events: none; }
.crop i { position: absolute; width: 18px; height: 18px; border: 0 solid var(--gold); }
.crop i:nth-child(1) { left: -12px; top: -12px; border-left-width: 1px; border-top-width: 1px; }
.crop i:nth-child(2) { right: -12px; top: -12px; border-right-width: 1px; border-top-width: 1px; }
.crop i:nth-child(3) { left: -12px; bottom: -12px; border-left-width: 1px; border-bottom-width: 1px; }
.crop i:nth-child(4) { right: -12px; bottom: -12px; border-right-width: 1px; border-bottom-width: 1px; }
.dim__fill { position: absolute; left: 50%; top: 0; width: 1px; height: calc(var(--p) * 100%); background: var(--gold-2); box-shadow: 0 0 10px 1px rgba(197,164,126,.8); translate: -.5px 0; }
.bp__real { z-index: 2; clip-path: inset(0 0 calc(100% - var(--p) * 100%) 0); }
.bp__real img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.14 - var(--p) * .14)); }
.bp__scan { position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--p) * 100%); height: 1px; background: var(--gold-2); box-shadow: 0 0 22px 3px rgba(197,164,126,.75); opacity: 0; transition: opacity .4s; }
.bp.is-scanning .bp__scan { opacity: 1; }
.bp__scan b { position: absolute; right: 14px; font: 600 9.5px/1 var(--ff-ui); letter-spacing: .2em; text-transform: uppercase; padding: 6px 9px; border-radius: 3px; }
.bp__scan b:first-child { top: 10px; background: rgba(14,27,46,.85); color: var(--gold-2); border: 1px solid rgba(197,164,126,.5); }
.bp__scan b:last-child { bottom: 10px; background: var(--gold); color: var(--bg); }
.bp__scan em { position: absolute; left: 14px; top: 0; translate: 0 -50%; font: 700 14px/1 var(--ff-display); color: var(--bg); background: var(--gold-2); padding: 5px 10px; border-radius: 100px; box-shadow: 0 0 18px rgba(197,164,126,.6); }
.callout { position: absolute; z-index: 4; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 9px; border-radius: 100px; background: rgba(11,11,12,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line-2); font: 500 10px/1 var(--ff-ui); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.callout--r { flex-direction: row-reverse; padding: 8px 9px 8px 14px; translate: -100% 0; }
.callout i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: ping 2.4s var(--ease) infinite; }
.bp.is-live .callout:not(.on) { opacity: 0; transform: translateY(12px); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(197,164,126,.7); } 100% { box-shadow: 0 0 0 12px rgba(197,164,126,0); } }

/* pillars on a drawn timeline */
.pillars { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 70px); margin-top: clamp(100px, 11vw, 170px); padding-top: 54px; }
.pillars__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--gold), var(--line-2) 75%, transparent); }
.pillar { position: relative; }
.pillar__node { position: absolute; top: -60px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); }
.pillar__node::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .8s var(--ease) calc(var(--d, 0s) + .5s); }
.pillar.is-in .pillar__node::after { transform: scale(1); }
.pillar__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.pillar__top svg { width: 52px; height: 52px; }
.pillar__num { font: 700 clamp(64px, 6.4vw, 104px)/.8 var(--ff-display); color: transparent; -webkit-text-stroke: 1px rgba(197,164,126,.45); transition: color .6s; }
.pillar:hover .pillar__num { color: rgba(197,164,126,.18); }
.pillar h3 { font: 700 clamp(28px, 2.6vw, 40px)/1.1 var(--ff-display); margin-bottom: 12px; transition: color .4s; }
.pillar:hover h3 { color: var(--gold); }
.pillar p { color: var(--ink-2); max-width: 34ch; }

/* ======================= MILESTONES ======================= */
.numbers { background: var(--bg-2); overflow-x: clip; }
.numbers::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 80px 80px;
    -webkit-mask: radial-gradient(ellipse at 50% 40%, #000, transparent 70%); mask: radial-gradient(ellipse at 50% 40%, #000, transparent 70%); }
.numbers__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(50px, 7vw, 100px); }
.ruler { position: relative; height: 30px; }
.ruler__scale { position: absolute; inset: 0; background:
    linear-gradient(var(--line-2), var(--line-2)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 2.5%) left bottom / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, rgba(197,164,126,.7) 0 1px, transparent 1px 12.5%) left bottom / 100% 16px no-repeat; }
.js .ruler__scale { clip-path: inset(0 100% 0 0); transition: clip-path 2.4s var(--ease-io); }
.js .ruler.is-in .ruler__scale { clip-path: inset(0); }
.js .ruler__mark { opacity: 0; transition: opacity .6s 1.2s; }
.js .ruler.is-in .ruler__mark { opacity: 1; }
.ruler__mark { position: absolute; left: 0; bottom: 0; width: 1px; height: 30px; background: var(--gold); }
.ruler__mark::after { content: ''; position: absolute; left: -4px; bottom: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.ruler__mark b { position: absolute; bottom: calc(100% + 8px); left: 0; transform: translateX(-50%); font: 500 10px/1 var(--ff-body); letter-spacing: .2em; color: var(--gold); white-space: nowrap; }
.ms-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ms { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: clamp(380px, 34vw, 480px); padding: 34px clamp(18px, 2vw, 30px) 38px; border-right: 1px solid var(--line); }
.ms:first-child { border-left: 1px solid var(--line); }
.ms__bg { position: absolute; inset: 0; z-index: -1; clip-path: inset(50% 0 50% 0); transition: clip-path 1.1s var(--ease-io); }
.ms__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.55); transform: scale(1.2); transition: transform 1.8s var(--ease); }
.ms__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,18,.35), rgba(17,17,18,.94) 80%); }
.ms:hover .ms__bg { clip-path: inset(0 0 0 0); }
.ms:hover .ms__bg img { transform: scale(1); }
.ms__top { display: flex; justify-content: space-between; align-items: flex-start; }
.ms__idx { font: 700 19px/1 var(--ff-display); color: var(--gold); }
.ms__top svg { width: 44px; height: 44px; }
.ms__value { margin-top: clamp(50px, 6vw, 96px); display: flex; align-items: flex-start; font: 700 clamp(64px, 7.6vw, 132px)/1 var(--ff-display); letter-spacing: -.01em; }
.ms__value sup { font-size: .36em; color: var(--gold); margin-left: 6px; line-height: 1.5; }
.ms__rule { display: block; height: 1px; margin: 24px 0 22px; background: var(--line-2); transform-origin: left; transform: scaleX(.2); transition: transform 1.6s var(--ease) calc(var(--d, 0s) + .7s), background .4s; }
.ms.is-in .ms__rule { transform: scaleX(1); }
.ms:hover .ms__rule { background: var(--gold); }
.ms__label { font: 700 clamp(22px, 1.8vw, 28px)/1.1 var(--ff-display); }
.ms__text { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; max-width: 30ch; }

/* ======================= SERVICES (horizontal) ======================= */
.services { position: relative; background: var(--bg); }
.services__pin { height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.services__track { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); padding: 0 var(--gutter); will-change: transform; }
.services__intro { flex: 0 0 min(520px, 80vw); padding-right: 4vw; }
.services__intro .display { margin: 22px 0 26px; }
.services__hint { display: inline-flex; align-items: center; gap: 14px; margin-top: 36px; color: var(--ink-3); font: 500 11px/1 var(--ff-ui); letter-spacing: .22em; text-transform: uppercase; }
.services__hint i { width: 60px; height: 1px; background: var(--ink-3); position: relative; overflow: hidden; }
.services__hint i::after { content: ''; position: absolute; inset: 0; background: var(--gold); animation: hint 2s var(--ease-io) infinite; }
@keyframes hint { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.svc { flex: 0 0 clamp(300px, 30vw, 460px); height: min(62vh, 600px); border-radius: var(--radius); overflow: hidden; position: relative; display: block; isolation: isolate; }
.svc:nth-child(odd) { margin-top: 7vh; }
.svc:nth-child(even) { margin-bottom: 7vh; }
.svc__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.svc__media img { width: 120%; max-width: none; height: 100%; object-fit: cover; margin-left: -10%; transition: transform 1.4s var(--ease), filter 1s; filter: saturate(.85); }
.svc::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,11,12,.35) 0%, transparent 35%, rgba(11,11,12,.92) 100%); }
.svc__num { position: absolute; top: 26px; left: 28px; font: 700 22px/1 var(--ff-display); color: var(--gold); }
.svc__plus { position: absolute; top: 22px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(237,230,218,.4); display: grid; place-items: center; transition: transform .7s var(--ease), background .5s, border-color .5s; }
.svc__plus svg { width: 14px; height: 14px; }
.svc__plus path { stroke: var(--ink); stroke-width: 1.3; fill: none; transition: stroke .4s; }
.svc__body { position: absolute; left: 28px; right: 28px; bottom: 28px; }
.svc__body h3 { font: 700 clamp(34px, 3vw, 50px)/1 var(--ff-display); letter-spacing: -.01em; }
.svc__body h3 em { color: var(--gold); }
.svc__body p { color: rgba(237,230,218,.75); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .8s var(--ease), opacity .6s, margin .8s var(--ease); font-size: 15px; }
.svc:hover .svc__media img { transform: scale(1.08); filter: saturate(1.05); }
.svc:hover .svc__plus { transform: rotate(135deg); background: var(--gold); border-color: var(--gold); }
.svc:hover .svc__plus path { stroke: var(--bg); }
.svc:hover .svc__body p { max-height: 120px; opacity: 1; margin-top: 14px; }
.services__end { flex: 0 0 min(460px, 80vw); padding-left: 3vw; }
.services__end a { font: 700 clamp(40px, 4.4vw, 72px)/1 var(--ff-display); letter-spacing: -.01em; display: inline-block; }
.services__end a em { color: var(--gold); }
.services__end a:hover { color: var(--gold); }
.services__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; height: 1px; background: var(--line); }
.services__progress i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* ======================= PROCESS / 3D HOUSE ======================= */
.house-section { position: relative; height: 520vh; background: var(--bg); }
.house-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.house-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #0d1726 0%, #0b0b0c 100%); }
.house-grid { position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(rgba(197,164,126,.09) 1px, transparent 1px) 0 0 / 46px 46px, linear-gradient(90deg, rgba(197,164,126,.09) 1px, transparent 1px) 0 0 / 46px 46px;
    -webkit-mask: radial-gradient(ellipse at 62% 50%, #000 25%, transparent 72%); mask: radial-gradient(ellipse at 62% 50%, #000 25%, transparent 72%); }
#house-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.house-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.house-section.no-webgl .house-fallback { opacity: .5; }
.house-sticky::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.55) 30%, transparent 55%), linear-gradient(0deg, rgba(11,11,12,.6), transparent 25%); }
.house-copy { position: absolute; z-index: 3; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(440px, 40vw); }
.house-title { font: 700 clamp(46px, 5.6vw, 92px)/.95 var(--ff-display); letter-spacing: -.01em; margin: 22px 0 40px; }
.house-title em { color: var(--gold); }
.house-steps { position: relative; }
.house-steps::before { content: ''; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 1px; background: var(--line-2); }
.house-step { display: flex; gap: 22px; padding: 12px 0; opacity: .35; transition: opacity .6s var(--ease); }
.house-step.is-active { opacity: 1; }
.house-step.is-done { opacity: .6; }
.house-step__num { flex-shrink: 0; width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); font: 700 15px/1 var(--ff-display); color: var(--gold); position: relative; z-index: 1; transition: background .5s, color .5s, border-color .5s; }
.house-step.is-active .house-step__num { background: var(--gold); color: var(--bg); border-color: var(--gold); box-shadow: 0 0 0 7px rgba(197,164,126,.14); }
.house-step h3 { font: 700 24px/1.2 var(--ff-display); margin-top: 6px; }
.house-step p { font-size: 14.5px; color: var(--ink-2); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .7s var(--ease), opacity .5s, margin .7s var(--ease); }
.house-step.is-active p { max-height: 90px; opacity: 1; margin-top: 6px; }
.house-progress { position: absolute; z-index: 3; right: var(--gutter); bottom: 6vh; display: flex; align-items: center; gap: 18px; font: 500 11px/1 var(--ff-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.house-progress__bar { width: 180px; height: 1px; background: var(--line-2); position: relative; }
.house-progress__bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.house-progress__pct { color: var(--gold); min-width: 48px; font: 700 22px/1 var(--ff-display); letter-spacing: 0; }
.house-big-num { position: absolute; z-index: 1; right: var(--gutter); top: 12vh; font: 700 clamp(140px, 22vw, 340px)/.8 var(--ff-display); color: transparent; -webkit-text-stroke: 1px rgba(197,164,126,.16); pointer-events: none; }
.house-hint { position: absolute; z-index: 3; left: 50%; bottom: 4vh; transform: translateX(-50%); font: 500 11px/1 var(--ff-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); transition: opacity .6s; }

/* ======================= WORK (sticky index + images) ======================= */
.work { overflow-x: clip; }
.work__grid { display: grid; grid-template-columns: minmax(320px, .8fr) 1.25fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.work__aside { position: sticky; top: 110px; min-height: calc(100vh - 150px); display: flex; flex-direction: column; padding-bottom: 20px; }
.work__list { margin-top: clamp(36px, 4vw, 60px); border-top: 1px solid var(--line); }
.work__li a { position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink-3); transition: color .5s; }
.work__li a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.work__li-num { font: 700 16px/1 var(--ff-display); transition: color .5s; }
.work__li-title { display: block; font: 700 clamp(24px, 2.1vw, 36px)/1.1 var(--ff-display); letter-spacing: -.01em; transition: color .5s; }
.work__li-tags { display: block; max-height: 0; overflow: hidden; opacity: 0; font: 500 10.5px/1.4 var(--ff-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); transition: max-height .7s var(--ease), opacity .5s, margin .7s var(--ease); }
.work__li .arrow { opacity: 0; transform: translateX(-12px); transition: opacity .4s, transform .6s var(--ease); color: var(--gold); }
.work__li a:hover, .work__li.is-active a { color: var(--ink); }
.work__li.is-active a::after { transform: scaleX(1); }
.work__li.is-active .work__li-num { color: var(--gold); }
.work__li.is-active .work__li-title { color: var(--gold); }
.work__li.is-active .work__li-tags { max-height: 40px; opacity: 1; margin-top: 8px; }
.work__li a:hover .arrow, .work__li.is-active .arrow { opacity: 1; transform: none; }
.work__foot { margin-top: auto; padding-top: 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.work__count { font: 700 18px/1 var(--ff-display); color: var(--ink-3); }
.work__count b { font-weight: 400; font-size: clamp(56px, 5vw, 86px); letter-spacing: -.01em; color: var(--ink); }
.work__media { display: grid; gap: clamp(70px, 9vw, 140px); padding-block: 6vh; }
.wshot { display: block; }
.wshot__frame { width: 100%; aspect-ratio: 4 / 5; max-height: 84vh; border-radius: calc(var(--radius) + 4px); background: var(--bg-3); }
.wshot:nth-child(even) .wshot__frame { aspect-ratio: 1 / 1; }
.wshot__par { position: absolute; inset: -7% 0; }
.wshot__frame.is-in img { transition: clip-path 1.5s var(--ease-io), transform 1.4s var(--ease); }
.wshot:hover .wshot__frame.is-in img { transform: scale(1.05); }
.wshot__cap { display: none; }
.work__all { margin-top: clamp(60px, 8vw, 110px); text-align: center; }
.biglink { display: inline-flex; align-items: center; gap: 24px; font: 700 clamp(40px, 6vw, 96px)/1 var(--ff-display); letter-spacing: -.01em; position: relative; }
.biglink em { color: var(--gold); }
.biglink .arrow { width: clamp(40px, 5vw, 80px); height: auto; transition: transform .6s var(--ease); }
.biglink .arrow path { stroke-width: .9; }
.biglink:hover .arrow { transform: translateX(14px); }
.biglink::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .8s var(--ease); }
.biglink:hover::after { transform: scaleX(1); transform-origin: left; }

/* ======================= CLIENTS (marquee rows) ======================= */
.clients { overflow-x: clip; padding-top: clamp(40px, 6vw, 100px); }
.clients__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(44px, 6vw, 80px); }
.clients__count { display: grid; gap: 14px; justify-items: start; }
.clients__num { font: 700 clamp(64px, 7vw, 120px)/.9 var(--ff-display); letter-spacing: -.01em; display: flex; }
.clients__num sup { font-size: .36em; color: var(--gold); margin-left: 6px; line-height: 1.5; }
.logos { border-block: 1px solid var(--line); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos__row { overflow: hidden; }
.logos__row + .logos__row { border-top: 1px solid var(--line); }
.logos__track { display: flex; width: max-content; will-change: transform; }
.logos__group { display: flex; flex-shrink: 0; }
.logo-cell { position: relative; overflow: hidden; width: clamp(160px, 16vw, 250px); aspect-ratio: 16 / 10; flex-shrink: 0; display: grid; place-items: center; padding: 0 clamp(22px, 2.6vw, 38px); border-right: 1px solid var(--line); }
.logo-cell::before { content: ''; position: absolute; inset: 0; background: var(--gold); clip-path: inset(50% 0 50% 0); transition: clip-path .7s var(--ease); }
.logo-cell img { position: relative; max-height: 56px; width: auto; object-fit: contain; filter: brightness(0) invert(.92); opacity: .6; transition: opacity .4s, filter .4s, transform .7s var(--ease); }
.logo-cell:hover::before { clip-path: inset(0); }
.logo-cell:hover img { filter: brightness(0); opacity: 1; transform: scale(1.08); }

/* ======================= CONTACT ======================= */
.contact { background: var(--bg-2); overflow-x: clip; }
.contact__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(50px, 6vw, 90px); }
.contact__title { margin-top: 24px; font-size: clamp(48px, 7vw, 124px); max-width: 12ch; }
.contact__talk { display: block; flex-shrink: 0; border-radius: 50%; }
.contact__talk .badge { width: clamp(130px, 11vw, 176px); }
.contact__talk .badge__core { width: 40%; }
.contact__talk:hover .badge__core { background: var(--gold); color: var(--bg); transform: scale(1.12) rotate(-45deg); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 2.4vw, 36px); align-items: stretch; }
.contact__panel { position: relative; isolation: isolate; overflow: hidden; min-height: 560px; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); }
.contact__bg { position: absolute; inset: 0; z-index: -2; }
.contact__panel::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,11,12,.5) 0%, rgba(11,11,12,.86) 50%, rgba(11,11,12,.97) 100%); }
.contact__panel-in { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(26px, 3.4vw, 50px); }
.contact__lead { margin-top: 24px; font: 400 clamp(22px, 2vw, 32px)/1.3 var(--ff-display); max-width: 22ch; }
.avail { display: inline-flex; align-items: center; gap: 12px; background: rgba(11,11,12,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 10px 18px 10px 14px; border-radius: 100px; border: 1px solid var(--line-2); font: 500 11.5px/1 var(--ff-ui); letter-spacing: .16em; text-transform: uppercase; }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: ping 2s var(--ease) infinite; }
.contact__list { border-top: 1px solid var(--line-2); }
.contact__list li { border-bottom: 1px solid var(--line-2); }
.contact__list a { display: flex; align-items: center; gap: 20px; padding: 20px 0; transition: color .4s, padding .6s var(--ease); }
.contact__list small { font: 500 11px/1 var(--ff-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); min-width: 90px; }
.contact__list b { flex: 1; font-weight: 400; text-align: right; font-size: clamp(15px, 1.2vw, 18px); }
.contact__list .arrow { transform: rotate(-45deg); opacity: .5; transition: transform .6s var(--ease), opacity .4s; }
.contact__list a:hover { color: var(--gold); padding-inline: 10px; }
.contact__list a:hover .arrow { transform: none; opacity: 1; }
.socials { display: flex; gap: 10px; }
.socials a { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 15px; transition: background .4s, color .4s, border-color .4s, transform .6s var(--ease); }
.socials a:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); transform: translateY(-4px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.contact__card { position: relative; padding: clamp(28px, 4vw, 58px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--bg); }
.contact__card-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 22px; margin-bottom: 34px; border-bottom: 1px dashed var(--line-2); }

.form { display: grid; gap: 34px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 26px 0 12px; font-size: 18px; color: var(--ink); outline: none; border-radius: 0; transition: border-color .4s; resize: none; }
.field textarea { min-height: 130px; }
.field label { position: absolute; left: 0; top: 26px; color: var(--ink-3); font-size: 16px; pointer-events: none; transform-origin: left; transition: transform .5s var(--ease), color .4s; }
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label { transform: translateY(-24px) scale(.72); color: var(--gold); }
.field::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.chips__label { display: block; margin-bottom: 16px; color: var(--ink-3); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 11px 20px; border-radius: 100px; border: 1px solid var(--line-2); font-size: 14px; transition: background .4s, color .4s, border-color .4s; cursor: pointer; }
.chip span:hover { border-color: var(--gold); }
.chip input:checked + span { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.chip input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; }
.alert { display: flex; gap: 14px; align-items: center; padding: 18px 22px; border-radius: 12px; font-size: 15px; animation: alertIn .9s var(--ease); }
.alert--success { background: rgba(197,164,126,.1); border: 1px solid rgba(197,164,126,.5); color: var(--gold-2); }
.alert--error { background: rgba(220,100,100,.1); border: 1px solid rgba(220,100,100,.45); color: #f2b2b2; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; }
@keyframes alertIn { from { opacity: 0; transform: translateY(-14px); } }

/* ======================= FOOTER ======================= */
.ftr { position: relative; padding-top: clamp(90px, 10vw, 150px); overflow: hidden; background: var(--bg); }
.ftr__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: clamp(30px, 5vw, 80px); padding-bottom: clamp(60px, 8vw, 110px); }
.ftr__cta h2 { margin: 20px 0 32px; }
.ftr h4 { font: 500 11px/1 var(--ff-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px; }
.ftr__links li + li { margin-top: 12px; }
.ftr__links a { position: relative; color: var(--ink-2); transition: color .4s; }
.ftr__links a::before { content: ''; position: absolute; left: -16px; top: 50%; width: 8px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.ftr__links a:hover { color: var(--ink); }
.ftr__links a:hover::before { transform: scaleX(1); }
.news { position: relative; margin-top: 4px; }
.news input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 14px 54px 14px 0; outline: none; color: var(--ink); }
.news { padding-bottom: 0; }
.news input + button { position: absolute; right: 0; top: auto; bottom: 4px; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--bg); display: grid; place-items: center; transition: transform .5s var(--ease); }
.news button:hover { transform: rotate(-45deg); }
.news__ok { display: none; color: var(--gold); margin-top: 12px; font-size: 14px; }
.news.is-done .news__ok { display: block; }
.news p { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.ftr__sign { display: flex; align-items: center; gap: clamp(22px, 3vw, 50px); padding-bottom: clamp(40px, 5vw, 70px); }
.ftr__rule { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2)); }
.js .ftr__rule--r { transform-origin: right; }
.ftr__rule--r { background: linear-gradient(90deg, var(--line-2), transparent); }
.ftr__logo { width: clamp(170px, 20vw, 320px); color: var(--ink); }
.ftr__logo .xyz-logo { width: 100%; height: auto; }
.ftr__bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 0 30px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.ftr__bottom a:hover { color: var(--gold); }
.ftr__bottom nav { display: flex; gap: 24px; }
.totop { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .2em; font-size: 11px; color: var(--ink-2); }
.totop span { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .4s, color .4s, border-color .4s; }
.totop:hover span { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.totop svg { width: 10px; height: 18px; } .totop svg path { stroke: currentColor; fill: none; stroke-width: 1.3; }

/* ======================= INNER PAGE HERO ======================= */
.page-hero { position: relative; padding: clamp(170px, 22vh, 240px) 0 clamp(50px, 7vw, 90px); overflow: hidden; }
.page-hero__bg { position: absolute; right: -4vw; top: 90px; width: min(56vw, 760px); color: var(--ink); opacity: .05; pointer-events: none; }
.page-hero__bg .xyz-logo { width: 100%; }
.page-hero__title { margin: 24px 0 26px; }
.page-hero__title sup { font: 400 .22em/1 var(--ff-body); color: var(--gold); letter-spacing: .1em; vertical-align: super; margin-left: .3em; }

/* ======================= PROJECTS INDEX ======================= */
.filters { position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 100px; margin-top: 46px; }
.filter { position: relative; z-index: 1; padding: 12px 20px; border-radius: 100px; font: 500 12px/1 var(--ff-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); transition: color .4s; white-space: nowrap; }
.filter sup { font-size: .75em; margin-left: 3px; color: var(--gold); transition: color .4s; }
.filter.is-active { color: var(--bg); }
.filter.is-active sup { color: var(--bg); }
.filter:hover:not(.is-active) { color: var(--ink); }
.filters__pill { position: absolute; z-index: 0; top: 6px; height: calc(100% - 12px); left: 0; width: 0; border-radius: 100px; background: var(--gold); transition: transform .7s var(--ease), width .7s var(--ease); }
.pgrid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(18px, 2.4vw, 36px); row-gap: clamp(60px, 7vw, 110px); padding-bottom: var(--sec); }
.pcard { grid-column: span 6; }
.pcard--wide { grid-column: span 7; }
.pcard--narrow { grid-column: span 5; margin-top: clamp(40px, 9vw, 160px); }
.pcard.is-hidden { display: none; }
.pcard__media { display: block; border-radius: var(--radius); aspect-ratio: 5 / 4; }
.pcard--narrow .pcard__media { aspect-ratio: 4 / 5; }
.pcard__media img { transition: clip-path 1.5s var(--ease-io), transform 1.6s var(--ease) !important; }
.pcard:hover .pcard__media img { transform: scale(1.05) !important; }
.pcard__meta { display: flex; justify-content: space-between; gap: 20px; margin: 24px 0 12px; }
.pcard__title { font: 700 clamp(30px, 3vw, 48px)/1.04 var(--ff-display); letter-spacing: -.01em; }
.pcard__title a { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .7s var(--ease), color .4s; }
.pcard:hover .pcard__title a { background-size: 100% 1px; color: var(--gold); }
.pcard p { color: var(--ink-2); margin-top: 12px; max-width: 52ch; font-size: 15px; }

/* ======================= PROJECT DETAIL ======================= */
.phero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
.phero__media { position: absolute; inset: 0; }
.phero__media img { width: 100%; height: 115%; object-fit: cover; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,12,.6), transparent 60%), linear-gradient(180deg, rgba(11,11,12,.5), transparent 35%, rgba(11,11,12,.92)); pointer-events: none; }
.phero__content { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(40px, 8vh, 90px); }
.phero__back { margin-bottom: 30px; display: inline-flex; }
.phero__back .arrow { transform: scaleX(-1); }
.phero__title { font: 700 clamp(54px, 10vw, 180px)/.9 var(--ff-display); letter-spacing: -.01em; margin-top: 18px; }
.pmeta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-bottom: 1px solid var(--line); }
.pmeta > div { padding: 30px 24px 30px 0; border-right: 1px solid var(--line); }
.pmeta > div + div { padding-left: 24px; }
.pmeta > div:last-child { border-right: 0; }
.pmeta dd { margin-top: 12px; font-size: 16px; }
.pbody { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 7vw, 120px); padding-block: var(--sec); }
.pbody__aside { position: sticky; top: 140px; align-self: start; }
.pbody__text p { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.75; color: var(--ink-2); }
.pbody__text p + h3 { margin-top: 56px; }
.pbody__text h3 { font: 700 clamp(26px, 2.4vw, 36px)/1.1 var(--ff-display); margin-bottom: 18px; color: var(--ink); }
.dropcap { float: left; font: 700 5.2em/.82 var(--ff-display); color: var(--gold); margin: .06em .1em 0 0; }
.highlights { margin-top: 30px; border-top: 1px solid var(--line); }
.highlights li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.highlights li span { color: var(--gold); font: 700 16px/1.6 var(--ff-display); }
.quote { margin-top: 56px; padding: 38px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.quote blockquote { font: 700 clamp(22px, 2vw, 30px)/1.4 var(--ff-display); }
.quote cite { display: block; margin-top: 18px; font-style: normal; color: var(--gold); font-size: 14px; letter-spacing: .1em; }
.pgallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 30px); padding-bottom: var(--sec); }
.pg-item { border-radius: var(--radius); aspect-ratio: 4 / 5; cursor: zoom-in; display: block; width: 100%; }
.pg-item--full { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.pnext { position: relative; display: block; height: 80vh; min-height: 520px; overflow: hidden; }
.pnext__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.8s var(--ease); }
.pnext:hover .pnext__img { transform: scale(1); }
.pnext::after { content: ''; position: absolute; inset: 0; background: rgba(11,11,12,.62); transition: background .8s; }
.pnext:hover::after { background: rgba(11,11,12,.38); }
.pnext__content { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--gutter); }
.pnext__title { font: 700 clamp(54px, 9vw, 160px)/.92 var(--ff-display); letter-spacing: -.01em; margin-top: 22px; }
.pnext__title em { color: var(--gold); }
.pnav { display: flex; justify-content: space-between; gap: 20px; padding: 30px 0; }
.lightbox { position: fixed; inset: 0; z-index: 7500; background: rgba(11,11,12,.96); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; border-radius: 10px; transform: scale(.94); transition: transform .7s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox button { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .4s, color .4s; }
.lightbox button:hover { background: var(--gold); color: var(--bg); }
.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font: 700 18px/1 var(--ff-display); color: var(--ink-2); }

/* ======================= LEGAL ======================= */
.legal { display: grid; grid-template-columns: 280px 1fr; gap: clamp(40px, 7vw, 120px); padding-bottom: var(--sec); }
.toc { position: sticky; top: 130px; align-self: start; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 8px 0 8px 20px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-3); font-size: 14px; transition: color .3s, border-color .3s; }
.toc a.is-active, .toc a:hover { color: var(--ink); border-color: var(--gold); }
.legal__body { max-width: 760px; }
.legal__body h2 { font: 700 clamp(28px, 2.6vw, 40px)/1.15 var(--ff-display); margin: 70px 0 20px; scroll-margin-top: 120px; }
.legal__body h2:first-of-type { margin-top: 0; }
.legal__body h3 { font: 700 22px/1.3 var(--ff-display); margin: 34px 0 12px; }
.legal__body p, .legal__body li { color: var(--ink-2); font-size: 17px; line-height: 1.85; }
.legal__body p + p { margin-top: 16px; }
.legal__body ul { list-style: none; margin: 16px 0; }
.legal__body li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.legal__body li::before { content: ''; position: absolute; left: 0; top: .9em; width: 12px; height: 1px; background: var(--gold); }
.legal__body a { color: var(--gold); border-bottom: 1px solid currentColor; }
.legal__body strong { color: var(--ink); font-weight: 500; }
.legal__body .last-updated { margin-top: 60px; color: var(--gold); font-style: italic; }

/* ======================= 404 ======================= */
.e404 { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 140px var(--gutter) 80px; }
.e404 .display { font-size: clamp(120px, 26vw, 400px); line-height: .8; }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 1180px) {
    .hdr__nav, .hdr__time, .hdr .btn { display: none; }
    .hdr { grid-template-columns: 1fr auto; }
    .burger { display: grid; }
    .ftr__top { grid-template-columns: 1fr 1fr; }
    .ftr__cta { grid-column: 1 / -1; }
}
@media (max-width: 991px) {
    .menu__inner { grid-template-columns: 1fr; align-content: center; }
    .menu__preview { display: none; }
    .about__intro, .contact__grid, .pbody { grid-template-columns: 1fr; }
    .pbody__aside, .about__side, .contact__side { position: static; }
    .bp { aspect-ratio: 4 / 5; max-height: none; }
    .bp__lines { top: 14%; height: auto; width: 84%; }
    .stage__bar { margin-left: 0; flex-direction: column; align-items: flex-start; }
    .pillars { grid-template-columns: 1fr; gap: 56px; padding-top: 0; border-left: 1px solid var(--line-2); padding-left: 34px; }
    .pillars__line { display: none; }
    .pillar__node { top: 6px; left: -41px; }
    .ms-grid { grid-template-columns: 1fr 1fr; }
    .ms:nth-child(3) { border-left: 1px solid var(--line); }
    .ms:nth-child(n+3) { border-top: 1px solid var(--line); }
    .work__grid { grid-template-columns: 1fr; }
    .work__aside { position: static; min-height: 0; }
    .work__list, .work__foot { display: none; }
    .work__media { padding: 0; gap: 60px; }
    .wshot__frame, .wshot:nth-child(even) .wshot__frame { aspect-ratio: 4 / 3; }
    .wshot__cap { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 14px; row-gap: 8px; margin-top: 18px; }
    .wshot__num { font: 700 18px/1 var(--ff-display); color: var(--gold); }
    .wshot__title { font: 700 30px/1.1 var(--ff-display); }
    .wshot__cap .label { grid-column: 2; }
    .contact__head { flex-direction: column; align-items: flex-start; }
    .contact__panel { min-height: 480px; }
    .numbers__head, .work__head, .clients__head { flex-direction: column; align-items: flex-start; }
    /* services become a native swipe row */
    .services__pin { height: auto; display: block; padding-block: var(--sec); }
    .services__track { flex-wrap: wrap; padding: 0; width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; gap: 18px; }
    .services__intro, .services__end { flex: 1 1 100%; padding: 0; margin-bottom: 20px; }
    .services__end { margin: 40px 0 0; }
    .svc { flex: 1 1 calc(50% - 9px); height: 460px; margin: 0 !important; }
    .svc__body p { max-height: 120px; opacity: 1; margin-top: 12px; }
    .services__progress, .services__hint { display: none; }
    .house-section { height: 460vh; }
    .house-copy { left: var(--gutter); right: var(--gutter); top: auto; bottom: 5vh; transform: none; width: auto; padding: 24px; border-radius: var(--radius); background: rgba(11,11,12,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); }
    .house-copy .label, .house-steps::before { display: none; }
    .house-title { font-size: 34px; margin: 0 0 14px; }
    .house-step { display: none; padding: 0; }
    .house-step.is-active { display: flex; }
    .house-progress { top: 100px; bottom: auto; left: var(--gutter); right: var(--gutter); justify-content: space-between; }
    .house-progress__bar { flex: 1; }
    .house-big-num, .house-hint { display: none; }
    .house-sticky::after { background: linear-gradient(0deg, rgba(11,11,12,.85), transparent 50%), linear-gradient(180deg, rgba(11,11,12,.6), transparent 25%); }
    .pcard, .pcard--wide, .pcard--narrow { grid-column: span 12; margin-top: 0; }
    .pcard--narrow .pcard__media { aspect-ratio: 5 / 4; }
    .legal { grid-template-columns: 1fr; }
    .toc { display: none; }
    .hero__ui { top: auto; bottom: 30px; transform: none; flex-direction: row; align-items: center; }
    .hero__bars { flex-direction: row; }
    .hero__bar { width: 40px; height: 2px; }
    .hero__bar i { transform-origin: left; transform: scaleX(0); }
    .hero__scroll { display: none; }
}
@media (max-width: 680px) {
    .form__row { grid-template-columns: 1fr; }
    .svc { flex-basis: 100%; height: 440px; }
    .bp__block { display: none; }
    .contact__talk .badge { width: 120px; }
    .hero__foot { flex-direction: column; align-items: flex-start; gap: 24px; }
    .hero__content { bottom: 96px; }
    .pgallery { grid-template-columns: 1fr; }
    .pg-item, .pg-item--full { grid-column: auto; aspect-ratio: 4 / 3; }
    .ftr__top { grid-template-columns: 1fr; }
    .pmeta > div { padding-left: 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
    .about__main { padding: 34px 0 0 34px; }
    .stage__steps button { padding: 6px 9px; font-size: 9px; }
    .stage__steps i { width: 14px; }
    .dim--h { left: 34px; } .dim--v { top: 34px; }
    .about__badge { width: 110px; }
    .callout { font-size: 8.5px; padding: 6px 10px 6px 7px; gap: 7px; }
    .ms { min-height: 300px; padding: 24px 14px 26px; }
    .ms__top svg { width: 34px; height: 34px; }
    .ms__text { font-size: 13px; }
    .logo-cell { width: 140px; }
    .contact__card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .js [data-reveal], .w-mask > span, .js .img-mask img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
    .about__big .w { opacity: 1; }
    .logos__row { overflow-x: auto; }
}

/* ---- Old-site typography (Arial bold headings, Georgia body) ---- */
em { font-style: normal; }
.hero__title em, .house-title em, .phero__title, .pnext__title, .house-title { text-transform: uppercase; }
.hero__title .ln { padding-bottom: .12em; margin-bottom: -.12em; }

/* ---- Blueprint: manual drag handle ---- */
.stage__steps button { cursor: pointer; }
.stage__steps button:hover:not(.is-on) { color: var(--ink); border-color: var(--gold); }
.bp { cursor: ns-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.bp img { -webkit-user-drag: none; pointer-events: none; }
.bp__handle { position: absolute; z-index: 4; left: 50%; top: clamp(26px, calc(var(--p) * 100%), calc(100% - 26px)); translate: -50% -50%;
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--bg);
    box-shadow: 0 0 0 8px rgba(197,164,126,.18), 0 10px 30px rgba(0,0,0,.45); cursor: grab; touch-action: none; transition: scale .4s var(--ease), box-shadow .4s; }
.bp__handle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bp:hover .bp__handle, .bp.is-dragging .bp__handle { scale: 1.08; box-shadow: 0 0 0 12px rgba(197,164,126,.22), 0 10px 30px rgba(0,0,0,.45); }
.bp.is-dragging, .bp.is-dragging .bp__handle { cursor: grabbing; }
.bp.is-dragging .bp__scan { opacity: 1; }
.bp.is-dragging, .bp.is-dragging .bp__real img { transition: none; }

/* ---- Services: arrow controls ---- */
.services__nav { position: absolute; z-index: 3; right: var(--gutter); bottom: 12px; display: flex; gap: 12px; }
.svc-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); background: rgba(11,11,12,.55); backdrop-filter: blur(8px); transition: background .4s, border-color .4s, color .4s, opacity .4s; }
.svc-arrow:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.svc-arrow:disabled { opacity: .3; cursor: default; }
.svc-arrow .arrow { width: 18px; height: auto; }
@media (max-width: 991px) { .services__nav { display: none; } }

/* ---- Process: steps are clickable ---- */
.house-step { cursor: pointer; }
.house-step:hover:not(.is-active) { opacity: .8; }
.house-step:hover:not(.is-active) .house-step__num { border-color: var(--gold); }
.house-step:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
@media (max-width: 991px) {
    .house-steps { display: flex; flex-wrap: wrap; gap: 10px; }
    .house-step:not(.is-active) { display: flex; opacity: .55; }
    .house-step:not(.is-active) > div { display: none; }
    .house-step.is-active { order: 9; flex: 1 1 100%; margin-top: 6px; }
    .house-step__num { width: 34px; height: 34px; }
}

/* ---- Project page: moving image strip on top ---- */
.phero--strip { height: auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: clamp(96px, 13vh, 130px); }
.phero--strip::after { display: none; }
.pstrip { position: relative; flex: 1 1 auto; height: clamp(300px, 54vh, 700px); min-height: 320px; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pstrip.is-dragging { cursor: grabbing; }
.pstrip__track { display: flex; height: 100%; width: max-content; will-change: transform; }
.pstrip__group { display: flex; gap: clamp(10px, 1.2vw, 18px); padding-right: clamp(10px, 1.2vw, 18px); height: 100%; flex-shrink: 0; }
.pstrip__item { height: 100%; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; cursor: inherit; background: #141416; }
.pstrip__item img { height: 100%; width: auto; min-width: 30vh; max-width: 88vw; object-fit: cover; pointer-events: none; transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.92); }
.pstrip__item:hover img { transform: scale(1.04); filter: saturate(1.05); }
.pstrip.is-dragging .pstrip__item img { transform: none; }
.phero--strip .phero__content { position: relative; bottom: auto; padding: clamp(22px, 4vh, 44px) 0 clamp(28px, 5vh, 52px); }
.phero--strip .phero__title { font-size: clamp(40px, 6.4vw, 112px); }
.phero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.phero--strip .phero__back { margin-bottom: 20px; }
.pstrip__ui { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex-shrink: 0; }
.pstrip__nav { display: flex; gap: 12px; }
@media (max-width: 680px) {
    .phero__row { flex-direction: column; align-items: flex-start; }
    .pstrip__ui { align-items: flex-start; }
    .pstrip { height: 52vh; }
}
@media (min-width: 992px) { .services__progress { right: calc(var(--gutter) + 132px); } }
.pstrip__nav .svc-arrow { width: 56px; height: 56px; }

/* ---- 3D interior: step inside ---- */
.house-tour { position: absolute; z-index: 4; right: var(--gutter); bottom: calc(6vh + 54px); display: flex; flex-direction: column; align-items: flex-end; gap: 12px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.house-section.is-inside .house-tour { opacity: 1; transform: none; pointer-events: auto; }
.house-tour__btns { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(11,11,12,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.house-tour__btns button { font: 700 11px/1 var(--ff-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); padding: 11px 16px; border-radius: 999px; transition: background .4s, color .4s; }
.house-tour__btns button:hover { color: var(--ink); }
.house-tour__btns button.is-active { background: var(--gold); color: var(--bg); }
html:not(.has-cursor) .house-section.is-inside #house-canvas { cursor: grab; }
html:not(.has-cursor) .house-section.is-looking #house-canvas { cursor: grabbing; }
.house-section.is-inside .house-sticky::after { background: linear-gradient(90deg, rgba(11,11,12,.85) 0%, rgba(11,11,12,.35) 30%, transparent 50%), linear-gradient(0deg, rgba(11,11,12,.5), transparent 22%); transition: background .6s; }
@media (max-width: 991px) {
    .house-tour { top: 140px; bottom: auto; left: var(--gutter); right: var(--gutter); align-items: center; }
    .house-tour .label { display: none; }
    .house-tour__btns button { padding: 10px 12px; font-size: 10px; letter-spacing: .1em; }
}

/* ---- What we do: drag ---- */
@media (min-width: 992px) {
    .services__pin { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
    .services__pin.is-dragging, .services__pin.is-dragging * { cursor: grabbing; }
    .services__pin.is-dragging .svc { pointer-events: none; }
    .svc img { -webkit-user-drag: none; }
}
@media (max-width: 991px) {
    /* phones & tablets: a swipeable row instead of a long stack */
    .services__track { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; width: 100%; padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); gap: 14px; scrollbar-width: none; align-items: stretch; }
    .services__track::-webkit-scrollbar { display: none; }
    .services__intro { flex: 0 0 min(82vw, 520px); margin: 0; scroll-snap-align: start; align-self: center; }
    .services__hint { display: inline-flex; }
    .svc { flex: 0 0 min(78vw, 400px); height: 470px; scroll-snap-align: start; }
    .services__end { flex: 0 0 min(78vw, 400px); margin: 0; padding: 0 var(--gutter) 0 0; align-self: center; scroll-snap-align: start; }
}

/* ---- project: live website link ---- */
.pmeta__link { color: var(--gold); border-bottom: 1px solid rgba(197,164,126,.35); transition: border-color .4s; }
.pmeta__link:hover { border-color: var(--gold); }
