/* ==========================================================================
   9M Design Studio — Home page (drafting-table redesign)
   Concept: architectural drawing -> built space. CAD line-work, dimension
   marks, isometric models, blueprint overlays.
   ========================================================================== */

:root {
	--ink: #0c1d18;
	--ink-2: #132a23;
	--ink-3: #1b382f;
	--paper: #f4f0e7;
	--paper-2: #ebe5d7;
	--brass: #b9955a;
	--brass-soft: #d4b987;
	--sage: #7c877f;
	--line-light: rgba(244, 240, 231, 0.16);
	--line-dark: rgba(12, 29, 24, 0.14);
	--f-display: 'Cormorant Garamond', 'Times New Roman', serif;
	--f-body: 'Hanken Grotesk', system-ui, sans-serif;
	--f-mono: 'JetBrains Mono', ui-monospace, monospace;
	--ease: cubic-bezier(.2, .7, .1, 1);
	--gutter: clamp(20px, 4vw, 64px);
	--header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
.sr-only {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
::selection { background: var(--brass); color: var(--ink); }

/* ---------- Shared type ---------- */
.mono { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 14px;
	font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
	color: var(--brass);
}
.eyebrow::before {
	content: ''; width: 44px; height: 1px; background: currentColor;
	transform-origin: left; animation: lineGrow 1.2s var(--ease) both;
}
.h-display {
	font-family: var(--f-display); font-weight: 500; line-height: 1.02; letter-spacing: -.01em;
	font-size: clamp(40px, 5.6vw, 84px);
}
.h-display em { font-style: italic; color: var(--brass); font-weight: 500; }
.lead { font-size: clamp(17px, 1.3vw, 20px); color: rgba(12, 29, 24, .72); max-width: 54ch; }
.dark .lead, .on-dark .lead { color: rgba(244, 240, 231, .72); }

/* masked line reveal */
.mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.mask > span { display: block; transform: translateY(110%); }
.mask.in > span { transform: none; transition: transform 1.1s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
	position: relative; display: inline-flex; align-items: center; gap: 14px;
	padding: 17px 30px; border-radius: 0; border: 1px solid currentColor;
	font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
	cursor: pointer; overflow: hidden; isolation: isolate;
	transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
	content: ''; position: absolute; inset: 0; z-index: -1; background: var(--brass);
	transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: none; }
.btn .arr { width: 22px; height: 1px; background: currentColor; position: relative; transition: width .4s var(--ease); }
.btn .arr::after {
	content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
	border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.btn:hover .arr { width: 34px; }
.btn-solid { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn-solid::before { background: var(--paper); }
.btn-light { color: var(--paper); }
.btn-light:hover { color: var(--ink); border-color: var(--brass); }
.btn-dark { color: var(--ink); }
.btn-dark:hover { color: var(--ink); border-color: var(--brass); }

/* ---------- Preloader ---------- */
.loader {
	position: fixed; inset: 0; z-index: 1000; background: var(--ink); color: var(--paper);
	display: grid; place-items: center; transition: transform 1s var(--ease) .15s;
}
.loader.done { transform: translateY(-100%); }
.loader-box { width: min(280px, 60vw); text-align: center; }
.loader-box svg { width: 100%; overflow: visible; }
.loader-box .l-path { stroke: var(--paper); fill: none; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
.loader-count { margin-top: 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: var(--brass); }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
	color: var(--paper); transition: background .5s var(--ease), color .5s var(--ease), transform .6s var(--ease), box-shadow .5s;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.scrolled .header-cta { color: var(--ink); }
.site-header.scrolled { background: rgba(244, 240, 231, .92); backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line-dark); }
.site-header.hide { transform: translateY(-100%); }
.brand-logo { display: block; position: relative; width: 76px; height: 72px; overflow: hidden; flex: none; margin: 0; }
.brand-logo img { position: absolute; width: 145px; max-width: none; left: -33.6px; top: -11.4px; filter: brightness(0) invert(1); transition: filter .5s; }
.site-header.scrolled .brand-logo img, .nav-open .brand-logo img { filter: none; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); }
.nav a.nav-link {
	position: relative; font-family: var(--f-mono); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; padding: 8px 0;
}
.nav a.nav-link::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass);
	transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a.nav-link:hover::after, .nav a.nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.header-cta { padding: 12px 22px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid currentColor; background: none; color: inherit; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 25px; }
.nav-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 100vh; min-height: 100svh; background: var(--ink); color: var(--paper);
	overflow: hidden; display: flex; align-items: center; padding: calc(var(--header-h) + 30px) 0 90px;
	cursor: crosshair;
}
.hero-grid {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(244,240,231,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(244,240,231,.05) 1px, transparent 1px);
	background-size: 60px 60px;
}
.hero-glow { position: absolute; width: 60vw; height: 60vw; right: -10vw; top: -20vw; background: radial-gradient(circle, rgba(185,149,90,.22), transparent 62%); pointer-events: none; }
.hero-plan { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero-title { margin: 26px 0 30px; font-size: clamp(46px, 6.6vw, 104px); }
.hero-sub { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; color: rgba(244,240,231,.92); max-width: 50ch; margin-bottom: 40px; opacity: 0; transform: translateY(20px); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; opacity: 0; transform: translateY(20px); }
.is-ready .hero-sub, .is-ready .hero-btns { opacity: 1; transform: none; transition: opacity 1s var(--ease) .9s, transform 1s var(--ease) .9s; }
.is-ready .hero-btns { transition-delay: 1.1s; }
.hero-meta { display: flex; gap: 38px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-light); max-width: 560px; color: rgba(244,240,231,.85); }
.hero-meta b { display: block; font-family: var(--f-display); font-size: 34px; font-weight: 500; letter-spacing: 0; color: var(--paper); text-transform: none; line-height: 1.1; }

.hero-photo { position: relative; justify-self: end; width: 100%; max-width: 640px; }
.hero-photo .frame {
	position: relative; aspect-ratio: 4 / 3; overflow: hidden;
	clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease) .5s;
	box-shadow: 0 40px 80px rgba(0,0,0,.45);
}
.is-ready .hero-photo .frame { clip-path: inset(0); }
.hero-photo .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease), transform 6s linear; }
.hero-photo .frame img.active { opacity: 1; transform: none; }
.hero-dots { position: absolute; right: 0; bottom: -44px; display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 3px; border: 0; padding: 0; background: rgba(244,240,231,.3); cursor: pointer; transition: background .4s; }
.hero-dots button.on { background: var(--brass); }
.crop { position: absolute; width: 26px; height: 26px; border: 1px solid var(--brass); opacity: 0; transition: opacity .6s 1.8s; }
.is-ready .crop { opacity: 1; }
.crop.tl { top: -14px; left: -14px; border-right: 0; border-bottom: 0; }
.crop.tr { top: -14px; right: -14px; border-left: 0; border-bottom: 0; }
.crop.bl { bottom: -14px; left: -14px; border-right: 0; border-top: 0; }
.crop.br { bottom: -14px; right: -14px; border-left: 0; border-top: 0; }
.dim { position: absolute; color: var(--brass); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; opacity: 0; transition: opacity 1s 2s; }
.is-ready .dim { opacity: 1; }
.dim.h { left: 0; right: 0; bottom: -46px; display: flex; align-items: center; gap: 10px; }
.dim.h i { flex: 1; height: 1px; background: var(--brass); position: relative; }
.dim.h i::before, .dim.h i::after { content: ''; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--brass); }
.dim.h i::before { left: 0; } .dim.h i::after { right: 0; }
.dim.v { right: -44px; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; }
.dim.v i { position: absolute; width: 1px; top: 0; bottom: 0; background: var(--brass); }
.dim.v i::before, .dim.v i::after { content: ''; position: absolute; left: -5px; width: 11px; height: 1px; background: var(--brass); }
.dim.v i::before { top: 0; } .dim.v i::after { bottom: 0; }
.dim.v span { writing-mode: vertical-rl; transform: rotate(180deg); background: var(--ink); padding: 8px 0; position: relative; }
.hero-card {
	position: absolute; left: -32px; bottom: -28px; z-index: 3; background: var(--paper); color: var(--ink);
	padding: 18px 22px 18px 18px; display: flex; gap: 16px; align-items: center; max-width: 320px;
	box-shadow: 0 24px 50px rgba(0,0,0,.35); opacity: 0; transform: translateY(30px);
	transition: opacity .9s var(--ease) 2.1s, transform .9s var(--ease) 2.1s;
}
.is-ready .hero-card { opacity: 1; transform: none; }
.hero-card .mini-plan { width: 54px; height: 54px; flex: none; }
.hero-card .mini-plan path, .hero-card .mini-plan rect { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.hero-card small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.hero-card strong { font-family: var(--f-display); font-size: 21px; line-height: 1.15; font-weight: 600; }
.badge {
	position: absolute; right: -30px; top: -34px; width: 132px; height: 132px; z-index: 3; color: var(--brass);
	opacity: 0; transition: opacity 1s 2.2s;
}
.is-ready .badge { opacity: 1; }
.badge svg { width: 100%; height: 100%; animation: spin 24s linear infinite; }
.badge text { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .27em; fill: currentColor; text-transform: uppercase; }
.badge .north { position: absolute; inset: 0; display: grid; place-items: center; }
.badge .north svg { width: 38px; height: 38px; animation: none; }

.hud {
	position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px; z-index: 3;
	display: flex; justify-content: space-between; align-items: center; color: rgba(244,240,231,.55); font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
}
.hud .scroll { display: flex; align-items: center; gap: 12px; }
.hud .scroll i { width: 1px; height: 36px; background: var(--line-light); position: relative; overflow: hidden; }
.hud .scroll i::after { content: ''; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--brass); animation: scrollDot 2s var(--ease) infinite; }
.cross-h, .cross-v { position: absolute; z-index: 1; pointer-events: none; background: rgba(185,149,90,.35); opacity: 0; transition: opacity .3s; }
.cross-h { left: 0; right: 0; height: 1px; top: 0; }
.cross-v { top: 0; bottom: 0; width: 1px; left: 0; }
.cross-tag { position: absolute; z-index: 4; pointer-events: none; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--brass); background: rgba(12,29,24,.85); padding: 3px 7px; border: 1px solid rgba(185,149,90,.4); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.hero.hovering .cross-h, .hero.hovering .cross-v, .hero.hovering .cross-tag { opacity: 1; }

/* hero plan strokes */
.hero-plan .d { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero-plan.go .d { animation: draw var(--t, 2s) var(--ease) var(--dl, 0s) forwards; }
.hero-plan .wall { stroke: rgba(244,240,231,.3); stroke-width: 2.2; }
.hero-plan .fine { stroke: rgba(244,240,231,.18); stroke-width: 1; }
.hero-plan .furn { stroke: rgba(185,149,90,.42); stroke-width: 1.2; }
.hero-plan .dimln { stroke: rgba(185,149,90,.5); stroke-width: 1; }
.hero-plan text { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; fill: rgba(244,240,231,.4); opacity: 0; transition: opacity 1s var(--tx, 3s); }
.hero-plan.go text { opacity: 1; }

/* ---------- Marquee ---------- */
.marquee { background: var(--brass); color: var(--ink); overflow: hidden; border-block: 1px solid var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 34px; padding: 18px 17px; font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 34px); font-style: italic; white-space: nowrap; }
.marquee-item svg { width: 22px; height: 22px; flex: none; }

/* ---------- Section frame ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 170px) 0; }
.sec-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-bottom: clamp(44px, 6vw, 90px); }
.sec-head .eyebrow { margin-bottom: 22px; }
.sheet-tag {
	position: absolute; top: 26px; right: var(--gutter); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; color: var(--sage);
	display: flex; align-items: center; gap: 10px;
}
.sheet-tag::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.bp-bg {
	position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
	background-size: 80px 80px;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
.dark { background: var(--ink); color: var(--paper); }
.dark .bp-bg { background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px); opacity: .35; }

/* ---------- Studio / viewer ---------- */
.studio-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 100px); align-items: center; }
.viewer { position: relative; background: var(--ink); color: var(--paper); aspect-ratio: 1 / 1; max-height: 680px; width: 100%; overflow: hidden; box-shadow: 0 40px 80px rgba(12,29,24,.25); }
.viewer-grid {
	position: absolute; inset: 0;
	background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
	background-size: 40px 40px;
}
.viewer svg.layer { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.viewer svg.layer.off { opacity: 0; transform: scale(.94); pointer-events: none; }
.viewer-tabs { position: absolute; top: 18px; left: 18px; z-index: 3; display: flex; border: 1px solid var(--line-light); background: rgba(12,29,24,.7); backdrop-filter: blur(6px); }
.viewer-tabs button { background: none; border: 0; color: rgba(244,240,231,.65); font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; padding: 11px 18px; cursor: pointer; text-transform: uppercase; transition: color .3s, background .3s; }
.viewer-tabs button.on { background: var(--brass); color: var(--ink); }
.viewer-foot { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 3; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; color: rgba(244,240,231,.5); }
.v-draw { fill: none; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.layer.run .v-draw { animation: draw var(--t, 1.6s) var(--ease) var(--dl, 0s) forwards; }
.v-draw.f { fill: var(--f); fill-opacity: 0; }
.layer.run .v-draw.f { fill-opacity: 1; transition: fill-opacity 1s ease calc(var(--dl, 0s) + 1s); }
.v-draw.dash { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; transition: opacity 1s var(--dl, 0s); }
.layer.run .v-draw.dash { opacity: 1; animation: none; }
.iso-item { opacity: 0; transform: translateY(-26px); transition: opacity .8s var(--ease) var(--dl, 0s), transform .9s var(--ease) var(--dl, 0s); }
.layer.run .iso-item { opacity: 1; transform: none; }
.viewer text { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; fill: var(--brass); opacity: 0; transition: opacity .8s 2.2s; }
.layer.run text { opacity: 1; }

.studio-copy .h-display { font-size: clamp(36px, 4.4vw, 66px); margin: 22px 0 26px; }
.checks { margin: 32px 0 38px; display: grid; gap: 0; }
.checks li { display: flex; gap: 18px; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--line-dark); font-size: 16px; }
.checks li:last-child { border-bottom: 1px solid var(--line-dark); }
.checks li span { font-family: var(--f-mono); font-size: 11px; color: var(--brass); letter-spacing: .1em; min-width: 28px; }
.founder { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.founder img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 1px solid var(--brass); padding: 3px; background: var(--paper); }
.founder strong { display: block; font-family: var(--f-display); font-size: 22px; font-weight: 600; line-height: 1.1; }
.founder span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--sage); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); margin-top: clamp(60px, 8vw, 120px); }
.stat { padding: 34px 24px 10px 0; border-right: 1px solid var(--line-dark); padding-left: 24px; }
.stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; }
.stat .num { font-family: var(--f-display); font-size: clamp(54px, 6.4vw, 96px); font-weight: 500; line-height: 1; }
.stat .num sup { font-size: .5em; color: var(--brass); vertical-align: top; position: relative; top: .1em; margin-left: 2px; }
.stat p { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-top: 12px; }

/* ---------- Services ---------- */
.svc-list { border-top: 1px solid var(--line-light); }
.svc-row {
	position: relative; display: grid; grid-template-columns: 70px 1.3fr 1fr 70px; gap: 24px; align-items: center;
	padding: clamp(26px, 3vw, 44px) 0; border-bottom: 1px solid var(--line-light); transition: padding .6s var(--ease), color .4s;
}
.svc-row::before { content: ''; position: absolute; inset: 0; background: rgba(185,149,90,.09); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: 0; }
.svc-row > * { position: relative; z-index: 1; }
.svc-row:hover::before { transform: none; }
.svc-row:hover { padding-left: 22px; padding-right: 22px; }
.svc-row .n { font-family: var(--f-mono); font-size: 12px; color: var(--brass); letter-spacing: .14em; }
.svc-row h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 4vw, 62px); line-height: 1.05; }
.svc-row h3 em { font-style: italic; color: var(--brass); }
.svc-row p { color: rgba(244,240,231,.65); font-size: 15.5px; max-width: 40ch; }
.svc-row .go { width: 56px; height: 56px; border: 1px solid var(--line-light); border-radius: 50%; display: grid; place-items: center; transition: background .4s, border-color .4s, transform .5s var(--ease); justify-self: end; }
.svc-row:hover .go { background: var(--brass); border-color: var(--brass); color: var(--ink); transform: rotate(-45deg); }
.svc-thumb { display: none; }
.svc-preview { position: fixed; left: 0; top: 0; width: 340px; height: 420px; z-index: 50; pointer-events: none; opacity: 0; overflow: hidden; clip-path: inset(0 0 100% 0); transition: opacity .3s, clip-path .6s var(--ease); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.svc-preview.on { opacity: 1; clip-path: inset(0); }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity .5s, transform 1s var(--ease); }
.svc-preview img.on { opacity: 1; transform: none; }
.svc-foot { margin-top: 48px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.svc-foot p { color: rgba(244,240,231,.6); max-width: 52ch; }

/* ---------- Process ---------- */
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-dark); background: var(--paper); }
.proc { position: relative; padding: 36px 30px 40px; border-right: 1px solid var(--line-dark); transition: background .5s var(--ease), color .5s; }
.proc:last-child { border-right: 0; }
.proc:hover { background: var(--ink); color: var(--paper); }
.proc .no { font-family: var(--f-mono); font-size: 12px; letter-spacing: .15em; color: var(--brass); display: flex; justify-content: space-between; }
.proc svg { width: 100%; height: 150px; margin: 26px 0 24px; overflow: visible; }
.p-draw { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.p-acc { stroke: var(--brass); }
.proc.in .p-draw { animation: draw 1.8s var(--ease) var(--dl, 0s) forwards; }
.proc:hover .p-draw { animation: none; stroke-dashoffset: 0; }
.proc h3 { font-family: var(--f-display); font-size: 30px; font-weight: 600; line-height: 1.1; margin-bottom: 12px; text-transform: capitalize; }
.proc p { font-size: 15px; opacity: .72; }

/* ---------- Compare ---------- */
.compare-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.cmp { position: relative; aspect-ratio: 3 / 2; overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; box-shadow: 0 40px 80px rgba(0,0,0,.4); --pos: 50%; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp .tech { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp .tech img { filter: grayscale(1) contrast(1.35) brightness(.85); }
.cmp .tech::before { content: ''; position: absolute; inset: 0; background: #0d3a34; mix-blend-mode: color; opacity: .95; z-index: 1; }
.cmp .tech::after { content: ''; position: absolute; inset: 0; z-index: 2; background-image: linear-gradient(rgba(190,230,215,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(190,230,215,.22) 1px, transparent 1px); background-size: 40px 40px; }
.cmp .tech svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; }
.cmp .tech svg * { vector-effect: non-scaling-stroke; }
.cmp .tech text { font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; fill: #d9f3e8; stroke: none; }
.cmp .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--brass); z-index: 5; }
.cmp .handle::after {
	content: '\2039  \203A'; position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
	background: var(--brass); color: var(--ink); display: grid; place-items: center; font-size: 22px; font-family: var(--f-body); letter-spacing: 6px; padding-left: 6px;
	box-shadow: 0 0 0 8px rgba(185,149,90,.25); animation: pulseRing 2.4s infinite;
}
.cmp .lbl { position: absolute; bottom: 18px; z-index: 6; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; padding: 8px 14px; background: rgba(12,29,24,.85); color: var(--paper); text-transform: uppercase; }
.cmp .lbl.a { left: 18px; } .cmp .lbl.b { right: 18px; background: var(--brass); color: var(--ink); }
.cmp input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; z-index: 7; margin: 0; pointer-events: none; }
.cmp:focus-within .handle { box-shadow: 0 0 0 2px var(--paper); }
.compare-copy .h-display { font-size: clamp(34px, 4vw, 60px); margin: 22px 0 24px; }
.compare-copy .tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.compare-copy .tags span { border: 1px solid var(--line-light); padding: 8px 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-soft); }

/* ---------- Projects ---------- */
.pj-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(230px, 24vw, 340px); gap: clamp(14px, 1.6vw, 24px); }
.pj { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); display: block; }
.pj::after { content: ''; position: absolute; inset: -1px; z-index: 6; background: var(--paper); transform-origin: top; pointer-events: none; transition: transform 1.2s var(--ease); transition-delay: inherit; }
.pj.in::after { transform: scaleY(0); }
.pj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .8s; }
.pj:hover img { transform: scale(1.08); filter: saturate(.8) brightness(.7); }
.pj::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12,29,24,0) 40%, rgba(12,29,24,.85)); }
.pj .bp { position: absolute; inset: 14px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .6s; }
.pj:hover .bp { opacity: 1; }
.pj .bp::before, .pj .bp::after { content: ''; position: absolute; background: var(--brass-soft); }
.pj .bp::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: scaleY(0); transition: transform .8s var(--ease); }
.pj .bp::after { top: 50%; left: 0; right: 0; height: 1px; transform: scaleX(0); transition: transform .8s var(--ease); }
.pj:hover .bp::before { transform: scaleY(1); } .pj:hover .bp::after { transform: scaleX(1); }
.pj .bp i { position: absolute; width: 18px; height: 18px; border: 1px solid var(--brass-soft); }
.pj .bp i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; } .pj .bp i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.pj .bp i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; } .pj .bp i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.pj .info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: clamp(18px, 2vw, 32px); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.pj .tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-soft); display: block; margin-bottom: 8px; }
.pj h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.08; }
.pj .view { flex: none; width: 52px; height: 52px; border: 1px solid rgba(244,240,231,.5); border-radius: 50%; display: grid; place-items: center; transition: background .4s, transform .5s var(--ease); }
.pj:hover .view { background: var(--brass); border-color: var(--brass); color: var(--ink); transform: rotate(-45deg); }
.pj.a { grid-column: 1 / span 5; grid-row: span 2; }
.pj.b { grid-column: 6 / span 7; }
.pj.c { grid-column: 6 / span 7; }
.pj.d { grid-column: 1 / span 7; }
.pj.e { grid-column: 8 / span 5; }
.pj-foot { display: flex; justify-content: center; margin-top: 56px; }

/* ---------- CTA ---------- */
.cta { text-align: center; overflow: hidden; }
.cta .h-display { font-size: clamp(44px, 8vw, 128px); margin: 26px auto 40px; max-width: 14ch; }
.cta .ring { position: absolute; left: 50%; top: 50%; width: min(90vw, 900px); aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid var(--line-light); border-radius: 50%; }
.cta .ring.r2 { width: min(64vw, 640px); border-style: dashed; animation: spin 80s linear infinite; }
.cta .wrap { position: relative; z-index: 2; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-2); color: var(--paper); padding: 90px 0 0; border-top: 1px solid var(--line-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 40px; padding-bottom: 70px; }
.footer .brand-logo img { filter: brightness(0) invert(1) !important; }
.footer .brand-logo { width: 120px; height: 113px; }
.footer .brand-logo img { width: 229px; left: -53px; top: -18px; }
.footer p { color: rgba(244,240,231,.62); font-size: 15px; margin-top: 18px; max-width: 34ch; }
.footer h4 { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: 22px; font-weight: 500; }
.footer li { margin-bottom: 11px; font-size: 15px; color: rgba(244,240,231,.75); }
.footer li a { position: relative; transition: color .3s; }
.footer li a:hover { color: var(--brass-soft); }
.footer .ci { display: flex; gap: 14px; align-items: flex-start; }
.footer .ci i { color: var(--brass); width: 16px; margin-top: 5px; }
.social { display: flex; gap: 12px; margin-top: 24px; }
.social a { width: 44px; height: 44px; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background .4s, color .4s, border-color .4s; }
.social a:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.footer-bottom { border-top: 1px solid var(--line-light); padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: rgba(244,240,231,.5); text-transform: uppercase; }

/* progress + floating */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: var(--brass); }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border: 1px solid var(--brass); background: var(--ink); color: var(--brass); cursor: pointer; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease), background .3s, color .3s; font-size: 16px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brass); color: var(--ink); }

/* reveal helper */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes lineGrow { from { transform: scaleX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes gridDrift { to { background-position: 120px 120px, 120px 120px, 24px 24px, 24px 24px; } }
@keyframes scrollDot { 0% { top: -100%; } 60%, 100% { top: 100%; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(185,149,90,.5); } 70%, 100% { box-shadow: 0 0 0 18px rgba(185,149,90,0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-photo { justify-self: start; max-width: 520px; margin: 20px 0 0 40px; }
	.hero-card { left: -40px; }
	.studio-grid, .compare-wrap, .sec-head { grid-template-columns: 1fr; }
	.proc-grid { grid-template-columns: repeat(2, 1fr); }
	.proc:nth-child(2) { border-right: 0; }
	.proc:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.svc-row { grid-template-columns: 48px 1fr 56px; }
	.svc-row p { display: none; }
}
@media (max-width: 991px) {
	.burger { display: block; }
	.header-cta { display: none; }
	.nav {
		position: fixed; inset: 0; background: var(--paper); color: var(--ink); flex-direction: column; justify-content: center; gap: 26px;
		clip-path: circle(0 at calc(100% - 44px) 42px); transition: clip-path .8s var(--ease);
	}
	.nav-open .nav { clip-path: circle(150% at calc(100% - 44px) 42px); }
	.nav a.nav-link { font-family: var(--f-display); font-size: 42px; letter-spacing: 0; text-transform: none; }
	.burger { z-index: 2; position: relative; }
	.nav-open .site-header { color: var(--ink); }
	.nav .m-only { display: inline-flex; }
}
.nav .m-only { display: none; }
@media (max-width: 767px) {
	body { font-size: 16px; }
	.pj-grid { grid-template-columns: 1fr; grid-auto-rows: 320px; }
	.pj.a, .pj.b, .pj.c, .pj.d, .pj.e { grid-column: auto; grid-row: auto; }
	.pj.a { grid-row: span 1; }
	.stats { grid-template-columns: 1fr 1fr; }
	.stat { padding: 26px 16px 10px 0; border-bottom: 1px solid var(--line-dark); }
	.stat:nth-child(2n) { border-right: 0; }
	.stat:nth-child(odd) { padding-left: 0; }
	.stat:nth-child(even) { padding-left: 20px; }
	.hero-photo { margin: 30px 0 30px 24px; width: calc(100% - 50px); }
	.hero-card { left: -24px; max-width: 260px; bottom: 30px; padding: 12px 14px; }
	.dim.v, .badge { display: none; }
	.hero-meta { gap: 22px; }
	.hero-meta b { font-size: 26px; }
	.hud span:not(.scroll) { display: none; }
	.proc-grid { grid-template-columns: 1fr; }
	.proc { border-right: 0 !important; border-bottom: 1px solid var(--line-dark); }
	.proc:last-child { border-bottom: 0; }
	.footer-grid { grid-template-columns: 1fr; }
	.svc-row:hover { padding-left: 0; padding-right: 0; }
	.cmp { aspect-ratio: 4 / 5; }
	.viewer-tabs button { padding: 10px 12px; }
}
@media (hover: none), (max-width: 991px) { .svc-preview, .cross-h, .cross-v, .cross-tag { display: none !important; } .hero { cursor: auto; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.hero-plan .d, .v-draw, .p-draw, .loader-box .l-path { stroke-dashoffset: 0 !important; }
	.mask > span, .rv { transform: none !important; opacity: 1 !important; }
	.pj::after { display: none; }
	html { scroll-behavior: auto; }
}
