/* ==========================================================================
   WhatADigitizing: main stylesheet
   Obsidian black, metallic gold and warm ivory carry the identity.
   Emerald, magenta, cyan, red and violet appear only as thread accents.
   ========================================================================== */

/* ---- Tokens ---- */
:root {
	--obsidian: #101114;
	--gold: #D4AF62;
	--ivory: #F5F1E8;
	--graphite: #252831;
	--emerald: #167C68;
	--magenta: #D95C91;
	--cyan: #2FB5C7;
	--red: #C9423A;
	--violet: #7B61C9;

	--gold-light: #F0DDA0;
	--gold-deep: #9C7A32;
	--gold-ink: #7A5E1F;          /* gold dark enough to read on ivory */
	--ivory-dim: rgba(245, 241, 232, .76);
	--line: rgba(212, 175, 98, .34);
	--line-ink: rgba(16, 17, 20, .28);

	--font-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
	--font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--max: 1240px;
	--header-h: 76px;
	--radius: 10px;

	/* Denim twill, drawn in CSS so there is no image to download */
	--denim:
		repeating-linear-gradient(35deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 4px),
		repeating-linear-gradient(-55deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 5px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
	margin: 0;
	background-color: var(--obsidian);
	background-image: var(--denim);
	color: var(--ivory);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: var(--gold-light); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

::selection { background: var(--gold); color: var(--obsidian); }

ul, ol { padding: 0; margin: 0; list-style: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wad-skip {
	position: absolute;
	left: 1rem; top: -4rem;
	z-index: 200;
	padding: .75rem 1rem;
	background: var(--gold);
	color: var(--obsidian);
	font-weight: 700;
	border-radius: 4px;
	text-decoration: none;
}
.wad-skip:focus { top: 1rem; }

/* ---- Layout ---- */
.wad-container {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wad-narrow { max-width: 820px; }
.wad-main { min-height: 60vh; }

.wad-section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.wad-section--ivory { background: var(--ivory); color: var(--obsidian); }
.wad-section--graphite { background: var(--graphite); background-image: var(--denim); }

.wad-section__head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.wad-section__more { margin: clamp(2rem, 4vw, 3rem) 0 0; }

/* ---- Type ---- */
.wad-h1, .wad-h2, .wad-h3, .wad-hero__title, .wad-service__title, .wad-step__title, .wad-tile__title {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: -.01em;
	line-height: 1.1;
	margin: 0;
	text-wrap: balance;
}
.wad-h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.wad-h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
.wad-h3 { font-size: 1.5rem; line-height: 1.2; }

.wad-lead { margin: 1rem 0 0; font-size: 1.15rem; color: var(--ivory-dim); max-width: 56ch; }
.wad-section--ivory .wad-lead { color: rgba(16, 17, 20, .76); }
.wad-meta { margin: 0 0 .5rem; font-size: .9rem; color: var(--ivory-dim); }
.wad-meta a { color: var(--gold); }
.wad-gold { color: var(--gold); }

/* ---- Buttons: every button carries a stitched inner edge ---- */
.wad-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 1.7rem;
	border: 0;
	border-radius: 4px;
	font: 600 .95rem/1 var(--font-body);
	letter-spacing: .02em;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, filter .2s ease, background-color .2s ease;
}
.wad-btn::after {
	content: "";
	position: absolute;
	inset: 4px;
	border: 1px dashed currentColor;
	border-radius: 2px;
	opacity: .38;
	pointer-events: none;
}
.wad-btn--gold {
	background: linear-gradient(135deg, #F0DDA0 0%, #D4AF62 46%, #B38E42 100%);
	color: var(--obsidian);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 26px -12px rgba(212, 175, 98, .7);
}
.wad-btn--gold:hover { color: var(--obsidian); filter: brightness(1.07); transform: translateY(-1px); }
.wad-btn--ghost { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.wad-btn--ghost:hover { background: rgba(212, 175, 98, .12); color: var(--gold-light); }
.wad-section--ivory .wad-btn--ghost { color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--gold-ink); }
.wad-btn--sm { padding: .75rem 1.15rem; font-size: .88rem; }

.wad-link {
	color: var(--gold);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-style: dashed;
	text-decoration-thickness: 1.5px;
	text-underline-offset: .35em;
}
.wad-section--ivory .wad-link { color: var(--gold-ink); }

/* ---- Header ---- */
.wad-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(16, 17, 20, .86);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px dashed var(--line);
}
.admin-bar .wad-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .wad-header { top: 46px; } }

.wad-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--header-h);
}

.wad-brand {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	color: var(--ivory);
	text-decoration: none;
	flex: none;
}
.wad-brand:hover { color: var(--ivory); }
.wad-brand__mark { width: 36px; height: 36px; flex: none; }
.wad-brand__logo { max-height: 52px; width: auto; }
.wad-brand__text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; }

.wad-nav { margin-inline: auto; }
.wad-menu { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.wad-menu a {
	display: block;
	white-space: nowrap;
	padding: .5rem 0;
	color: var(--ivory);
	font-size: .95rem;
	font-weight: 500;
	text-decoration: none;
}
.wad-menu a:hover,
.wad-menu .current-menu-item > a,
.wad-menu .current_page_item > a { color: var(--gold); }
.wad-menu .menu-item-has-children { position: relative; }
.wad-menu .sub-menu {
	position: absolute;
	left: -1rem; top: 100%;
	min-width: 14rem;
	padding: .6rem 1rem;
	background: var(--obsidian);
	border: 1px dashed var(--line);
	border-radius: 8px;
	display: none;
}
.wad-menu .menu-item-has-children:hover > .sub-menu,
.wad-menu .menu-item-has-children:focus-within > .sub-menu { display: block; }

.wad-header__actions { display: flex; align-items: center; gap: .35rem; flex: none; }
.wad-header__cta { margin-left: .6rem; }

.wad-icon-link {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 42px; height: 42px;
	color: var(--ivory);
	border-radius: 50%;
}
.wad-icon-link:hover { color: var(--gold); }
.wad-cart__count {
	position: absolute;
	top: 3px; right: 1px;
	min-width: 18px; height: 18px;
	padding: 0 4px;
	display: grid; place-items: center;
	background: var(--magenta);
	color: #fff;
	font: 700 .68rem/1 var(--font-body);
	border-radius: 9px;
}
.wad-cart__count.is-empty { display: none; }

.wad-nav-toggle { display: none; }

@media (max-width: 1240px) {
	.wad-header__inner { gap: .75rem; }
	.wad-header__actions { margin-left: auto; }
	.wad-header__cta { display: none; }

	.wad-nav-toggle {
		display: inline-grid;
		place-items: center;
		order: 3;
		width: 44px; height: 44px;
		padding: 0;
		background: transparent;
		border: 1px solid var(--line);
		border-radius: 8px;
		color: var(--ivory);
		cursor: pointer;
	}
	.wad-nav-toggle__bars,
	.wad-nav-toggle__bars::before,
	.wad-nav-toggle__bars::after {
		display: block;
		width: 18px; height: 1.5px;
		background: currentColor;
		content: "";
		transition: transform .2s ease;
	}
	.wad-nav-toggle__bars { position: relative; }
	.wad-nav-toggle__bars::before { position: absolute; top: -6px; }
	.wad-nav-toggle__bars::after { position: absolute; top: 6px; }
	.wad-nav-toggle[aria-expanded="true"] .wad-nav-toggle__bars { background: transparent; }
	.wad-nav-toggle[aria-expanded="true"] .wad-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
	.wad-nav-toggle[aria-expanded="true"] .wad-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.wad-nav {
		position: absolute;
		left: 0; right: 0; top: 100%;
		margin: 0;
		padding: 1rem var(--gutter) 1.5rem;
		background: var(--obsidian);
		border-bottom: 1px dashed var(--line);
		display: none;
	}
	.wad-nav.is-open { display: block; }
	.wad-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.wad-menu a { padding: .9rem 0; border-bottom: 1px dashed rgba(212, 175, 98, .18); font-size: 1.05rem; }
	.wad-menu .sub-menu { position: static; display: block; border: 0; padding: 0 0 0 1rem; min-width: 0; }
}

/* ---- Hero ---- */
.wad-hero {
	position: relative;
	padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 7rem);
	background:
		radial-gradient(55% 70% at 76% 42%, rgba(212, 175, 98, .17), transparent 70%),
		radial-gradient(40% 50% at 8% 100%, rgba(22, 124, 104, .12), transparent 70%);
	overflow: hidden;
}
.wad-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4.5rem);
}
.wad-hero__title {
	font-size: clamp(2.5rem, 5.2vw, 4.7rem);
	line-height: 1.04;
}
.wad-hero__text { margin: 1.6rem 0 0; max-width: 52ch; font-size: 1.15rem; color: var(--ivory-dim); }
.wad-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2.2rem 0 0; }

.wad-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.4rem; }
.wad-chips li {
	padding: .35rem .8rem;
	border: 1px dashed var(--line);
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--ivory-dim);
}

.wad-hero__visual { display: grid; place-items: center; }
.wad-emblem { position: relative; width: min(100%, 470px); perspective: 1100px; }
.wad-emblem__svg,
.wad-emblem__img { display: block; width: 100%; }
.wad-emblem__ring-text { font-family: var(--font-display); font-style: italic; }
.wad-emblem__ring-sub { font-family: var(--font-body); font-weight: 600; }

/* The one orchestrated moment: the emblem is stitched on page load. */
.wad-draw {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: wad-sew var(--t, 2s) cubic-bezier(.6, 0, .3, 1) var(--d, 0s) forwards;
}
@keyframes wad-sew { to { stroke-dashoffset: 0; } }

@media (max-width: 860px) {
	.wad-hero__grid { grid-template-columns: 1fr; }
	.wad-hero__visual { order: -1; }
	.wad-emblem { width: min(78%, 340px); }
}

/* ---- Services (ivory) ---- */
.wad-services { border-top: 1px dashed var(--gold-ink); }
.wad-services__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: start;
}
.wad-services__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.wad-section--ivory .wad-h2 { color: var(--obsidian); }

.wad-service {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: .5rem 2rem;
	align-items: end;
	padding-block: 1.9rem;
	border-top: 1px dashed var(--line-ink);
}
.wad-service:last-child { border-bottom: 1px dashed var(--line-ink); }
.wad-service__title { font-size: 1.65rem; margin-bottom: .6rem; color: var(--obsidian); }
.wad-service__body p { margin: 0; max-width: 54ch; }
.wad-service__body .wad-service__meta { margin-top: .75rem; font-size: .92rem; color: var(--gold-ink); font-weight: 600; }

@media (max-width: 900px) {
	.wad-services__grid { grid-template-columns: 1fr; }
	.wad-services__intro { position: static; }
	.wad-service { grid-template-columns: 1fr; align-items: start; }
}

/* ---- Product / artwork tiles ---- */
.wad-grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.wad-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1050px) { .wad-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .wad-grid--4 { grid-template-columns: 1fr; } }

.wad-tile {
	position: relative;
	background: var(--graphite);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .9);
}
.wad-tile::after {
	content: "";
	position: absolute;
	inset: 7px;
	border: 1px dashed rgba(212, 175, 98, .38);
	border-radius: 6px;
	pointer-events: none;
}
.wad-tile__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #181a20; }
.wad-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.wad-tile__body { padding: 1.1rem 1.3rem 1.4rem; }
.wad-tile__title { font-size: 1.2rem; line-height: 1.2; }
.wad-tile__title a { color: var(--ivory); text-decoration: none; }
.wad-tile__title a:hover { color: var(--gold); }
.wad-tile__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin: .65rem 0 0; }
.wad-tile__price { color: var(--gold); font-weight: 700; }
.wad-tile__price del { opacity: .55; font-weight: 500; }
.wad-tile__price ins { text-decoration: none; }

.wad-loop-badge,
.wad-badge {
	display: inline-block;
	padding: .2rem .65rem;
	border: 1px dashed var(--emerald);
	border-radius: 999px;
	color: #7fd1bf;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .03em;
}
.wad-badge { margin: 0 0 1rem; }

.wad-admin-note {
	margin: 0 0 1.5rem;
	padding: .8rem 1rem;
	border: 1px dashed var(--magenta);
	border-radius: 6px;
	font-size: .92rem;
	color: var(--ivory);
}

/* ---- Portfolio masonry ---- */
.wad-masonry { column-count: 3; column-gap: clamp(1rem, 2vw, 1.6rem); }
@media (max-width: 900px) { .wad-masonry { column-count: 2; } }
@media (max-width: 540px) { .wad-masonry { column-count: 1; } }

.wad-work { break-inside: avoid; margin-bottom: clamp(1rem, 2vw, 1.6rem); }
.wad-work__link { display: block; color: var(--ivory); text-decoration: none; }
.wad-work__media {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: #181a20;
	aspect-ratio: 4 / 5;
	box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .9);
}
.wad-work:nth-child(3n + 2) .wad-work__media { aspect-ratio: 1 / 1; }
.wad-work:nth-child(3n) .wad-work__media { aspect-ratio: 3 / 4; }
.wad-work__media::after {
	content: "";
	position: absolute;
	inset: 7px;
	border: 1px dashed rgba(212, 175, 98, .45);
	border-radius: 6px;
	pointer-events: none;
}
.wad-work__media img { width: 100%; height: 100%; object-fit: cover; }
.wad-work__title { display: block; margin-top: .75rem; font-family: var(--font-display); font-size: 1.2rem; }
.wad-work__link:hover .wad-work__title { color: var(--gold); }

.wad-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.wad-filter a {
	display: inline-block;
	padding: .45rem 1rem;
	border: 1px dashed var(--line);
	border-radius: 999px;
	color: var(--ivory);
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
}
.wad-filter a:hover { border-color: var(--gold); color: var(--gold); }
.wad-filter a[aria-current] { background: var(--gold); border-style: solid; border-color: var(--gold); color: var(--obsidian); }

.wad-project { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-block: 2.5rem 4rem; }
.wad-project__media img { width: 100%; border-radius: var(--radius); box-shadow: 0 30px 60px -30px #000; }
.wad-project__body .wad-prose { margin: 1.25rem 0 1.75rem; }
@media (max-width: 860px) { .wad-project { grid-template-columns: 1fr; } }

/* ---- Process ---- */
.wad-process__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 6vw, 5rem);
}
.wad-process__head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
@media (max-width: 900px) {
	.wad-process__grid { grid-template-columns: 1fr; }
	.wad-process__head { position: static; }
}

.wad-steps { position: relative; display: grid; gap: 2.5rem; }
.wad-steps::before,
.wad-steps::after {
	content: "";
	position: absolute;
	left: 23px;
	top: 24px;
	bottom: 24px;
	border-left: 2px dashed var(--line);
}
.wad-steps::after {
	border-left-color: var(--gold);
	transform-origin: top;
	transition: transform 1.8s cubic-bezier(.5, 0, .2, 1);
}
.js .wad-steps:not(.is-in)::after { transform: scaleY(0); }

.wad-step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1.4rem; z-index: 1; }
.wad-step__n {
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	background: var(--obsidian);
	border: 1.5px solid var(--gold);
	border-radius: 50%;
	outline: 1px dashed rgba(212, 175, 98, .5);
	outline-offset: -6px;
	font-family: var(--font-display);
	font-size: 1.25rem;
	color: var(--gold);
}
.wad-step__title { font-size: 1.45rem; margin: .5rem 0 .4rem; }
.wad-step p { margin: 0; color: var(--ivory-dim); max-width: 50ch; }

/* ---- Closing call to action ---- */
.wad-cta { padding: 0 0 clamp(4rem, 8vw, 7rem); }
.wad-cta__inner {
	max-width: calc(var(--max) - 2 * var(--gutter));
	padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
	text-align: center;
	background:
		radial-gradient(60% 90% at 50% 0%, rgba(212, 175, 98, .16), transparent 70%),
		var(--denim),
		#161820;
	border: 2px dashed var(--gold);
	border-radius: 16px;
	outline: 1px solid var(--line);
	outline-offset: 6px;
}
.wad-cta .wad-lead { margin-inline: auto; }
.wad-cta p:last-child { margin: 2rem 0 0; }

/* ---- Footer ---- */
.wad-footer {
	background: #0b0c0e;
	border-top: 1px solid var(--gold-deep);
	padding-top: clamp(3rem, 6vw, 5rem);
	font-size: .95rem;
}
.wad-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.wad-footer__tagline { margin: 1.1rem 0 0; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--gold); max-width: 24ch; }
.wad-footer__note { margin: 1rem 0 0; color: var(--ivory-dim); max-width: 38ch; }
.wad-footer__title { margin: 0 0 1rem; font: 700 .95rem/1.2 var(--font-body); color: var(--gold); letter-spacing: .02em; }
.wad-footer__menu li + li { margin-top: .55rem; }
.wad-footer__menu a { color: var(--ivory-dim); text-decoration: none; }
.wad-footer__menu a:hover { color: var(--gold); }
.wad-social { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: 1.25rem; }
.wad-social a { color: var(--ivory); font-weight: 600; }
.wad-footer__base { margin-top: 3rem; padding-block: 1.4rem 2rem; border-top: 1px dashed rgba(212, 175, 98, .22); }
.wad-footer__base p { margin: 0; font-size: .85rem; color: rgba(245, 241, 232, .55); }
@media (max-width: 760px) { .wad-footer__grid { grid-template-columns: 1fr; } }

/* ---- Pages, posts, prose ---- */
.wad-page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; margin-bottom: 2.5rem; border-bottom: 1px dashed var(--line); }
.wad-page-head .wad-lead { max-width: 60ch; }
.wad-page-head .wad-prose { margin-top: 1rem; }
.wad-main > .wad-container:last-child,
.wad-main > .wad-container:only-child { padding-bottom: clamp(3rem, 7vw, 6rem); }

.wad-prose { max-width: 68ch; }
.wad-prose > * + * { margin-top: 1.25em; }
.wad-prose h2, .wad-prose h3, .wad-prose h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin-top: 2em; }
.wad-prose h2 { font-size: 2rem; }
.wad-prose h3 { font-size: 1.5rem; }
.wad-prose ul { list-style: disc; padding-left: 1.4em; }
.wad-prose ol { list-style: decimal; padding-left: 1.4em; }
.wad-prose li + li { margin-top: .4em; }
.wad-prose blockquote { margin-inline: 0; padding: .25rem 0 .25rem 1.4rem; border-left: 2px dashed var(--gold); font-family: var(--font-display); font-size: 1.3rem; font-style: italic; }
.wad-prose img { border-radius: 8px; }
.wad-prose table { width: 100%; border-collapse: collapse; }
.wad-prose th, .wad-prose td { padding: .7rem .5rem; border-bottom: 1px dashed var(--line); text-align: left; }
.wad-prose hr { border: 0; border-top: 1px dashed var(--line); }
.wad-prose code { padding: .1em .4em; background: var(--graphite); border-radius: 4px; font-size: .9em; }
.wad-prose pre { padding: 1rem; overflow-x: auto; background: var(--graphite); border-radius: 8px; }

.wad-article__image { margin: 0 0 2.5rem; }
.wad-article__image img { width: 100%; border-radius: var(--radius); }

.wad-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.wad-post__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.1rem; }
.wad-post .wad-h3 a { color: var(--ivory); text-decoration: none; }
.wad-post .wad-h3 a:hover { color: var(--gold); }
.wad-post__excerpt { color: var(--ivory-dim); }
.wad-post__excerpt p { margin: .6rem 0 0; }
@media (max-width: 700px) { .wad-posts { grid-template-columns: 1fr; } }

.wad-empty { padding: 2rem 0 4rem; max-width: 50ch; }
.wad-404 { text-align: left; padding-block: clamp(3rem, 8vw, 6rem); }
.wad-404 .wad-search { margin-top: 2rem; }

.navigation.pagination,
.post-navigation { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.page-numbers {
	display: inline-block;
	padding: .45rem .9rem;
	border: 1px dashed var(--line);
	border-radius: 6px;
	color: var(--ivory);
	text-decoration: none;
}
.page-numbers.current { background: var(--gold); border-style: solid; border-color: var(--gold); color: var(--obsidian); }
a.page-numbers:hover { border-color: var(--gold); color: var(--gold); }

/* ---- Forms ---- */
.wad-form label, .wad-search label { display: block; margin-bottom: .4rem; font-size: .92rem; font-weight: 600; }
.wad-form p { margin: 0 0 1.25rem; }
.wad-form small { display: block; margin-top: .4rem; color: var(--ivory-dim); }
.wad-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
@media (max-width: 640px) { .wad-form__row { grid-template-columns: 1fr; } }
.wad-form__trap { position: absolute !important; left: -9999px !important; }
.wad-form__note { margin: 1rem 0 0 !important; font-size: .9rem; color: var(--ivory-dim); }

input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"],
input[type="password"], input[type="search"], input[type="date"], select, textarea {
	width: 100%;
	padding: .85rem 1rem;
	background: #1a1c23;
	border: 1px solid rgba(212, 175, 98, .38);
	border-radius: 6px;
	color: var(--ivory);
	font: inherit;
	line-height: 1.4;
}
input[type="file"] { width: 100%; padding: .7rem; border: 1px dashed var(--line); border-radius: 6px; color: var(--ivory-dim); font: inherit; background: transparent; }
::placeholder { color: rgba(245, 241, 232, .45); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
textarea { resize: vertical; min-height: 9rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(-45deg, transparent 50%, var(--gold) 50%); background-position: calc(100% - 1.25rem) 55%, calc(100% - .9rem) 55%; background-size: .4rem .4rem; background-repeat: no-repeat; padding-right: 2.5rem; }

.wad-order__form { max-width: 760px; padding-bottom: clamp(3rem, 7vw, 6rem); }
.wad-search { display: flex; gap: .6rem; align-items: stretch; margin-top: 1.25rem; max-width: 520px; }
.wad-search label { margin: 0; }
.wad-search input { flex: 1; }

.wad-notice { margin: 0 0 2rem; padding: 1rem 1.25rem; border-radius: 6px; background: rgba(245, 241, 232, .06); border-left: 3px solid var(--emerald); }
.wad-notice--error { border-left-color: var(--magenta); }
.wad-notice strong { display: block; margin-bottom: .2rem; }

/* ---- Comments ---- */
.wad-comments { margin-top: 4rem; }
.wad-comments__list { margin: 1.5rem 0; }
.wad-comments__list .comment-body { padding: 1.25rem 0; border-top: 1px dashed var(--line); }
.wad-comments__list .avatar { border-radius: 50%; float: left; margin-right: 1rem; }

/* ---- WordPress core alignments ---- */
.alignleft { float: left; margin: .4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { max-width: var(--max); }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { margin-top: .5rem; font-size: .88rem; color: var(--ivory-dim); }
.wp-block-image img { height: auto; }

/* ---- Reduced motion (extended further down in "Motion and depth") ---- */
@media (prefers-reduced-motion: reduce) {
	.wad-draw { animation: none; stroke-dashoffset: 0; }
	.wad-emblem__svg, .wad-emblem__img { transition: none; transform: none; }
	.wad-steps::after { transition: none; }
	.js .wad-steps:not(.is-in)::after { transform: none; }
	.wad-btn { transition: none; }
	html { scroll-behavior: auto; }
}


/* ==========================================================================
   Motion and depth
   Everything below is progressive: it is switched off for visitors who prefer
   reduced motion and when the Customizer motion option is off (.wad-motion-off).
   ========================================================================== */

/* Film grain over the whole page: static, costs nothing at runtime */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 999;
	pointer-events: none;
	opacity: .045;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

/* Header: drops in, tightens on scroll, carries a scroll-progress thread */
.wad-header { animation: wad-drop .9s cubic-bezier(.2, .8, .2, 1) both; transition: background-color .3s ease, box-shadow .3s ease; }
.wad-header__inner { transition: min-height .3s ease; }
.wad-header.is-scrolled { background: rgba(10, 11, 13, .92); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9); }
.wad-header.is-scrolled .wad-header__inner { min-height: 62px; }
.wad-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.wad-progress span {
	display: block;
	height: 100%;
	transform-origin: left;
	transform: scaleX(var(--p, 0));
	background: linear-gradient(90deg, var(--gold-deep), var(--gold-light) 60%, var(--magenta));
	box-shadow: 0 0 12px rgba(212, 175, 98, .7);
}
@keyframes wad-drop { from { transform: translateY(-100%); } to { transform: none; } }

/* Hero: pointer spotlight, thread canvas, staged entrance */
.wad-hero {
	background:
		radial-gradient(520px circle at var(--mx, 76%) var(--my, 42%), rgba(240, 221, 160, .16), transparent 62%),
		radial-gradient(55% 70% at 76% 42%, rgba(212, 175, 98, .15), transparent 70%),
		radial-gradient(40% 50% at 8% 100%, rgba(22, 124, 104, .14), transparent 70%);
}
.wad-hero__fx { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }

.wad-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.wad-line > span {
	display: inline-block;
	animation: wad-rise 1.1s cubic-bezier(.2, .8, .2, 1) both;
	animation-delay: calc(.2s + var(--i, 0) * .17s);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.wad-line > span {
		background: linear-gradient(100deg, #F5F1E8 0 40%, #F7E7B0 48%, #D4AF62 52%, #F5F1E8 62% 100%) 100% 0 / 260% 100%;
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
		color: transparent;
		animation:
			wad-rise 1.1s cubic-bezier(.2, .8, .2, 1) both,
			wad-foil 8s ease-in-out infinite;
		animation-delay: calc(.2s + var(--i, 0) * .17s), calc(2.4s + var(--i, 0) * .35s);
	}
}
@keyframes wad-rise { from { transform: translateY(108%) rotate(2.5deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wad-foil { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0 0; } }

.wad-hero__text, .wad-hero__actions, .wad-chips { animation: wad-fade-up 1s cubic-bezier(.2, .8, .2, 1) both; }
.wad-hero__text { animation-delay: .85s; }
.wad-hero__actions { animation-delay: 1.0s; }
.wad-chips { animation-delay: 1.15s; }
@keyframes wad-fade-up { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }

/* The 3D stage: the patch and the floating objects tilt together and separate by depth */
.wad-stage {
	position: relative;
	transform-style: preserve-3d;
	transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform .3s ease-out;
	will-change: transform;
}
.wad-stage::before {
	content: "";
	position: absolute;
	inset: -14%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(212, 175, 98, .3), rgba(212, 175, 98, .06) 62%, transparent 72%);
	transform: translateZ(-90px);
	animation: wad-breathe 7s ease-in-out infinite;
	pointer-events: none;
}
@keyframes wad-breathe { 0%, 100% { opacity: .65; scale: .96; } 50% { opacity: 1; scale: 1.04; } }
.wad-emblem__svg { filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55)); }
.wad-emblem__glare {
	position: absolute;
	inset: 1.5%;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .34), transparent 46%);
	mix-blend-mode: soft-light;
	opacity: 0;
	transition: opacity .3s ease;
	transform: translateZ(4px);
}
.wad-emblem.is-active .wad-emblem__glare { opacity: 1; }

.wad-floater { position: absolute; z-index: 2; pointer-events: none; animation: wad-bob var(--bob, 7s) ease-in-out infinite; animation-delay: var(--bd, 0s); }
.wad-floater__svg { display: block; width: 100%; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .55)); }
.wad-floater--a { --bob: 7s; left: -9%; top: 4%; width: 21%; transform: translateZ(120px) rotate(-16deg); }
.wad-floater--b { --bob: 8.5s; --bd: -2.5s; right: -7%; bottom: 3%; width: 19%; transform: translateZ(150px) rotate(14deg); }
.wad-floater--c { --bob: 6s; --bd: -1.2s; left: 1%; bottom: 8%; width: 14%; transform: translateZ(80px) rotate(10deg); }
@keyframes wad-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (max-width: 860px) { .wad-floater--c { display: none; } .wad-floater--a { left: -4%; } .wad-floater--b { right: -3%; } }

/* Emblem details: rotating stitch ring, rim sheen, travelling thread light, gleams */
.wad-spin { transform-origin: 200px 200px; animation: wad-spin 90s linear infinite; }
@keyframes wad-spin { to { transform: rotate(360deg); } }
.wad-sheen { transform: skewX(-20deg) translateX(-240px); animation: wad-sheen 6s ease-in-out 3.4s infinite; }
@keyframes wad-sheen { 0% { transform: skewX(-20deg) translateX(-240px); } 38%, 100% { transform: skewX(-20deg) translateX(700px); } }
.wad-glint { stroke-dasharray: .07 .93; opacity: 0; animation: wad-flow 3.6s linear var(--d, 4.6s) infinite backwards; }
@keyframes wad-flow { 0% { stroke-dashoffset: 0; opacity: 0; } 8%, 92% { opacity: .95; } 100% { stroke-dashoffset: -1; opacity: 0; } }
.wad-spark { transform: scale(0) rotate(0deg); animation: wad-spark 4.2s ease-in-out var(--d, 3s) infinite; }
@keyframes wad-spark { 0%, 70%, 100% { transform: scale(0) rotate(0deg); } 82% { transform: scale(1.1) rotate(45deg); } }

/* Marquee band */
.wad-marquee {
	position: relative;
	overflow: hidden;
	padding-block: 1.4rem;
	background: #0b0c0f;
	border-block: 1px dashed var(--line);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.wad-marquee__row + .wad-marquee__row { margin-top: .6rem; }
.wad-marquee__track { display: flex; width: max-content; animation: wad-marquee 55s linear infinite; }
.wad-marquee__track--reverse { animation-direction: reverse; animation-duration: 70s; }
.wad-marquee:hover .wad-marquee__track { animation-play-state: paused; }
.wad-marquee__list { display: flex; align-items: center; flex: none; }
.wad-marquee__list li { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; white-space: nowrap; }
.wad-marquee__row--solid li { font-family: var(--font-display); font-style: italic; font-size: clamp(1.7rem, 3.2vw, 2.6rem); color: var(--ivory); }
.wad-marquee__row--outline li { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.2rem); color: transparent; -webkit-text-stroke: 1px var(--gold); letter-spacing: .02em; }
.wad-marquee__sep { width: 44px; height: 12px; flex: none; color: var(--gold); }
.wad-marquee__row--outline .wad-marquee__sep { color: var(--magenta); }
@keyframes wad-marquee { to { transform: translateX(-50%); } }

/* Decorative slow-turning stitched rings behind sections */
.wad-services, .wad-process, .wad-artwork { position: relative; overflow: clip; }
.wad-services > .wad-container, .wad-process > .wad-container, .wad-artwork > .wad-container { position: relative; z-index: 1; }
.wad-services::before, .wad-process::before {
	content: "";
	position: absolute;
	width: clamp(380px, 52vw, 760px);
	aspect-ratio: 1;
	right: -14%;
	top: -18%;
	border: 2px dashed var(--gold-ink);
	border-radius: 50%;
	opacity: .22;
	animation: wad-spin-plain 140s linear infinite;
	pointer-events: none;
}
.wad-services::after, .wad-process::after {
	content: "";
	position: absolute;
	width: clamp(260px, 36vw, 520px);
	aspect-ratio: 1;
	right: -6%;
	top: 0;
	border: 1px solid var(--gold-ink);
	border-radius: 50%;
	opacity: .18;
	pointer-events: none;
}
.wad-process::before, .wad-process::after { border-color: var(--gold); right: auto; left: -16%; top: auto; bottom: -22%; opacity: .16; }
.wad-process::after { left: -8%; bottom: -8%; }
.wad-artwork::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(50% 60% at 20% 0%, rgba(22, 124, 104, .14), transparent 70%), radial-gradient(50% 60% at 90% 100%, rgba(217, 92, 145, .1), transparent 70%);
	pointer-events: none;
}
@keyframes wad-spin-plain { to { transform: rotate(360deg); } }

/* Scroll reveal: elements unfold out of depth. Applied by main.js, never without JS. */
.js [data-reveal]:not(.is-visible) { opacity: 0; }
.js [data-reveal].is-visible { animation: wad-unfold .95s cubic-bezier(.2, .75, .2, 1) backwards; animation-delay: var(--rd, 0s); }
@keyframes wad-unfold {
	from { opacity: 0; transform: perspective(900px) translate3d(0, 46px, -90px) rotateX(11deg); }
	to { opacity: 1; transform: perspective(900px) translate3d(0, 0, 0) rotateX(0); }
}
.wad-step.is-visible .wad-step__n { animation: wad-pop .8s cubic-bezier(.3, 1.5, .4, 1) backwards; animation-delay: calc(var(--rd, 0s) + .15s); }
@keyframes wad-pop { from { transform: scale(0) rotate(-120deg); } to { transform: none; } }

/* 3D tilt cards with moving light */
.wad-tile, .wad-work__media {
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
	will-change: transform;
}
.wad-tile::before, .wad-work__media::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .3), transparent 55%);
	mix-blend-mode: soft-light;
	opacity: 0;
	transition: opacity .3s ease;
}
.wad-tile.is-tilting, .wad-work__media.is-tilting {
	box-shadow: 0 44px 60px -28px rgba(0, 0, 0, .95), 0 0 0 1px rgba(212, 175, 98, .55), 0 0 40px -10px rgba(212, 175, 98, .35);
}
.wad-tile.is-tilting::before, .wad-work__media.is-tilting::before { opacity: 1; }
.wad-tile__media img, .wad-work__media img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.wad-tile.is-tilting .wad-tile__media img, .wad-work__media.is-tilting img { transform: scale(1.06); }

/* Buttons: light sweep and magnetic pull */
.wad-btn { overflow: hidden; translate: var(--mx-btn, 0px) var(--my-btn, 0px); }
.wad-btn::before {
	content: "";
	position: absolute;
	top: 0; bottom: 0;
	left: -60%;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: skewX(-20deg);
	transition: left .7s ease;
	pointer-events: none;
}
.wad-btn:hover::before { left: 130%; }
.wad-btn--gold::before { animation: wad-glint-btn 5s ease-in-out 2s infinite; }
@keyframes wad-glint-btn { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.wad-btn--ghost::before { background: linear-gradient(100deg, transparent, rgba(212, 175, 98, .3), transparent); }

/* Call to action: rotating gold-foil frame */
@property --wad-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.wad-cta__inner {
	position: relative;
	border: 2px solid transparent;
	background:
		radial-gradient(60% 90% at 50% 0%, rgba(212, 175, 98, .16), transparent 70%) padding-box,
		var(--denim) padding-box,
		linear-gradient(#161820, #161820) padding-box,
		conic-gradient(from var(--wad-a), #F0DDA0, #8F6E2C 18%, #D4AF62 34%, #D95C91 48%, #D4AF62 62%, #2FB5C7 76%, #F0DDA0) border-box;
	animation: wad-foil-spin 9s linear infinite;
}
.wad-cta__inner::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px dashed rgba(212, 175, 98, .45);
	border-radius: 10px;
	pointer-events: none;
}
@keyframes wad-foil-spin { to { --wad-a: 360deg; } }

/* Footer gleam */
.wad-footer__tagline { background: linear-gradient(100deg, var(--gold) 40%, #fff3c4 50%, var(--gold) 60%) 100% 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: wad-foil 9s ease-in-out infinite; }

/* ---- Switch everything off: reduced motion, or Customizer option off ---- */
@media (prefers-reduced-motion: reduce) {
	.wad-header, .wad-line > span, .wad-hero__text, .wad-hero__actions, .wad-chips,
	.wad-stage::before, .wad-floater, .wad-spin, .wad-sheen, .wad-glint, .wad-spark,
	.wad-marquee__track, .wad-services::before, .wad-process::before,
	.js [data-reveal].is-visible, .wad-step.is-visible .wad-step__n,
	.wad-btn--gold::before, .wad-cta__inner, .wad-footer__tagline { animation: none !important; }
	.wad-line > span { background-position: 100% 0; }
	.js [data-reveal]:not(.is-visible) { opacity: 1; }
	.wad-stage, .wad-tile, .wad-work__media { transform: none !important; transition: none; }
	.wad-glint, .wad-spark { display: none; }
	.wad-marquee__list[aria-hidden="true"] { display: none; }
	.wad-marquee__track { width: auto; flex-wrap: wrap; }
	.wad-marquee__list { flex-wrap: wrap; }
	.wad-hero__fx { display: none; }
}
.wad-motion-off .wad-header, .wad-motion-off .wad-line > span, .wad-motion-off .wad-hero__text, .wad-motion-off .wad-hero__actions, .wad-motion-off .wad-chips,
.wad-motion-off .wad-stage::before, .wad-motion-off .wad-floater, .wad-motion-off .wad-spin, .wad-motion-off .wad-sheen, .wad-motion-off .wad-glint, .wad-motion-off .wad-spark,
.wad-motion-off .wad-marquee__track, .wad-motion-off .wad-services::before, .wad-motion-off .wad-process::before,
.wad-motion-off [data-reveal].is-visible, .wad-motion-off .wad-step.is-visible .wad-step__n,
.wad-motion-off .wad-btn--gold::before, .wad-motion-off .wad-cta__inner, .wad-motion-off .wad-footer__tagline { animation: none !important; }
.wad-motion-off .wad-line > span { background-position: 100% 0; }
.wad-motion-off [data-reveal]:not(.is-visible) { opacity: 1 !important; }
.wad-motion-off .wad-stage, .wad-motion-off .wad-tile, .wad-motion-off .wad-work__media { transform: none !important; }
.wad-motion-off .wad-glint, .wad-motion-off .wad-spark, .wad-motion-off .wad-hero__fx { display: none; }


/* ==========================================================================
   Marquee icons, example project, stitch studio, footer wordmark, social icons
   ========================================================================== */

/* Marquee row two: file-format and software badges with names */
.wad-marquee__row--icons { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed rgba(212, 175, 98, .2); }
.wad-marquee__list--icons { gap: 0; }
.wad-marquee__list--icons .wad-badge-item { display: flex; align-items: center; gap: .8rem; padding-right: 2.4rem; white-space: nowrap; font-size: 1rem; color: var(--ivory); }
.wad-marquee__list--icons .wad-marquee__divider { padding-right: 2.4rem; }
.wad-marquee__list--icons .wad-marquee__divider .wad-marquee__sep { color: var(--magenta); }
.wad-ficon { width: 34px; height: 40px; flex: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.wad-sicon { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.wad-badge-item__text { display: flex; flex-direction: column; line-height: 1.15; }
.wad-badge-item__text strong { font: 700 1.02rem/1.15 var(--font-body); color: var(--ivory); letter-spacing: .01em; }
.wad-badge-item__text small { margin-top: .1rem; font: 500 .74rem/1.2 var(--font-body); color: var(--ivory-dim); }
.wad-badge-item .wad-ficon, .wad-badge-item .wad-sicon { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.wad-badge-item:hover .wad-ficon, .wad-badge-item:hover .wad-sicon { transform: translateY(-4px) rotate(-5deg); }

/* Portfolio: stitch specs on tiles and the example project */
.wad-work__specs { display: block; margin-top: .2rem; font-size: .85rem; color: var(--ivory-dim); }
.wad-specs { display: grid; margin: 1.25rem 0 1.5rem; }
.wad-specs > div { display: flex; justify-content: space-between; gap: 1.25rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.wad-specs dt { color: var(--ivory-dim); font-size: .92rem; }
.wad-specs dd { margin: 0; font-weight: 600; text-align: right; }
.wad-example {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
	padding: clamp(1rem, 2.5vw, 1.75rem);
	background: rgba(16, 17, 20, .55);
	border: 1px dashed var(--line);
	border-radius: 16px;
}
.wad-example__media img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 34px 60px -30px #000; }
.wad-example__body .wad-h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
@media (max-width: 860px) { .wad-example { grid-template-columns: 1fr; } }
.wad-admin-note--small { margin: 1rem 0 0; padding: .55rem .8rem; font-size: .8rem; flex-basis: 100%; order: 3; }

/* Stitch studio */
.wad-studio { background: radial-gradient(60% 70% at 85% 0%, rgba(212, 175, 98, .1), transparent 70%), var(--obsidian); }
.wad-studio__panel {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: center;
	padding: clamp(1.1rem, 3vw, 2rem);
	background: rgba(37, 40, 49, .55);
	border: 1px solid rgba(212, 175, 98, .3);
	border-radius: 18px;
	box-shadow: 0 40px 80px -40px #000;
}
.wad-studio__stage { padding: 1.1rem; background: #101114; border: 1px solid rgba(212, 175, 98, .25); border-radius: 12px; }
.wad-studio__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.wad-studio__bar--foot { padding: .75rem 0 0; border-bottom: 0; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--ivory-dim); }
.wad-studio__badge { color: var(--gold); font-weight: 700; letter-spacing: .02em; }
.wad-studio__count { color: var(--ivory); font-variant-numeric: tabular-nums; }
.wad-studio__canvas-wrap { display: grid; place-items: center; margin: 1rem 0; }
.wad-studio canvas { display: block; width: 100%; max-width: 520px; height: auto; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 50px -24px #000; }
.wad-studio__sweep { display: inline-flex; align-items: center; gap: .4rem; padding: 0; background: none; border: 0; color: var(--gold); font: inherit; cursor: pointer; }
.wad-studio__sweep:hover { text-decoration: underline; }
.wad-studio__controls { display: grid; gap: 1.5rem; }
.wad-studio__label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.wad-studio__label { display: block; margin-bottom: .5rem; font-size: .82rem; font-weight: 600; color: var(--ivory-dim); }
.wad-studio__label-row .wad-studio__label { margin: 0; }
.wad-studio__value { color: var(--gold); font-size: .82rem; font-variant-numeric: tabular-nums; }
.wad-studio__reset { display: inline-flex; align-items: center; gap: .3rem; padding: 0; background: none; border: 0; color: var(--gold); font: 600 .8rem var(--font-body); cursor: pointer; }
.wad-studio__reset:hover { text-decoration: underline; }
.wad-studio__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; padding: .25rem; background: #101114; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; }
.wad-studio__seg button { padding: .6rem .4rem; background: none; border: 0; border-radius: 7px; color: var(--ivory-dim); font: 600 .82rem var(--font-body); cursor: pointer; transition: background-color .2s, color .2s; }
.wad-studio__seg button:hover { color: var(--ivory); }
.wad-studio__seg button.is-active { background: var(--gold); color: var(--obsidian); }
.wad-studio__spools { display: grid; gap: .5rem; }
.wad-studio__spools button { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; background: rgba(16, 17, 20, .45); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; color: var(--ivory-dim); font: 500 .88rem var(--font-body); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.wad-studio__spools button:hover { border-color: rgba(255, 255, 255, .28); }
.wad-studio__spools button.is-active { background: #101114; border-color: var(--gold); color: var(--ivory); }
.wad-studio__dots { display: inline-flex; padding-left: 4px; }
.wad-studio__dots i { display: inline-block; width: 16px; height: 16px; margin-left: -4px; border: 1px solid rgba(0, 0, 0, .4); border-radius: 50%; }
.wad-studio__code { margin-left: auto; color: var(--gold); font-size: .82rem; font-variant-numeric: tabular-nums; }
.wad-studio__fabrics { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.wad-studio__fabrics button { padding: .6rem .8rem; background: rgba(16, 17, 20, .4); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; color: var(--ivory-dim); font: 500 .85rem var(--font-body); text-align: left; cursor: pointer; }
.wad-studio__fabrics button:hover { color: var(--ivory); }
.wad-studio__fabrics button.is-active { background: #101114; border-color: var(--gold); color: var(--gold); }
.wad-studio__sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.wad-studio input[type="range"] { width: 100%; padding: 0; background: none; border: 0; accent-color: var(--gold); cursor: pointer; }
@media (max-width: 960px) { .wad-studio__panel { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .wad-studio__sliders { grid-template-columns: 1fr; } }

/* Footer wordmark: stitched in when the end of the page is reached */
.wad-footer__mark { position: relative; max-width: 1100px; margin: 0 auto clamp(2rem, 5vw, 4rem); }
.wad-footer__mark-svg { display: block; width: 100%; height: auto; overflow: visible; }
.wad-footer__mark-text {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 500;
	font-size: 170px;
	fill: url(#wad-mark-gold);
	fill-opacity: 1;
	stroke: url(#wad-mark-gold);
	stroke-width: 1.4;
	stroke-dasharray: 1600;
	stroke-dashoffset: 0;
}
.wad-footer__mark::before {
	content: "";
	position: absolute;
	left: 3.3%;
	right: 3.3%;
	top: 85%;
	border-top: 2.5px dashed var(--gold);
	pointer-events: none;
}
.wad-footer__needle { position: absolute; top: 85%; left: 3.3%; width: 7%; translate: -50% -50%; transform: scaleX(-1); opacity: 0; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }

.js .wad-footer__mark:not(.is-in) .wad-footer__mark-text { stroke-dashoffset: 1600; fill-opacity: 0; }
.js .wad-footer__mark:not(.is-in)::before { clip-path: inset(-4px 100% -4px 0); }
.js .wad-footer__mark.is-in .wad-footer__mark-text {
	animation: wad-write 3.4s cubic-bezier(.65, 0, .35, 1) both, wad-fill 1.4s ease 2.5s both;
}
.js .wad-footer__mark.is-in::before { animation: wad-line 3.4s cubic-bezier(.65, 0, .35, 1) both; }
.js .wad-footer__mark.is-in .wad-footer__needle { animation: wad-needle 3.4s cubic-bezier(.65, 0, .35, 1) both; }
.js .wad-footer__mark.is-in .wad-footer__mark-svg { animation: wad-mark-glow 6s ease-in-out 4s infinite; }
@keyframes wad-write { from { stroke-dashoffset: 1600; } to { stroke-dashoffset: 0; } }
@keyframes wad-fill { from { fill-opacity: 0; } to { fill-opacity: 1; } }
@keyframes wad-line { from { clip-path: inset(-4px 100% -4px 0); } to { clip-path: inset(-4px 0 -4px 0); } }
@keyframes wad-needle { 0% { left: 3.3%; opacity: 1; } 92% { opacity: 1; } 100% { left: 96.7%; opacity: 0; } }
@keyframes wad-mark-glow { 0%, 100% { filter: drop-shadow(0 0 6px rgba(212, 175, 98, .1)); } 50% { filter: drop-shadow(0 0 22px rgba(212, 175, 98, .5)); } }

/* Social icons */
.wad-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.wad-footer__base p { order: 1; }
.wad-social { order: 2; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.wad-social__link {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px dashed var(--line);
	border-radius: 50%;
	color: var(--ivory);
	text-decoration: none;
	transition: transform .3s cubic-bezier(.2, .7, .2, 1), background-color .2s, color .2s, border-color .2s;
}
.wad-social__link:hover, .wad-social__link:focus-visible {
	background: linear-gradient(135deg, #F0DDA0, #D4AF62 50%, #B38E42);
	border: 1px solid var(--gold);
	color: var(--obsidian);
	transform: translateY(-4px) rotate(-8deg);
}
.wad-social.is-sample { opacity: .6; }

/* Reveal list additions */
.wad-footer__mark { overflow: visible; }

@media (prefers-reduced-motion: reduce) {
	.wad-footer__mark-text, .wad-footer__mark::before, .wad-footer__needle, .wad-footer__mark-svg, .wad-badge-item .wad-ficon, .wad-badge-item .wad-sicon, .wad-social__link { animation: none !important; transition: none; }
	.js .wad-footer__mark:not(.is-in) .wad-footer__mark-text { stroke-dashoffset: 0; fill-opacity: 1; }
	.js .wad-footer__mark:not(.is-in)::before { clip-path: none; }
	.wad-footer__needle { display: none; }
}
.wad-motion-off .wad-footer__mark-text, .wad-motion-off .wad-footer__mark::before, .wad-motion-off .wad-footer__needle, .wad-motion-off .wad-footer__mark-svg { animation: none !important; }
.wad-motion-off .wad-footer__mark .wad-footer__mark-text { stroke-dashoffset: 0 !important; fill-opacity: 1 !important; }
.wad-motion-off .wad-footer__mark::before { clip-path: none !important; }
.wad-motion-off .wad-footer__needle { display: none; }
