/*!
Theme Name: BioMotion
Theme URI: https://biomotion.us/
Author: Ashin Iqbal — PBIS LLC
Author URI: https://pbisllc.com/
Description: A custom theme for BioMotion LLC and the Adaptix Neuro adaptive neurorehabilitation platform. Ships a video hero, a closed-loop control diagram, an outcomes plot and scroll-triggered GSAP motion, with all fonts, scripts and media served from the theme itself.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biomotion
Tags: custom-menu, featured-images, translation-ready, one-column, full-width-template

This file is the base layer, loaded on every view:
tokens, reset, typography, buttons, header, footer and editor content styles.
Homepage-only rules live in assets/css/home.css.
Interior-page-only rules live in assets/css/page.css.
*/

/* =========================================================================
   1. Design tokens
   ========================================================================= */

:root {
	/* Palette --------------------------------------------------------- */
	--paper: #ffffff;
	--haze: #eef4f0;          /* pale green-grey surface */
	--haze-soft: #f7faf8;     /* barely-there surface tint */
	--ink: #0b1b14;           /* near-black with a green cast; all body type */
	--ink-raise: #12291f;     /* raised surfaces inside the dark band */
	--slate: #55665f;         /* secondary copy */
	--slate-soft: #7b8a83;    /* captions, axis labels */
	--line: #dde6e1;          /* hairlines on light */
	--line-ink: rgba(255, 255, 255, 0.13); /* hairlines on dark */

	--signal: #31aa64;        /* brand primary */
	--signal-deep: #1e7a46;   /* hover / depth */
	--signal-lift: #45c179;   /* the green that survives a dark background */
	--signal-tint: rgba(49, 170, 100, 0.09);
	--signal-glow: rgba(49, 170, 100, 0.28);

	/*
	 * Secondary accent. Used to one rule so it reads as meaning rather than
	 * decoration: green marks the product, blue marks evidence — research,
	 * publications, citations and links out to sources.
	 */
	--accent: #0166bf;
	--accent-deep: #014e93;
	--accent-lift: #4f9ce0;   /* legible on the dark band */
	--accent-tint: rgba(1, 102, 191, 0.08);

	/* Type ------------------------------------------------------------ */
	--font-display: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--fs-display: clamp(1.7rem, 1rem + 3.2vw, 3.4rem);
	--fs-h2: clamp(1.85rem, 1.15rem + 2.5vw, 2.9rem);
	--fs-h3: clamp(1.2rem, 1.06rem + 0.55vw, 1.45rem);
	--fs-lead: clamp(1.03rem, 0.97rem + 0.3vw, 1.19rem);
	--fs-body: 1rem;
	--fs-sm: 0.9375rem;
	--fs-xs: 0.8125rem;
	--fs-eyebrow: 0.75rem;

	/* Space ----------------------------------------------------------- */
	--gutter: clamp(20px, 5vw, 40px);
	--maxw: 1200px;
	--section-y: clamp(72px, 8.5vw, 128px);
	--header-h: 84px;

	/* Shape ----------------------------------------------------------- */
	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 20px;
	--r-xl: 28px;
	--r-full: 999px;

	/* Elevation ------------------------------------------------------- */
	--shadow-sm: 0 1px 2px rgba(11, 27, 20, 0.05), 0 2px 8px rgba(11, 27, 20, 0.04);
	--shadow-md: 0 4px 14px rgba(11, 27, 20, 0.06), 0 14px 36px rgba(11, 27, 20, 0.07);
	--shadow-lg: 0 30px 70px -24px rgba(11, 27, 20, 0.22);

	/* Motion ---------------------------------------------------------- */
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--dur: 220ms;
}

@media (max-width: 767px) {
	:root {
		--header-h: 70px;
	}
}

/* =========================================================================
   2. Reset
   ========================================================================= */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.7;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.14;
	letter-spacing: -0.025em;
	text-wrap: balance;
	color: var(--ink);
}

p {
	margin: 0;
}

ul, ol {
	margin: 0;
	padding: 0;
}

ul[class],
ol[class] {
	list-style: none;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--accent-deep);
}

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

img,
video {
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

figure {
	margin: 0;
}

:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--signal);
	color: #fff;
}

/* =========================================================================
   3. Layout primitives
   ========================================================================= */

.container {
	width: min(100% - (var(--gutter) * 2), var(--maxw));
	margin-inline: auto;
}

.section {
	position: relative;
	padding-block: var(--section-y);
}

.site-main {
	display: block;
}

.has-solid-header .site-main {
	padding-top: var(--header-h);
}

/* =========================================================================
   4. Shared type components
   ========================================================================= */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75em;
	margin-bottom: 18px;
	font-family: var(--font-display);
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--signal-deep);
}

.eyebrow__mark {
	flex: none;
	color: var(--signal);
	overflow: visible;
}

.eyebrow__label {
	display: block;
}

.section__title {
	font-size: var(--fs-h2);
	max-width: 26ch;
}

.section__lead {
	margin-top: 22px;
	display: grid;
	gap: 16px;
	max-width: 58ch;
	font-size: var(--fs-lead);
	line-height: 1.68;
	color: var(--slate);
}

.icon {
	flex: none;
}

/* =========================================================================
   5. Buttons — one shape, one height, three tones
   ========================================================================= */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: var(--r-md);
	font-family: var(--font-display);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: -0.005em;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background-color var(--dur) var(--ease),
		border-color var(--dur) var(--ease),
		color var(--dur) var(--ease),
		box-shadow var(--dur) var(--ease),
		transform var(--dur) var(--ease);
}

.btn__icon {
	transition: transform var(--dur) var(--ease);
}

.btn:hover .btn__icon {
	transform: translateX(3px);
}

.btn:active {
	transform: translateY(0);
}

.btn--primary {
	background: var(--signal);
	border-color: var(--signal);
	color: #fff;
	box-shadow: 0 1px 2px rgba(11, 27, 20, 0.08), 0 8px 20px -8px var(--signal-glow);
}

.btn--primary:hover {
	background: var(--signal-deep);
	border-color: var(--signal-deep);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(11, 27, 20, 0.1), 0 14px 30px -10px var(--signal-glow);
}

.btn--secondary {
	background: rgba(255, 255, 255, 0.72);
	border-color: var(--line);
	color: var(--ink);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.btn--secondary:hover {
	background: var(--paper);
	border-color: var(--signal);
	color: var(--signal-deep);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.btn--block {
	width: 100%;
}

/* =========================================================================
   6. Header
   ========================================================================= */

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--header-h);
	background: transparent;
	border-bottom: 1px solid transparent;
	transition:
		background-color var(--dur) var(--ease),
		border-color var(--dur) var(--ease),
		box-shadow var(--dur) var(--ease),
		height var(--dur) var(--ease);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 100%;
}

.site-header.is-scrolled,
.has-solid-header .site-header {
	background: rgba(255, 255, 255, 0.86);
	border-bottom-color: var(--line);
	box-shadow: 0 1px 20px rgba(11, 27, 20, 0.04);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	backdrop-filter: saturate(180%) blur(16px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.site-header.is-scrolled,
	.has-solid-header .site-header {
		background: rgba(255, 255, 255, 0.98);
	}
}

.is-front .site-header.is-scrolled {
	--header-h: 74px;
}

/* Brand ------------------------------------------------------------- */

.brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	text-decoration: none;
	color: var(--ink);
	flex: none;
}

/*
 * Mark and wordmark scale together, reaching 45px / 1.8rem on desktop and
 * easing down on small screens so the lockup never crowds the menu button.
 */
.brand__mark {
	width: auto;
	height: clamp(36px, 2.2rem + 0.9vw, 45px);
	transition: transform var(--dur) var(--ease);
}

.brand:hover .brand__mark {
	transform: translateY(-1px) rotate(-3deg);
}

.brand__name {
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 1.05rem + 1.05vw, 1.8rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1;
}

.brand__custom-logo {
	width: auto;
	height: clamp(38px, 2.4rem + 1vw, 50px);
	object-fit: contain;
}

/* Desktop navigation ------------------------------------------------- */

.nav--desktop {
	margin-left: auto;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav__list li {
	position: relative;
}

.nav__list a {
	display: block;
	padding: 9px 14px;
	border-radius: var(--r-sm);
	font-family: var(--font-display);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: -0.005em;
	color: var(--ink);
	text-decoration: none;
	transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav__list a:hover,
.nav__list a:focus-visible {
	color: var(--signal-deep);
	background: var(--signal-tint);
}

.nav__label {
	position: relative;
	display: inline-block;
}

.nav__label::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -5px;
	height: 2px;
	border-radius: 2px;
	background: var(--signal);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform var(--dur) var(--ease);
}

.nav__list .current-menu-item > a .nav__label::after,
.nav__list .current_page_item > a .nav__label::after,
.nav__list .current-menu-ancestor > a .nav__label::after {
	transform: scaleX(1);
}

.nav__list .current-menu-item > a,
.nav__list .current_page_item > a,
.nav__list .current-menu-ancestor > a {
	color: var(--accent);
}

/* Second-level dropdown */
.nav--desktop .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 210px;
	padding: 8px;
	margin: 0;
	list-style: none;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}

.nav--desktop li:hover > .sub-menu,
.nav--desktop li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav--desktop .sub-menu a {
	white-space: nowrap;
}

/* Hamburger ---------------------------------------------------------- */

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin-right: -8px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	color: var(--ink);
	transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-toggle:hover {
	border-color: var(--signal);
	background: var(--signal-tint);
}

.nav-toggle__bars {
	position: relative;
	display: block;
	width: 19px;
	height: 13px;
}

.nav-toggle__bar {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition:
		transform 320ms var(--ease),
		opacity 160ms var(--ease),
		width 320ms var(--ease);
}

.nav-toggle__bar:nth-child(1) { top: 0; }
.nav-toggle__bar:nth-child(2) { top: 5.5px; width: 74%; }
.nav-toggle__bar:nth-child(3) { top: 11px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
	transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
	opacity: 0;
	transform: translateX(-8px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
	transform: translateY(-5.5px) rotate(-45deg);
}

/* Mobile panel ------------------------------------------------------- */

.mobile-nav {
	position: fixed;
	inset: var(--header-h) 0 0 0;
	z-index: 99;
	background: var(--paper);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition:
		opacity 300ms var(--ease),
		transform 300ms var(--ease),
		visibility 300ms;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.mobile-nav[data-open="true"] {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mobile-nav__panel {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	min-height: 100%;
	padding: clamp(24px, 7vw, 40px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
}

.nav__list--mobile {
	display: block;
}

.nav__list--mobile li {
	border-bottom: 1px solid var(--line);
}

.nav__list--mobile > li > a {
	padding: 17px 0;
	font-size: 1.28rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	border-radius: 0;
}

.nav__list--mobile a:hover,
.nav__list--mobile a:focus-visible {
	background: transparent;
	padding-left: 8px;
}

.nav__list--mobile .nav__label::after {
	display: none;
}

.nav__list--mobile .sub-menu {
	list-style: none;
	margin: 0 0 10px;
	padding: 0 0 0 14px;
	border-left: 2px solid var(--line);
}

.nav__list--mobile .sub-menu li {
	border-bottom: 0;
}

.nav__list--mobile .sub-menu a {
	padding: 8px 0;
	font-size: 1rem;
	font-weight: 500;
	color: var(--slate);
}

/* Staggered entrance for the panel links; CSS-only so the menu still
   behaves correctly if the animation runtime never loads. */
.mobile-nav .nav__list--mobile > li,
.mobile-nav__foot {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 340ms var(--ease), transform 340ms var(--ease);
}

.mobile-nav[data-open="true"] .nav__list--mobile > li,
.mobile-nav[data-open="true"] .mobile-nav__foot {
	opacity: 1;
	transform: translateY(0);
}

.mobile-nav[data-open="true"] .nav__list--mobile > li:nth-child(1) { transition-delay: 60ms; }
.mobile-nav[data-open="true"] .nav__list--mobile > li:nth-child(2) { transition-delay: 110ms; }
.mobile-nav[data-open="true"] .nav__list--mobile > li:nth-child(3) { transition-delay: 160ms; }
.mobile-nav[data-open="true"] .nav__list--mobile > li:nth-child(4) { transition-delay: 210ms; }
.mobile-nav[data-open="true"] .nav__list--mobile > li:nth-child(5) { transition-delay: 260ms; }
.mobile-nav[data-open="true"] .nav__list--mobile > li:nth-child(6) { transition-delay: 310ms; }
.mobile-nav[data-open="true"] .mobile-nav__foot { transition-delay: 340ms; }

.mobile-nav__foot {
	display: grid;
	gap: 16px;
}

.mobile-nav__note {
	font-size: var(--fs-xs);
	line-height: 1.6;
	color: var(--slate-soft);
	max-width: 34ch;
}

.nav-open,
.nav-open body {
	overflow: hidden;
}

@media (max-width: 959px) {
	.nav--desktop {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
	}
}

@media (min-width: 960px) {
	.mobile-nav {
		display: none;
	}
}

/* =========================================================================
   7. Cadence trace — the signature hairline
   ========================================================================= */

.cadence {
	pointer-events: none;
	color: var(--line);
	line-height: 0;
}

.cadence__svg {
	width: 100%;
	height: 40px;
}

.cadence__base {
	opacity: 0.9;
}

.cadence__pulse {
	color: var(--signal);
	stroke-dasharray: 110 1600;
	stroke-dashoffset: 0;
	opacity: 0.85;
}

/* =========================================================================
   8. Footer
   ========================================================================= */

.site-footer {
	border-top: 1px solid var(--line);
	background: var(--haze-soft);
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	flex-wrap: wrap;
	padding-block: 22px;
}

.site-footer__copy {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: var(--fs-sm);
	color: var(--slate);
}

.site-footer__mark {
	width: auto;
	height: 22px;
	opacity: 0.9;
}

/* Studio credit sits quieter than the policy link beside it. */
.site-footer__credit {
	color: var(--slate);
	text-decoration: none;
	border-bottom: 1px solid var(--line);
	transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.site-footer__credit:hover {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.site-footer__link {
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--slate);
	text-decoration: none;
	transition: color var(--dur) var(--ease);
}

.site-footer__link:hover {
	color: var(--signal-deep);
	text-decoration: underline;
}

/* =========================================================================
   9. Accessibility utilities
   ========================================================================= */

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 200;
	padding: 12px 20px;
	background: var(--ink);
	color: #fff;
	border-radius: var(--r-md);
	font-family: var(--font-display);
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
	transition: top var(--dur) var(--ease);
}

.skip-link:focus {
	top: 12px;
	color: #fff;
}

/* =========================================================================
   10. Scroll-reveal base state
   ========================================================================= */

/*
 * Elements are only pre-hidden when JavaScript is present, motion is allowed,
 * and the failsafe has not fired. If the animation runtime never boots, the
 * failsafe class removes this rule and everything is visible.
 */
.has-js:not(.anim-failsafe) .js-reveal,
.has-js:not(.anim-failsafe) .js-reveal-item,
.has-js:not(.anim-failsafe) [data-hero] {
	opacity: 0;
}

/* =========================================================================
   11. Editor content (interior pages)
   ========================================================================= */

.entry-content {
	max-width: 760px;
	margin-inline: auto;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--slate);
}

.entry-content > * + * {
	margin-top: 1.25em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--ink);
	margin-top: 1.9em;
	margin-bottom: -0.4em;
}

.entry-content h2 { font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2rem); }
.entry-content h3 { font-size: var(--fs-h3); }
.entry-content h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

.entry-content ul,
.entry-content ol {
	padding-left: 1.35em;
}

.entry-content li + li {
	margin-top: 0.4em;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li::marker {
	color: var(--signal);
}

.entry-content blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--signal);
	font-size: var(--fs-lead);
	color: var(--ink);
}

.entry-content blockquote p + p {
	margin-top: 0.8em;
}

.entry-content img,
.entry-content figure {
	border-radius: var(--r-md);
	overflow: hidden;
}

.entry-content figcaption,
.wp-caption-text {
	margin-top: 10px;
	font-size: var(--fs-xs);
	color: var(--slate-soft);
	text-align: center;
}

.entry-content code,
.entry-content kbd {
	padding: 0.15em 0.4em;
	background: var(--haze);
	border-radius: 5px;
	font-size: 0.9em;
}

.entry-content pre {
	padding: 20px;
	background: var(--ink);
	color: #e6efe9;
	border-radius: var(--r-md);
	overflow-x: auto;
	font-size: 0.875rem;
	line-height: 1.6;
}

.entry-content pre code {
	background: none;
	padding: 0;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-sm);
}

.entry-content th,
.entry-content td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.entry-content th {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--ink);
}

.entry-content hr,
.wp-block-separator {
	height: 1px;
	margin: 2.5em 0;
	border: 0;
	background: var(--line);
}

.alignleft {
	float: left;
	margin: 0.4em 1.6em 1.2em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1.2em 1.6em;
}

.aligncenter {
	margin-inline: auto;
}

.alignwide {
	width: min(100vw - (var(--gutter) * 2), 1040px);
	max-width: none;
	margin-inline: auto;
	transform: translateX(calc((760px - min(100vw - (var(--gutter) * 2), 1040px)) / 2));
}

.alignfull {
	width: calc(100vw - (var(--gutter) * 2));
	max-width: none;
	margin-inline: auto;
	transform: translateX(calc((760px - (100vw - (var(--gutter) * 2))) / 2));
}

.page-links {
	display: flex;
	gap: 8px;
	margin-top: 2em;
	font-family: var(--font-display);
	font-weight: 600;
}

/* =========================================================================
   12. Forms and comments
   ========================================================================= */

.field {
	display: grid;
	gap: 7px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
textarea {
	width: 100%;
	padding: 13px 15px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	font-size: var(--fs-sm);
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus {
	outline: none;
	border-color: var(--signal);
	box-shadow: 0 0 0 3px var(--signal-tint);
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 460px;
}

.comments-area {
	max-width: 760px;
	margin: clamp(48px, 7vw, 80px) auto 0;
	padding-top: clamp(32px, 5vw, 48px);
	border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
	font-size: var(--fs-h3);
	margin-bottom: 24px;
}

.comment-list {
	list-style: none;
	display: grid;
	gap: 24px;
	margin: 0 0 40px;
	padding: 0;
}

.comment-list ol.children {
	list-style: none;
	margin: 24px 0 0;
	padding-left: 24px;
	border-left: 2px solid var(--line);
	display: grid;
	gap: 24px;
}

.comment-body {
	font-size: var(--fs-sm);
	color: var(--slate);
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	font-size: var(--fs-xs);
	color: var(--slate-soft);
}

.comment-author .fn {
	font-family: var(--font-display);
	font-weight: 600;
	font-style: normal;
	color: var(--ink);
}

.comment-form {
	display: grid;
	gap: 16px;
}

.comment-form .btn,
.comment-form input[type="submit"] {
	justify-self: start;
}

.comment-form input[type="submit"] {
	min-height: 52px;
	padding: 0 26px;
	background: var(--signal);
	border: 1px solid var(--signal);
	border-radius: var(--r-md);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 600;
	transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.comment-form input[type="submit"]:hover {
	background: var(--signal-deep);
	transform: translateY(-2px);
}

/* =========================================================================
   13. Reduced motion
   ========================================================================= */

/*
 * Reduce-motion policy.
 *
 * This suppresses movement — looping animations, parallax, float, hover lifts
 * and slide-ins — while leaving colour and opacity feedback intact. Content
 * still fades in, so the site does not feel broken for people who have the OS
 * setting enabled; it simply stops moving.
 */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
}

.reduce-motion .btn:hover,
.reduce-motion .capability:hover,
.reduce-motion .pcard:hover,
.reduce-motion .member:hover,
.reduce-motion .member:hover .member__photo,
.reduce-motion .brand:hover .brand__mark {
	transform: none;
}

.reduce-motion .btn:hover .btn__icon {
	transform: none;
}
