/* Tenko theme extras — things theme.json can't express. */

html { scroll-behavior: smooth; }

/* Sections butt up against header and footer; spacing comes from each section's own padding. */
.wp-site-blocks > main,
.wp-site-blocks > footer { margin-block-start: 0; }

/* Sticky, translucent header. Sticky must sit on the template-part wrapper. */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) {
	.admin-bar header.wp-block-template-part { top: 46px; }
}
/*
 * The frosted blur lives on a pseudo-element: backdrop-filter on the header itself
 * would become the containing block for the mobile menu overlay and trap it inside the header.
 */
.tenko-header {
	position: relative;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.tenko-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
}

/* Logo: T badge + wordmark + fox. */
.tenko-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.tenko-logo:hover { text-decoration: none; }
.tenko-logo__mark { display: block; width: 44px; height: 44px; }
.tenko-logo__word { display: flex; flex-direction: column; line-height: 1; }
.tenko-logo__name {
	display: flex;
	align-items: flex-start;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.14em;
}
.tenko-logo__fox { width: 22px; height: 22px; margin: -5px 0 0 2px; }
.tenko-logo__sub {
	margin-top: 5px;
	font-size: 0.5rem;
	font-weight: 600;
	letter-spacing: 0.52em;
	opacity: 0.6;
}
.tenko-footer a.tenko-logo--light,
.tenko-logo--light { color: var(--wp--preset--color--base); }

/* Header CTA: keep on one line; on small screens the menu's Contact link replaces it. */
.tenko-header .wp-block-button__link { white-space: nowrap; }
@media (max-width: 600px) {
	.tenko-header .wp-block-buttons { display: none; }
}

/* In-page anchors land below the sticky header. */
[id] { scroll-margin-top: 96px; }

/* Industry pills. */
.tenko-pill {
	margin: 0;
	padding: 0.55rem 1.1rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font-size: 0.9375rem;
	font-weight: 500;
}

/* Approach steps. */
.tenko-step {
	padding-top: var(--wp--preset--spacing--40);
	border-top: 2px solid var(--wp--preset--color--border);
}
.tenko-step__num {
	margin: 0;
	background: linear-gradient(135deg, #7B61FF 0%, #19C3B1 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	font-size: 2.5rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
}

/* About. */
.tenko-about .tenko-eyebrow { border-color: rgba(255, 255, 255, 0.25); }
.tenko-about__fox img { width: min(100%, 340px); height: auto; }
@media (max-width: 781px) {
	.tenko-about__fox img { width: 200px; }
	.tenko-fox-quote { margin-left: 0; margin-right: 0; }
}
.tenko-fox-quote {
	margin-top: var(--wp--preset--spacing--50);
	border-left: 3px solid var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--mist);
	font-style: italic;
}

/* Eyebrow / pill label above headings. */
.tenko-eyebrow {
	width: fit-content;
	padding: 0.35rem 0.9rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.85;
}

/* Hero: dark with soft brand glows and a faint grid. */
.tenko-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.tenko-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(55rem 28rem at 12% -12%, rgba(123, 97, 255, 0.45), transparent 62%),
		radial-gradient(45rem 26rem at 92% 4%, rgba(25, 195, 177, 0.24), transparent 60%);
}
.tenko-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.tenko-hero .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--base);
	border-color: rgba(255, 255, 255, 0.35);
}
.tenko-hero .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* Gradient text (applied via the highlight format: <mark class="tenko-gradient-text">). */
.tenko-gradient-text {
	/* Longhands only: the `background` shorthand would reset background-clip. */
	background-color: transparent !important;
	background-image: linear-gradient(135deg, #9B87FF 0%, #5FE3D3 100%) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	-webkit-text-fill-color: transparent;
	color: transparent !important;
	/* Keep the gradient continuous when the phrase wraps onto two lines. */
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* Cards. */
.tenko-card {
	height: 100%;
	padding: var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--medium);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tenko-card:hover {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: var(--wp--custom--shadow--card);
}
.tenko-card .wp-block-post-featured-image img {
	border-radius: var(--wp--custom--radius--small);
}
.tenko-icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 12px;
	background: linear-gradient(135deg, #7B61FF 0%, #3D5AFE 55%, #19C3B1 100%);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
}
.tenko-arrow-link a::after {
	content: " →";
	display: inline-block;
	transition: transform 0.2s ease;
}
.tenko-arrow-link a:hover::after { transform: translateX(4px); }

/* Client logo placeholders. */
.tenko-logo-placeholder {
	padding: 0.9rem 1.5rem;
	border: 1px dashed var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--small);
	color: var(--wp--preset--color--mist);
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* CTA panel. */
.tenko-cta {
	border-radius: var(--wp--custom--radius--large);
	overflow: hidden;
}
.tenko-cta .wp-block-button__link {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
}
.tenko-cta .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

/* Footer. */
.tenko-footer a { color: var(--wp--preset--color--mist); }
.tenko-footer a:hover { color: var(--wp--preset--color--base); text-decoration: none; }
.tenko-footer-links {
	list-style: none;
	padding-left: 0;
	margin-bottom: 0;
	display: grid;
	gap: 0.5rem;
}

/* Accessibility. */
:where(a, button, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.tenko-card, .tenko-arrow-link a::after { transition: none; }
	.tenko-card:hover { transform: none; }
}
