/* ==========================================================================
   Aptelic LLP — inner page composition
   Loaded on every page except index.html. Shares the design system and the
   CTA panel from site.css; adds the page hero and the per-page blocks.
   ========================================================================== */

/* Only fade the elements that actually get an opacity tween. A masked
   headline is hidden by its own line masks; fading it here left every
   inner-page <h1> permanently invisible, because heroIntro() animates the
   inner spans and never touches the heading's opacity. */
.anim-armed [data-anim="up"] {
	opacity: 0;
}

.anim-armed [data-anim="mask"] .line-inner {
	transform: translateY(105%);
}

/* GSAP folds a CSS percentage transform into a pixel baseline. */
.gsap-motion [data-anim="mask"] .line-inner {
	transform: none;
}

/* --------------------------------------------------------------------------
   Page hero — shorter than the homepage, same voice
   -------------------------------------------------------------------------- */

.ph {
	position: relative;
	padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
	overflow: hidden;
}

.ph-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2.25rem, 4.5vw, 3.5rem);
	align-items: center;
}

@media (min-width: 62rem) {
	.ph-grid {
		grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
		gap: clamp(3rem, 5vw, 4.5rem);
	}
}

.ph-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: clamp(1rem, 2vw, 1.5rem);
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink-muted);
}

.ph-kicker::before {
	content: "";
	width: 1.75rem;
	height: 1px;
	background: var(--gold);
}

.ph-title {
	margin: 0;
	font-size: clamp(2.35rem, 5.6vw, 4.25rem);
	line-height: 0.99;
	letter-spacing: -0.042em;
	font-weight: 600;
	color: var(--ink);
	margin-left: -0.04em;
}

.ph-title .line {
	display: block;
	overflow: hidden;
	padding-bottom: 0.07em;
}

.ph-title .line-inner {
	display: block;
	will-change: transform;
}

.ph-title .serif,
.serif-accent {
	font-family: var(--font-serif);
	font-weight: 400;
	font-style: italic;
	letter-spacing: -0.026em;
	color: var(--navy);
}

.ph-sub {
	max-width: 48ch;
	margin-top: clamp(1.35rem, 2.4vw, 1.85rem);
	font-size: clamp(1.02rem, 1.3vw, 1.15rem);
	line-height: 1.58;
	color: var(--ink-muted);
}

.ph-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: clamp(1.6rem, 2.6vw, 2.1rem);
}

@media (max-width: 30rem) {
	.ph-actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.ph-actions .btn {
		width: 100%;
	}
}

.ph-points {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1.75rem;
	margin-top: clamp(1.75rem, 3vw, 2.25rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.ph-points span {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--ink-muted);
}

.ph-points span::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--gold);
	flex: none;
}

/* Compact field for the service detail heroes */
.ph-figure {
	position: relative;
	margin: 0;
	width: 100%;
	aspect-ratio: 3 / 2;
}

@media (min-width: 62rem) {
	.ph-figure {
		aspect-ratio: auto;
		height: clamp(16rem, 30vh, 22rem);
	}
}

.ph-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	mask-image: radial-gradient(118% 106% at 52% 50%, #000 48%, transparent 94%);
	-webkit-mask-image: radial-gradient(118% 106% at 52% 50%, #000 48%, transparent 94%);
}

.ph-figure figcaption {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-family: var(--font-mono);
	font-size: 0.6rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	pointer-events: none;
}

.ph-figure figcaption .a {
	color: var(--ink-faint);
}

.ph-figure figcaption .b {
	color: var(--navy);
}

/* Hero side panel, used where a field would be noise */
.ph-panel {
	position: relative;
	padding: clamp(1.6rem, 2.4vw, 2.1rem);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-md);
}

.ph-panel::before {
	content: "";
	position: absolute;
	top: -1px;
	left: clamp(1.6rem, 2.4vw, 2.1rem);
	width: 3.5rem;
	height: 2px;
	background: var(--gold);
}

.ph-panel-kicker {
	font-family: var(--font-mono);
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 0.7rem;
}

.ph-panel h2 {
	font-size: clamp(1.15rem, 1.6vw, 1.4rem);
	margin-bottom: 1.3rem;
}

.ph-panel ul {
	display: grid;
	gap: 0.9rem;
}

.ph-panel li {
	position: relative;
	padding-left: 1.6rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--ink-muted);
}

.ph-panel li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 0.75rem;
	height: 1px;
	background: var(--gold);
}

/* --------------------------------------------------------------------------
   Shared section furniture
   -------------------------------------------------------------------------- */

.pg {
	padding-block: clamp(3.75rem, 7.5vw, 6.5rem);
}

.pg-warm {
	background: var(--paper-warm);
	border-block: 1px solid var(--line);
}

.pg-head {
	display: grid;
	gap: 1.15rem clamp(2rem, 6vw, 5rem);
	align-items: end;
	margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

@media (min-width: 62rem) {
	.pg-head {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	}
}

.pg-head h2 {
	font-size: clamp(1.95rem, 3.9vw, 3.1rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.pg-head > p {
	font-size: clamp(0.98rem, 1.15vw, 1.0625rem);
	color: var(--ink-muted);
	max-width: 46ch;
}

/* --------------------------------------------------------------------------
   Dark statement band — the light/dark rhythm, reused
   -------------------------------------------------------------------------- */

.band {
	position: relative;
	background: var(--navy-deep);
	color: rgba(255, 255, 255, 0.72);
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
	overflow: hidden;
}

.band::before {
	content: "";
	position: absolute;
	top: -35%;
	right: -8%;
	width: 46rem;
	height: 46rem;
	background: radial-gradient(circle, rgba(176, 138, 62, 0.15), transparent 62%);
	pointer-events: none;
}

.band-inner {
	position: relative;
}

.band-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-soft);
}

.band-kicker::before {
	content: "";
	width: 1.75rem;
	height: 1px;
	background: var(--gold-soft);
}

.band h2 {
	max-width: 24ch;
	margin: 0;
	font-size: clamp(1.9rem, 4.4vw, 3.4rem);
	line-height: 1.06;
	letter-spacing: -0.035em;
	color: #fff;
}

.band h2 .serif {
	font-family: var(--font-serif);
	font-weight: 400;
	font-style: italic;
	letter-spacing: -0.02em;
	color: var(--gold-soft);
}

.band > .container > .band-inner > p {
	max-width: 48ch;
	margin-top: clamp(1.35rem, 2.4vw, 1.9rem);
	font-size: clamp(0.98rem, 1.15vw, 1.0625rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.62);
}

.band-cols {
	display: grid;
	gap: 0;
	margin-top: clamp(2.5rem, 5vw, 4rem);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 52rem) {
	.band-cols {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.band-col {
	padding: clamp(1.4rem, 2.4vw, 1.9rem) 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 52rem) {
	.band-col {
		padding-right: clamp(1.5rem, 3vw, 2.75rem);
		border-bottom: 0;
	}

	.band-col + .band-col {
		padding-left: clamp(1.5rem, 3vw, 2.75rem);
		border-left: 1px solid rgba(255, 255, 255, 0.14);
	}
}

.band-index {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	color: var(--gold-soft);
	margin-bottom: 0.85rem;
}

.band-col h3 {
	margin: 0 0 0.45rem;
	font-size: 1.0625rem;
	color: #fff;
	letter-spacing: -0.018em;
}

.band-col p {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Offerings — services.html. Numbered slabs, alternating emphasis.
   -------------------------------------------------------------------------- */

.off {
	display: grid;
	gap: clamp(1rem, 1.8vw, 1.5rem);
}

@media (min-width: 58rem) {
	.off {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.off-item {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.6rem, 2.4vw, 2.2rem);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	transition: transform var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease),
		border-color var(--t-ui) var(--ease);
}

.off-item::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 2px;
	background: linear-gradient(180deg, var(--gold), var(--gold-soft));
	transform: scaleY(0);
	transform-origin: top;
	transition: transform var(--t-slow) var(--ease-out);
}

.off-item:hover {
	transform: translateY(-4px);
	border-color: var(--line-strong);
	box-shadow: var(--shadow-lg);
}

.off-item:hover::before {
	transform: scaleY(1);
}

.off-top {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 1rem;
}

.off-index {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	color: var(--gold-deep);
	flex: none;
}

.off-item h3 {
	margin: 0;
	font-size: clamp(1.2rem, 1.9vw, 1.5rem);
	letter-spacing: -0.028em;
}

.off-item .feature-list {
	margin-top: 0;
}

/* --------------------------------------------------------------------------
   Paths — two large entry points, services.html
   -------------------------------------------------------------------------- */

.paths {
	display: grid;
	gap: clamp(1rem, 1.8vw, 1.5rem);
}

@media (min-width: 58rem) {
	.paths {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.path {
	display: flex;
	flex-direction: column;
	padding: clamp(1.75rem, 2.8vw, 2.5rem);
	border-radius: var(--r-lg);
	border: 1px solid var(--line);
	background: var(--stone);
	transition: transform var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
}

.path:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.path-kicker {
	font-family: var(--font-mono);
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-deep);
	margin-bottom: 0.9rem;
}

.path h3 {
	margin: 0 0 0.8rem;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	letter-spacing: -0.03em;
}

.path > p {
	font-size: 0.9375rem;
	line-height: 1.58;
	color: var(--ink-muted);
}

/* The darker of the pair, so the pair is never symmetrical */
.path-dark {
	background: var(--navy-deep);
	border-color: var(--navy-deep);
	color: rgba(255, 255, 255, 0.72);
}

.path-dark h3 {
	color: #fff;
}

.path-dark .path-kicker {
	color: var(--gold-soft);
}

.path-dark > p,
.path-dark .feature-item p {
	color: rgba(255, 255, 255, 0.64);
}

.path-dark .feature-item .dot {
	background: var(--gold-soft);
}

.path-dark .service-link {
	color: var(--gold-soft);
	background-image: none;
}

.path-dark .service-link:hover {
	color: #fff;
}

/* --------------------------------------------------------------------------
   Principles — why-aptelic.html. A gold line draws down the column.
   -------------------------------------------------------------------------- */

.prin {
	position: relative;
	display: grid;
	gap: 0;
	padding-left: clamp(1.75rem, 4vw, 3rem);
}

.prin-track,
.prin-progress {
	position: absolute;
	left: 0;
	top: 0;
	width: 1px;
}

.prin-track {
	height: 100%;
	background: var(--line-strong);
}

.prin-progress {
	height: 100%;
	background: linear-gradient(180deg, var(--gold), var(--gold-soft));
	transform: scaleY(0);
	transform-origin: top;
}

.prin-item {
	position: relative;
	padding-block: clamp(1.5rem, 2.6vw, 2.1rem);
}

.prin-item + .prin-item {
	border-top: 1px solid var(--line);
}

.prin-dot {
	position: absolute;
	left: calc(clamp(1.75rem, 4vw, 3rem) * -1);
	top: clamp(1.9rem, 3vw, 2.5rem);
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--line-strong);
	transform: translateX(-3px);
	transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.prin-item.is-live .prin-dot {
	background: var(--gold);
	box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(176, 138, 62, 0.26);
}

.prin-index {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	color: var(--ink-faint);
	margin-bottom: 0.6rem;
	transition: color 0.4s var(--ease);
}

.prin-item.is-live .prin-index {
	color: var(--gold-deep);
}

.prin-item h3 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.15rem, 1.9vw, 1.5rem);
	letter-spacing: -0.028em;
}

.prin-item p {
	font-size: 0.9375rem;
	line-height: 1.58;
	color: var(--ink-muted);
	max-width: 54ch;
}

/* --------------------------------------------------------------------------
   Deliverables — service detail pages
   -------------------------------------------------------------------------- */

.deliv {
	display: grid;
	gap: 0;
	border-top: 1px solid var(--line-strong);
}

@media (min-width: 52rem) {
	.deliv {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: clamp(1.5rem, 3vw, 2.75rem);
	}
}

/* Four items in a three-column track strands the fourth on its own row. */
@media (min-width: 40rem) {
	.deliv-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: clamp(1.5rem, 3vw, 2.75rem);
	}
}

@media (min-width: 64rem) {
	.deliv-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.deliv-item {
	padding-block: clamp(1.4rem, 2.4vw, 1.9rem);
	border-bottom: 1px solid var(--line);
}

@media (min-width: 52rem) {
	.deliv-item {
		border-bottom: 0;
		position: relative;
	}

	.deliv-item::before {
		content: "";
		position: absolute;
		top: -1px;
		left: 0;
		width: 2.5rem;
		height: 2px;
		background: var(--gold);
	}
}

.deliv-index {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	color: var(--gold-deep);
	margin-bottom: 0.7rem;
}

.deliv-item h3 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	letter-spacing: -0.022em;
}

.deliv-item p {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Contact — panel plus form
   -------------------------------------------------------------------------- */

.ct-grid {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

@media (min-width: 64rem) {
	.ct-grid {
		grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	}
}

.ct-aside {
	padding: clamp(1.75rem, 2.6vw, 2.25rem);
	background: var(--navy-deep);
	border-radius: var(--r-lg);
	color: rgba(255, 255, 255, 0.74);
}

.ct-aside .ph-kicker {
	color: var(--gold-soft);
}

.ct-aside .ph-kicker::before {
	background: var(--gold-soft);
}

.ct-aside h2 {
	color: #fff;
	font-size: clamp(1.3rem, 2vw, 1.65rem);
	letter-spacing: -0.03em;
	margin-bottom: 0.9rem;
}

.ct-aside > p {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.62);
}

.ct-expect {
	display: grid;
	gap: 0.95rem;
	margin-top: 1.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.ct-expect li {
	position: relative;
	padding-left: 1.6rem;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.ct-expect li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 0.75rem;
	height: 1px;
	background: var(--gold-soft);
}

.ct-direct {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.ct-direct dt {
	font-family: var(--font-mono);
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-soft);
	margin-bottom: 0.2rem;
}

.ct-direct dd {
	margin: 0 0 0.6rem;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.82);
}

.ct-direct a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid var(--gold-soft);
	padding-block: 0.16rem;
}

.ct-direct a:hover {
	border-bottom-color: #fff;
}

/* Form field groups animate as units, not field by field. */
.form-block {
	display: grid;
	gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   Redirect notice — web.html / mobile.html, shown if the refresh is blocked
   -------------------------------------------------------------------------- */

.redirect-note {
	min-height: 60vh;
	display: grid;
	place-content: center;
	text-align: center;
	gap: 1rem;
	padding: var(--gutter);
}

.redirect-note p {
	font-size: 1.0625rem;
	color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Reduced motion + print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.anim-armed [data-anim],
	[data-anim] {
		opacity: 1 !important;
		transform: none !important;
	}

	.anim-armed [data-anim="mask"] .line-inner,
	.ph-title .line-inner {
		transform: none !important;
	}

	.prin-progress {
		transform: scaleY(1) !important;
	}

	.prin-item .prin-dot {
		background: var(--gold);
	}

	.prin-item .prin-index {
		color: var(--gold-deep);
	}
}

@media print {
	.ph-figure {
		display: none !important;
	}

	[data-anim],
	.line-inner {
		opacity: 1 !important;
		transform: none !important;
	}

	.band,
	.ct-aside,
	.path-dark {
		background: #fff !important;
		color: #000 !important;
		border: 1px solid #999;
	}
}

/* --------------------------------------------------------------------------
   Expectations — why-aptelic.html. What working with Aptelic is like,
   paired with what that approach avoids.
   -------------------------------------------------------------------------- */

.expect {
	display: grid;
	gap: clamp(2rem, 4vw, 3.25rem);
	align-items: start;
}

@media (min-width: 66rem) {
	.expect {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	}
}

.expect-list {
	display: grid;
	border-top: 1px solid var(--line-strong);
}

.expect-item {
	display: grid;
	gap: 0.3rem 1.6rem;
	padding-block: clamp(1.3rem, 2.2vw, 1.75rem);
	border-bottom: 1px solid var(--line);
}

@media (min-width: 40rem) {
	.expect-item {
		grid-template-columns: 2.75rem minmax(0, 1fr);
	}
}

.expect-mark {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	color: var(--gold-deep);
	padding-top: 0.35em;
}

.expect-item h3 {
	margin: 0 0 0.35rem;
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	letter-spacing: -0.024em;
}

.expect-item p {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--ink-muted);
	max-width: 52ch;
}

/* The counterweight: what the approach is designed to avoid. */
.avoid {
	padding: clamp(1.75rem, 2.6vw, 2.25rem);
	background: var(--navy-deep);
	border-radius: var(--r-lg);
	color: rgba(255, 255, 255, 0.74);
}

.avoid-kicker {
	font-family: var(--font-mono);
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-soft);
	margin-bottom: 1.2rem;
}

.avoid h3 {
	color: #fff;
	font-size: clamp(1.15rem, 1.7vw, 1.4rem);
	letter-spacing: -0.028em;
	margin: 0 0 1.3rem;
}

.avoid ul {
	display: grid;
	gap: 1.05rem;
}

.avoid li {
	position: relative;
	padding-left: 1.7rem;
	font-size: 0.9375rem;
	line-height: 1.52;
}

/* A struck-through mark reads as "not this", without an icon font. */
.avoid li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 0.85rem;
	height: 1px;
	background: var(--gold-soft);
}

.avoid li::after {
	content: "";
	position: absolute;
	left: 0.38rem;
	top: 0.28em;
	width: 1px;
	height: 0.72em;
	background: var(--gold-soft);
	transform: rotate(42deg);
	transform-origin: center;
}
