/*
Theme Name: TersusNet
Theme URI: https://tersusnet.com
Author: TersusNet Inc.
Description: Corporate block theme for TersusNet Inc. — IT consultancy and software development. Palette drawn from the TersusNet logo: orange and gray.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tersusnet
*/

/* =========================================================
   Tokens — every colour derives from the logo:
   orange #F6921E ("Net") and gray #58595B ("Tersus").
   ========================================================= */

:root {
	--tn-orange: var(--wp--preset--color--orange);
	--tn-orange-deep: var(--wp--preset--color--orange-deep);
	--tn-orange-soft: var(--wp--preset--color--orange-soft);
	--tn-orange-light: #FBC27F;
	--tn-gray: var(--wp--preset--color--gray);
	--tn-gray-light: #8A8B8E;
	--tn-graphite: var(--wp--preset--color--graphite);
	--tn-graphite-2: var(--wp--preset--color--graphite-2);
	--tn-ink: var(--wp--preset--color--ink);
	--tn-mist: var(--wp--preset--color--mist);
	--tn-line: var(--wp--preset--color--line);
	--tn-mono: var(--wp--preset--font-family--mono);
	--tn-head: var(--wp--preset--font-family--heading);
	--tn-radius: 16px;
	--tn-header-h: 76px;
	--tn-ease: cubic-bezier(.2, .7, .2, 1);
	--tn-shadow: 0 1px 2px rgba(26, 27, 29, .04), 0 12px 32px rgba(26, 27, 29, .08);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

[id] { scroll-margin-top: calc(var(--tn-header-h) + 1.5rem); }

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

::selection { background: var(--tn-orange); color: var(--tn-ink); }

.wp-site-blocks > * { margin-block-start: 0; }
.tn-main > * { margin-block-start: 0; }

.tn-section { padding-block: var(--wp--preset--spacing--xl); }

.tn-mono { font-family: var(--tn-mono); }

/* Scroll reveal (enabled by theme.js). Declared early so components that
   define their own transitions can extend it. */

.tn-reveal { opacity: 0; translate: 0 18px; transition: opacity .6s var(--tn-ease), translate .6s var(--tn-ease); }
.tn-reveal.is-visible { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
	.tn-reveal { opacity: 1; translate: none; transition: none; }
}

/* Technical grid with a soft orange glow, for dark surfaces. */
.tn-grid-bg {
	background-image:
		radial-gradient(640px circle at 88% 0%, rgba(246, 146, 30, .16), transparent 60%),
		radial-gradient(480px circle at 0% 100%, rgba(88, 89, 91, .35), transparent 60%),
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: auto, auto, 56px 56px, 56px 56px;
}

/* ---------- Eyebrow ---------- */

.tn-eyebrow {
	margin: 0 0 .9rem;
	font-family: var(--tn-mono);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--tn-orange-deep);
}
.tn-eyebrow::before { content: "// "; opacity: .7; }
.has-graphite-background-color .tn-eyebrow { color: var(--tn-orange); }

.tn-section__head { margin-bottom: var(--wp--preset--spacing--l); }
.tn-section__head h2 { margin-top: 0; margin-bottom: 0; }
.tn-section__head > p:not(.tn-eyebrow) { color: var(--tn-gray); font-size: var(--wp--preset--font-size--large); margin-top: 1rem; }
.tn-section__head--split { gap: 1.5rem 3rem; }
.tn-section__head--split > .wp-block-group { max-width: 40rem; }
.tn-section__aside { max-width: 24rem; margin: 0; color: var(--tn-gray); }

/* ---------- Icons ---------- */

.tn-ico {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 10px;
	background: var(--tn-orange-soft);
	color: var(--tn-orange-deep);
	transition: background-color .25s, color .25s;
}
.tn-ico .tn-icon { width: 20px; height: 20px; }
.tn-ico--lg { width: 3rem; height: 3rem; border-radius: 12px; }
.tn-ico--lg .tn-icon { width: 24px; height: 24px; }

/* =========================================================
   Header
   ========================================================= */

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
/* On phones the admin bar scrolls away with the page, so the header sticks to the very top. */
@media (max-width: 600px) {
	.admin-bar header.wp-block-template-part { top: 0; }
}

/* The top bar and the white bar sit flush: no block gap between them,
   otherwise a transparent strip shows page content once the top bar collapses. */
.tn-header > * { margin-block: 0; }

.tn-topbar {
	background: var(--tn-ink);
	color: rgba(255, 255, 255, .7);
	font-size: var(--wp--preset--font-size--x-small);
	max-height: 40px;
	overflow: hidden;
	transition: max-height .3s var(--tn-ease);
}
.tn-header.is-scrolled .tn-topbar { max-height: 0; }
.tn-topbar__inner {
	box-sizing: border-box;
	max-width: calc(1240px + var(--wp--style--root--padding-left) + var(--wp--style--root--padding-right));
	margin: 0 auto;
	padding: .55rem var(--wp--style--root--padding-right) .55rem var(--wp--style--root--padding-left);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}
.tn-topbar__status { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--tn-mono); }
.tn-topbar__status i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tn-orange);
	box-shadow: 0 0 0 3px rgba(246, 146, 30, .25);
}
.tn-topbar__links { display: inline-flex; gap: 1.5rem; }
.tn-topbar__links > * { display: inline-flex; align-items: center; gap: .4rem; }
.tn-topbar a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.tn-topbar a:hover { color: var(--tn-orange); }
.tn-topbar .tn-icon { width: 14px; height: 14px; color: var(--tn-orange); }

.tn-header__bar {
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--tn-line);
	transition: box-shadow .25s var(--tn-ease);
}
.tn-header.is-scrolled .tn-header__bar { box-shadow: 0 8px 24px rgba(26, 27, 29, .07); }
.tn-header__row { min-height: var(--tn-header-h); gap: 1.5rem; }
.tn-header__nav { gap: 2rem; }

.tn-header .wp-block-navigation a {
	position: relative;
	padding-block: .35rem;
	color: var(--tn-graphite);
	text-decoration: none;
}
.tn-header .wp-block-navigation a:hover { color: var(--tn-orange-deep); }
.tn-header .wp-block-navigation a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 2px;
	border-radius: 2px;
	background: var(--tn-orange);
	transform: scaleX(0);
	transition: transform .25s var(--tn-ease);
}
.tn-header .wp-block-navigation .current-menu-item > a::after { transform: scaleX(1); }

.tn-header .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem clamp(1rem, 6vw, 3rem); }
.tn-header .wp-block-navigation__responsive-container.is-menu-open a { color: #fff; font-size: 1.5rem; }

.tn-header__cta .wp-block-button__link { padding: .7rem 1.2rem; }

@media (max-width: 781px) {
	:root { --tn-header-h: 64px; }
	.tn-header__bar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.tn-header .tn-header__cta { display: none; }
	.tn-topbar__status, .tn-topbar__loc { display: none !important; }
	.tn-topbar__inner { justify-content: center; }
}

/* ---------- Logo ---------- */

.tn-logo { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
.tn-logo__img { display: block; width: auto; height: clamp(26px, 2.6vw, 34px); }
.tn-footer .tn-logo__img { height: 30px; }

/* =========================================================
   Buttons
   ========================================================= */

.wp-element-button { transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--tn-ease), box-shadow .2s; }
.wp-element-button:hover { transform: translateY(-1px); }
.wp-block-button:not(.is-style-outline):not(.is-style-dark) > .wp-block-button__link { box-shadow: 0 6px 18px rgba(246, 146, 30, .28); }

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, .3);
	padding: calc(.9rem - 1.5px) calc(1.5rem - 1.5px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--tn-ink); border-color: #fff; }

.wp-block-button.is-style-dark > .wp-block-button__link { background: var(--tn-ink); color: #fff; }
.wp-block-button.is-style-dark > .wp-block-button__link:hover { background: #fff; color: var(--tn-ink); }

/* =========================================================
   Hero
   ========================================================= */

.tn-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(4rem, 9vw, 7.5rem) clamp(4.5rem, 10vw, 8rem);
}
.tn-hero__cols { gap: clamp(2.5rem, 6vw, 5rem); }

.tn-chip {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	margin: 0 0 1.5rem;
	padding: .4rem .9rem .4rem .7rem;
	font-family: var(--tn-mono);
	font-size: .78rem;
	color: rgba(255, 255, 255, .85);
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 999px;
}
.tn-chip__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tn-orange);
	box-shadow: 0 0 0 4px rgba(246, 146, 30, .2);
}

.tn-hero h1 { margin: 0 0 1.5rem; }
.tn-hero h1 em {
	font-style: normal;
	color: var(--tn-orange);
}
.tn-hero__lede { max-width: 36rem; margin-bottom: 2.25rem; font-size: var(--wp--preset--font-size--large); color: rgba(255, 255, 255, .72); }

.tn-hero__caps {
	list-style: none;
	padding: 0;
	margin: 2.75rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}
.tn-hero__caps li {
	padding: .3rem .7rem;
	font-family: var(--tn-mono);
	font-size: .75rem;
	color: rgba(255, 255, 255, .62);
	border: 1px dashed rgba(255, 255, 255, .18);
	border-radius: 6px;
}

/* Code editor illustration */
.tn-hero__visual { position: relative; }

.tn-editor,
.tn-terminal {
	position: relative;
	background: var(--tn-ink);
	border: 1px solid rgba(255, 255, 255, .09);
	border-radius: 14px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .2);
	overflow: hidden;
}
.tn-editor__bar {
	display: flex;
	align-items: center;
	gap: 7px;
	height: 40px;
	padding: 0 14px;
	background: #222326;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.tn-editor__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--tn-gray); }
.tn-editor__bar span:first-child { background: var(--tn-orange); }
.tn-editor__bar span:nth-child(2) { background: var(--tn-gray-light); }
.tn-editor__bar em {
	margin-left: .6rem;
	font-family: var(--tn-mono);
	font-size: .75rem;
	font-style: normal;
	color: rgba(255, 255, 255, .5);
}
.tn-editor__code {
	margin: 0;
	padding: 1.4rem 1.5rem 1.6rem;
	overflow-x: auto;
	font-family: var(--tn-mono);
	font-size: .84rem;
	line-height: 1.8;
	color: #D9D9DC;
	background: transparent;
	border: 0;
}
.tn-editor__code .k { color: var(--tn-orange); }
.tn-editor__code .s { color: var(--tn-orange-light); }
.tn-editor__code .f { color: #fff; font-weight: 600; }
.tn-editor__code .c { color: var(--tn-gray-light); font-style: italic; }
.tn-caret {
	display: inline-block;
	width: 8px;
	height: 1.05em;
	margin-left: 2px;
	vertical-align: -0.15em;
	background: var(--tn-orange);
	animation: tn-blink 1.1s steps(1) infinite;
}
@keyframes tn-blink { 50% { opacity: 0; } }

.tn-float {
	position: absolute;
	display: flex;
	align-items: center;
	gap: .7rem;
	padding: .7rem 1rem .7rem .75rem;
	background: #fff;
	color: var(--tn-graphite);
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
	animation: tn-bob 6s ease-in-out infinite;
}
.tn-float strong { display: block; font-family: var(--tn-head); font-size: .85rem; line-height: 1.2; }
.tn-float small { display: block; font-size: .75rem; color: var(--tn-gray); line-height: 1.3; }
.tn-float--a { left: -1.75rem; bottom: -1.75rem; }
.tn-float--b { right: -1.25rem; top: 3.25rem; animation-delay: -3s; }
.tn-float__icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--tn-orange);
	color: var(--tn-ink);
}
.tn-float__icon .tn-icon { width: 16px; height: 16px; stroke-width: 2.5; }
.tn-pulse {
	position: relative;
	width: 10px;
	height: 10px;
	margin: 0 .3rem;
	border-radius: 50%;
	background: var(--tn-orange);
}
.tn-pulse::after {
	content: "";
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	border: 2px solid var(--tn-orange);
	animation: tn-ping 1.8s ease-out infinite;
}
@keyframes tn-ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes tn-bob { 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
	.tn-float, .tn-pulse::after, .tn-caret { animation: none; }
}

@media (max-width: 781px) {
	.tn-hero__visual { margin-top: 1rem; padding-bottom: 2.5rem; }
	.tn-editor__code { font-size: .74rem; padding: 1.1rem; }
	.tn-float--a { left: .75rem; bottom: 0; }
	.tn-float--b { display: none; }
}

/* =========================================================
   Practices (Consult / Build / Run)
   ========================================================= */

.tn-practice-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	align-items: stretch;
}
.tn-practice {
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: #fff;
	border: 1px solid var(--tn-line);
	border-radius: var(--tn-radius);
	transition: box-shadow .3s var(--tn-ease), border-color .3s, translate .6s var(--tn-ease), opacity .6s var(--tn-ease);
}
.tn-practice:hover { box-shadow: var(--tn-shadow); border-color: transparent; }
.tn-practice__label { display: block; font-size: .78rem; color: var(--tn-orange-deep); margin-bottom: .75rem; }
.tn-practice__head h3 { margin: 0 0 .6rem; font-size: var(--wp--preset--font-size--x-large); font-weight: 700; }
.tn-practice__head p { margin: 0 0 1.5rem; font-size: .975rem; }
.tn-practice__list { list-style: none; padding: 0; margin: 0; }
.tn-practice__list a {
	display: flex;
	align-items: flex-start;
	gap: .9rem;
	padding: 1rem 0;
	border-top: 1px solid var(--tn-line);
	text-decoration: none;
	color: inherit;
}
.tn-practice__text { flex: 1; }
.tn-practice__text strong { display: block; font-family: var(--tn-head); font-weight: 600; font-size: 1rem; color: var(--tn-graphite); line-height: 1.3; }
.tn-practice__text small { display: block; margin-top: .25rem; font-size: .875rem; line-height: 1.5; color: var(--tn-gray); }
.tn-practice__go { align-self: center; color: var(--tn-orange-deep); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s var(--tn-ease); }
.tn-practice__go .tn-icon { width: 18px; height: 18px; }
.tn-practice__list a:hover .tn-practice__go,
.tn-practice__list a:focus-visible .tn-practice__go { opacity: 1; transform: none; }
.tn-practice__list a:hover .tn-ico { background: var(--tn-orange); color: var(--tn-ink); }

/* The middle practice is featured in graphite. */
.tn-practice--build {
	background-color: var(--tn-graphite);
	border-color: var(--tn-graphite);
	color: rgba(255, 255, 255, .72);
	background-image:
		radial-gradient(420px circle at 100% 0%, rgba(246, 146, 30, .18), transparent 60%),
		linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: auto, 40px 40px, 40px 40px;
}
.tn-practice--build .tn-practice__label { color: var(--tn-orange); }
.tn-practice--build h3,
.tn-practice--build .tn-practice__text strong { color: #fff; }
.tn-practice--build .tn-practice__text small { color: rgba(255, 255, 255, .62); }
.tn-practice--build .tn-practice__list a { border-color: rgba(255, 255, 255, .1); }
.tn-practice--build .tn-ico { background: rgba(246, 146, 30, .14); color: var(--tn-orange); }
.tn-practice--build .tn-practice__go { color: var(--tn-orange); }

@media (max-width: 1000px) {
	.tn-practice-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Who we are / Why TersusNet
   ========================================================= */

.tn-why__cols { gap: clamp(2rem, 6vw, 5rem); }
.tn-why__intro h2 { margin-top: 0; }

.tn-textlink {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-top: .5rem;
	font-family: var(--tn-head);
	font-weight: 700;
	color: var(--tn-orange-deep);
	text-decoration: none;
	transition: gap .2s var(--tn-ease);
}
.tn-textlink .tn-icon { width: 18px; height: 18px; }
.tn-textlink:hover { gap: .75rem; color: var(--tn-graphite); }

.tn-reasons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}
.tn-reason {
	padding: 1.75rem;
	background: var(--tn-mist);
	border: 1px solid transparent;
	border-radius: var(--tn-radius);
	transition: background-color .3s, border-color .3s, box-shadow .3s, translate .6s var(--tn-ease), opacity .6s var(--tn-ease);
}
.tn-reason:hover { background: #fff; border-color: var(--tn-line); box-shadow: var(--tn-shadow); }
.tn-reason:hover .tn-ico { background: var(--tn-orange); color: var(--tn-ink); }
.tn-reason h3 { margin: 1.1rem 0 .4rem; font-size: 1.125rem; }
.tn-reason p { margin: 0; font-size: .95rem; }

@media (max-width: 600px) {
	.tn-reasons { grid-template-columns: 1fr; }
}

/* =========================================================
   Process timeline
   ========================================================= */

.tn-steps {
	position: relative;
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1.5rem;
}
.tn-steps::before {
	content: "";
	position: absolute;
	top: 27px;
	left: 28px;
	/* End at the last node: one column (minus the node radius) from the right. */
	right: calc((100% - 6rem) / 5 - 28px);
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--tn-orange) 0 8px, transparent 8px 14px);
	opacity: .6;
}
.tn-step { position: relative; }
.tn-step__node {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--tn-orange);
	color: var(--tn-orange-deep);
	box-shadow: 0 0 0 6px var(--tn-mist);
	transition: background-color .25s, color .25s;
}
.tn-step:hover .tn-step__node { background: var(--tn-orange); color: var(--tn-ink); }
.tn-step__node .tn-icon { width: 22px; height: 22px; }
.tn-step__num { display: block; margin-top: 1.25rem; font-size: .75rem; color: var(--tn-gray-light); }
.tn-step h3 { margin: .2rem 0 .45rem; font-size: 1.2rem; }
.tn-step p { margin: 0; font-size: .93rem; }

@media (max-width: 900px) {
	.tn-steps { grid-template-columns: 1fr; gap: 2rem; }
	.tn-steps::before {
		top: 28px;
		bottom: 28px;
		left: 27px;
		right: auto;
		width: 2px;
		height: auto;
		background: repeating-linear-gradient(180deg, var(--tn-orange) 0 8px, transparent 8px 14px);
	}
	.tn-step { padding-left: 80px; min-height: 56px; }
	.tn-step__node { position: absolute; left: 0; top: 0; }
	.tn-step__num { margin-top: 0; }
}

/* =========================================================
   Quality assurance
   ========================================================= */

.tn-qa__cols { gap: clamp(2.5rem, 6vw, 5rem); }
.tn-qa h2 { margin-top: 0; }
.tn-on-dark { color: rgba(255, 255, 255, .72); }

.tn-terminal__body { padding: 1.5rem 1.6rem 1.75rem; font-family: var(--tn-mono); font-size: .85rem; }
.tn-terminal__cmd { margin: 0 0 1rem; color: #fff; }
.tn-terminal__cmd b { color: var(--tn-orange); margin-right: .4rem; }
.tn-terminal ul { list-style: none; padding: 0; margin: 0; }
.tn-terminal li {
	display: flex;
	gap: .75rem;
	padding: .55rem 0;
	color: #D9D9DC;
	border-bottom: 1px dashed rgba(255, 255, 255, .08);
}
.tn-terminal .ok { color: var(--tn-orange); font-weight: 700; }
.tn-terminal__done { margin: 1.1rem 0 0; color: var(--tn-orange-light); }

/* =========================================================
   Mission
   ========================================================= */

.tn-mission__cols { gap: clamp(2rem, 6vw, 5rem); }
.tn-mission .tn-mission__statement {
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	font-weight: 600;
	line-height: 1.3;
}
.tn-mission mark {
	background: linear-gradient(transparent 62%, rgba(246, 146, 30, .45) 62%);
	color: inherit;
}
.tn-values {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: var(--wp--preset--spacing--l);
}
.tn-values > div { padding-top: 1.25rem; border-top: 2px solid var(--tn-graphite); }
.tn-values .tn-mono { font-size: .8rem; color: var(--tn-orange-deep); }
.tn-values h3 { margin: .35rem 0 .35rem; font-size: 1.2rem; }
.tn-values p { margin: 0; }

@media (max-width: 781px) {
	.tn-values { grid-template-columns: 1fr; }
}

/* =========================================================
   Call to action
   ========================================================= */

.tn-cta-wrap { padding-block: var(--wp--preset--spacing--l) var(--wp--preset--spacing--xl); }
.tn-cta {
	position: relative;
	overflow: hidden;
	gap: 2rem 3rem;
	padding: clamp(2rem, 5vw, 3.75rem) clamp(1.5rem, 5vw, 4rem);
	border-radius: 24px;
	background-image:
		radial-gradient(520px circle at 100% 100%, rgba(255, 255, 255, .28), transparent 60%),
		linear-gradient(rgba(26, 27, 29, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(26, 27, 29, .07) 1px, transparent 1px);
	background-size: auto, 36px 36px, 36px 36px;
}
.tn-cta__copy { max-width: 40rem; }
.tn-cta__kicker { margin: 0 0 .5rem; font-size: .85rem; color: rgba(26, 27, 29, .7); }
.tn-cta h2 { margin: 0 0 .75rem; color: var(--tn-ink); }
.tn-cta__copy p:last-child { margin: 0; color: rgba(26, 27, 29, .82); font-size: var(--wp--preset--font-size--large); }
.tn-cta .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--tn-ink); border-color: rgba(26, 27, 29, .35); }
.tn-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--tn-ink); color: #fff; border-color: var(--tn-ink); }

/* =========================================================
   Page banner
   ========================================================= */

.tn-banner { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.75rem, 6vw, 4.5rem); }
.tn-banner__path { margin: 0 0 .75rem; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.tn-banner__path span { color: var(--tn-orange); }
.tn-banner .tn-banner__title { margin: 0; color: #fff; }
.tn-banner .tn-banner__title::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 1.25rem;
	border-radius: 2px;
	background: var(--tn-orange);
}

/* =========================================================
   Services page
   ========================================================= */

.tn-practice-block { padding-top: var(--wp--preset--spacing--l); border-top: 1px solid var(--tn-line); }
.tn-practice-block + .tn-practice-block { margin-top: var(--wp--preset--spacing--l); }
.tn-practice-block__head { max-width: 46rem; margin-bottom: 2rem; }
.tn-practice-block__head h2 { margin: 0 0 .6rem; font-size: var(--wp--preset--font-size--xx-large); }
.tn-practice-block__head p { margin: 0; font-size: var(--wp--preset--font-size--large); }

.tn-service-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}
@media (max-width: 781px) {
	.tn-service-cards { grid-template-columns: 1fr; }
}
.tn-service-card {
	padding: clamp(1.5rem, 3vw, 2rem);
	border: 1px solid var(--tn-line);
	border-radius: var(--tn-radius);
	background: #fff;
	transition: box-shadow .3s var(--tn-ease), border-color .3s, translate .6s var(--tn-ease), opacity .6s var(--tn-ease);
}
.tn-service-card:hover { box-shadow: var(--tn-shadow); border-color: transparent; }
.tn-service-card:hover .tn-ico { background: var(--tn-orange); color: var(--tn-ink); }
.tn-service-card:target { border-color: var(--tn-orange); background: var(--tn-orange-soft); }
.tn-service-card h3 { margin: 1.1rem 0 .5rem; font-size: 1.3rem; }
.tn-service-card p { margin: 0; font-size: .975rem; }

/* =========================================================
   Contact
   ========================================================= */

.tn-contact__cols { gap: clamp(2rem, 6vw, 5rem); }
.tn-contact__info h2 { margin-top: 0; }

.tn-contact-list {
	list-style: none;
	padding: 0;
	margin: 1.75rem 0;
	display: grid;
	gap: 1.25rem;
}
.tn-contact-list li { display: flex; gap: .9rem; align-items: flex-start; line-height: 1.55; }
.tn-contact-list .tn-icon {
	flex: none;
	box-sizing: content-box;
	width: 20px;
	height: 20px;
	padding: 10px;
	border-radius: 10px;
	background: var(--tn-orange-soft);
	color: var(--tn-orange-deep);
}
.tn-contact-list a { color: inherit; }
.tn-contact-list strong { font-family: var(--tn-head); color: var(--tn-graphite); }

.tn-map {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: var(--tn-radius);
	overflow: hidden;
	background: var(--tn-mist);
	border: 1px solid var(--tn-line);
}
.tn-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4); }

.tn-contact__form {
	padding: clamp(1.5rem, 4vw, 2.75rem);
	background: var(--tn-mist);
	border: 1px solid var(--tn-line);
	border-radius: 20px;
}
.tn-contact__form h3 { margin-top: 0; font-size: var(--wp--preset--font-size--x-large); }

.tn-form { display: grid; gap: 1.1rem; }
.tn-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.tn-form label { display: grid; gap: .4rem; }
.tn-form label > span { font-family: var(--tn-head); font-weight: 600; font-size: .9rem; color: var(--tn-graphite); }
.tn-form input,
.tn-form select,
.tn-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .8rem 1rem;
	font: inherit;
	color: var(--tn-graphite);
	background: #fff;
	border: 1px solid #D4D4D8;
	border-radius: 10px;
	transition: border-color .2s, box-shadow .2s;
}
.tn-form input:focus,
.tn-form select:focus,
.tn-form textarea:focus {
	outline: none;
	border-color: var(--tn-orange);
	box-shadow: 0 0 0 4px rgba(246, 146, 30, .2);
}
.tn-form button { justify-self: start; cursor: pointer; border: 0; }
.tn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.tn-form-notice { padding: .9rem 1.1rem; margin: 0 0 1.25rem; font-weight: 600; border-radius: 10px; border-left: 4px solid; }
.tn-form-notice.is-success { background: var(--tn-orange-soft); border-color: var(--tn-orange); color: var(--tn-graphite); }
.tn-form-notice.is-error { background: #FDECEA; border-color: #C62828; color: #8E1C1C; }

@media (max-width: 640px) {
	.tn-form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   Blog cards (index / archive)
   ========================================================= */

.wp-block-post-template .tn-card {
	height: 100%;
	padding: 1.5rem;
	border: 1px solid var(--tn-line);
	border-radius: var(--tn-radius);
	overflow: hidden;
}
.wp-block-post-template .tn-card .wp-block-post-featured-image { margin: -1.5rem -1.5rem 1rem; }
.wp-block-post-template .tn-card .wp-block-post-title a { color: var(--tn-graphite); text-decoration: none; }

/* =========================================================
   Footer
   ========================================================= */

.tn-footer { padding-block: clamp(4rem, 8vw, 5.5rem) 1.75rem; font-size: .95rem; }
.tn-footer__cols { gap: clamp(2rem, 5vw, 4rem); }
.tn-footer__about { color: rgba(255, 255, 255, .65); max-width: 24rem; margin: 2rem 0 1.25rem; }
.tn-footer__mail { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--tn-head); font-weight: 600; }
.tn-footer__mail .tn-icon { width: 18px; height: 18px; color: var(--tn-orange); }
.tn-footer .tn-footer__title {
	margin: .25rem 0 1.1rem;
	font-family: var(--tn-mono);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tn-orange);
}
.tn-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.tn-footer__links--inline { display: flex; gap: 1.25rem; margin-top: 1rem; }
.tn-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.tn-footer a:hover { color: var(--tn-orange); }
.tn-footer .tn-footer__mail { color: #fff; }
.tn-footer__addr { margin: 0; color: rgba(255, 255, 255, .65); line-height: 1.6; }
.tn-footer__base {
	margin-top: var(--wp--preset--spacing--l) !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: .85rem;
	color: rgba(255, 255, 255, .55);
}
.tn-footer__base p { margin: 0; }
.tn-footer__base .tn-mono { color: var(--tn-orange); font-size: .8rem; }

/* =========================================================
   Mobile
   ========================================================= */

/* Comfortable tap targets (≈44px) on touch screens. */
.tn-logo { min-height: 44px; }
/* WordPress shows the menu button below 600px; only size it there. */
@media (max-width: 599px) {
	.tn-header .wp-block-navigation__responsive-container-open:not(:where(.is-menu-open *)) {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-right: -10px;
		border-radius: 10px;
		color: var(--tn-graphite);
	}
	.tn-header .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
}
.tn-header .wp-block-navigation__responsive-container-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
}
.tn-header .wp-block-navigation__responsive-container-open:focus-visible { outline: 2px solid var(--tn-orange); }

/* No hover on touch screens: show the affordances hover would reveal. */
@media (hover: none) {
	.tn-practice__go { opacity: 1; transform: none; }
	.tn-practice__list a .tn-ico { background: var(--tn-orange-soft); }
	.tn-practice--build .tn-practice__list a .tn-ico { background: rgba(246, 146, 30, .14); }
}

@media (max-width: 781px) {
	/* Top bar email: taller tap area. */
	.tn-topbar__inner { padding-block: .25rem; }
	.tn-topbar__links a { min-height: 32px; }

	/* Full-screen menu */
	.tn-header .wp-block-navigation__responsive-container.is-menu-open {
		padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1.5rem 2rem;
		background-color: var(--tn-graphite) !important;
		background-image:
			radial-gradient(420px circle at 100% 0%, rgba(246, 146, 30, .2), transparent 60%),
			linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
			linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
		background-size: auto, 48px 48px, 48px 48px;
	}
	.tn-header .is-menu-open .wp-block-navigation__responsive-container-close { color: #fff; margin: 0; }
	.tn-header .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 4.5rem !important; }
	.tn-header .is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; }
	.tn-header .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.tn-header .is-menu-open .wp-block-navigation-item a {
		display: block;
		width: 100%;
		padding: 1rem 0 !important;
		font-size: 1.6rem !important;
		font-weight: 700;
	}
	.tn-header .is-menu-open .wp-block-navigation-item a::after { display: none; }
	.tn-header .is-menu-open .current-menu-item > a { color: var(--tn-orange) !important; }

	/* Hero: easy-to-tap stacked buttons, readable code. */
	.tn-hero h1 { font-size: clamp(2.1rem, 9vw, 2.75rem); }
	.tn-hero .wp-block-buttons,
	.tn-cta__actions { flex-direction: column; align-items: stretch; width: 100%; }
	.tn-hero .wp-block-button,
	.tn-cta__actions .wp-block-button { width: 100%; }
	.tn-hero .wp-block-button__link,
	.tn-cta__actions .wp-block-button__link { display: block; width: 100%; box-sizing: border-box; text-align: center; }
	.tn-editor__code { font-size: .8rem; }
	.tn-hero__caps { margin-top: 2rem; }

	/* Links that sit on their own line get a taller hit area. */
	.tn-textlink { min-height: 44px; }
	.tn-footer__links a,
	.tn-footer__mail { display: inline-flex; align-items: center; min-height: 40px; }
	.tn-footer__links { gap: 0; }
	.tn-footer__links--inline { gap: 1.5rem; }
	.tn-footer__about { margin-top: 1.5rem; }
	.tn-footer__base { flex-direction: column; align-items: flex-start; gap: .5rem; }

	/* Cards breathe a little less on small screens. */
	.tn-section__head { margin-bottom: 2rem; }
	.tn-cta { border-radius: 18px; }
	.tn-contact__form { border-radius: 16px; }
}

@media (max-width: 400px) {
	.tn-editor__code { padding: 1rem .9rem; font-size: .75rem; }
	.tn-practice, .tn-reason, .tn-service-card { padding: 1.4rem; }
}
