/* ==========================================================================
   Haroon Yamin GSAP — theme styles (front end + editor canvas)
   Tokens come from theme.json (--wp--preset--*). Anything JS-driven has a
   static fallback so the page is complete without JavaScript.
   ========================================================================== */

:root {
	--hy-bg: var(--wp--preset--color--base);
	--hy-surface: var(--wp--preset--color--base-2);
	--hy-surface-2: var(--wp--preset--color--base-3);
	--hy-text: var(--wp--preset--color--contrast);
	--hy-soft: var(--wp--preset--color--contrast-2);
	--hy-muted: var(--wp--preset--color--muted);
	--hy-accent: var(--wp--preset--color--accent);
	--hy-primary: var(--wp--preset--color--primary, #2B4AC9);
	--hy-line: rgba(255, 255, 255, 0.08);
	--hy-display: var(--wp--preset--font-family--clash-display);
	--hy-sans: var(--wp--preset--font-family--syne);
	--hy-system: var(--wp--preset--font-family--system);
	--hy-gutter: clamp(1rem, 4vw, 3rem);
	--hy-header-h: 88px;
	--hy-ease: cubic-bezier(0.215, 0.61, 0.355, 1);
	--hy-glass-edge: linear-gradient(315deg, rgba(135,135,135,.65) 0%, rgba(120,120,120,0) 30%, rgba(120,120,120,0) 70%, rgba(135,135,135,.65) 100%);
}

html { scroll-behavior: auto; }

/* Lenis smooth scrolling (from lenis/dist/lenis.css) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
	background: var(--hy-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
a, button, [role="button"], input[type="submit"], .wp-block-button__link { cursor: pointer; }

/* ---------- Custom cursor: dot + trailing ring (theme.js → initCursor) ----
   Only when JS has switched it on (mouse devices, html.has-hy-cursor). Text
   fields keep the native I-beam and the custom cursor hides over them. */
/* Wrapper is layout-neutral so the ring can blend with the page itself */
.hy-cursor { display: contents; }
.hy-cursor__dot,
.hy-cursor__ring {
	position: fixed;
	top: 0;
	left: 0;
	border-radius: 50%;
	pointer-events: none;
	will-change: transform;
	opacity: 0;
	transition: opacity 0.3s ease;
}
/* Dot: primary blue, drawn on top, no blending */
.hy-cursor__dot { z-index: 2147483001; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--hy-primary); }
.hy-cursor__ring {
	width: 38px;
	height: 38px;
	margin: -19px 0 0 -19px;
	z-index: 2147483000;
	/* Ring: softer (lower-opacity) outline; difference keeps it visible on light images too */
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	mix-blend-mode: difference;
	transition: opacity 0.3s ease, width 0.35s var(--hy-ease), height 0.35s var(--hy-ease), margin 0.35s var(--hy-ease), background-color 0.35s ease, border-color 0.35s ease, border-width 0.35s ease;
}
html.has-hy-cursor.hy-cursor--visible .hy-cursor__dot,
html.has-hy-cursor.hy-cursor--visible .hy-cursor__ring { opacity: 1; }
/* Over links/buttons: ring grows and fills softly, dot shrinks away */
html.hy-cursor--link .hy-cursor__ring { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); border-width: 1px; }
html.hy-cursor--link .hy-cursor__dot { opacity: 0 !important; }
/* Pressed */
html.hy-cursor--down .hy-cursor__ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
/* Text fields: native caret, custom cursor hidden */
html.hy-cursor--text .hy-cursor__dot,
html.hy-cursor--text .hy-cursor__ring { opacity: 0 !important; }
/* Hide the native arrow/hand everywhere except text entry */
html.has-hy-cursor,
html.has-hy-cursor *:not(input):not(textarea):not(select):not([contenteditable="true"]) { cursor: none !important; }
::selection { background: var(--hy-primary); color: #fff; }

/* ---------- Page transitions (theme.js → initPageTransitions) ----------
   The page starts transparent while JS boots and fades in. If JS never
   gets there, the animation reveals it anyway after 2.5s. Once JS is in
   control (html.hy-ready) it owns the opacity for fade-in / fade-out. */
html.hy-js:not(.hy-ready) .wp-site-blocks {
	opacity: 0;
	animation: hy-page-reveal 0.4s ease 2.5s forwards;
}
@keyframes hy-page-reveal { to { opacity: 1; } }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

.screen-reader-text:focus { background: var(--hy-text); color: var(--hy-bg); }

/* ---------- Shared typography helpers ---------------------------------- */

.is-style-eyebrow,
.hy-page-hero__eyebrow,
.hy-page-hero__eyebrow a {
	font-family: var(--hy-sans);
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hy-soft);
	text-decoration: none;
}
.is-style-eyebrow::before {
	content: "";
	display: inline-block;
	width: 0.5em;
	height: 0.5em;
	margin-right: 0.75em;
	border-radius: 50%;
	background: var(--hy-accent);
	vertical-align: 0.08em;
}

.is-style-gradient,
.hy-giant {
	background-image: linear-gradient(132deg, #fff 12%, rgba(0, 0, 0, 0) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
	-webkit-text-fill-color: transparent;
}
.hy-giant {
	font-family: var(--hy-sans) !important;
	font-weight: 700 !important;
	line-height: 0.9 !important;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	white-space: nowrap;
	margin-block: 0;
}

.is-style-scroll-reveal {
	font-family: var(--hy-system);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: 0.01em;
	color: var(--hy-text);
}
.hy-js .is-style-scroll-reveal { color: var(--hy-muted); }
.is-style-scroll-reveal .hy-char { color: var(--hy-muted); }


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

/* Glass pill (madetodisrupt .primary-btn) */
.wp-block-button.is-style-glass .wp-block-button__link {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-width: 210px;
	min-height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.06);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--hy-text);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.wp-block-button.is-style-glass .wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: var(--hy-glass-edge);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	pointer-events: none;
}
.wp-block-button.is-style-glass .wp-block-button__link::after {
	content: "";
	position: absolute;
	inset: -60% -40%;
	background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18) 0%, rgba(255,255,255,.06) 25%, rgba(255,255,255,0) 60%);
	transform: rotate(10deg);
	pointer-events: none;
	z-index: -1;
}
.wp-block-button.is-style-glass .wp-block-button__link:hover,
.wp-block-button.is-style-glass .wp-block-button__link:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	color: var(--hy-text);
}
/* Text roll (spans injected by theme.js) */
.hy-roll { position: relative; display: inline-flex; overflow: hidden; line-height: 1.2; }
.hy-roll__a, .hy-roll__b { display: inline-block; transition: transform 0.35s var(--hy-ease); }
.hy-roll__b { position: absolute; left: 0; top: 0; transform: translateY(110%); }
a:hover > .hy-roll .hy-roll__a,
a:focus-visible > .hy-roll .hy-roll__a { transform: translateY(-110%); }
a:hover > .hy-roll .hy-roll__b,
a:focus-visible > .hy-roll .hy-roll__b { transform: translateY(0); }

/* Arrow link (madetodisrupt .social-link) */
.wp-block-button.is-style-arrow-link .wp-block-button__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0;
	min-width: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--hy-text);
	font-size: var(--wp--preset--font-size--small);
	box-shadow: none;
}
.wp-block-button.is-style-arrow-link .wp-block-button__link::after {
	content: "↗";
	display: inline-block;
	font-family: var(--hy-system);
	transition: transform 0.3s var(--hy-ease);
}
.wp-block-button.is-style-arrow-link .wp-block-button__link::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 100%;
	height: 1.5px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s ease;
}
.wp-block-button.is-style-arrow-link .wp-block-button__link:hover { background: none; color: var(--hy-text); }
.wp-block-button.is-style-arrow-link .wp-block-button__link:hover::before { transform: scaleX(1); }
.wp-block-button.is-style-arrow-link .wp-block-button__link:hover::after { transform: translate(2px, -2px); }
.wp-block-buttons:empty { display: none; }

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

.hy-site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	transition: transform 0.45s var(--hy-ease);
}
.admin-bar .hy-site-header { top: var(--wp-admin--admin-bar--height, 32px); }
/*
 * Scrolled state: a soft dark gradient that fades in — NOT backdrop-filter.
 * A blur only inside the header box left a smeared block with a hard bottom
 * edge sliding over the hero, re-blurred every frame over the 3D images and
 * particle canvas (shimmer + jank). Opacity on a pseudo-element is smooth
 * and composited for free.
 */
.hy-site-header::before {
	content: "";
	position: absolute;
	inset: 0 0 -48px 0;
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(13, 13, 13, 0.94) 0%, rgba(13, 13, 13, 0.8) 55%, rgba(13, 13, 13, 0) 100%);
	opacity: 0;
	transition: opacity 0.45s ease;
}
.hy-site-header.is-scrolled::before { opacity: 1; }
.hy-site-header.is-hidden { transform: translateY(-110%); }
.hy-header {
	min-height: var(--hy-header-h);
	padding: 1rem var(--hy-gutter) !important;
	gap: 1rem;
}
.hy-header__actions { gap: clamp(0.75rem, 2vw, 1.5rem); }
.hy-header__cta .wp-block-button__link { white-space: nowrap; min-width: 0 !important; min-height: 48px !important; padding: 0.85rem 1.5rem !important; }

/* Brand: logo ↔ tagline wipe */
.hy-brand { position: relative; display: grid; align-items: center; min-width: 0; }
.hy-brand > * { grid-area: 1 / 1; margin: 0 !important; }
.hy-brand__logo { gap: 0.6rem; }
.hy-brand__logo .wp-block-site-logo img { max-height: 36px; width: auto; }
.hy-brand__logo:has(.wp-block-site-logo img) .hy-brand__title { display: none; }
.hy-brand__title, .hy-brand__title a {
	font-family: var(--hy-display);
	font-weight: 600;
	font-size: 1.35rem;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--hy-text);
	margin: 0;
}
.hy-brand__tagline {
	font-family: var(--hy-system);
	font-size: 0.95rem;
	font-weight: 500;
	white-space: nowrap;
	width: max-content; /* clip-path clips to the box — box must fit the whole line */
	clip-path: inset(0 100% 0 0);
	pointer-events: none;
}
.hy-brand__logo, .hy-brand__tagline { will-change: clip-path; }

/* Navigation — "Menu" toggle + full-screen overlay */
.hy-nav .wp-block-navigation__responsive-container-open,
.hy-nav .wp-block-navigation__responsive-container-close {
	font-family: var(--hy-sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hy-text);
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}
.hy-nav .wp-block-navigation__responsive-container-open::before {
	content: "";
	width: 7px;
	height: 15px;
	background: currentColor;
	clip-path: polygon(53% 0, 0 100%, 47% 100%, 100% 0);
}
.hy-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--hy-bg) !important;
	color: var(--hy-text) !important;
	padding: var(--hy-gutter) !important;
}
.hy-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: calc(var(--hy-header-h) + 2rem);
	align-items: flex-start !important;
}
.hy-nav .is-menu-open .wp-block-navigation__container {
	gap: 0.2em !important;
	align-items: flex-start !important;
}
.hy-nav .is-menu-open .wp-block-navigation-item__content {
	font-family: var(--hy-display);
	font-size: clamp(2.75rem, 9vw, 7.5rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--hy-muted);
	transition: color 0.25s ease, transform 0.35s var(--hy-ease);
}
.hy-nav .is-menu-open .wp-block-navigation-item__content:hover,
.hy-nav .is-menu-open .wp-block-navigation-item__content:focus-visible { color: var(--hy-text); transform: translateX(0.15em); }
.hy-nav .is-menu-open .wp-block-navigation-item {
	opacity: 0;
	transform: translateY(40px);
	animation: hy-menu-in 0.6s var(--hy-ease) forwards;
}
.hy-nav .is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 0.06s; }
.hy-nav .is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 0.12s; }
.hy-nav .is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 0.18s; }
.hy-nav .is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: 0.24s; }
.hy-nav .is-menu-open .wp-block-navigation-item:nth-child(n+6) { animation-delay: 0.3s; }
@keyframes hy-menu-in { to { opacity: 1; transform: none; } }

/* Non-front pages: clear the fixed header */
.hy-main { padding-top: var(--hy-header-h); }
.hy-main.hy-front { padding-top: 0; }
.hy-main > .alignfull,
.hy-front__content > .alignfull { margin-block: 0; }
.hy-main > .hy-front__content { margin-block: 0; }

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

.hy-hero {
	position: relative;
	min-height: 100svh;
	display: grid !important;
	place-items: center;
	overflow: hidden;
	isolation: isolate;
	padding-block: calc(var(--hy-header-h) + 2rem) 4rem !important;
	perspective: 1400px; /* deeper camera = gentler, less distorting tilt */
	/* Soft bottom edge instead of a hard cut line as images scale/scroll out */
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
}
.hy-hero__orbit {
	position: absolute;
	left: 50%;
	top: 55%;
	width: min(1280px, 98vw);
	height: 520px;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 0;
	-webkit-mask-image: radial-gradient(circle at 50% 50%, #000 66%, transparent 100%);
	mask-image: radial-gradient(circle at 50% 50%, #000 66%, transparent 100%);
}
.hy-hero__orbit canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hy-hero__media {
	position: absolute !important;
	inset: 0;
	max-width: none !important;
	margin: 0 !important;
	z-index: 1;
	transform-style: preserve-3d;
	will-change: transform;
	pointer-events: none;
}
.hy-hero__img {
	position: absolute;
	margin: 0 !important;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
	transform-style: preserve-3d;
	will-change: transform;
}
.hy-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* No-JS / pre-JS: a tidy row of thumbnails instead of the floating layout */
html:not(.hy-js) .hy-hero__media { position: relative !important; display: flex; gap: 1rem; justify-content: center; inset: auto; order: 2; }
html:not(.hy-js) .hy-hero__img { position: relative; width: 120px; height: 90px; }
.hy-js .hy-hero__img { opacity: 0; }
/* No CSS opacity transition here: GSAP scrubs these images' opacity on scroll
   (the intro fade is on the inner <img>), and a transition would lag behind it. */
.hy-js .hy-hero__img.is-placed { opacity: 1; }
.hy-js .hy-hero__img.is-hidden-bp { display: none; }

.hy-hero__content { position: relative; z-index: 4; pointer-events: none; }
.hy-hero__content .wp-block-buttons { pointer-events: auto; }
.hy-hero__title {
	font-family: var(--hy-display) !important;
	font-weight: 700 !important;
	font-size: clamp(44px, 7vw, 98px) !important;
	line-height: 0.92 !important;
	text-transform: uppercase;
	margin-bottom: 0.4em;
}
.hy-hero__desc {
	color: rgba(255, 255, 255, 0.55);
	font-family: var(--hy-system);
	font-size: clamp(14px, 1.6vw, 18px);
	max-width: 58ch;
	margin-inline: auto !important;
}
.hy-hero__scroll {
	position: absolute;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 4;
	margin: 0 !important;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hy-muted);
}
.hy-hero__scroll::after {
	content: "";
	display: block;
	width: 1px;
	height: 40px;
	margin: 0.6rem auto 0;
	background: linear-gradient(var(--hy-soft), transparent);
	animation: hy-scroll-cue 1.8s ease-in-out infinite;
	transform-origin: top;
}
@keyframes hy-scroll-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Sections --------------------------------------------------- */

.hy-work, .hy-story, .hy-services, .hy-edge, .hy-contact, .hy-section {
	padding-block: var(--wp--preset--spacing--60) !important;
	position: relative;
}
.hy-section__head { margin-bottom: var(--wp--preset--spacing--40); }

/* ---------- Marquees --------------------------------------------------- */

.hy-marquee { overflow: hidden; position: relative; max-width: none !important; }
.hy-marquee__track { display: flex; width: max-content; will-change: transform; }
.hy-marquee__group { display: flex; flex-shrink: 0; }
.hy-marquee__item { margin: 0 !important; white-space: nowrap; flex-shrink: 0; }
/* Static fallback before JS clones content */
html:not(.hy-js) .hy-marquee { text-align: center; }

/* Diagonal band */
.hy-marquee--diagonal {
	--band-h: clamp(46px, 4.2vw, 68px); /* band grows with the text */
	--band-rot: 4deg;
	position: relative;
	/* Tall enough for the tilted band at any width: band + 2 × (half-width · tan 4°) + air */
	height: calc(var(--band-h) + 7vw + 32px);
	display: flex;
	align-items: center;
	justify-content: center;
	/* Breathing room between the giant WORK title, the band and the project rail */
	margin-block: var(--wp--preset--spacing--50) !important;
}
/* The band is static: centred on the stage and rotated about its own centre. */
.hy-marquee__band {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 300vw;
	height: var(--band-h);
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--hy-text);
	transform: translate(-50%, -50%) rotate(var(--band-rot));
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.hy-marquee__band .hy-marquee__track { height: 100%; align-items: center; }
html:not(.hy-js) .hy-marquee--diagonal > .hy-marquee__item { transform: rotate(var(--band-rot)); }
.hy-marquee--diagonal .hy-marquee__item {
	display: flex;
	align-items: center;
	height: var(--band-h);
	background: var(--hy-text);
	color: #111;
	padding: 0 1.4rem;
	font: 500 clamp(17px, 1.55vw, 26px)/1.1 var(--hy-system); /* was 18px */
	letter-spacing: 0.2px;
	transition: color 0.25s ease;
}
.hy-marquee--diagonal .hy-marquee__item::after { content: "✦"; margin-left: 1.4rem; font-size: 0.8em; }
.hy-marquee--diagonal .hy-marquee__item:hover { color: var(--hy-primary); }

/* Big headline marquee */
.hy-marquee--big { margin-bottom: var(--wp--preset--spacing--40) !important; }
.hy-marquee--big .hy-marquee__item {
	font-family: var(--hy-display);
	font-weight: 600;
	font-size: clamp(3rem, 8vw, 8rem);
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	padding-right: 0.5em;
}
.hy-marquee--big .hy-marquee__item:nth-child(even) { -webkit-text-stroke: 1px rgba(255,255,255,.45); color: transparent; }

/* Edge marquee */
.hy-marquee--edge .hy-marquee__item {
	font-family: var(--hy-sans);
	font-size: clamp(60px, 14vw, 208px);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
	text-transform: uppercase;
}

/* ---------- Work: rail + logos ---------------------------------------- */

.hy-work > .hy-giant { margin-bottom: 0; }

/* Work section rhythm: rail → "All projects" → client logos.
   (The rail may be wrapped in a .pin-spacer, so target both.) */
.hy-work > .hy-rail + .wp-block-buttons,
.hy-work > .pin-spacer + .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--40) !important;
}
.hy-work > .wp-block-buttons + .hy-logos {
	margin-top: var(--wp--preset--spacing--60) !important;
}
/* Pinned elements must have NO vertical margin: ScrollTrigger switches them to
   position:fixed and the margin would be applied twice → visible jump. Spacing
   is padding instead (applies to .hy-rail, .hy-spiral and .hy-mv). */
.hy-rail {
	margin-block: 0 !important;
	padding-block: var(--wp--preset--spacing--40);
	/* Clip only sideways, and only at the screen edges (the rail is exactly
	   viewport-wide) — so no card is ever cut, and nothing causes a horizontal
	   scrollbar while the rail is position:fixed (body's clip can't reach it). */
	overflow-x: clip;
	overflow-y: visible;
}

/*
 * ScrollTrigger wraps every pinned element in a .pin-spacer. Inside a
 * constrained layout that wrapper is treated as normal content and squeezed
 * into the content column (e.g. 1320px), so a full-width rail/spiral/MV
 * section got pinned at the column edge and clipped. Give the spacer the
 * same full-width treatment the alignfull block itself would get.
 */
.is-layout-constrained > .pin-spacer:has(> .alignfull) {
	max-width: none !important;
	width: auto !important;
	margin-left: calc(var(--wp--style--root--padding-left, 0px) * -1) !important;
	margin-right: calc(var(--wp--style--root--padding-right, 0px) * -1) !important;
}
/* ScrollTrigger writes the measured (content-column) width inline; 100% means
   the viewport while fixed and the full-width spacer otherwise. */
.pin-spacer > .alignfull { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; width: 100% !important; }
/* (No box-sizing change here: ScrollTrigger writes the CONTENT height inline;
   border-box would subtract the padding from it and the cards would overflow.) */
.hy-rail .hy-rail__track {
	display: flex !important;
	gap: clamp(1rem, 2.5vw, 2rem);
	padding-inline: var(--hy-gutter);
	width: max-content;
	margin: 0;
	will-change: transform;
}
.hy-rail .hy-rail__track > li { width: clamp(280px, 34vw, 540px); margin: 0; flex-shrink: 0; }
.hy-rail:not(.is-native) .hy-work-card__media img { will-change: transform; } /* own GPU layer for the scrubbed parallax */
/* Without the pinned GSAP rail (mobile / no-JS): native swipe */
html:not(.hy-js) .hy-rail,
.hy-rail.is-native { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: var(--hy-gutter); }
.hy-rail.is-native::-webkit-scrollbar { display: none; }
/* Chrome drops a scrolling flex row's end padding; this 1px item + the gap restores it */
.hy-rail.is-native .hy-rail__track::after { content: ""; flex: 0 0 1px; }
html:not(.hy-js) .hy-rail .hy-rail__track > li,
.hy-rail.is-native .hy-rail__track > li { scroll-snap-align: start; width: min(82vw, 420px); }

.hy-work-card { position: relative; }
.hy-work-card__media,
.hy-post-card__media { margin: 0 0 1rem !important; border-radius: 16px; overflow: hidden; position: relative; background: var(--hy-surface); }
/* GSAP scrubs the <img> transform (rail parallax), so the hover zoom lives on
   the wrapping link — never put a CSS transform transition on a GSAP target. */
.hy-work-card__media a,
.hy-post-card__media a { display: block; height: 100%; transition: transform 0.9s var(--hy-ease); }
.hy-work-card__media img,
.hy-post-card__media img { transition: filter 0.5s ease; filter: brightness(0.85); }
.hy-work-card:hover .hy-work-card__media a,
.hy-post-card:hover .hy-post-card__media a { transform: scale(1.05); }
.hy-work-card:hover .hy-work-card__media img,
.hy-post-card:hover .hy-post-card__media img { filter: brightness(1); }
.wp-block-post-featured-image.hy-has-video { position: relative; }
.hy-card-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}
.hy-card-video.is-playing { opacity: 1; }
.hy-work-card__meta { margin: 0 0 0.5rem !important; }
.hy-work-card__num, .hy-spiral__num, .hy-service-row__num {
	margin: 0 !important;
	font-family: var(--hy-system);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.15em;
	color: var(--hy-muted);
}
.hy-work-card__terms { margin: 0 !important; }
.hy-work-card__title { margin: 0 !important; font-size: var(--wp--preset--font-size--x-large) !important; text-transform: uppercase; }
.hy-work-card__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--hy-ease); }
.hy-work-card__title a:hover { background-size: 100% 1px; color: var(--hy-text); }
.hy-work-card__client { margin: 0.35rem 0 0 !important; color: var(--hy-soft); font-size: var(--wp--preset--font-size--small); }

.hy-logos {
	--card-w: 280px;
	--card-h: 140px;
	position: relative;
	display: flex !important;
	gap: 18px;
	overflow: hidden;
	padding: 26px 12px !important;
	max-width: none !important;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent);
}
.hy-logos .hy-marquee__group { gap: 18px; padding-right: 18px; }
.hy-logos__item {
	width: var(--card-w);
	height: var(--card-h);
	flex-shrink: 0;
	margin: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: #000;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.hy-logos__item img {
	max-width: 62% !important;
	max-height: 46%;
	object-fit: contain;
	filter: grayscale(1) brightness(1.2) contrast(0);
	opacity: 0.65;
	mix-blend-mode: luminosity;
	transition: opacity 0.22s ease, filter 0.22s ease;
}
.hy-logos__item:hover img { filter: none; opacity: 1; mix-blend-mode: normal; }

/* ---------- Story ------------------------------------------------------ */

.hy-story .is-style-scroll-reveal { margin-block: 1.5rem var(--wp--preset--spacing--50); font-size: clamp(2.25rem, 6vw, 4.5rem) !important; }
.hy-story__cols { color: var(--hy-soft); gap: var(--wp--preset--spacing--40); }
.hy-story__cols p { font-size: var(--wp--preset--font-size--large); line-height: 1.5; }

/* ---------- Mission / Vision ------------------------------------------ */
/* Static (no-JS / reduced motion): panels stacked, labels as headings. */
.hy-mv { padding-block: var(--wp--preset--spacing--50) !important; }
.hy-mv__panel { padding: 2rem var(--hy-gutter); max-width: 1100px; margin-inline: auto !important; }
.hy-mv__overlay { display: none; }
.hy-js .hy-mv__overlay { display: block; }
.hy-mv__heading { max-width: 22ch; margin-bottom: 1.5rem; }
.hy-mv__list { list-style: none; padding: 0; margin: 0; color: var(--hy-soft); }
.hy-mv__list li { padding: 0.7rem 0; border-top: 1px solid var(--hy-line); font-size: var(--wp--preset--font-size--large); }
.hy-mv__list li::before { content: "—"; color: var(--hy-accent); margin-right: 0.75rem; }


.hy-js .hy-mv {
	--mv-pivot-x: 72%;
	--mv-line-w: clamp(260px, 30vw, 520px);
	--mv-ang-mission: -28deg;
	--mv-ang-vision: 28deg;
	position: relative;
	min-height: 100vh;
	overflow: hidden;
	padding: 0 !important;
}
.hy-js .hy-mv__panel {
	position: absolute !important;
	inset: 0;
	max-width: none !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-inline: 10vw 45vw;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	pointer-events: none;
}
.hy-js .hy-mv__panel--mission,
.hy-js .hy-mv.is-vision .hy-mv__panel--vision { opacity: 1; transform: none; pointer-events: auto; }
.hy-js .hy-mv.is-vision .hy-mv__panel--mission { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.hy-js .hy-mv__overlay { position: absolute !important; inset: 0; max-width: none !important; margin: 0 !important; pointer-events: none; }
.hy-js .hy-mv__line {
	position: absolute;
	left: var(--mv-pivot-x);
	top: 52%;
	width: var(--mv-line-w) !important;
	height: 4px !important;
	margin: 0 !important;
	border: 0 !important;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent) !important;
	transform: translate(-50%, -50%) rotate(var(--mv-ang-mission));
	transition: transform 0.7s var(--hy-ease);
	opacity: 1;
}
.hy-js .hy-mv.is-vision .hy-mv__line { transform: translate(-50%, -50%) rotate(var(--mv-ang-vision)); }
.hy-js .hy-mv__label {
	position: absolute;
	left: var(--mv-pivot-x);
	margin: 0 !important;
	font-family: var(--hy-display);
	font-size: clamp(2rem, 4.5vw, 4.5rem);
	font-weight: 500;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.28);
	transition: color 0.5s ease, transform 0.6s var(--hy-ease), font-weight 0.3s;
}
.hy-js .hy-mv__label--mission { top: 28%; transform: translateX(-10%); color: rgba(255, 255, 255, 0.85); }
.hy-js .hy-mv__label--vision { top: 66%; transform: translateX(10%); }
.hy-js .hy-mv.is-vision .hy-mv__label--mission { color: rgba(255, 255, 255, 0.28); transform: translateX(-30%); }
.hy-js .hy-mv.is-vision .hy-mv__label--vision { color: rgba(255, 255, 255, 0.85); transform: translateX(-10%); }

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

.hy-spiral { margin-block: 0 !important; padding-block: var(--wp--preset--spacing--30); }
/* Static grid (reduced motion / no JS): keep the cards off the screen edges */
.hy-spiral:not(.is-3d) { padding-inline: var(--hy-gutter); }
.hy-spiral__ring { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hy-spiral__card {
	position: relative;
	height: 320px;
	border-radius: 14px;
	overflow: hidden;
	background: radial-gradient(120% 120% at 0% 0%, #2a2a2a 0%, var(--hy-surface) 60%);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
	color: var(--hy-text);
}
.hy-spiral__media { position: absolute !important; inset: 0; margin: 0 !important; height: 100% !important; }
.hy-spiral__media img { width: 100%; height: 100% !important; object-fit: cover; filter: brightness(0.62); }
.hy-spiral__text {
	position: absolute !important;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
	padding: 1.5rem;
	pointer-events: none;
}
.hy-spiral__title { margin: 0 !important; font-size: clamp(1.6rem, 3vw, 2.6rem) !important; text-transform: uppercase; max-width: 12ch; }
.hy-spiral__title a { text-decoration: none; pointer-events: auto; }
.hy-spiral__title a::after { content: ""; position: absolute; inset: 0; }
.hy-spiral__title a { transition: color 0.3s ease; }
.hy-spiral__card:hover .hy-spiral__title a,
.hy-spiral__title a:focus-visible { color: var(--hy-primary); }

/* 3D mode (desktop, GSAP) */
/* Stage height: a full screen on desktop; on phones/tablets just the card
   plus room for the helix, so there's no half-screen gap above the card. */
.hy-services { --hy-spiral-stage-h: 100vh; }
@media (max-width: 1024px) { .hy-services { --hy-spiral-stage-h: min(100vh, 520px); } }
.hy-spiral.is-3d {
	height: var(--hy-spiral-stage-h, 100vh);
	padding-block: 0;
	position: relative;
	perspective: 1400px;
	/* Off-axis 3D cards still occupy layout space far left/right; 3D transforms
	   escape body's overflow clip and caused a sideways page scroll. The spiral
	   is viewport-wide, so clipping here is invisible. */
	overflow: clip;
}
.hy-spiral.is-3d .hy-spiral__ring { display: block; position: absolute; inset: 0; transform-style: preserve-3d; }
.hy-spiral.is-3d .hy-spiral__ring > li {
	position: absolute;
	left: 50%;
	top: 50%;
	width: var(--hy-spiral-card-w, 460px);
	margin: 0;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden; /* never show a mirrored card */
	will-change: transform, opacity;
}
.hy-spiral.is-3d .hy-spiral__card { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); }
/* The pinned stage is a full viewport tall with the active card centred, so
   the lower half is empty once the spiral ends. Pull the button up to sit
   ~5rem under the card (card is 320px tall, so its bottom is 50vh + 160px). */
.hy-services:has(.hy-spiral.is-3d) > .wp-block-buttons {
	margin-block-start: calc(160px + 5rem - var(--hy-spiral-stage-h) / 2) !important;
	position: relative;
	z-index: 1;
}

/* ---------- Edge ------------------------------------------------------- */

.hy-edge__intro { margin-block: var(--wp--preset--spacing--50) !important; gap: var(--wp--preset--spacing--40); }
.hy-edge__intro .is-style-scroll-reveal { font-size: clamp(2rem, 5vw, 5rem) !important; text-align: center; }
.is-style-rounded-xl img { border-radius: 18px; }
.hy-stack { display: flex; flex-direction: column; gap: 2rem; padding-bottom: 10vh; }
.hy-stack__card {
	background-color: #121212; /* opaque: the card underneath must never show through */
	position: sticky;
	top: calc(var(--hy-header-h) + 24px);
	min-height: 52vh;
	align-content: center;
	gap: clamp(1.5rem, 4vw, 4rem) !important;
	transform-origin: center top;
	will-change: transform, opacity;
}
.hy-stack__label { margin: 0 !important; text-transform: uppercase; line-height: 0.95 !important; }
.hy-stack__title { margin: 0 0 0.75rem !important; font-family: var(--hy-sans) !important; font-weight: 600 !important; }
.hy-stack__desc { color: var(--hy-soft); font-size: var(--wp--preset--font-size--large); margin: 0; }

.wp-block-group.is-style-glass-card {
	padding: clamp(1.5rem, 4vw, 3.5rem) !important;
	border-radius: 24px;
	background: linear-gradient(160deg, #161616 0%, #0f0f0f 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- Contact + form -------------------------------------------- */

.hy-contact__cols { gap: var(--wp--preset--spacing--50); }
.hy-contact__title { text-transform: uppercase; margin-bottom: 1.5rem; font-size: clamp(2.75rem, 6vw, 6rem) !important; }
.hy-contact__lead { color: var(--hy-soft); font-size: var(--wp--preset--font-size--large); max-width: 34ch; }
.hy-contact__details { margin-block: 2rem !important; gap: 0.75rem; }
.hy-contact__details .wp-block-buttons { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.hy-contact__address { color: var(--hy-muted); margin: 0; }
.hy-contact__image { max-width: 320px; margin-top: 2rem !important; }
.hy-contact__image img { border-radius: 18px; }

.hy-contact-form__form { display: grid; gap: 1.1rem; }

/* Contact form with details panel (block has infoItems, e.g. the Contact page) */
.hy-contact-form.has-info {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(2.5rem, 7vw, 7rem);
	align-items: start;
}
.hy-contact-form__info { position: sticky; top: calc(var(--hy-header-h) + 2rem); }
.hy-contact-form__info > * + * { margin-top: 1.5rem; }
.hy-contact-form__heading { margin-top: 0.75rem !important; font-size: var(--wp--preset--font-size--x-large); text-transform: uppercase; }
.hy-contact-form__intro,
.hy-contact-form__note { color: var(--hy-soft); line-height: 1.6; max-width: 42ch; margin-bottom: 0; }
.hy-contact-form__details { margin-block: 0; padding: 0; border-top: 1px solid var(--hy-line); }
.hy-contact-form__detail {
	display: grid;
	grid-template-columns: 7.5rem 1fr;
	gap: 1rem;
	align-items: baseline;
	padding-block: 1.1rem;
	border-bottom: 1px solid var(--hy-line);
}
.hy-contact-form__detail dt {
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hy-muted);
}
.hy-contact-form__detail dd { margin: 0; font-size: var(--wp--preset--font-size--large); }
.hy-contact-form__detail a { color: var(--hy-text); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--hy-ease); }
.hy-contact-form__detail a:hover { background-size: 100% 1px; }
.hy-contact-form__social { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin-bottom: 0; padding: 0; }
.hy-contact-form__social a {
	display: inline-flex;
	padding: 0.55rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	color: var(--hy-soft);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: border-color 0.25s ease, color 0.25s ease;
}
.hy-contact-form__social a::after { content: " ↗"; }
.hy-contact-form__social a:hover { border-color: rgba(255, 255, 255, 0.45); color: var(--hy-text); }
@media (max-width: 900px) {
	.hy-contact-form.has-info { grid-template-columns: 1fr; }
	.hy-contact-form__info { position: static; }
}
.hy-contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.hy-field { margin: 0; display: grid; gap: 0.45rem; }
.hy-field label { color: #888; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.hy-field label span { color: var(--hy-accent); }
.hy-field input,
.hy-field textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: var(--hy-text);
	background: rgba(59, 59, 59, 0.15);
	border: 1px solid rgba(136, 136, 136, 0.15);
	border-radius: 50px;
	padding: 0.95rem 1.4rem;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.hy-field textarea { border-radius: 14px; resize: vertical; min-height: 9rem; }
.hy-field input::placeholder, .hy-field textarea::placeholder { color: rgb(84, 84, 84); }
.hy-field input:focus, .hy-field textarea:focus { outline: none; border-color: rgba(255, 255, 255, 0.45); background: rgba(59, 59, 59, 0.3); }
.hy-contact-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hy-contact-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hy-contact-form__submit {
	position: relative;
	min-width: 210px;
	min-height: 56px;
	border-radius: 280px !important;
	background: linear-gradient(#0b0b0b, #0b0b0b) padding-box, var(--hy-glass-edge) border-box !important;
	border: 1px solid transparent !important;
	color: var(--hy-text) !important;
	transition: filter 0.2s ease, transform 0.2s ease;
}
.hy-contact-form__submit:hover { filter: brightness(1.25); transform: translateY(-1px); }
.hy-contact-form__submit[disabled] { opacity: 0.6; }
.hy-contact-form__notice { margin: 0; color: var(--hy-accent); font-size: var(--wp--preset--font-size--small); }
.hy-contact-form__notice.is-error { color: #ff8a80; }
.hy-contact-form .is-sending .hy-contact-form__submit { animation: hy-pulse 1s ease-in-out infinite; }
@keyframes hy-pulse { 50% { opacity: 0.55; } }

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

.hy-footer { padding-block: var(--wp--preset--spacing--50) 1.5rem !important; border-top: 1px solid var(--hy-line); }
.hy-footer__top { gap: 2.5rem; }
.hy-footer__brand { gap: 0.75rem; max-width: 26rem; }
.hy-footer__brand:has(.wp-block-site-logo img) .hy-footer__title { display: none; }
.hy-footer__title, .hy-footer__title a { font-family: var(--hy-display); font-size: 1.75rem; font-weight: 600; text-transform: uppercase; text-decoration: none; margin: 0; }
.hy-footer__tagline { color: var(--hy-soft); margin: 0; }
.hy-footer__nav .wp-block-navigation-item__content { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; }
.hy-footer__nav .wp-block-navigation-item__content:hover { color: var(--hy-primary); }
.hy-footer__social { gap: 0.9rem; }
.hy-footer__social .wp-block-button__link { font-size: 1.05rem !important; font-weight: 600; text-transform: uppercase; }
.hy-footer__giant { margin-block: var(--wp--preset--spacing--40) 0 !important; font-family: var(--hy-sans) !important; font-weight: 700 !important; text-transform: uppercase; line-height: 0.9 !important; letter-spacing: -0.04em; white-space: nowrap; text-align: center; }
/* Fit-to-width headings: CSS fallback that already fits "LET'S TALK" in the wide container;
   theme.js then sizes it to exactly fill the container at any width. */
.hy-fit.has-giant-font-size,
.hy-footer__giant.has-giant-font-size { font-size: min(12vw, 10.5rem) !important; }
.hy-footer__bottom { padding-top: 0.5rem; color: var(--hy-muted); font-size: var(--wp--preset--font-size--small); gap: 1rem; }
.hy-footer__bottom p { margin: 0; }
.hy-footer__legal .wp-block-button__link { color: var(--hy-muted) !important; }

/* ---------- Page heroes, singles, archives ----------------------------- */

.hy-page-hero { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40); }
/* Generic pages (About, Contact, legal…): content never touches the footer */
.hy-page .hy-page-content,
.hy-page .hy-legal { padding-bottom: var(--wp--preset--spacing--60); }
.hy-page .hy-page-hero + .wp-block-post-content { margin-top: var(--wp--preset--spacing--30) !important; }
.hy-page-hero > * + * { margin-top: 1rem; }
.hy-page-hero__title { text-transform: uppercase; max-width: 18ch; }
.hy-page-hero__subtitle { color: var(--hy-soft); font-size: var(--wp--preset--font-size--large); max-width: 46ch; }
.hy-page-hero__lead { color: var(--hy-soft); max-width: 60ch; }
.hy-page-hero__eyebrow-row { gap: 1rem; }
.hy-page-hero__eyebrow-row > * { margin: 0 !important; }
.hy-archive .hy-giant { font-size: clamp(3.5rem, 13vw, 14rem) !important; }

.hy-details {
	margin-top: var(--wp--preset--spacing--40) !important;
	padding-top: 1.5rem;
	border-top: 1px solid var(--hy-line);
	gap: 1.5rem;
}
.hy-details__item > * { margin: 0 !important; }
.hy-details__label { font-size: var(--wp--preset--font-size--x-small); letter-spacing: 0.16em; text-transform: uppercase; color: var(--hy-muted); margin-bottom: 0.35rem !important; }
.hy-detail-value { font-size: var(--wp--preset--font-size--large); }

.hy-single__image { margin-block: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50) !important; border-radius: 20px; overflow: hidden; }
.hy-single__content { font-size: var(--wp--preset--font-size--large); line-height: 1.7; color: #e8e8e8; }
.hy-single__content > * + * { margin-top: 1.4em; }
.hy-single__content h2, .hy-single__content h3 { margin-top: 2em; }
.hy-single__content a { color: var(--hy-accent); }
.hy-single__tags { margin-block: var(--wp--preset--spacing--40) !important; }
.hy-single__tags a {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--hy-line);
	border-radius: 999px;
	margin: 0 0.35rem 0.35rem 0;
}
.hy-single__footer { margin-top: var(--wp--preset--spacing--50); }
.hy-more { margin-top: var(--wp--preset--spacing--60) !important; padding-top: var(--wp--preset--spacing--40); border-top: 1px solid var(--hy-line); }
.hy-more .is-style-eyebrow { margin-bottom: 2rem; }

.hy-work-grid .wp-block-post-template,
.hy-post-grid .wp-block-post-template { gap: clamp(1.5rem, 3vw, 2.5rem) !important; }
.hy-post-card__meta { gap: 0.75rem; margin-bottom: 0.5rem !important; }
.hy-post-card__meta > * { margin: 0 !important; }
.hy-post-card__title { margin: 0.25rem 0 0.5rem !important; line-height: 1.15 !important; }
.hy-post-card__title a { text-decoration: none; }
.hy-post-card .wp-block-post-excerpt__more-link { color: var(--hy-text); font-weight: 600; text-transform: uppercase; font-size: var(--wp--preset--font-size--x-small); letter-spacing: 0.12em; }

/* Service rows (archive / "Other services" / service-groups block) */
.hy-service-list .wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.hy-service-row-block {
	grid-template-columns: 4rem 1fr 1.2fr !important;
	align-items: baseline;
	padding-block: 1.6rem;
	border-top: 1px solid var(--hy-line);
	gap: 1.5rem !important;
}
.hy-service-row-block > * { margin: 0 !important; }
.hy-service-row__title { font-size: var(--wp--preset--font-size--x-large) !important; text-transform: uppercase; }
.hy-service-row__title a { text-decoration: none; }
.hy-service-row__title a:hover { color: var(--hy-primary); }
.hy-service-row__excerpt, .hy-service-row__excerpt p { color: var(--hy-soft); margin: 0; }

.hy-service-groups__group + .hy-service-groups__group { margin-top: var(--wp--preset--spacing--50); }
.hy-service-groups__title { font-size: var(--wp--preset--font-size--small) !important; font-family: var(--hy-sans) !important; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hy-soft); margin-bottom: 1rem; }
.hy-service-groups__list { list-style: none; margin: 0; padding: 0; }
.hy-service-row { border-top: 1px solid var(--hy-line); }
.hy-service-row:last-child { border-bottom: 1px solid var(--hy-line); }
.hy-service-row__link {
	position: relative;
	display: grid;
	grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.1fr) 2rem;
	align-items: center;
	gap: 1.5rem;
	padding: 1.75rem 0;
	text-decoration: none;
	color: var(--hy-text);
}
.hy-service-row__title { font-family: var(--hy-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.75rem); text-transform: uppercase; line-height: 1; transition: transform 0.4s var(--hy-ease); }
.hy-service-row__excerpt { font-size: var(--wp--preset--font-size--small); }
.hy-service-row__arrow { font-size: 1.5rem; transition: transform 0.3s var(--hy-ease); }
.hy-service-row__thumb {
	position: absolute;
	right: 12%;
	top: 50%;
	width: 220px;
	aspect-ratio: 4/3;
	border-radius: 12px;
	overflow: hidden;
	transform: translateY(-50%) scale(0.8) rotate(-4deg);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.5s var(--hy-ease);
	z-index: 2;
}
.hy-service-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hy-service-row__link:hover .hy-service-row__title { transform: translateX(0.4rem); }
.hy-service-row__link:hover .hy-service-row__arrow { transform: rotate(45deg); }
.hy-service-row__link:hover .hy-service-row__thumb { opacity: 1; transform: translateY(-50%) scale(1) rotate(-4deg); }

.hy-pagination { margin-top: var(--wp--preset--spacing--40) !important; gap: 0.5rem; }
.hy-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--hy-line); }
.hy-pagination .page-numbers.current { background: var(--hy-text); color: var(--hy-bg); }
.hy-empty-state { color: var(--hy-muted); padding-block: 3rem; }

.hy-search .wp-block-search__inside-wrapper { border: 1px solid var(--hy-line) !important; border-radius: 999px; padding: 0.25rem !important; background: rgba(59,59,59,.15); max-width: 560px; margin-inline: auto; }
.hy-search .wp-block-search__input { background: transparent; border: 0; color: var(--hy-text); padding-inline: 1.25rem; }
.hy-search .wp-block-search__button { margin: 0; }

.hy-404 { padding-block: var(--wp--preset--spacing--50); text-align: center; }
.hy-404 .hy-giant { font-size: clamp(8rem, 30vw, 26rem) !important; }

.hy-legal { color: #dcdcdc; }
.hy-legal h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.2em; }
.hy-legal__updated { margin: 1rem 0 0 !important; color: var(--hy-muted); font-size: var(--wp--preset--font-size--x-small); text-transform: uppercase; letter-spacing: 0.15em; }

.hy-comments { margin-top: var(--wp--preset--spacing--40); }
.hy-comments input, .hy-comments textarea { background: rgba(59,59,59,.15); color: var(--hy-text); border: 1px solid var(--hy-line); border-radius: 12px; padding: 0.8rem 1rem; }

/* ---------- Portfolio archive (patterns/portfolio-archive.php) --------- */

.hy-pf-hero { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40); }
.hy-pf-hero > * + * { margin-top: 0; }
.hy-pf-hero__top { gap: 1rem; margin-bottom: clamp(1rem, 2vw, 2rem); }
.hy-pf-hero__top > * { margin: 0 !important; }
.hy-pf-hero__count {
	font-family: var(--hy-system);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hy-muted);
}
.hy-pf-hero .hy-giant { margin: 0 !important; line-height: 0.85 !important; }
.hy-pf-hero__intro {
	gap: 1.5rem 3rem;
	margin-top: clamp(1.5rem, 3vw, 3rem) !important;
	padding-top: clamp(1.25rem, 2vw, 2rem);
	border-top: 1px solid var(--hy-line);
}
.hy-pf-hero__lead,
.hy-pf-hero__term p {
	margin: 0;
	max-width: 44ch;
	color: var(--hy-soft);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.45;
}
.hy-pf-hero__term:empty { display: none; }

/* Category pills (hy/term-filter) */
.hy-term-filter { margin-top: clamp(1.5rem, 3vw, 2.75rem) !important; }
.hy-term-filter__list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.hy-term-filter__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.6rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--hy-soft);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.hy-term-filter__count {
	font-family: var(--hy-system);
	font-weight: 500;
	letter-spacing: 0;
	color: var(--hy-muted);
	transition: color 0.25s ease;
}
.hy-term-filter__pill:hover,
.hy-term-filter__pill:focus-visible { border-color: rgba(255, 255, 255, 0.45); color: var(--hy-text); }
.hy-term-filter__pill.is-active { background: var(--hy-text); border-color: var(--hy-text); color: var(--hy-bg); }
.hy-term-filter__pill.is-active .hy-term-filter__count { color: rgba(13, 13, 13, 0.55); }

/* Two-column editorial grid; the right column is offset downward */
.hy-pf-grid { margin-top: var(--wp--preset--spacing--40) !important; }
.hy-pf-grid .wp-block-post-template {
	gap: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4.5rem) !important;
	align-items: start;
}
.hy-pf-grid .wp-block-post-template > li:nth-child(even) { margin-top: clamp(4rem, 10vw, 10rem); }

.hy-pf-card { position: relative; }
.hy-pf-card__media {
	margin: 0 0 1.25rem !important;
	border-radius: 18px;
	overflow: hidden;
	background: var(--hy-surface);
}
.hy-pf-card__media a { display: block; height: 100%; transition: transform 1s var(--hy-ease); }
.hy-pf-card__media img { filter: brightness(0.82); transition: filter 0.5s ease; }
.hy-pf-card:hover .hy-pf-card__media a { transform: scale(1.04); }
.hy-pf-card:hover .hy-pf-card__media img { filter: brightness(1); }

.hy-pf-card__meta { margin: 0 0 0.75rem !important; }
.hy-pf-card__meta > * { margin: 0 !important; }
.hy-pf-card__num {
	font-family: var(--hy-system);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.15em;
	color: var(--hy-muted);
}
.hy-pf-card__title {
	margin: 0 0 0.75rem !important;
	font-size: clamp(1.5rem, 2.4vw, 2.5rem) !important;
	line-height: 1.02 !important;
	text-transform: uppercase;
	max-width: 22ch;
}
.hy-pf-card__title a {
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
	transition: background-size 0.5s var(--hy-ease);
}
.hy-pf-card:hover .hy-pf-card__title a { background-size: 100% 2px; }
.hy-pf-card__excerpt { margin: 0 0 1.25rem !important; }
.hy-pf-card__excerpt p { margin: 0; max-width: 52ch; color: var(--hy-soft); line-height: 1.55; }
.hy-pf-card__excerpt .wp-block-post-excerpt__more-text { display: none; }

.hy-pf-card__foot {
	gap: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--hy-line);
}
.hy-pf-card__foot > * { margin: 0 !important; }
.hy-pf-card__client { color: var(--hy-muted); font-size: var(--wp--preset--font-size--small); }
.hy-pf-card__client::before { content: "Client — "; color: var(--hy-muted); opacity: 0.7; }
.hy-pf-card__more {
	margin-left: auto !important;
	color: var(--hy-text);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}
.hy-pf-card__more::after { content: " ↗"; display: inline-block; transition: transform 0.3s var(--hy-ease); }
.hy-pf-card:hover .hy-pf-card__more::after { transform: translate(3px, -3px); }

.hy-pf-pagination { margin-top: var(--wp--preset--spacing--60) !important; gap: 0.6rem; }
.hy-pf-pagination .page-numbers { min-width: 3.25rem; height: 3.25rem; font-size: var(--wp--preset--font-size--small); }
.hy-pf-pagination .wp-block-query-pagination-previous,
.hy-pf-pagination .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	height: 3.25rem;
	padding: 0 1.4rem;
	border: 1px solid var(--hy-line);
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: var(--wp--preset--font-size--x-small);
}
.hy-pf-pagination a:hover { border-color: rgba(255, 255, 255, 0.45); }

@media (max-width: 781px) {
	.hy-pf-grid .wp-block-post-template { grid-template-columns: 1fr !important; }
	.hy-pf-grid .wp-block-post-template > li:nth-child(even) { margin-top: 0; }
	/* Pills: one swipeable row instead of a tall wrapped block */
	.hy-term-filter { margin-inline: calc(var(--wp--style--root--padding-left, 1rem) * -1) !important; }
	.hy-term-filter__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-inline: var(--wp--style--root--padding-left, 1rem);
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
		mask-image: linear-gradient(90deg, #000 85%, transparent);
	}
	.hy-term-filter__list::-webkit-scrollbar { display: none; }
	.hy-pf-hero__intro { flex-direction: column; align-items: flex-start; }
}

/* ---------- Services archive (patterns/services-archive.php) ---------- */

/* Disciplines: sticky label column + service rows */
.hy-service-groups { margin-top: var(--wp--preset--spacing--50) !important; }
.hy-sg {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
	gap: clamp(1.5rem, 5vw, 6rem);
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
	border-top: 1px solid var(--hy-line);
}
.hy-sg:last-child { border-bottom: 1px solid var(--hy-line); }
.hy-sg__head { position: sticky; top: calc(var(--hy-header-h) + 1.5rem); align-self: start; }
.hy-sg__index {
	display: block;
	font-family: var(--hy-system);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.18em;
	color: var(--hy-accent);
	margin-bottom: 1rem;
}
.hy-sg__title {
	margin: 0 0 0.75rem !important;
	font-size: clamp(1.75rem, 3vw, 3rem) !important;
	line-height: 1 !important;
	text-transform: uppercase;
}
.hy-sg__title a { text-decoration: none; }
.hy-sg__title a:hover { color: var(--hy-primary); }
.hy-sg__count {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hy-muted);
}
.hy-sg__desc { margin: 1.25rem 0 0; color: var(--hy-soft); max-width: 32ch; line-height: 1.55; }

.hy-sg__list { list-style: none; margin: 0; padding: 0; }
.hy-sg-row + .hy-sg-row { border-top: 1px solid var(--hy-line); }
.hy-sg-row__link {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(1rem, 2.5vw, 2rem);
	padding: clamp(1.25rem, 2.2vw, 1.9rem) clamp(0.75rem, 1.5vw, 1.25rem);
	margin-inline: calc(clamp(0.75rem, 1.5vw, 1.25rem) * -1);
	border-radius: 16px;
	color: var(--hy-text);
	text-decoration: none;
	isolation: isolate;
}
/* Hover fill sweeps up from the bottom */
.hy-sg-row__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: var(--hy-surface-2);
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform 0.45s var(--hy-ease);
}
.hy-sg-row__link:hover::before,
.hy-sg-row__link:focus-visible::before { transform: scaleY(1); }
.hy-sg-row__icon {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.03);
	color: var(--hy-soft);
	transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.hy-sg-row__icon .hy-icon { width: 1.4rem; height: 1.4rem; }
.hy-sg-row__link:hover .hy-sg-row__icon { background: var(--hy-primary); border-color: var(--hy-primary); color: #fff; }
.hy-sg-row__text { display: grid; gap: 0.4rem; }
.hy-sg-row__title {
	font-family: var(--hy-display);
	font-weight: 600;
	font-size: clamp(1.35rem, 2.2vw, 2.1rem);
	line-height: 1.05;
	text-transform: uppercase;
	transition: transform 0.45s var(--hy-ease);
}
.hy-sg-row__link:hover .hy-sg-row__title { transform: translateX(0.35rem); }
.hy-sg-row__excerpt { color: var(--hy-soft); font-size: var(--wp--preset--font-size--small); line-height: 1.55; max-width: 60ch; }
.hy-sg-row__arrow {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: transform 0.4s var(--hy-ease), background-color 0.3s ease, color 0.3s ease;
}
.hy-sg-row__arrow .hy-icon { width: 1.1rem; height: 1.1rem; }
.hy-sg-row__link:hover .hy-sg-row__arrow { background: var(--hy-text); color: var(--hy-bg); transform: rotate(45deg); }

/* Tools marquee: big outline words, every other one solid */
.hy-marquee--tools { margin-block: var(--wp--preset--spacing--60) !important; }
.hy-marquee--tools .hy-marquee__item {
	font-family: var(--hy-display);
	font-weight: 600;
	font-size: clamp(2.75rem, 7vw, 7rem);
	line-height: 1.05;
	text-transform: uppercase;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
	padding-right: 0.45em;
}
.hy-marquee--tools .hy-marquee__item::after {
	content: "✦";
	display: inline-block;
	margin-left: 0.45em;
	font-size: 0.4em;
	vertical-align: middle;
	color: var(--hy-accent);
	-webkit-text-stroke: 0;
}
.hy-marquee--tools .hy-marquee__item:nth-child(even) { color: var(--hy-text); -webkit-text-stroke: 0; }
html:not(.hy-js) .hy-marquee--tools { display: flex; flex-wrap: wrap; justify-content: center; }

/* Process: steps along a line that draws as you scroll */
.hy-process { padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60); }
.hy-process__head { gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem) !important; }
.hy-process__head > * { margin: 0 !important; }
.hy-process__title { text-transform: uppercase; }
.hy-process__steps {
	position: relative;
	gap: clamp(1.5rem, 3vw, 3rem) !important;
	padding-top: 2.75rem;
}
.hy-process__steps::before,
.hy-process__bar {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: var(--hy-line);
}
.hy-process__bar { background: var(--hy-accent); height: 2px; top: -0.5px; transform-origin: left; }
.hy-process__step { position: relative; }
.hy-process__step::before {
	content: "";
	position: absolute;
	top: calc(-2.75rem - 6px);
	left: 0;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--hy-bg);
	border: 2px solid var(--hy-accent);
}
.hy-process__step > * { margin: 0 !important; }
.hy-process__num {
	font-family: var(--hy-system);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.18em;
	color: var(--hy-muted);
	margin-bottom: 1rem !important;
}
.hy-process__step-title {
	font-size: clamp(1.4rem, 2vw, 1.9rem) !important;
	text-transform: uppercase;
	margin-bottom: 0.75rem !important;
}
.hy-process__desc { color: var(--hy-soft); line-height: 1.6; }

@media (max-width: 900px) {
	.hy-sg { grid-template-columns: 1fr; gap: 1.5rem; }
	.hy-sg__head { position: static; }
	.hy-process__steps { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
	.hy-sg-row__link { grid-template-columns: auto minmax(0, 1fr); }
	.hy-sg-row__arrow { display: none; }
	.hy-sg-row__icon { width: 2.75rem; height: 2.75rem; }
	/* Process becomes a vertical timeline */
	.hy-process__steps { grid-template-columns: 1fr !important; padding-top: 0; padding-left: 2rem; }
	.hy-process__steps::before, .hy-process__bar { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
	.hy-process__bar { width: 2px; transform-origin: top; }
	.hy-process__step::before { top: 0.15rem; left: calc(-2rem - 5px); }
}

/* ---------- About page (templates/page-about.html + patterns/about-page.php) */

.hy-about__content > * { margin-block: 0; }
.hy-ab-hero { padding-block: var(--wp--preset--spacing--50) 0; }
.hy-ab-hero > * + * { margin-top: 0; }
.hy-ab-hero .hy-giant { margin: 0 !important; line-height: 0.85 !important; }
.hy-ab-hero__status {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--hy-system);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hy-muted);
}
.hy-ab-hero__status::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hy-primary);
	animation: hy-pulse 2.2s ease-out infinite;
}
@keyframes hy-pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 74, 201, 0.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(43, 74, 201, 0); } }

/* Portrait + bio */
.hy-ab-intro {
	gap: clamp(2rem, 6vw, 7rem) !important;
	margin-top: clamp(2rem, 4vw, 4rem) !important;
	padding-top: clamp(1.5rem, 3vw, 3rem);
	border-top: 1px solid var(--hy-line);
}
.hy-ab-portrait { margin: 0 !important; border-radius: 20px; overflow: hidden; background: var(--hy-surface); }
.hy-ab-portrait img { border-radius: inherit; }
.hy-ab-intro__media { position: sticky; top: calc(var(--hy-header-h) + 1.5rem); }
.hy-ab-intro__copy > * { margin-block: 0 !important; }
.hy-ab-intro__copy > * + * { margin-top: 1.4rem !important; }
.hy-ab-intro__lead {
	font-family: var(--hy-display) !important;
	font-weight: 600 !important;
	font-size: clamp(1.75rem, 2.9vw, 3rem) !important;
	line-height: 1.08 !important;
	text-transform: uppercase;
	margin-bottom: 2rem !important;
}
.hy-ab-intro__copy p { color: var(--hy-soft); font-size: var(--wp--preset--font-size--large); line-height: 1.55; max-width: 52ch; }
.hy-ab-social { gap: 0.5rem 1.75rem !important; margin-top: 2.25rem !important; }

/* Stats */
.hy-ab-stats {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	margin-top: var(--wp--preset--spacing--60) !important;
	border-block: 1px solid var(--hy-line);
}
.hy-ab-stat { padding: clamp(1.5rem, 3vw, 2.75rem) clamp(0.75rem, 1.5vw, 1.5rem); margin: 0 !important; }
.hy-ab-stat + .hy-ab-stat { border-left: 1px solid var(--hy-line); }
.hy-ab-stat > * { margin: 0 !important; }
.hy-ab-stat__value {
	font-family: var(--hy-display);
	font-weight: 600;
	font-size: clamp(2.25rem, 3.8vw, 4rem);
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
/* "+", "%", "/100" — set by theme.js so the number stays the hero */
.hy-count__affix { font-size: 0.5em; margin-left: 0.06em; color: var(--hy-primary); letter-spacing: 0; }
.hy-ab-stat__label {
	margin-top: 0.85rem !important;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hy-muted);
}

/* Off the clock */
.hy-ab-offclock { padding-block: var(--wp--preset--spacing--60); }
.hy-ab-offclock > * { margin-block: 0 !important; }
.hy-ab-offclock .is-style-eyebrow { margin-bottom: 2rem !important; }
.hy-ab-offclock .is-style-scroll-reveal { font-size: clamp(2.25rem, 6vw, 4.5rem) !important; }
/* Same column as the statement, text kept to a readable measure */
.hy-ab-offclock__note { margin-top: 2.5rem !important; color: var(--hy-soft); font-size: var(--wp--preset--font-size--large); padding-right: max(0px, 100% - 60ch); box-sizing: border-box; }

/* Shared: sticky label column + content column */
.hy-ab-split {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
	gap: clamp(1.5rem, 5vw, 6rem);
	padding-block: clamp(3rem, 6vw, 6rem);
	border-top: 1px solid var(--hy-line);
	margin-block: 0 !important;
}
.hy-ab-split > * { margin: 0 !important; }
.hy-ab-split__head { position: sticky; top: calc(var(--hy-header-h) + 1.5rem); align-self: start; }
.hy-ab-split__head > * { margin: 0 !important; }
.hy-ab-split__title {
	margin-top: 1rem !important;
	font-size: clamp(1.9rem, 3.2vw, 3.25rem) !important;
	line-height: 1 !important;
	text-transform: uppercase;
}

/* Experience timeline: line + dots; the blue line fills with scroll (theme.js) */
.hy-ab-xp__list { position: relative; padding-left: clamp(1.75rem, 3vw, 2.75rem); }
.hy-ab-xp__list::before,
.hy-ab-xp__bar {
	content: "";
	position: absolute;
	left: 0;
	top: 0.4rem;
	bottom: 0;
	width: 1px;
	background: var(--hy-line);
}
.hy-ab-xp__bar { width: 2px; left: -0.5px; background: var(--hy-primary); transform-origin: top; }
.hy-ab-role { position: relative; margin: 0 !important; }
.hy-ab-role + .hy-ab-role { margin-top: clamp(2.5rem, 5vw, 4.5rem) !important; }
.hy-ab-role::before {
	content: "";
	position: absolute;
	left: calc(clamp(1.75rem, 3vw, 2.75rem) * -1 - 6px);
	top: 0.3rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--hy-bg);
	border: 2px solid var(--hy-primary);
}
.hy-ab-role > * { margin: 0 !important; }
.hy-ab-role__period {
	font-family: var(--hy-system);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hy-muted);
}
.hy-ab-role__title {
	margin-top: 0.75rem !important;
	font-size: clamp(1.5rem, 2.4vw, 2.3rem) !important;
	line-height: 1.05 !important;
	text-transform: uppercase;
}
.hy-ab-role__place { margin-top: 0.5rem !important; color: var(--hy-soft); font-size: var(--wp--preset--font-size--small); }
.hy-ab-role__points { list-style: none; padding: 0; margin-top: 1.5rem !important; display: grid; gap: 0.7rem; max-width: 70ch; }
.hy-ab-role__points li { position: relative; padding-left: 1.5rem; color: var(--hy-soft); line-height: 1.55; }
.hy-ab-role__points li::before { content: "—"; position: absolute; left: 0; color: var(--hy-muted); }

/* Skills cloud */
.hy-ab-skills__list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; }
.hy-ab-skills__list li {
	margin: 0;
	padding: 0.6rem 1.1rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--hy-soft);
	transition: color 0.3s ease, border-color 0.3s ease;
}
.hy-ab-skills__list li:hover { color: var(--hy-primary); border-color: var(--hy-primary); }

/* Rows: certificates + education */
.hy-ab-rows > .hy-ab-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.35rem 2rem;
	align-items: baseline;
	padding-block: clamp(1.25rem, 2.2vw, 1.75rem);
	margin: 0 !important;
	border-bottom: 1px solid var(--hy-line);
}
.hy-ab-rows > .hy-ab-row:first-child { padding-top: 0; }
.hy-ab-row > * { margin: 0 !important; }
.hy-ab-row__title {
	grid-column: 1;
	font-size: clamp(1.15rem, 1.7vw, 1.6rem) !important;
	line-height: 1.2 !important;
}
.hy-ab-row__sub { grid-column: 1; color: var(--hy-soft); font-size: var(--wp--preset--font-size--small); }
.hy-ab-row__meta {
	grid-column: 2;
	grid-row: 1;
	font-family: var(--hy-system);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hy-muted);
	white-space: nowrap;
}
.hy-ab-row--link { position: relative; }
.hy-ab-row--link .hy-ab-row__title a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
.hy-ab-row--link .hy-ab-row__title a::after { content: ""; position: absolute; inset: 0; } /* whole row clickable */
.hy-ab-row--link .hy-ab-row__title a::before {
	content: "↗";
	display: inline-block;
	margin-right: 0.6rem;
	font-size: 0.8em;
	color: var(--hy-muted);
	transition: transform 0.35s var(--hy-ease), color 0.3s ease;
}
.hy-ab-row--link:hover .hy-ab-row__title a { color: var(--hy-primary); }
.hy-ab-row--link:hover .hy-ab-row__title a::before { color: var(--hy-primary); transform: translate(3px, -3px); }

/* Languages */
.hy-ab-edu__body > * { margin: 0 !important; }
.hy-ab-langs { gap: 0.75rem !important; margin-top: clamp(2rem, 4vw, 3rem) !important; }
.hy-ab-lang {
	margin: 0 !important;
	padding: 1.1rem 1.4rem;
	min-width: 10rem;
	border: 1px solid var(--hy-line);
	border-radius: 16px;
	background: var(--hy-surface);
}
.hy-ab-lang > * { margin: 0 !important; }
.hy-ab-lang__name { font-family: var(--hy-display); font-weight: 600; font-size: 1.35rem; text-transform: uppercase; }
.hy-ab-lang__level { margin-top: 0.3rem !important; font-size: var(--wp--preset--font-size--x-small); letter-spacing: 0.16em; text-transform: uppercase; color: var(--hy-muted); }

@media (max-width: 1024px) {
	.hy-ab-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hy-ab-stat:nth-child(4) { border-left: 0; }
	.hy-ab-stat:nth-child(n+4) { border-top: 1px solid var(--hy-line); }
}
@media (max-width: 900px) {
	.hy-ab-split { grid-template-columns: 1fr; gap: 2rem; }
	.hy-ab-split__head, .hy-ab-intro__media { position: static; }
}
@media (max-width: 781px) {
	.hy-ab-intro__media { max-width: 420px; }
	.hy-ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hy-ab-stat:nth-child(n) { border-left: 0; border-top: 0; }
	.hy-ab-stat:nth-child(even) { border-left: 1px solid var(--hy-line); }
	.hy-ab-stat:nth-child(n+3) { border-top: 1px solid var(--hy-line); }
	.hy-ab-rows > .hy-ab-row { grid-template-columns: 1fr; }
	.hy-ab-row__meta { grid-column: 1; grid-row: auto; }
}

/* ---------- Old-theme sections (inc/legacy-blocks.php) ------------------ */

/* Every converted section gets the same vertical rhythm */
.hy-lb-hero, .hy-lb-cards, .hy-lb-cta, .hy-lb-about { margin-block: 0 !important; padding-block: clamp(3rem, 6vw, 6rem); }
.hy-lb-hero + *, .hy-lb-cards + *, .hy-process + * { margin-block-start: 0 !important; }
.hy-lb-portfolio, .hy-lb-posts, .hy-lb-services, .hy-lb-testimonials { margin-block: 0 !important; }
.hy-lb-head { gap: 1.5rem; }
.hy-lb-head > * { margin: 0 !important; }
.hy-lb-head__text > * { margin-block: 0 !important; }
.hy-lb-head__text .is-style-eyebrow { margin-bottom: 1rem !important; }
.hy-lb-split__desc { margin: 1.25rem 0 0 !important; color: var(--hy-soft); max-width: 40ch; line-height: 1.55; }

/* Hero */
.hy-lb-hero > * { margin-block: 0 !important; }
.hy-lb-hero .is-style-eyebrow { margin-bottom: 1.5rem !important; }
.hy-lb-hero__title {
	max-width: 18ch;
	font-family: var(--hy-display) !important;
	font-weight: 600 !important;
	font-size: clamp(2.5rem, 6.5vw, 6.5rem) !important;
	line-height: 0.98 !important;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}
.hy-lb-muted { color: var(--hy-muted); }
.hy-lb-hero__desc { margin-top: 2rem !important; max-width: 52ch; color: var(--hy-soft); font-size: var(--wp--preset--font-size--large); line-height: 1.5; }
.hy-lb-hero__cta { margin-top: 2.5rem !important; gap: 1rem 2rem !important; align-items: center; }

/* Feature cards */
.hy-lb-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 1rem;
}
.hy-lb-cards > .hy-lb-card { margin: 0 !important; }
.hy-lb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 2.5vw, 2.25rem);
	border: 1px solid var(--hy-line);
	border-radius: 20px;
	background: var(--hy-surface);
	transition: border-color 0.35s ease, background-color 0.35s ease;
}
.hy-lb-card:hover { border-color: rgba(43, 74, 201, 0.55); background: var(--hy-surface-2); }
.hy-lb-card > * { margin: 0 !important; }
.hy-lb-card__icon {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 2.5rem !important;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--hy-soft);
	transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.hy-lb-card__icon svg { width: 1.4rem; height: 1.4rem; }
.hy-lb-card:hover .hy-lb-card__icon { background: var(--hy-primary); border-color: var(--hy-primary); color: #fff; }
.hy-lb-card__num {
	position: absolute;
	top: clamp(1.5rem, 2.5vw, 2.25rem);
	right: clamp(1.5rem, 2.5vw, 2.25rem);
	font-family: var(--hy-system);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.18em;
	color: var(--hy-muted);
}
.hy-lb-card__title { font-size: clamp(1.25rem, 1.8vw, 1.6rem) !important; line-height: 1.15 !important; text-transform: uppercase; }
.hy-lb-card__desc { margin-top: 0.85rem !important; color: var(--hy-soft); line-height: 1.6; font-size: 1rem !important; }
/* Inside article content (service pages) keep section text at UI size */
.wp-block-post-content .hy-process__desc,
.wp-block-post-content .hy-lb-table td { font-size: 1rem !important; }

/* Feature table */
.hy-lb-table { margin: 0 !important; overflow-x: auto; }
.hy-lb-table table { width: 100%; border-collapse: collapse; min-width: 640px; }
.hy-lb-table th, .hy-lb-table td { padding: 1.25rem 1rem; border: 0 !important; border-bottom: 1px solid var(--hy-line) !important; text-align: left; vertical-align: top; }
.hy-lb-table th {
	font-family: var(--hy-system);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hy-muted);
}
.hy-lb-table td { color: var(--hy-soft); line-height: 1.55; }
.hy-lb-table td:first-child { color: var(--hy-text); font-family: var(--hy-display); font-weight: 600; text-transform: uppercase; }
.hy-lb-table tbody tr { transition: background-color 0.3s ease; }
.hy-lb-table tbody tr:hover { background: var(--hy-surface); }

/* Process (converted): eyebrow above the title */
.hy-process__head .is-style-eyebrow { margin-bottom: -0.25rem !important; }

/* Testimonials */
.hy-lb-quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.hy-lb-quotes > * { margin: 0 !important; }
.hy-lb-quote { padding: 2rem; border: 1px solid var(--hy-line); border-radius: 20px; background: var(--hy-surface); }
.hy-lb-quote > * { margin: 0 !important; }
.hy-lb-quote__text { font-size: var(--wp--preset--font-size--large); line-height: 1.5; }
.hy-lb-quote__text::before { content: "“"; display: block; font-family: var(--hy-display); font-size: 3rem; line-height: 0.6; color: var(--hy-primary); margin-bottom: 0.75rem; }
.hy-lb-quote__name { margin-top: 1.5rem !important; font-family: var(--hy-display); font-weight: 600; text-transform: uppercase; }
.hy-lb-quote__role { margin-top: 0.25rem !important; font-size: var(--wp--preset--font-size--small); color: var(--hy-muted); }

/* Call to action */
.hy-lb-cta { text-align: center; border-top: 1px solid var(--hy-line); }
.hy-lb-cta > * { margin-block: 0 !important; margin-inline: auto !important; }
.hy-lb-cta .is-style-eyebrow { margin-bottom: 1.5rem !important; }
.hy-lb-cta__title {
	max-width: 16ch;
	font-family: var(--hy-display) !important;
	font-weight: 600 !important;
	font-size: clamp(2.25rem, 6vw, 6rem) !important;
	line-height: 0.98 !important;
	text-transform: uppercase;
}
.hy-lb-cta__desc { margin-top: 1.75rem !important; max-width: 48ch; color: var(--hy-soft); font-size: var(--wp--preset--font-size--large); line-height: 1.5; }
.hy-lb-cta__buttons { margin-top: 2.5rem !important; gap: 1rem 2rem !important; align-items: center; }

/* Converted About section without the About page's giant name */
.hy-lb-about .hy-ab-intro { margin-top: 0 !important; padding-top: 0; border-top: 0; }
.hy-lb-about .hy-ab-intro__copy .is-style-eyebrow { margin-bottom: 1.25rem !important; }
.hy-lb-about + .hy-ab-stats { margin-top: 0 !important; }

/* Process with more than 4 steps: each step gets its own rule instead of one timeline */
.hy-process--rows .hy-process__steps { padding-top: 0; row-gap: clamp(2.5rem, 4vw, 3.5rem) !important; }
.hy-process--rows .hy-process__steps::before,
.hy-process--rows .hy-process__bar,
.hy-process--rows .hy-process__step::before { display: none; }
.hy-process--rows .hy-process__step { padding-top: 1.5rem; border-top: 1px solid var(--hy-line); }

/* A page that opens with a converted hero doesn't also need the page title */
.hy-page:has(.hy-page-content > .hy-lb-hero:first-child) > .hy-page-hero { display: none; }

/* Converted marquee runs edge to edge even inside narrow page content */
.wp-block-post-content > .hy-marquee.alignfull { width: 100vw; max-width: 100vw !important; margin-inline: calc(50% - 50vw) !important; }

/* Card titles in 3-column grids */
.hy-lb-portfolio .hy-work-card__title,
.hy-lb-posts .hy-work-card__title { font-size: clamp(1.2rem, 1.8vw, 1.6rem) !important; line-height: 1.15 !important; }

/* Blog cards */
.hy-post-grid .wp-block-post-template { gap: 1.5rem; }

/* Editor: notice above an old-theme block */
.hy-legacy-block__notice { margin: 0 0 1rem; }
.hy-legacy-block__notice p { margin: 0 0 0.75rem; }

@media (max-width: 781px) {
	.hy-lb-hero__title, .hy-lb-cta__title { max-width: none; }
	/* Feature table: each row becomes a stacked block (no sideways scroll) */
	.hy-lb-table table { min-width: 0; }
	.hy-lb-table thead { display: none; }
	.hy-lb-table tr { display: block; padding-block: 1.25rem; border-bottom: 1px solid var(--hy-line); }
	.hy-lb-table td { display: block; padding: 0.2rem 0; border: 0 !important; }
	.hy-lb-table td:first-child { margin-bottom: 0.5rem; }
	.hy-lb-table td + td + td { margin-top: 0.5rem; color: var(--hy-muted); }
}

/* ---------- Motion helpers -------------------------------------------- */

.hy-js .hy-fade-up { opacity: 0; transform: translateY(40px); }
.hy-parallax, .hy-parallax-media { overflow: hidden; }

/* ---------- Responsive ------------------------------------------------- */

@media (max-width: 1024px) {
	.hy-js .hy-mv__panel { padding-inline: 8vw 8vw; justify-content: flex-start; padding-top: 22vh; }
	.hy-js .hy-mv { --mv-pivot-x: 70%; }
	.hy-js .hy-mv__label { top: auto !important; bottom: 12%; font-size: 2rem; }
	.hy-js .hy-mv__label--mission { left: 8vw; transform: none; }
	.hy-js .hy-mv__label--vision { left: 50vw; transform: none; }
	.hy-js .hy-mv.is-vision .hy-mv__label--mission, .hy-js .hy-mv.is-vision .hy-mv__label--vision { transform: none; }
	/* Phones/tablets: no room for the diagonal (it crossed the copy). It becomes a
	   tab underline under the active label and slides MISSION -> VISION. */
	.hy-js .hy-mv__line {
		top: auto;
		bottom: calc(12% - 0.9rem);
		left: 8vw;
		width: 8.2rem !important;
		height: 2px !important;
		background: linear-gradient(90deg, rgba(255,255,255,.85), rgba(255,255,255,.15)) !important;
		transform: none;
		transform-origin: left center;
		transition: transform 0.6s var(--hy-ease), width 0.6s var(--hy-ease);
	}
	.hy-js .hy-mv.is-vision .hy-mv__line { transform: translateX(42vw); width: 6.5rem !important; }
}

@media (max-width: 781px) {
	:root { --hy-header-h: 72px; }
	.hy-header .hy-header__cta { display: none !important; } /* beats core .wp-block-buttons.is-layout-flex */
	.hy-brand__tagline { font-size: 0.8rem; }
	.hy-contact-form__row { grid-template-columns: 1fr; }
	.hy-service-row-block { grid-template-columns: 2.5rem 1fr !important; }
	.hy-service-row-block .hy-service-row__excerpt { grid-column: 2; }
	.hy-service-row__link { grid-template-columns: 2.5rem 1fr 1.5rem; }
	.hy-service-row__excerpt { grid-column: 2; grid-row: 2; }
	.hy-service-row__thumb { display: none; }
	.hy-logos { --card-w: 180px; --card-h: 96px; }
	.hy-marquee--diagonal { --band-h: 48px; }
	.hy-marquee--diagonal .hy-marquee__item { font-size: 17px; padding: 0 1.1rem; }
	.hy-edge__intro .wp-block-column:not(:nth-child(2)) { display: none; }
	.hy-stack__card { grid-template-columns: 1fr !important; min-height: 0; }
	.hy-mv__list li { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.hy-js .hy-fade-up { opacity: 1; transform: none; }
	.hy-js .is-style-scroll-reveal, .is-style-scroll-reveal .hy-char { color: var(--hy-text); }
}
