/* ==========================================================================
   Raze Premier
   White, ink and neon lime. Lime is only ever a fill or a mark on dark,
   never text on white. Archivo for display, Hanken Grotesk for text,
   JetBrains Mono for labels.
   ========================================================================== */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
	--bg: #fcffff;
	--bg-2: #f1f4ef;
	--bg-3: #e6eae2;
	--ink: #0b1209;
	--ink-2: #1c241a;
	--ink-3: #2a3327;
	--muted: #5b6457;
	--line: rgba(11, 18, 9, 0.1);
	--line-strong: rgba(11, 18, 9, 0.18);
	--line-dark: rgba(252, 255, 255, 0.12);
	--on-dark: #fcffff;
	--on-dark-soft: rgba(252, 255, 255, 0.68);
	--surface: #ffffff;
	--accent: #cdf73d;
	--accent-rgb: 205, 247, 61;
	--accent-hover: #d8ff55;
	--on-accent: #0b1209;
	--accent-glow: rgba(var(--accent-rgb), 0.35);
	--nav-bg: rgba(252, 255, 255, 0.8);
	--nav-bg-solid: rgba(252, 255, 255, 0.94);

	--f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
	--f-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--wrap: 1280px;
	--gutter: clamp(16px, 4vw, 48px);
	--frame: clamp(8px, 1.1vw, 16px);
	--r-xl: clamp(24px, 2.6vw, 36px);
	--r-lg: 24px;
	--r: 14px;
	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: var(--f-text); font-size: 17px; line-height: 1.6;
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .hero :focus-visible { outline-color: var(--accent); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; }
.mono { font-family: var(--f-mono); font-feature-settings: "zero" 1; letter-spacing: -0.01em; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* Type ------------------------------------------------------------------ */

.eyebrow, .kicker {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--muted);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.eyebrow-dark .dot { background: var(--ink); box-shadow: 0 0 0 4px var(--bg-3); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--bg-3); }
.kicker-light { color: var(--on-dark-soft); }
.kicker-light::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }

.h-xl {
	font-family: var(--f-display); font-stretch: 114%; font-weight: 740;
	font-size: clamp(2.4rem, 5.6vw, 4.9rem); line-height: 0.95; letter-spacing: -0.045em;
	margin-top: 18px; text-wrap: balance;
}
.lede { font-size: clamp(1.02rem, 1.3vw, 1.16rem); color: var(--muted); max-width: 520px; margin-top: 20px; text-wrap: pretty; }

.sec-head, .section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head, .section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sec-head .lede, .section-head-row .lede { margin-top: 0; max-width: 400px; }

/* Word split animation */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms + var(--d0, 0s)); }
[data-split].is-in .w > span { transform: none; }
.no-js [data-split] .w > span { transform: none; }

/* Buttons --------------------------------------------------------------- */

.btn {
	--bg: var(--ink); --fg: var(--on-dark);
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
	background: var(--bg); color: var(--fg);
	font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: transform 0.4s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.4s var(--ease-out);
	will-change: transform;
}
.btn .icon { transition: transform 0.4s var(--ease-out); }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 16px 16px 16px 26px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-ink:hover { --bg: var(--ink-3); }
.btn-lime, .btn-signal { --bg: var(--accent); --fg: var(--on-accent); box-shadow: 0 10px 30px -12px var(--accent-glow); }
.btn-lime:hover, .btn-signal:hover { --bg: var(--accent-hover); box-shadow: 0 16px 40px -12px var(--accent-glow); }
.btn-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--on-accent); color: var(--accent); display: inline-grid; place-items: center; }
.btn-ic .icon { width: 15px; height: 15px; }
.btn-glass { --bg: rgba(252, 255, 255, 0.08); --fg: #fff; border-color: rgba(252, 255, 255, 0.35); padding-right: 26px; }
.btn-glass:hover { --bg: rgba(252, 255, 255, 0.16); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { --bg: var(--bg-2); }

/* Header ---------------------------------------------------------------- */

.site-header { position: fixed; top: 22px; left: 0; right: 0; z-index: 50; padding: 0 calc(var(--gutter) + var(--frame)); pointer-events: none; transition: transform 0.5s var(--ease-out); }
.nav-pill {
	pointer-events: auto; max-width: 1000px; margin: 0 auto;
	display: flex; align-items: center; gap: 20px; padding: 8px 8px 8px 16px;
	background: var(--nav-bg-solid); border: 1px solid var(--line); border-radius: 18px;
	box-shadow: 0 12px 34px -20px rgba(11, 18, 9, 0.45);
	transition: max-width 0.5s var(--ease-out), box-shadow 0.4s, background-color 0.4s;
}
@supports (backdrop-filter: blur(1px)) {
	.nav-pill { background: var(--nav-bg); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); }
}
.is-scrolled .nav-pill { max-width: 920px; box-shadow: 0 18px 44px -22px rgba(11, 18, 9, 0.5); }
.is-hidden.site-header { transform: translateY(-140%); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { display: inline-flex; }
.brand-mark rect { fill: var(--ink); }
.brand-mark path:first-of-type { stroke: var(--bg); }
.brand-mark path:last-of-type { stroke: var(--accent); }
.brand-word { font-family: var(--f-display); font-stretch: 118%; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand-word b { font-weight: 800; }
.brand-logo { max-height: 34px; width: auto; }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 2px; }
.nav-list a { position: relative; display: block; padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.nav-list a:hover { background: var(--bg-2); color: var(--ink); }
.nav-list a.is-current { color: var(--ink); }
.nav-list a.is-current::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ink); }
.nav-cta { border-radius: 12px; padding: 11px 18px; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
	.site-header { top: 14px; padding: 0 var(--gutter); }
	.nav-pill { gap: 10px; padding-left: 14px; }
	.nav-cta { display: none; }
	.nav-toggle { display: inline-grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; }
	.nav-toggle .icon-close { display: none; }
	.nav-open .nav-toggle .icon-menu { display: none; }
	.nav-open .nav-toggle .icon-close { display: block; }
	.nav {
		position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
		background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 10px;
		box-shadow: 0 30px 60px -30px rgba(11, 18, 9, 0.5);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity 0.25s, transform 0.35s var(--ease-out), visibility 0s 0.35s;
	}
	.nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.35s var(--ease-out); }
	.nav-list { flex-direction: column; }
	.nav-list a { padding: 14px 12px; font-size: 18px; }
	.nav-list a.is-current::after { display: none; }
	.nav-cta-mobile { display: flex; margin-top: 8px; padding: 15px; border-radius: 12px; }
}

/* Hero ------------------------------------------------------------------ */

.hero { padding: var(--frame); }
.hero-frame {
	position: relative; overflow: hidden; isolation: isolate;
	min-height: min(100svh - 2 * var(--frame), 940px); min-height: max(640px, calc(100svh - 2 * var(--frame)));
	border-radius: var(--r-xl); background: #0b0b0b; color: #fff;
	display: flex; align-items: center; justify-content: center;
}
.hero-media { position: absolute; inset: -6% 0 0; z-index: -3; transform: scale(1.12); transition: transform 2.2s var(--ease-out); will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.is-loaded .hero-media { transform: scale(1) translateY(var(--py, 0px)); transition: transform 2.2s var(--ease-out); }
.is-loaded.is-settled .hero-media { transition: none; }
.hero-shade {
	position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(70% 55% at 50% 48%, rgba(8, 14, 8, 0.38), transparent 72%),
		linear-gradient(180deg, rgba(8, 14, 8, 0.32) 0%, rgba(8, 14, 8, 0.42) 50%, rgba(8, 14, 8, 0.9) 100%);
}

/* Streaking light lines (also used on dark sections) */
.streaks { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.streaks i {
	position: absolute; left: -30%; height: 1px; width: 22%;
	background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.9), transparent);
	opacity: 0; animation: streak 7s linear infinite;
}
.streaks i:nth-child(1) { top: 18%; animation-delay: 0s; }
.streaks i:nth-child(2) { top: 31%; width: 14%; animation-delay: 2.2s; animation-duration: 6s; }
.streaks i:nth-child(3) { top: 57%; width: 26%; animation-delay: 3.6s; animation-duration: 8s; }
.streaks i:nth-child(4) { top: 72%; width: 12%; animation-delay: 1.1s; animation-duration: 5.5s; }
.streaks i:nth-child(5) { top: 84%; animation-delay: 4.8s; }
.streaks i:nth-child(6) { top: 44%; width: 10%; animation-delay: 5.6s; animation-duration: 6.5s; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); }
@keyframes streak { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 0.8; } 70% { opacity: 0.5; } 100% { transform: translateX(620%); opacity: 0; } }

.hero-center { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; padding: 140px var(--gutter) 160px; max-width: 1180px; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.88); }
.hero-title {
	margin-top: 24px;
	font-family: var(--f-display); font-stretch: 118%; font-weight: 760;
	font-size: clamp(2.9rem, 8.2vw, 7.6rem); line-height: 0.9; letter-spacing: -0.05em;
	text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: 26px; max-width: 640px; font-size: clamp(1.05rem, 1.45vw, 1.26rem); line-height: 1.5; color: rgba(255, 255, 255, 0.84); text-wrap: pretty; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.hero-card {
	position: absolute; left: 26px; bottom: 26px; width: 260px; z-index: 2;
	background: var(--bg); color: var(--ink); border-radius: 20px; overflow: hidden; text-decoration: none;
	box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6);
	transition: transform 0.5s var(--ease-out);
}
.hero-card:hover { transform: translateY(-4px) !important; }
.hero-card img { width: 100%; height: 124px; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.hero-card:hover img { transform: scale(1.05); }
.hero-card-body { display: block; padding: 12px 14px 14px; font-size: 13px; color: var(--muted); }
.hero-card-body small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-card-body b { display: block; margin-top: 3px; font-family: var(--f-display); font-stretch: 110%; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }

.hero-corner { position: absolute; right: 32px; bottom: 32px; text-align: right; font-size: 13.5px; color: rgba(255, 255, 255, 0.78); line-height: 1.4; }
.hero-corner b { display: block; font-family: var(--f-display); font-stretch: 115%; font-weight: 720; font-size: 32px; letter-spacing: -0.035em; color: var(--accent); }

.hero-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.hero-scroll span { width: 1px; height: 38px; background: rgba(255, 255, 255, 0.25); position: relative; overflow: hidden; }
.hero-scroll span::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent); animation: drip 2s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 100%; } }

@media (max-width: 900px) {
	.hero-center { padding: 130px 20px 250px; }
	.hero-card { left: 14px; bottom: 14px; width: 190px; }
	.hero-card img { height: 80px; }
	.hero-corner { right: 16px; bottom: 18px; }
	.hero-corner b { font-size: 24px; }
	.hero-corner span { display: none; }
	.hero-scroll { display: none; }
}
@media (max-width: 600px) { .hero-corner { display: none; } }
@media (max-width: 480px) {
	.hero-actions { width: 100%; }
	.hero-actions .btn { width: 100%; }
}

/* Tools ----------------------------------------------------------------- */

.tools { padding: clamp(48px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); text-align: center; }
.tools-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tools-track {
	margin-top: 26px; display: flex; overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.tools-row { display: flex; flex: none; align-items: center; animation: marquee 40s linear infinite; }
.tools-track:hover .tools-row { animation-play-state: paused; }
.tools-row li {
	display: inline-flex; align-items: center; gap: 11px; padding: 0 30px;
	font-weight: 600; font-size: 18px; color: var(--ink-3); white-space: nowrap; opacity: 0.72;
	transition: opacity 0.25s, color 0.25s;
}
.tools-row li:hover { opacity: 1; color: var(--ink); }
.tools-row svg { width: 26px; height: 26px; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Services -------------------------------------------------------------- */

.services { padding: clamp(80px, 10vw, 130px) 0 clamp(60px, 8vw, 100px); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
	--cbg: var(--surface); --cfg: var(--ink); --csub: var(--muted); --cline: var(--line);
	position: relative; display: flex; flex-direction: column;
	min-height: 440px; padding: 24px; border-radius: var(--r-lg);
	background: var(--cbg); color: var(--cfg);
	border: 1px solid var(--cline);
	box-shadow: 0 1px 0 rgba(11, 18, 9, 0.04), 0 24px 48px -36px rgba(11, 18, 9, 0.35);
	transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s, transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
	transform-style: preserve-3d;
	overflow: hidden;
}
.card:hover { --cbg: var(--ink); --cfg: var(--on-dark); --csub: var(--on-dark-soft); --cline: var(--ink); box-shadow: 0 40px 70px -40px rgba(11, 18, 9, 0.65); }
.card::after {
	content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0;
	background: var(--accent); transform: scaleX(0.18); transform-origin: left; transition: transform 0.7s var(--ease-out);
}
.card:hover::after { transform: scaleX(1); }
.cards { counter-reset: svc; }
.card { counter-increment: svc; min-height: 400px; }
.card::before {
	content: counter(svc, decimal-leading-zero); position: absolute; left: 18px; top: 10px; z-index: 0; pointer-events: none;
	font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 128px; line-height: 1; letter-spacing: -0.06em;
	color: transparent; -webkit-text-stroke: 1px var(--line-strong);
	transition: transform 0.9s var(--ease-out), -webkit-text-stroke-color 0.45s;
}
.card:hover::before { transform: translateY(-6px); -webkit-text-stroke-color: rgba(var(--accent-rgb), 0.55); }
.card > * { position: relative; z-index: 1; }
.card-body { margin-top: auto; padding-top: 120px; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-n { visibility: hidden; }
.card-top { justify-content: flex-end; }
.card-arrow {
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	border: 1px solid var(--cline); color: var(--cfg);
	transition: transform 0.5s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.card:hover .card-arrow { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: rotate(45deg); }
.card-viz { flex: 1; display: flex; align-items: center; justify-content: center; padding: 22px 0 18px; min-height: 170px; }
.card-title { font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: clamp(1.6rem, 2.2vw, 2rem); letter-spacing: -0.035em; line-height: 1.02; }
.card-desc { margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: var(--csub); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-bottom: 6px; }
.card-tags li { font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--cline); color: var(--csub); transition: border-color 0.45s, color 0.45s; }
.card:hover .card-tags li { border-color: var(--line-dark); }

.card-wide { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; column-gap: 48px; padding: 32px; --cbg: var(--ink); --cfg: var(--on-dark); --csub: var(--on-dark-soft); --cline: var(--line-dark); }
.card-wide .card-top { grid-column: 1; }
.card-wide .card-body { grid-column: 1; grid-row: 2; align-self: end; padding-top: 40px; }
.card-wide .card-viz { grid-column: 2; grid-row: 1 / span 2; padding: 0; }
.card-wide .card-title { font-size: clamp(2rem, 3.4vw, 3rem); }
.card-wide::after { transform: scaleX(0.4); }
.card-wide:hover { --cbg: var(--ink-2); }
.card-wide .card-arrow { border-color: var(--line-dark); }

@media (max-width: 1024px) {
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card-wide { grid-template-columns: 1fr; }
	.card-wide .card-viz { grid-column: 1; grid-row: auto; padding: 28px 0 0; }
	.card-wide .card-body { grid-row: auto; padding-top: 24px; }
}
@media (max-width: 640px) {
	.cards { grid-template-columns: 1fr; }
	.card { min-height: 0; }
	.card-wide { padding: 24px; }
}

/* Showcase (pinned image reveal) ---------------------------------------- */

.showcase { position: relative; height: 240vh; }
.showcase-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.showcase-frame {
	position: absolute; inset: 0; overflow: hidden;
	clip-path: inset(var(--ct, 22%) var(--cx, 26%) var(--ct, 22%) var(--cx, 26%) round var(--cr, 28px));
	will-change: clip-path;
}
.showcase-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--is, 1.25)); will-change: transform; }
.showcase-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 14, 8, 0.75)); opacity: var(--so, 0); }
.showcase-copy { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 var(--gutter); pointer-events: none; }
.showcase-tag { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: var(--to, 0); transform: translateY(calc((1 - var(--to, 0)) * 16px)); color: var(--accent); }
.showcase-title {
	margin-top: 14px; font-family: var(--f-display); font-stretch: 120%; font-weight: 780;
	font-size: clamp(3rem, 9vw, 8.4rem); line-height: 0.88; letter-spacing: -0.055em;
	opacity: var(--to, 0); transform: translateY(calc((1 - var(--to, 0)) * 40px)) scale(calc(0.94 + var(--to, 0) * 0.06));
	text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Ticker ---------------------------------------------------------------- */

.ticker { padding: clamp(70px, 9vw, 120px) 0 clamp(20px, 3vw, 40px); overflow: hidden; }
.ticker-track { display: flex; width: max-content; will-change: transform; transform: translateX(var(--tx, 0px)) skewX(var(--sk, 0deg)); }
.ticker-row { display: flex; align-items: center; flex: none; }
.ticker-row span {
	font-family: var(--f-display); font-stretch: 125%; font-weight: 800;
	font-size: clamp(3.4rem, 10vw, 9.6rem); line-height: 1; letter-spacing: -0.05em; padding: 0 0.22em; white-space: nowrap;
}
.ticker-row span.is-outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.ticker-dot { width: clamp(16px, 2vw, 30px); height: clamp(16px, 2vw, 30px); border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 6px var(--bg-2); }

/* Work ------------------------------------------------------------------ */

.work { padding: clamp(50px, 7vw, 90px) 0 0; }
.work-list { display: grid; gap: clamp(48px, 7vw, 100px); }
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.case:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.case:nth-child(even) .case-media { order: 2; }
.case-media { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.js .case .case-media { clip-path: inset(12% 8% 12% 8% round 24px); transition: clip-path 1.3s var(--ease-out); }
.js .case.is-in .case-media { clip-path: inset(0 0 0 0 round 24px); }
.case-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.7s var(--ease), transform 1.4s var(--ease-out); }
.case-img.is-on { opacity: 1; transform: none; }
.case-media:hover .case-img.is-on { transform: scale(1.02); }
.case-thumbs { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(11, 18, 9, 0.6); }
@supports (backdrop-filter: blur(1px)) { .case-thumbs { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } }
.case-thumb { width: 58px; height: 40px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; cursor: pointer; background: none; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-thumb:hover { opacity: 1; }
.case-thumb.is-on { opacity: 1; border-color: var(--accent); }
.case-copy { position: relative; }
.case-n { font-size: 12.5px; color: var(--muted); }
.case-kind { margin-top: 16px; display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.case-client { margin-top: 14px; font-family: var(--f-display); font-stretch: 114%; font-weight: 740; font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.04em; line-height: 0.98; }
.case-summary { margin-top: 18px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 860px) {
	.case, .case:nth-child(even) { grid-template-columns: 1fr; }
	.case:nth-child(even) .case-media { order: 0; }
}

/* Process --------------------------------------------------------------- */

.process { padding: clamp(90px, 11vw, 150px) 0 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 20px); padding-top: 46px; }
.steps-line { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); overflow: hidden; }
.steps-fill { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.step { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--bg-2); min-height: 260px; transition: background-color 0.4s, color 0.4s; }
.step:hover { background: var(--ink); color: var(--on-dark); }
.step:hover .step-body, .step:hover .step-n { color: var(--on-dark-soft); }
.step::before { content: ""; position: absolute; top: -46px; left: 24px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); }
.step:hover::before { background: var(--accent); }
.step-n { font-size: 12.5px; color: var(--muted); }
.step-title { margin-top: 40px; font-family: var(--f-display); font-stretch: 108%; font-weight: 680; font-size: 1.4rem; line-height: 1.1; letter-spacing: -0.03em; }
.step-body { margin-top: 12px; color: var(--muted); font-size: 15.5px; transition: color 0.4s; }
@media (max-width: 900px) {
	.steps { grid-template-columns: 1fr; padding-top: 0; padding-left: 40px; gap: 16px; }
	.steps-line { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
	.steps-fill { transform-origin: top; transform: scaleY(var(--p, 0)); }
	.step { min-height: 0; }
	.step::before { top: 26px; left: -40px; }
	.step-title { margin-top: 14px; }
}

/* Quote ----------------------------------------------------------------- */

.quote { padding: clamp(90px, 11vw, 150px) 0 0; }
.quote-inner { text-align: center; }
.quote figure { margin: 0 auto; max-width: 1000px; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--f-display); font-stretch: 102%; font-weight: 560; font-size: clamp(1.8rem, 4.2vw, 3.4rem); line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { margin-top: 28px; display: grid; gap: 2px; }
.quote-name { font-weight: 600; }
.quote-role, .quote-context { color: var(--muted); font-size: 15px; }
.quote-context { margin-top: 18px; font-family: var(--f-mono); font-size: 12px; }

/* FAQ ------------------------------------------------------------------- */

.faq { padding: clamp(90px, 11vw, 150px) 0 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .section-head { position: sticky; top: 120px; margin-bottom: 0; display: block; }
.faq-list { display: grid; gap: 8px; }
.qa { border-radius: 18px; background: var(--bg-2); transition: background-color 0.3s; }
.qa[open] { background: var(--ink); color: var(--on-dark); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .icon { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--bg); color: var(--ink); transition: transform 0.4s var(--ease-out), background-color 0.3s; }
.qa[open] summary .icon { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); }
.qa-a { overflow: hidden; }
.qa-a p { padding: 0 70px 22px 22px; color: var(--on-dark-soft); }
@media (max-width: 900px) {
	.faq-grid { grid-template-columns: 1fr; }
	.faq .section-head { position: static; }
	.qa-a p { padding-right: 22px; }
}

/* Contact --------------------------------------------------------------- */

.contact { padding: clamp(90px, 11vw, 150px) var(--frame) var(--frame); }
.contact-card {
	position: relative; overflow: hidden; isolation: isolate;
	max-width: calc(var(--wrap) + 120px); margin: 0 auto;
	background: var(--ink); color: var(--on-dark); border-radius: var(--r-xl);
	padding: clamp(36px, 6vw, 88px) clamp(22px, 5vw, 80px);
}
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 60% at 10% 100%, rgba(var(--accent-rgb), 0.14), transparent 70%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact .lede { color: var(--on-dark-soft); }
.contact-direct { margin-top: 32px; display: grid; gap: 4px; }
.contact-direct a { display: inline-flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-dark); padding: 8px 0; }
.contact-direct a:hover { color: var(--accent); }
.form { background: var(--bg); color: var(--ink); border-radius: 22px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.field legend { margin-bottom: 10px; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-glow); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-item { position: relative; cursor: pointer; }
.pick-item input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick-item span { display: inline-block; font-size: 14px; font-weight: 500; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.pick-item:hover span { border-color: var(--ink); }
.pick-item input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pick-item input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 12px 14px; border-radius: 12px; font-weight: 500; font-size: 15px; }
.form-status-ok { background: var(--accent); color: var(--on-accent); }
.form-status-error { background: #ffe1d9; color: #8a1f05; }
.form-fine { font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Footer ---------------------------------------------------------------- */

.site-footer { padding-top: clamp(64px, 9vw, 110px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-lead { font-family: var(--f-display); font-stretch: 110%; font-weight: 650; font-size: 1.5rem; line-height: 1.12; letter-spacing: -0.03em; max-width: 360px; }
.footer-email { display: inline-block; margin-top: 18px; font-weight: 500; }
.footer-h { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { text-decoration: none; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 40% no-repeat; transition: background-size 0.4s var(--ease-out); }
.footer-col a:hover { background-size: 100% 40%; }
.footer-word {
	display: flex; justify-content: center; gap: 0.16em;
	padding: clamp(40px, 6vw, 72px) var(--gutter) 0;
	font-family: var(--f-display); font-stretch: 125%; font-weight: 800;
	font-size: clamp(3rem, 10.4vw, 11.5rem); line-height: 0.8; letter-spacing: -0.06em; white-space: nowrap;
	color: var(--ink); user-select: none;
}
.footer-word span:last-child { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.footer-word span { transform: translateY(30%); opacity: 0; transition: transform 1.1s var(--ease-out), opacity 0.8s; }
.footer-word span:last-child { transition-delay: 0.1s; }
.footer-word.is-in span { transform: none; opacity: 1; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-base a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.footer-base a .icon { transform: rotate(-90deg); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-word { flex-direction: column; align-items: flex-start; font-size: 19vw; gap: 0.06em; } }

/* Inner pages ----------------------------------------------------------- */

.page-shell { padding: clamp(130px, 16vw, 180px) 0 clamp(60px, 8vw, 100px); min-height: 60vh; }
.page-title { font-family: var(--f-display); font-stretch: 112%; font-weight: 720; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -0.04em; margin: 14px 0 28px; }
.entry + .entry { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.entry-title { font-family: var(--f-display); font-weight: 650; font-size: 1.6rem; letter-spacing: -0.02em; }
.entry-title a { text-decoration: none; }
.entry-meta { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--f-display); font-weight: 650; letter-spacing: -0.02em; margin-top: 1.8em; line-height: 1.15; }
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.3rem; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.page-404 .lede { margin-bottom: 28px; }

/* Reveal on scroll ------------------------------------------------------ */

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s, box-shadow 0.6s var(--ease-out); transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s, 0s, 0s; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .card[data-reveal].is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js .footer-word[data-reveal] { opacity: 1; transform: none; }
.js .case[data-reveal] { opacity: 1; transform: none; }

/* Reduced motion -------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	[data-split] .w > span { transform: none; }
	.tools-row { animation: none; }
	.tools-track { flex-wrap: wrap; justify-content: center; mask-image: none; -webkit-mask-image: none; }
	.tools-row[aria-hidden] { display: none; }
	.tools-row { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
	.streaks { display: none; }
	.showcase { height: auto; }
	.showcase-sticky { position: relative; height: 80vh; }
	.showcase-frame { clip-path: none; }
	.showcase-title, .showcase-tag { opacity: 1; transform: none; }
	.js .case .case-media { clip-path: none; }
}

/* Palettes ---------------------------------------------------------------
   Chosen in Appearance > Customize > Raze Premier > Colour palette.
   Each one only swaps tokens; layout and motion stay the same.
   ------------------------------------------------------------------------ */

body.palette-swiss {
	--bg: #f3f0ea; --bg-2: #e9e4da; --bg-3: #dcd5c8;
	--ink: #121110; --ink-2: #22201e; --ink-3: #33302c; --muted: #6a655e;
	--line: rgba(18, 17, 16, 0.11); --line-strong: rgba(18, 17, 16, 0.2);
	--surface: #fbf9f5;
	--accent: #e5251e; --accent-rgb: 229, 37, 30; --accent-hover: #f23a2f; --on-accent: #ffffff;
	--on-dark: #f3f0ea; --on-dark-soft: rgba(243, 240, 234, 0.66); --line-dark: rgba(243, 240, 234, 0.12);
	--nav-bg: rgba(251, 249, 245, 0.8); --nav-bg-solid: rgba(251, 249, 245, 0.95);
}

body.palette-klein {
	color-scheme: dark;
	--bg: #08090d; --bg-2: #11131a; --bg-3: #1b1e28;
	--ink: #eef0f6; --ink-2: #d9dce6; --ink-3: #c4c8d4; --muted: #8b90a0;
	--line: rgba(238, 240, 246, 0.1); --line-strong: rgba(238, 240, 246, 0.2);
	--surface: #0e1016;
	--accent: #3d5bff; --accent-rgb: 61, 91, 255; --accent-hover: #5570ff; --on-accent: #ffffff;
	--on-dark: #08090d; --on-dark-soft: rgba(8, 9, 13, 0.66); --line-dark: rgba(8, 9, 13, 0.12);
	--nav-bg: rgba(14, 16, 22, 0.78); --nav-bg-solid: rgba(14, 16, 22, 0.95);
}

body.palette-ember {
	color-scheme: dark;
	--bg: #0c0b0a; --bg-2: #161412; --bg-3: #221f1c;
	--ink: #f2ede6; --ink-2: #e0d9cf; --ink-3: #cfc6ba; --muted: #988f84;
	--line: rgba(242, 237, 230, 0.1); --line-strong: rgba(242, 237, 230, 0.2);
	--surface: #12100f;
	--accent: #ff5b1f; --accent-rgb: 255, 91, 31; --accent-hover: #ff7340; --on-accent: #0c0b0a;
	--on-dark: #0c0b0a; --on-dark-soft: rgba(12, 11, 10, 0.66); --line-dark: rgba(12, 11, 10, 0.12);
	--nav-bg: rgba(18, 16, 15, 0.8); --nav-bg-solid: rgba(18, 16, 15, 0.95);
}

/* Custom cursor ---------------------------------------------------------- */

.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; width: 0; height: 0; opacity: 0; transition: opacity 0.3s; }
.cursor.is-on { opacity: 1; }
.cursor::before {
	content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
	background: var(--accent); transition: transform 0.35s var(--ease-out), background-color 0.3s;
}
.cursor.is-link::before { transform: scale(3.4); background: rgba(var(--accent-rgb), 0.35); }
.cursor.is-view::before { transform: scale(9); background: var(--accent); }
.cursor-label {
	position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(0.6); opacity: 0;
	font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-accent);
	transition: opacity 0.25s, transform 0.35s var(--ease-out); white-space: nowrap;
}
.cursor.is-view .cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.has-cursor [data-cursor] { cursor: none; }
