/* ShingletonSolutions 1.1
   Charcoal marble with white and gold veining, the yellow from the logo,
   and one geometric typeface (Kumbh Sans) set in capitals for display, like the logo lettering. */

@font-face { font-family: "Kumbh Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/kumbh-sans.woff2") format("woff2"); }

:root {
	--ink: #1b1c20;
	--ink-2: #212227;
	--ink-3: #2a2b31;
	--ink-4: #383a42;
	--gold: #f2e25d;
	--chalk: #f4f1e8;
	--ash: #b5b2a8;
	--line: rgba(244, 241, 232, 0.14);
	--line-ink: rgba(0, 0, 0, 0.16);
	--panel: rgba(16, 17, 20, 0.58);

	--sans: "Kumbh Sans", "Century Gothic", "Avenir Next", Montserrat, Arial, sans-serif;

	--fs-small: 0.9375rem;
	--fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	--fs-lede: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
	--fs-item: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
	--fs-section: clamp(1.75rem, 1.2rem + 2.3vw, 3.125rem);
	--fs-display: clamp(2.125rem, 0.9rem + 5.3vw, 5.5rem);

	--gutter: clamp(20px, 5vw, 72px);
	--head-h: 76px;
	--space-section: clamp(88px, 12vw, 176px);
	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 24px); background: var(--ink); }

body {
	margin: 0;
	color: var(--chalk);
	font-family: var(--sans);
	font-size: var(--fs-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: #000; -webkit-text-fill-color: #000; }

.wrap { width: 100%; max-width: 1392px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section) 0; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--gold); color: #000; padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- Marble: a still image first, then the live canvas fades in over it ---------- */

.marble { position: fixed; inset: 0; z-index: -1; background: var(--ink) url("../img/marble-dark.jpg") center / cover no-repeat; }
.marble canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.marble canvas.is-live { opacity: 1; }

/* Reading progress, drawn by the scroll position itself where the browser supports it. */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 80; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); display: none; }
@supports (animation-timeline: scroll()) {
	.progress { display: block; animation: progress linear both; animation-timeline: scroll(root); }
	@keyframes progress { to { transform: scaleX(1); } }
}

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

.display { font-weight: 600; text-transform: uppercase; letter-spacing: 0.035em; line-height: 1.06; }
.h-section { font-size: var(--fs-section); text-wrap: balance; }
.h-item { font-weight: 600; font-size: var(--fs-item); line-height: 1.2; letter-spacing: 0.01em; }
.h-small { font-size: var(--fs-small); font-weight: 600; color: var(--ash); letter-spacing: 0.02em; }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--chalk); max-width: 34em; text-wrap: pretty; }

/* Gold leaf: display type turns gold where the pointer's light falls on it. */
.gild { display: block; color: var(--chalk); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.gild {
		background-color: var(--chalk);
		background-image: radial-gradient(circle var(--gr, 15rem) at var(--gx, -999px) var(--gy, -999px), var(--gold) 0%, var(--gold) 22%, rgba(242, 226, 93, 0) 100%);
		background-repeat: no-repeat;
		-webkit-background-clip: text; background-clip: text;
		-webkit-text-fill-color: transparent; color: transparent;
	}
}

.link { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.3em; transition: color 0.2s, text-decoration-thickness 0.2s; }
.link:hover { color: var(--gold); text-decoration-thickness: 2px; }
.link--quiet { text-decoration-color: var(--line); color: var(--ash); }

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

.btn {
	position: relative; isolation: isolate; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 54px; padding: 0 28px;
	font-weight: 600; font-size: 1.0625rem; line-height: 1; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
	border: 1.5px solid transparent; border-radius: 0; cursor: pointer;
	transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
/* Hover fills from the edge the pointer came in on. */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: var(--from, left) center; transition: transform 0.45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn--gold { background: var(--gold); color: #000; }
.btn--gold::before { background: var(--chalk); }
.btn--line { background: rgba(16, 17, 20, 0.35); color: var(--chalk); border-color: rgba(244, 241, 232, 0.3); }
.btn--line::before { background: var(--gold); }
.btn--line:hover, .btn--line:focus-visible { color: #000; border-color: var(--gold); }
.btn--black { background: #000; color: var(--chalk); }
.btn--black::before { background: var(--ink-4); }
.btn--ink-line { background: transparent; color: #000; border-color: #000; }
.btn--ink-line::before { background: #000; }
.btn--ink-line:hover, .btn--ink-line:focus-visible { color: var(--chalk); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: var(--fs-small); line-height: 1; padding: 8px 12px; border: 1px solid var(--line); color: var(--ash); }

.panel { background: var(--panel); border: 1px solid rgba(244, 241, 232, 0.08); }

/* A gold edge that follows the pointer round a card. */
.glow { position: relative; }
.glow::before {
	content: ""; position: absolute; inset: 0; padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity 0.35s; z-index: 2;
	background: radial-gradient(260px circle at var(--px, -999px) var(--py, -999px), var(--gold), rgba(242, 226, 93, 0) 70%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glow:hover::before { opacity: 1; }

/* Things rise into place once, the first time they are scrolled to. */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Pointer ring ---------- */

.cursor {
	position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
	display: grid; place-items: center;
	width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid var(--gold); border-radius: 999px;
	opacity: 0; translate: -100px -100px;
	font-size: var(--fs-small); font-weight: 600; line-height: 1; color: #000; white-space: nowrap;
	transition: opacity 0.3s, width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background-color 0.3s, border-color 0.3s;
}
.cursor span { opacity: 0; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(242, 226, 93, 0.14); }
.cursor.is-label { width: auto; height: 42px; padding: 0 18px; margin: 14px 0 0 14px; background: var(--gold); }
.cursor.is-label span { opacity: 1; }
.cursor.is-ink { border-color: #000; }
.cursor.is-ink.is-link { background: rgba(0, 0, 0, 0.08); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

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

.site-head {
	position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h);
	transition: transform 0.35s var(--ease), background-color 0.3s, border-color 0.3s;
	border-bottom: 1px solid transparent;
}
.site-head.is-solid { background: rgba(22, 23, 27, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.site-head.is-hidden { transform: translateY(-100%); }
.site-head__in { height: 100%; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { height: 42px; width: auto; }
.nav ul { display: flex; gap: clamp(18px, 2.6vw, 38px); }
.nav a { text-decoration: none; font-weight: 500; letter-spacing: 0.02em; padding: 8px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.menu-btn { display: none; align-items: center; gap: 12px; background: none; border: 0; padding: 10px 0 10px 10px; cursor: pointer; font-weight: 600; }
.menu-btn__icon { width: 26px; height: 12px; position: relative; display: block; }
.menu-btn__icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-btn__icon i:first-child { top: 0; }
.menu-btn__icon i:last-child { top: 10.5px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { top: 5px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 40; background: #16171b; padding-top: calc(var(--head-h) + 24px); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__list a { display: block; font-weight: 600; text-transform: uppercase; letter-spacing: 0.035em; font-size: clamp(1.875rem, 9vw, 3rem); line-height: 1.2; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu__list a[aria-current] { color: var(--gold); }
.menu__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 32px 48px; }

@media (max-width: 860px) {
	.nav, .site-head__cta { display: none; }
	.menu-btn { display: inline-flex; }
	.brand img { height: 36px; }
	:root { --head-h: 64px; }
}

/* Signed in view: sit below the WordPress toolbar. */
.admin-bar .site-head, .admin-bar .menu, .admin-bar .progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head, .admin-bar .menu, .admin-bar .progress { top: 46px; } }

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

/* Sized by its content (not the full screen) so the headline sits close under the menu and the client names show on first load. */
.hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; }
.hero__mark { position: absolute; right: clamp(-40px, 4vw, 96px); top: 50%; height: min(92%, 640px); width: auto; max-width: none; translate: 0 -50%; opacity: 0.07; pointer-events: none; }
.hero__in { position: relative; padding-block: calc(var(--head-h) + clamp(56px, 10vh, 120px)) clamp(48px, 8vh, 96px); }
.hero__title { font-size: var(--fs-display); line-height: 1.04; }
.hero__foot { display: grid; grid-template-columns: minmax(0, 34em) auto; justify-content: space-between; align-items: end; gap: 32px 48px; margin-top: clamp(28px, 5vh, 56px); }
.hero__lede { font-size: var(--fs-lede); line-height: 1.5; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Headline lines rise once on load. */
.line { display: block; overflow: hidden; padding-block: 0.06em; margin-block: -0.06em; }
.line > .gild { animation: rise 1s var(--ease) both; animation-delay: 0.15s; }
.line:nth-child(2) > .gild { animation-delay: 0.26s; }
.line:nth-child(3) > .gild { animation-delay: 0.37s; }
.hero__foot { animation: fade 0.9s ease both 0.75s; }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 760px) {
	.hero__title .line { display: inline; overflow: visible; }
	.hero__title .line > .gild { display: inline; animation: none; }
	.hero__title { animation: fade 0.9s ease both 0.15s; text-wrap: balance; }
	.hero__foot { grid-template-columns: 1fr; }
	.hero__mark { height: 80%; right: -12vw; top: 46%; }
}

/* ---------- Client marquee ---------- */

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(16, 17, 20, 0.4); }
.marquee__track { display: flex; width: max-content; }
.marquee.is-running .marquee__track { will-change: transform; }
.marquee__track li { display: flex; align-items: center; }
.marquee__track li::after { content: ""; width: 8px; height: 8px; margin-inline: clamp(20px, 3vw, 44px); background: var(--gold); rotate: 45deg; flex: none; }
.marquee__track a { display: block; padding: 22px 0; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3125rem); color: var(--ash); text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.marquee__track a:hover, .marquee__track a:focus-visible { color: var(--gold); }
html:not(.js) .marquee__track, .marquee.is-static .marquee__track { flex-wrap: wrap; width: auto; padding-inline: var(--gutter); }

/* ---------- Homepage: services ---------- */

.svc__in { display: grid; grid-template-columns: 5fr 7fr; gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
.svc__head { position: sticky; top: calc(var(--head-h) + 40px); display: grid; gap: 24px; }
.svc-row { border-top: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; }
.svc-row summary::-webkit-details-marker { display: none; }
.svc-row__name { font-weight: 600; text-transform: uppercase; letter-spacing: 0.035em; font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); line-height: 1.15; transition: color 0.25s, transform 0.45s var(--ease); }
.svc-row summary:hover .svc-row__name { color: var(--gold); transform: translateX(10px); }
.svc-row[open] .svc-row__name { color: var(--gold); }
.svc-row__icon { flex: none; width: 18px; height: 18px; position: relative; }
.svc-row__icon::before, .svc-row__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease); }
.svc-row__icon::after { transform: rotate(90deg); }
.svc-row[open] .svc-row__icon::after { transform: rotate(0deg); }
.svc-row__body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; padding: 0 0 32px; }
.svc-row__body li { color: var(--ash); padding: 6px 0; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.svc-row__body li:first-child { border-top: 0; padding-top: 0; }
.svc-row::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.svc-row[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

@media (max-width: 900px) {
	.svc__in { grid-template-columns: 1fr; }
	.svc__head { position: static; }
	.svc-row__body { grid-template-columns: 1fr; }
}

/* ---------- Homepage: stacked work ---------- */

.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); }
.stack { display: grid; gap: 40px; }
.stack__item { position: sticky; top: calc(var(--head-h) + 20px + var(--i) * 22px); }
.stack__card {
	display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: center;
	min-height: min(66vh, 640px); padding: clamp(24px, 4vw, 56px);
	background: #202125; border-top: 1px solid var(--ink-4);
	box-shadow: 0 -28px 48px -12px rgba(8, 8, 10, 0.75);
	text-decoration: none; transform-origin: 50% 0; perspective: 1400px;
}
.stack__item:nth-child(2) .stack__card { background: #25262b; }
.stack__item:nth-child(3) .stack__card { background: #2a2b31; }
.stack__card:hover .stack__title { color: var(--gold); }
.stack__text { display: grid; gap: 20px; align-content: center; }
.stack__title { font-size: clamp(1.625rem, 1rem + 2.2vw, 2.875rem); transition: color 0.25s; text-wrap: balance; }
.stack__summary { font-size: var(--fs-lede); line-height: 1.45; max-width: 26em; }
.stack-section__more { margin-top: clamp(40px, 6vw, 72px); }

@media (max-width: 900px) {
	.stack__item { position: static; }
	.stack__card { grid-template-columns: 1fr; min-height: 0; box-shadow: none; }
	.stack__media { order: -1; }
}

[data-tilt-target] { transition: transform 0.6s var(--ease); }

/* ---------- Covers ---------- */

.cover { width: 100%; }
.browser { border-radius: 10px; overflow: hidden; background: var(--ink-4); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: var(--ink-4); }
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(244, 241, 232, 0.28); }
.browser__bar span { margin-left: 12px; font-size: 0.75rem; color: var(--ash); letter-spacing: 0.02em; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.cover--art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.plate { aspect-ratio: 16 / 10.7; border-radius: 10px; background: #fff; display: grid; place-items: center; padding: 12%; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.plate img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.plate--type { background: #f3f0e9 url("../img/marble-light.jpg") center / cover; padding: 8%; text-align: center; }
.plate--type span { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: clamp(1.75rem, 4.6vw, 3.75rem); line-height: 1.05; color: #000; }

/* ---------- Homepage: process ---------- */

.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 64px); margin-top: clamp(40px, 6vw, 80px); position: relative; padding-top: 40px; }
.process::before, .process::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--line); }
.process::after { background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; }
.process__step { display: grid; gap: 14px; align-content: start; opacity: 0.4; transition: opacity 0.5s; }
.process__step.is-on { opacity: 1; }
.process__num { font-weight: 700; font-size: clamp(2.75rem, 2rem + 3.4vw, 4.75rem); line-height: 1; color: var(--ink-4); transition: color 0.5s; }
.process__step.is-on .process__num { color: var(--gold); }
.process__name { font-weight: 600; text-transform: uppercase; letter-spacing: 0.035em; font-size: var(--fs-item); line-height: 1.15; }
.process__step p { color: var(--ash); max-width: 26em; }
html:not(.js) .process__step { opacity: 1; }

@media (max-width: 800px) {
	.process { grid-template-columns: 1fr; gap: 40px; padding-top: 0; padding-left: 28px; }
	.process::before, .process::after { width: 2px; height: 100%; }
	.process::after { transform: scaleY(var(--p, 0)); transform-origin: top; }
}

/* ---------- Homepage: about teaser ---------- */

.about-teaser { padding-bottom: var(--space-section); }
.about-teaser__in { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-teaser__in > div { display: grid; gap: 24px; }
.about-teaser__mark { width: min(100%, 220px); justify-self: center; }
@media (max-width: 800px) {
	.about-teaser__in { grid-template-columns: 1fr; }
	.about-teaser__mark { width: 120px; justify-self: start; }
}

/* ---------- Footer: white marble with gold veining ---------- */

.site-foot { background: #f3f0e9 url("../img/marble-light.jpg") center / cover no-repeat; color: #000; margin-top: var(--space-section); position: relative; }
.ss-home .site-foot { margin-top: 0; }
.site-foot :focus-visible { outline-color: #000; }
.cta { display: grid; grid-template-columns: 7fr 5fr; gap: 32px clamp(32px, 6vw, 96px); align-items: end; padding-block: clamp(72px, 10vw, 144px) clamp(56px, 8vw, 104px); }
.cta__title { font-size: clamp(2.125rem, 1.1rem + 4.4vw, 4.75rem); line-height: 1.04; text-wrap: balance; }
.cta__side { display: grid; gap: 24px; font-size: var(--fs-lede); line-height: 1.45; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-foot__in { display: grid; grid-template-columns: auto 1fr auto; gap: 32px 48px; align-items: start; padding-block: 40px 48px; position: relative; }
.site-foot__in::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--line-ink); }
.site-foot__brand img { height: 52px; width: auto; }
.site-foot__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.site-foot__nav a, .site-foot__contact a { text-decoration: none; font-weight: 600; border-bottom: 1.5px solid transparent; transition: border-color 0.2s; }
.site-foot__nav a:hover, .site-foot__contact a:hover { border-bottom-color: #000; }
.site-foot__contact { text-align: right; }
.site-foot__legal { grid-column: 1 / -1; font-size: var(--fs-small); color: rgba(0, 0, 0, 0.66); }
@media (max-width: 800px) {
	.cta { grid-template-columns: 1fr; }
	.site-foot__in { grid-template-columns: 1fr; }
	.site-foot__nav { justify-content: flex-start; }
	.site-foot__contact { text-align: left; }
}

/* ---------- Inner page header ---------- */

.page-head { padding-block: calc(var(--head-h) + clamp(56px, 9vw, 128px)) clamp(40px, 6vw, 80px); display: grid; gap: clamp(20px, 3vw, 36px); }
.page-head__title { font-size: clamp(2.25rem, 1rem + 5.6vw, 6rem); line-height: 1.04; text-wrap: balance; overflow-wrap: anywhere; }
.page-head__lede { font-size: var(--fs-lede); line-height: 1.5; max-width: 32em; text-wrap: pretty; animation: fade 0.9s ease both 0.5s; }

/* ---------- Portfolio ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 15px; background: rgba(16, 17, 20, 0.4); border: 1px solid var(--line); color: var(--chalk); font-weight: 500; letter-spacing: 0.02em; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #000; }
.filters__status { min-height: 1.6em; margin-top: 16px; color: var(--ash); font-size: var(--fs-small); }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 7vw, 104px) clamp(24px, 4vw, 64px); margin-top: clamp(24px, 4vw, 48px); }
.work-card[hidden] { display: none; }
.work-card__link { display: grid; gap: 24px; text-decoration: none; perspective: 1400px; }
.work-card__media { background: var(--panel); padding: clamp(20px, 3.5vw, 48px); transition: background-color 0.3s; }
.work-card__link:hover .work-card__media { background: rgba(16, 17, 20, 0.78); }
.work-card__text { display: grid; gap: 12px; }
.work-card__title { font-size: clamp(1.375rem, 1rem + 1.3vw, 2rem); line-height: 1.12; transition: color 0.25s; }
.work-card__link:hover .work-card__title { color: var(--gold); }
.work-card__summary { color: var(--ash); max-width: 30em; }
@media (min-width: 801px) {
	.work-card:nth-child(even of :not([hidden])) { margin-top: clamp(48px, 8vw, 120px); }
}
@media (max-width: 800px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- Case study ---------- */

.case__back { animation: fade 0.6s ease both; }
.case__media { max-width: 1200px; }
.case__media .cover { animation: fade 1s ease both 0.3s; }
.case__media .plate { aspect-ratio: 16 / 7; padding: 6% 22%; }
@media (max-width: 800px) { .case__media .plate { aspect-ratio: 16 / 10; padding: 8% 12%; } }
.case__media .plate--type { padding: 6% 10%; }
.case__body { display: grid; grid-template-columns: 4fr 7fr; gap: 48px clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(56px, 8vw, 112px); }
.case__facts { position: sticky; top: calc(var(--head-h) + 32px); display: grid; gap: 28px; }
.case__facts dl > div { padding: 14px 0; border-top: 1px solid var(--line); }
.case__facts dl > div:last-child { border-bottom: 1px solid var(--line); }
.case__facts dt { font-size: var(--fs-small); color: var(--ash); }
.case__facts dd { font-weight: 600; }
@media (max-width: 800px) {
	.case__body { grid-template-columns: 1fr; }
	.case__facts { position: static; }
}

.next { margin-top: var(--space-section); }
.next__link { display: grid; gap: 10px; padding-block: clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); text-decoration: none; }
.next__label { color: var(--ash); }
.next__title { font-size: clamp(2rem, 1rem + 4.4vw, 4.75rem); line-height: 1.04; transition: transform 0.5s var(--ease); overflow-wrap: anywhere; }
.next__link:hover .next__title { transform: translateX(16px); }

/* ---------- Prose ---------- */

.prose { max-width: 40em; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-weight: 600; text-transform: uppercase; letter-spacing: 0.035em; font-size: var(--fs-item); line-height: 1.2; margin-top: 2em; }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--chalk); }
.prose ul { display: grid; }
.prose ul li { padding: 14px 0 14px 28px; border-top: 1px solid var(--line); position: relative; }
.prose ul li:last-child { border-bottom: 1px solid var(--line); }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 12px; height: 2px; background: var(--gold); }
.prose a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.25em; }
.prose a:hover { color: var(--gold); }
.prose strong { font-weight: 600; }
.prose--large p { font-size: var(--fs-lede); line-height: 1.55; }
.prose--page { font-size: 1.0625rem; max-width: 46em; padding: clamp(24px, 4vw, 56px); }
.prose--page p { color: #dedbd1; }

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

.service { display: grid; grid-template-columns: 5fr 7fr; gap: 24px clamp(32px, 6vw, 96px); padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); align-items: start; }
.service:last-child { border-bottom: 1px solid var(--line); }
.service__name { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.5rem); line-height: 1.1; }
.service__body { display: grid; gap: 28px; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.ticks li { padding: 12px 0 12px 26px; border-top: 1px solid var(--line); color: var(--ash); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.35em; width: 12px; height: 2px; background: var(--gold); }
@media (max-width: 800px) {
	.service { grid-template-columns: 1fr; }
	.ticks { grid-template-columns: 1fr; }
}

.package-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.package-grid > li { display: grid; }
.package { display: grid; gap: 16px; align-content: start; height: 100%; min-height: 300px; padding: 28px 24px 24px; background: var(--panel); text-decoration: none; transition: transform 0.45s var(--ease), background-color 0.3s; }
.package:hover, .package:focus-visible { transform: translateY(-8px); background: rgba(16, 17, 20, 0.8); }
.package__name { font-weight: 600; text-transform: uppercase; letter-spacing: 0.035em; font-size: var(--fs-item); line-height: 1.15; }
.package p { color: var(--ash); }
.package__go { align-self: end; margin-top: auto; font-weight: 600; color: var(--gold); font-size: var(--fs-small); }
@media (max-width: 1000px) { .package-grid { grid-template-columns: 1fr 1fr; } .package { min-height: 220px; } }
@media (max-width: 520px) { .package-grid { grid-template-columns: 1fr; } .package { min-height: 0; } }

/* ---------- About page ---------- */

.about { display: grid; grid-template-columns: 8fr 3fr; gap: 48px clamp(32px, 8vw, 128px); align-items: start; }
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }
.about__clients { display: grid; gap: 12px; }
.about__clients li { border-top: 1px solid var(--line); }
.about__clients li:last-child { border-bottom: 1px solid var(--line); }
.about__clients a { display: block; padding: 12px 0; text-decoration: none; font-weight: 500; transition: color 0.2s, padding-left 0.3s var(--ease); }
.about__clients a:hover { color: var(--gold); padding-left: 8px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px clamp(24px, 4vw, 64px); margin-top: clamp(40px, 6vw, 72px); }
.trio li { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 2px solid var(--gold); }
.trio p { color: var(--ash); }
.working { display: grid; grid-template-columns: 5fr 7fr; gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.working__list > div { display: grid; grid-template-columns: 2fr 3fr; gap: 8px 32px; padding: 20px 0; border-top: 1px solid var(--line); }
.working__list > div:last-child { border-bottom: 1px solid var(--line); }
.working__list dt { font-weight: 600; }
.working__list dd { color: var(--ash); }
@media (max-width: 900px) {
	.about, .working { grid-template-columns: 1fr; }
	.trio { grid-template-columns: 1fr; }
	.working__list > div { grid-template-columns: 1fr; }
}

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

.contact__direct { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.contact__option { display: grid; gap: 8px; padding: clamp(24px, 4vw, 44px); background: var(--panel); text-decoration: none; color: var(--ash); transition: transform 0.45s var(--ease), background-color 0.3s; }
.contact__option:hover { transform: translateY(-6px); background: rgba(16, 17, 20, 0.8); }
.contact__option-title { font-weight: 600; text-transform: uppercase; letter-spacing: 0.035em; font-size: clamp(1.375rem, 1rem + 1.4vw, 2.125rem); line-height: 1.12; color: var(--chalk); }
@media (max-width: 1000px) { .contact__direct { grid-template-columns: 1fr; } }

.brief { margin-top: var(--space-section); }
.brief__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(32px, 5vw, 56px); }
.brief__form { display: grid; gap: 40px; }
.brief legend { font-weight: 600; margin-bottom: 14px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; z-index: 1; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: rgba(16, 17, 20, 0.4); border: 1px solid var(--line); font-weight: 500; transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.2s var(--ease); }
.choice:hover span { border-color: var(--gold); }
.choice:active span { transform: scale(0.96); }
.choice input:checked + span { background: var(--gold); border-color: var(--gold); color: #000; }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-weight: 600; }
.field input, .field textarea { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 14px 16px; color: var(--chalk); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }
.brief__preview { position: sticky; top: calc(var(--head-h) + 24px); display: grid; gap: 16px; background: #f3f0e9 url("../img/marble-light.jpg") center / cover; color: #000; padding: clamp(20px, 3vw, 36px); }
.brief__preview .h-small { color: rgba(0, 0, 0, 0.66); }
.brief__text { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 14em; }
.brief__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.brief__preview .btn--gold { background: #000; color: var(--chalk); }
.brief__preview .btn--gold::before { background: var(--ink-4); }
.brief__preview .btn--line { background: transparent; color: #000; border-color: #000; }
.brief__preview .btn--line::before { background: #000; }
.brief__preview .btn--line:hover { color: var(--chalk); border-color: #000; }
.brief__preview :focus-visible { outline-color: #000; }
.brief__note { font-size: var(--fs-small); color: rgba(0, 0, 0, 0.7); }
@media (max-width: 900px) {
	.brief__grid { grid-template-columns: 1fr; }
	.brief__preview { position: static; }
	.fields { grid-template-columns: 1fr; }
}

.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page to page transitions ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.25s ease both vt-out; }
::view-transition-new(root) { animation: 0.4s ease both vt-in; }
::view-transition-group(*) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.1, 1); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

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

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.stack__item { position: static; }
	.process__step { opacity: 1; }
	.progress { display: none; }
	.cursor { display: none; }
	@view-transition { navigation: none; }
}
