/* ==========================================================================
   Thomas Nguyen — main stylesheet
   Apple-minimal, editorial. One accent colour, set in the Customizer.

   Everything below is built from the tokens in section 1. If a value is not
   a token (type size, spacing step, radius, rule colour), it should not be
   in a component — add or reuse a token instead.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
	/* Colour */
	--tn-accent: #1F5EFF;
	--tn-accent-on-dark: #6F96FF;

	--tn-white: #FFFFFF;
	--tn-offwhite: #F5F5F7;
	--tn-line: #D2D2D7;
	--tn-gray: #6E6E73;       /* 4.9:1 on white, 4.6:1 on off-white */
	--tn-gray-dark: #A1A1A6;  /* secondary text on black */
	--tn-charcoal: #424245;
	--tn-ink: #1D1D1F;
	--tn-black: #000000;
	--tn-line-dark: #2C2C2E;
	--tn-paper: #F5F5F7;      /* primary text on black */

	--tn-font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;

	/* Type scale — headings */
	--tn-fs-display: clamp(48px, 8vw, 112px);   /* hero, closing CTA */
	--tn-fs-h1: clamp(38px, 5.6vw, 80px);       /* page titles, statement */
	--tn-fs-title: clamp(34px, 4.6vw, 60px);    /* titles set in the reading column */
	--tn-fs-h2: clamp(32px, 4.4vw, 64px);       /* section headlines */
	--tn-fs-h3: clamp(26px, 3.2vw, 44px);       /* service, belief, quote */
	--tn-fs-h4: clamp(22px, 2.2vw, 28px);       /* case, card, article row */
	--tn-fs-h5: 21px;                           /* step, timeline */
	--tn-fs-figure: clamp(44px, 6.6vw, 96px);   /* key numbers, step numbers */
	--tn-fs-figure-lg: clamp(56px, 8.4vw, 120px); /* number on a case tile */

	/* Type scale — text */
	--tn-fs-lead: clamp(19px, 1.6vw, 22px);
	--tn-fs-prose: 19px;
	--tn-fs-body: 17px;
	--tn-fs-small: 15px;
	--tn-fs-micro: 13px;

	/* Tracking */
	--tn-track-display: -0.045em;
	--tn-track-heading: -0.035em;
	--tn-track-title: -0.025em;
	--tn-track-caps: 0.14em;

	/* Spacing scale */
	--tn-space-1: 8px;
	--tn-space-2: 16px;
	--tn-space-3: 24px;
	--tn-space-4: 32px;
	--tn-space-5: 48px;
	--tn-space-6: 64px;

	/* Layout */
	--tn-gutter: 24px;
	--tn-container: 1200px;
	--tn-wide: calc(var(--tn-container) + 80px);
	--tn-narrow: 720px;
	--tn-section: clamp(96px, 13vw, 192px);      /* standard section padding */
	--tn-section-lg: clamp(120px, 16vw, 224px);  /* statement, quote, closing CTA */
	--tn-gap-head: clamp(56px, 7vw, 96px);       /* section headline → content */
	--tn-col-gap: clamp(24px, 3.4vw, 48px);      /* between columns, every grid */
	--tn-row-gap: clamp(48px, 6vw, 80px);        /* between rows, every grid */

	/* Shape & motion */
	--tn-radius-lg: 28px;   /* hero visual */
	--tn-radius: 20px;      /* media tiles, covers */
	--tn-radius-sm: 12px;   /* inputs, code, in-article images */
	--tn-radius-pill: 999px;
	--tn-ease: cubic-bezier(.2, .7, .2, 1);

	--tn-header-h: 56px;
	--tn-admin-bar: var(--wp-admin--admin-bar--height, 0px);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	font-family: var(--tn-font);
	font-size: var(--tn-fs-body);
	line-height: 1.5;
	color: var(--tn-ink);
	background: var(--tn-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	/* Footer sits at the bottom of the window on short pages (404, empty search). */
	display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
.tn-content { flex: 1 0 auto; }

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

a { color: var(--tn-accent); text-decoration: none; }
a:hover { text-decoration: none; }

:focus-visible { outline: 2px solid var(--tn-accent); outline-offset: 3px; border-radius: 4px; }
.tn-section--black :focus-visible,
.tn-hero__visual :focus-visible,
.tn-footer :focus-visible { outline-color: var(--tn-accent-on-dark); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: var(--tn-track-heading); line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

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

.tn-skip {
	position: absolute; left: var(--tn-space-2); top: -60px; z-index: 100;
	background: var(--tn-ink); color: var(--tn-white); padding: 10px var(--tn-space-2); border-radius: var(--tn-radius-pill);
	font-size: var(--tn-fs-small);
	transition: top .2s;
}
.tn-skip:focus { top: 12px; color: var(--tn-white); }

.tn-wrap { max-width: var(--tn-container); margin: 0 auto; padding: 0 var(--tn-gutter); }
.tn-narrow { max-width: calc(var(--tn-narrow) + var(--tn-gutter) * 2); margin: 0 auto; padding: 0 var(--tn-gutter); }

.tn-dim { color: var(--tn-gray); }
.tn-muted { color: var(--tn-gray); }

/* A multiplication sign set as a unit, so "4×" reads as one figure. */
.tn-unit { display: inline-block; font-size: .76em; letter-spacing: 0; margin-left: -.03em; transform: translateY(-.1em); }

/* ---------- 3. Buttons & links ---------- */
.tn-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px;
	padding: 0 28px;
	border-radius: var(--tn-radius-pill);
	border: 0;
	font: 500 var(--tn-fs-body)/1 var(--tn-font);
	letter-spacing: -0.01em;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .3s var(--tn-ease), opacity .3s, background .3s;
}
.tn-btn:hover { transform: scale(1.02); }
.tn-btn:active { transform: scale(.98); }
.tn-btn--sm { min-height: 36px; padding: 0 18px; font-size: var(--tn-fs-small); }
.tn-btn--accent { background: var(--tn-accent); color: var(--tn-white); }
.tn-btn--accent:hover { color: var(--tn-white); opacity: .92; }
.tn-btn--dark { background: var(--tn-ink); color: var(--tn-white); }
.tn-btn--dark:hover { color: var(--tn-white); background: var(--tn-black); }
.tn-btn--light { background: var(--tn-white); color: var(--tn-black); }
.tn-btn--light:hover { color: var(--tn-black); opacity: .92; }

.tn-link {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 44px;
	font-size: var(--tn-fs-body); font-weight: 500; color: var(--tn-accent);
}
.tn-link--light { color: var(--tn-white); }
.tn-link--light:hover { color: var(--tn-white); }
.tn-link__arrow { display: inline-block; transition: transform .3s var(--tn-ease); }
.tn-link:hover .tn-link__arrow { transform: translateX(4px); }

.tn-actions { margin-top: var(--tn-space-5); display: flex; gap: var(--tn-space-2) var(--tn-space-4); justify-content: center; align-items: center; flex-wrap: wrap; }
.tn-actions--left { justify-content: flex-start; }

/* ---------- 4. Header ---------- */
.tn-header {
	position: sticky;
	top: var(--tn-admin-bar);
	z-index: 50;
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	backdrop-filter: saturate(180%) blur(18px);
	border-bottom: 1px solid transparent;
	transition: background .3s var(--tn-ease), border-color .3s var(--tn-ease);
}
.tn-header.is-scrolled { background: rgba(255, 255, 255, 0.86); border-bottom-color: rgba(0, 0, 0, 0.06); }

.tn-header__inner {
	max-width: var(--tn-container);
	margin: 0 auto;
	padding: 0 var(--tn-gutter);
	height: var(--tn-header-h);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--tn-space-3);
}

.tn-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tn-brand__name { color: var(--tn-ink); font-size: var(--tn-fs-body); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.tn-brand .custom-logo-link { display: block; flex: none; }
.tn-brand .custom-logo { display: block; height: 28px; width: auto; max-width: 120px; border-radius: 6px; }

.tn-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--tn-space-4); }
.tn-menu a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tn-charcoal); font-size: var(--tn-fs-small); transition: color .2s; }
.tn-menu a:hover,
.tn-menu .current-menu-item > a,
.tn-menu .current_page_item > a,
.tn-menu .current_page_parent > a { color: var(--tn-black); }

.tn-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.tn-nav .tn-nav__cta-mobile { display: none; }

.tn-burger {
	display: none;
	width: 44px; height: 44px;
	margin-right: -13px; /* optical: lines sit on the content edge */
	border: 0; background: transparent; padding: 0; cursor: pointer;
	position: relative;
}
.tn-burger__line {
	position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--tn-ink);
	transition: transform .35s var(--tn-ease), top .35s var(--tn-ease);
}
.tn-burger__line:nth-of-type(2) { top: 18px; }
.tn-burger__line:nth-of-type(3) { top: 25px; }
.tn-burger[aria-expanded="true"] .tn-burger__line:nth-of-type(2) { top: 21.5px; transform: rotate(45deg); }
.tn-burger[aria-expanded="true"] .tn-burger__line:nth-of-type(3) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- 5. Shared type ---------- */
.tn-eyebrow {
	margin: 0 0 20px;
	font-size: var(--tn-fs-micro);
	font-weight: 600;
	letter-spacing: var(--tn-track-caps);
	text-transform: uppercase;
	color: var(--tn-gray);
}
.tn-eyebrow a { color: inherit; }
.tn-eyebrow--dark { color: var(--tn-gray-dark); }

.tn-h2 {
	max-width: 820px;
	font-size: var(--tn-fs-h2);
	line-height: 1.06;
	font-weight: 700;
	letter-spacing: -0.04em;
}
.tn-h2--wide { max-width: 920px; }

.tn-lead { margin-top: var(--tn-space-4); max-width: 520px; font-size: var(--tn-fs-prose); line-height: 1.6; color: var(--tn-charcoal); }
.tn-lead--flush { margin-top: 0; }
.tn-meta { margin-top: var(--tn-space-3); font-size: var(--tn-fs-small); color: var(--tn-gray); }

/* ---------- 6. Sections & grids ---------- */
.tn-section { padding: var(--tn-section) 0; }
.tn-section--gray { background: var(--tn-offwhite); }
.tn-section--black { background: var(--tn-black); color: var(--tn-paper); }
.tn-section--black .tn-h2 { color: var(--tn-paper); }
.tn-section--black .tn-eyebrow { color: var(--tn-gray-dark); }
.tn-section--flush-top { padding-top: 0; }

.tn-section__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--tn-space-3); }

/* One column gap and one row gap for every grid, so columns line up
   from section to section. */
.tn-services,
.tn-cases,
.tn-about,
.tn-post-nav,
.tn-feature__link,
.tn-process,
.tn-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--tn-row-gap) var(--tn-col-gap);
}
.tn-process,
.tn-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tn-beliefs,
.tn-services,
.tn-process,
.tn-stats,
.tn-cases,
.tn-postlist { margin-top: var(--tn-gap-head); }

/* ---------- 7. Hero ---------- */
.tn-hero { padding: clamp(72px, 10vw, 136px) var(--tn-gutter) 0; text-align: center; }
.tn-hero__copy { max-width: 1100px; margin: 0 auto; }
.tn-hero__title { font-size: var(--tn-fs-display); line-height: 1; font-weight: 700; letter-spacing: var(--tn-track-display); }
.tn-hero__text { margin: var(--tn-space-4) auto 0; max-width: 620px; font-size: var(--tn-fs-lead); line-height: 1.45; color: var(--tn-charcoal); letter-spacing: -0.01em; }

.tn-status { margin-top: var(--tn-space-3); display: inline-flex; align-items: center; gap: var(--tn-space-1); font-size: var(--tn-fs-micro); color: var(--tn-gray); }
.tn-status__dot { width: 7px; height: 7px; border-radius: 50%; background: #1A9E5C; }

.tn-hero__visual {
	margin: var(--tn-gap-head) auto 0;
	max-width: var(--tn-wide);
	background: var(--tn-black);
	border-radius: var(--tn-radius-lg) var(--tn-radius-lg) 0 0;
	padding: clamp(28px, 4vw, 56px) clamp(24px, 4.4vw, 64px) 0;
	color: var(--tn-paper);
	text-align: left;
	overflow: hidden;
}
.tn-hero__visual-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--tn-space-3); }
.tn-hero__visual .tn-eyebrow { margin-bottom: 12px; }
.tn-hero__visual-title { font-size: var(--tn-fs-h3); font-weight: 600; letter-spacing: var(--tn-track-heading); line-height: 1.1; }
.tn-hero__visual-note { max-width: 300px; font-size: var(--tn-fs-small); line-height: 1.5; color: var(--tn-gray-dark); }

/* Growth curve. Stage labels are real text so they stay legible at any width;
   the SVG only draws the curve and stretches to fill the box. */
.tn-curve { position: relative; margin-top: var(--tn-space-5); height: clamp(200px, 30vw, 364px); border-bottom: 1px solid var(--tn-line-dark); }
.tn-curve__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tn-curve__area { fill: var(--tn-accent); fill-opacity: .14; }
.tn-curve__line { fill: none; stroke: var(--tn-white); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.tn-curve__node,
.tn-curve__node-core,
.tn-curve__end { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tn-curve__node { stroke: var(--tn-white); stroke-width: 14; }
.tn-curve__node-core { stroke: var(--tn-black); stroke-width: 9; }
.tn-curve__end { stroke: var(--tn-accent); stroke-width: 16; }
.js .tn-curve__svg { animation: tnDraw 2.2s .5s var(--tn-ease) both; }

.tn-stages {
	position: absolute; inset: 0; z-index: 1;
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tn-stages__item {
	padding: 0 0 0 clamp(8px, 1.6vw, 24px);
	border-left: 1px dashed var(--tn-line-dark);
	font-size: clamp(12px, 1.2vw, 15px); line-height: 1.3; color: var(--tn-gray-dark);
	display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0 6px;
}
.tn-stages__item:first-child { border-left: 0; padding-left: 0; }
.tn-stages__item:last-child { color: var(--tn-white); }
.tn-stages__num { font-variant-numeric: tabular-nums; }

/* ---------- 8. Statement ---------- */
.tn-statement { padding: var(--tn-section-lg) var(--tn-gutter); text-align: center; }
.tn-statement__text {
	margin: 0 auto; max-width: 1000px;
	font-size: var(--tn-fs-h1); line-height: 1.06; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance;
}

/* ---------- 9. Beliefs ---------- */
.tn-beliefs { list-style: none; padding: 0; border-top: 1px solid var(--tn-line); }
.tn-beliefs__item {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: baseline;
	gap: var(--tn-space-1) var(--tn-col-gap);
	padding: var(--tn-space-4) 0; border-bottom: 1px solid var(--tn-line);
}
.tn-beliefs__main { font-size: var(--tn-fs-h3); font-weight: 600; letter-spacing: var(--tn-track-heading); line-height: 1.1; }
.tn-beliefs__over { font-size: var(--tn-fs-prose); color: var(--tn-gray); }

/* ---------- 10. Services ---------- */
.tn-service { display: flex; flex-direction: column; gap: var(--tn-space-2); padding-top: var(--tn-space-3); border-top: 1px solid var(--tn-line); }
.tn-service__num { font-size: var(--tn-fs-small); font-weight: 600; color: var(--tn-gray); font-variant-numeric: tabular-nums; }
.tn-service__title { font-size: var(--tn-fs-h3); }
.tn-service__text { max-width: 460px; font-size: var(--tn-fs-body); line-height: 1.55; color: var(--tn-charcoal); }

/* ---------- 11. Process ---------- */
.tn-process { list-style: none; padding: 0; }
.tn-step { display: flex; flex-direction: column; gap: var(--tn-space-2); }
.tn-step__num { font-size: var(--tn-fs-figure); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--tn-line); font-variant-numeric: tabular-nums; }
.tn-step__num.is-accent { color: var(--tn-accent); }
.tn-step__title { margin-top: var(--tn-space-1); font-size: var(--tn-fs-h5); letter-spacing: -0.02em; }
.tn-step__text { font-size: var(--tn-fs-body); line-height: 1.55; color: var(--tn-charcoal); }

/* ---------- 12. Stats ---------- */
.tn-stat__value { font-size: var(--tn-fs-figure); font-weight: 600; letter-spacing: -0.05em; line-height: 1; overflow-wrap: anywhere; }
.tn-stat__value.is-accent { color: var(--tn-accent-on-dark); }
.tn-stat__label { margin-top: var(--tn-space-2); max-width: 240px; font-size: var(--tn-fs-body); line-height: 1.5; color: var(--tn-gray-dark); }

/* ---------- 13. Cases ---------- */
.tn-case { display: flex; flex-direction: column; gap: var(--tn-space-3); color: var(--tn-ink); }
a.tn-case:hover { color: var(--tn-ink); }
.tn-case__media {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--tn-radius);
	overflow: hidden;
	display: flex; flex-direction: column; justify-content: space-between;
	padding: clamp(24px, 3vw, 36px);
}
.tn-case__media.has-image { padding: 0; }
.tn-case__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--tn-ease); }
a.tn-case:hover .tn-case__img { transform: scale(1.03); }
a.tn-case .tn-case__media { transition: transform .6s var(--tn-ease); }
a.tn-case:hover .tn-case__media:not(.has-image) { transform: translateY(-6px); }

.tn-case__tag { font-size: var(--tn-fs-micro); font-weight: 600; letter-spacing: var(--tn-track-caps); text-transform: uppercase; }
.tn-case__big { font-size: var(--tn-fs-figure-lg); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; }
.tn-case__big--word { font-size: var(--tn-fs-figure); line-height: 1; }
.tn-case__client { font-size: var(--tn-fs-small); color: var(--tn-gray); }
.tn-case__title { margin-top: 6px; font-size: var(--tn-fs-h4); letter-spacing: var(--tn-track-title); line-height: 1.2; }
.tn-case__text { margin-top: 10px; max-width: 480px; font-size: var(--tn-fs-body); line-height: 1.5; color: var(--tn-charcoal); }
.tn-case__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: var(--tn-fs-small); font-weight: 500; color: var(--tn-accent); }
a.tn-case:hover .tn-link__arrow { transform: translateX(4px); }

.tn-tone--navy { background: #0B1A3A; color: var(--tn-white); }
.tn-tone--navy .tn-case__tag { color: #9FB4E8; }
.tn-tone--sand { background: #EDE8E1; color: var(--tn-ink); }
.tn-tone--sand .tn-case__tag { color: #6B5F52; }
.tn-tone--sage { background: #E4EBE3; color: var(--tn-ink); }
.tn-tone--sage .tn-case__tag { color: #4D6150; }
.tn-tone--charcoal { background: var(--tn-ink); color: var(--tn-white); }
.tn-tone--charcoal .tn-case__tag { color: var(--tn-gray-dark); }
.tn-tone--light { background: var(--tn-offwhite); color: var(--tn-ink); }
.tn-tone--light .tn-case__tag { color: var(--tn-gray); }

/* ---------- 14. About ---------- */
.tn-timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tn-line); align-self: start; }
.tn-timeline__item { display: flex; justify-content: space-between; gap: var(--tn-space-3); padding: var(--tn-space-3) 0; border-bottom: 1px solid var(--tn-line); }
.tn-timeline__company { font-size: var(--tn-fs-h5); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.tn-timeline__role { margin-top: 4px; font-size: var(--tn-fs-small); color: var(--tn-gray); }
.tn-timeline__years { font-size: var(--tn-fs-small); line-height: 1.85; color: var(--tn-gray); white-space: nowrap; font-variant-numeric: tabular-nums; }

.tn-toolkit { margin-top: var(--tn-gap-head); }
.tn-toolkit__list { font-size: var(--tn-fs-h4); line-height: 1.3; font-weight: 500; letter-spacing: var(--tn-track-title); }

/* Inline list with dot separators (toolkit, topics). Each item carries its
   separator in front; the negative margin pushes the first separator of every
   line outside the clip, so no line starts or ends with a dot. */
.tn-inline__clip { overflow: hidden; }
.tn-inline { list-style: none; margin: 0 0 0 -1.4em; padding: 0; display: flex; flex-wrap: wrap; gap: var(--tn-space-1) 0; }
.tn-inline li { white-space: nowrap; }
.tn-inline li::before { content: "·"; display: inline-block; width: 1.4em; text-align: center; color: var(--tn-gray-dark); }

/* Topic bar: one line; it scrolls sideways when it does not fit (phones). */
.tn-topics { margin-top: var(--tn-space-6); }
.tn-topics .tn-eyebrow { margin-bottom: var(--tn-space-1); }
.tn-topics__scroll { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 calc(var(--tn-gutter) * -1); padding: 0 var(--tn-gutter); }
.tn-topics__scroll::-webkit-scrollbar { display: none; }
.tn-topics__list { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; gap: var(--tn-space-4); font-size: var(--tn-fs-body); font-weight: 500; letter-spacing: -0.01em; }
.tn-topics__list a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--tn-gray); white-space: nowrap; transition: color .2s; }
.tn-topics__list a:hover { color: var(--tn-ink); }
.tn-topics__list a[aria-current] { color: var(--tn-ink); }
.tn-topics__list a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; background: var(--tn-ink); }
.tn-topics--center { margin-top: var(--tn-space-5); }
.tn-topics--center .tn-topics__scroll { margin: 0; }
.tn-topics--center .tn-topics__list { margin: 0 auto; }

/* ---------- 15. Quote ---------- */
.tn-quote { padding: var(--tn-section-lg) var(--tn-gutter); text-align: center; }
.tn-quote figure { margin: 0 auto; max-width: 980px; }
.tn-quote__text { margin: 0; font-size: var(--tn-fs-h3); line-height: 1.16; font-weight: 600; letter-spacing: var(--tn-track-heading); text-wrap: balance; }
.tn-quote__by { margin-top: var(--tn-space-4); font-size: var(--tn-fs-body); color: var(--tn-gray); }

/* ---------- 16. Article rows ---------- */
/* One component for every list of articles. The homepage uses the plain row
   (title, topic, date); the blog adds an excerpt and a small cover image. */
.tn-postlist { list-style: none; padding: 0; border-top: 1px solid var(--tn-line); }
.tn-postlist--flush { margin-top: 0; }
.tn-postlist__item { border-bottom: 1px solid var(--tn-line); }
.tn-postlist__link {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
	gap: var(--tn-space-1) var(--tn-col-gap); padding: var(--tn-space-4) 0; color: var(--tn-ink);
}
.tn-postlist__link:hover { color: var(--tn-ink); }
.tn-postlist__text { display: block; min-width: 0; }
.tn-postlist__title { display: block; max-width: 820px; text-wrap: balance; font-size: var(--tn-fs-h4); font-weight: 600; letter-spacing: var(--tn-track-title); line-height: 1.3; transition: color .25s; }
.tn-postlist__link:hover .tn-postlist__title { color: var(--tn-accent); }
.tn-postlist__meta { font-size: var(--tn-fs-small); color: var(--tn-gray); white-space: nowrap; font-variant-numeric: tabular-nums; }

.tn-postlist__link--rich { grid-template-columns: minmax(0, 1fr) 240px; grid-template-areas: "meta thumb" "text thumb"; grid-template-rows: auto 1fr; align-items: start; row-gap: 10px; padding: var(--tn-space-5) 0; }
.tn-postlist__link--rich .tn-postlist__text { grid-area: text; }
.tn-postlist__link--rich .tn-postlist__meta { grid-area: meta; line-height: 1.5; }
.tn-postlist__link--rich .tn-postlist__cat { color: var(--tn-ink); font-weight: 500; }
.tn-postlist__link--rich .tn-postlist__title { max-width: 720px; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.22; letter-spacing: -0.03em; }
.tn-postlist__excerpt {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
	margin-top: 12px; max-width: 640px; font-size: var(--tn-fs-body); line-height: 1.55; color: var(--tn-charcoal);
}
.tn-postlist__thumb { grid-area: thumb; align-self: center; display: block; aspect-ratio: 16 / 9; border-radius: var(--tn-radius-sm); overflow: hidden; background: var(--tn-offwhite); }
.tn-postlist__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--tn-ease); }
.tn-postlist__link:hover .tn-postlist__thumb img { transform: scale(1.04); }

.tn-postlist--children { margin-top: var(--tn-space-6); }
.tn-postlist--children .tn-postlist__link { grid-template-columns: minmax(0, 1fr); }
.tn-postlist--children .tn-postlist__meta { white-space: normal; font-size: var(--tn-fs-body); line-height: 1.5; color: var(--tn-charcoal); }

/* The newest article in a black panel under the page head — the same device
   as the black panel under the homepage hero. */
.tn-feature {
	margin: var(--tn-gap-head) auto 0; max-width: var(--tn-wide);
	background: var(--tn-black); color: var(--tn-paper); border-radius: var(--tn-radius-lg);
	text-align: left; overflow: hidden;
}
.tn-feature__link { align-items: center; padding: clamp(28px, 4.4vw, 64px); color: var(--tn-paper); }
.tn-feature__link:hover { color: var(--tn-paper); }
.tn-feature__link:focus-visible { outline-color: var(--tn-accent-on-dark); outline-offset: -6px; border-radius: var(--tn-radius-lg); }
.tn-feature .tn-eyebrow { margin-bottom: var(--tn-space-3); }
.tn-feature__title { font-size: var(--tn-fs-h3); line-height: 1.16; font-weight: 700; color: var(--tn-white); }
.tn-feature__excerpt { margin-top: var(--tn-space-3); max-width: 480px; font-size: var(--tn-fs-prose); line-height: 1.55; color: var(--tn-gray-dark); }
.tn-feature__meta { margin-top: var(--tn-space-2); font-size: var(--tn-fs-small); color: var(--tn-gray-dark); font-variant-numeric: tabular-nums; }
.tn-feature .tn-link { margin-top: var(--tn-space-3); }
.tn-feature__media { aspect-ratio: 16 / 9; border-radius: var(--tn-radius); overflow: hidden; background: var(--tn-line-dark); }
.tn-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--tn-ease); }
.tn-feature__link:hover .tn-feature__media img { transform: scale(1.03); }

/* Topic blocks: one soft-gray block per main topic, listing its sub-topics.
   Tiles, not cards: no border, no shadow, the theme's media radius. */
.tn-blocks { margin-top: var(--tn-gap-head); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tn-space-3); }
.tn-blocks--1 { grid-template-columns: minmax(0, 1fr); }
.tn-blocks--2,
.tn-blocks--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tn-block { display: flex; flex-direction: column; min-height: 100%; padding: clamp(24px, 2.6vw, 36px); border-radius: var(--tn-radius); background: var(--tn-offwhite); }
.tn-block .tn-eyebrow { margin-bottom: var(--tn-space-2); font-variant-numeric: tabular-nums; }
.tn-block__title { font-size: var(--tn-fs-h3); line-height: 1.1; font-weight: 700; }
.tn-block__title a { color: var(--tn-ink); transition: color .25s; }
.tn-block__title a:hover { color: var(--tn-accent); }
.tn-block__text { margin-top: var(--tn-space-2); font-size: var(--tn-fs-body); line-height: 1.5; color: var(--tn-charcoal); }
.tn-block__body { margin-top: var(--tn-space-4); }
.tn-block__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tn-line); }
.tn-block__label { margin: var(--tn-space-3) 0 12px; font-size: var(--tn-fs-micro); font-weight: 600; letter-spacing: var(--tn-track-caps); text-transform: uppercase; color: var(--tn-gray); }
.tn-block__list li { border-bottom: 1px solid var(--tn-line); }
.tn-block__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--tn-space-2); padding: 14px 0; color: var(--tn-ink); }
.tn-block__row:hover { color: var(--tn-ink); }
.tn-block__name { font-size: var(--tn-fs-body); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; transition: color .2s; }
.tn-block__row:hover .tn-block__name { color: var(--tn-accent); }
.tn-block__count { font-size: var(--tn-fs-small); color: var(--tn-gray); font-variant-numeric: tabular-nums; }
.tn-block__list--articles .tn-block__name { font-weight: 400; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tn-block__all { margin-top: auto; padding-top: var(--tn-space-3); font-size: var(--tn-fs-small); }
/* Where supported, the three parts of every block (name, list, link) share
   rows across the grid, so the lists start on one line even when a name wraps. */
@supports (grid-template-rows: subgrid) {
	.tn-block { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
	.tn-block__all { margin-top: 0; align-self: end; }
}

/* ---------- 17. Contact ---------- */
.tn-contact { padding: var(--tn-section-lg) var(--tn-gutter); text-align: center; }
.tn-contact__title {
	margin: 0 auto; max-width: 960px;
	font-size: var(--tn-fs-display); line-height: 1; font-weight: 700; letter-spacing: var(--tn-track-display); color: var(--tn-paper);
}
.tn-contact--compact { padding: var(--tn-section) var(--tn-gutter); margin-top: var(--tn-section); }
.tn-contact--flush { margin-top: 0; }
.tn-contact__title--sm { font-size: var(--tn-fs-h1); line-height: 1.04; letter-spacing: -0.04em; }

/* ---------- 18. Footer ---------- */
.tn-footer { background: var(--tn-black); color: var(--tn-gray-dark); }
.tn-footer__inner {
	padding: var(--tn-space-3) 0 var(--tn-space-5); border-top: 1px solid var(--tn-line-dark);
	display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 var(--tn-col-gap);
	font-size: var(--tn-fs-micro);
}
.tn-footer__links,
.tn-footer-menu { display: flex; flex-wrap: wrap; gap: 0 var(--tn-space-3); }
.tn-footer-menu { list-style: none; margin: 0; padding: 0; }
.tn-footer__nav a,
.tn-footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tn-gray-dark); transition: color .2s; }
.tn-footer__nav a { color: var(--tn-paper); }
.tn-footer__nav a:hover,
.tn-footer__links a:hover { color: var(--tn-white); }
.tn-footer__legal { grid-column: 1 / -1; margin-top: var(--tn-space-2); }
.tn-footer__legal a { color: inherit; }
.tn-footer__legal a:hover { color: var(--tn-white); }

/* ---------- 19. Page heads ---------- */
.tn-page-head { padding: clamp(72px, 10vw, 136px) 0 var(--tn-gap-head); }
.tn-page-head__title { font-size: var(--tn-fs-h1); line-height: 1.06; font-weight: 700; letter-spacing: -0.04em; max-width: 960px; }
.tn-page-head__text { margin-top: var(--tn-space-3); max-width: 620px; font-size: var(--tn-fs-lead); line-height: 1.45; color: var(--tn-charcoal); }

/* Article-list head: centred, like the homepage hero. */
.tn-archive-hero { padding: clamp(72px, 10vw, 136px) var(--tn-gutter) var(--tn-space-5); text-align: center; }
.tn-archive-hero.has-feature { padding-bottom: 0; }
.tn-archive-hero__copy { max-width: 960px; margin: 0 auto; }
.tn-archive-hero__title { font-size: var(--tn-fs-h1); line-height: 1.04; font-weight: 700; letter-spacing: -0.04em; }
.tn-archive-hero__title--display { font-size: var(--tn-fs-display); line-height: 1; letter-spacing: var(--tn-track-display); }
.tn-archive-hero__text { margin: var(--tn-space-4) auto 0; max-width: 620px; font-size: var(--tn-fs-lead); line-height: 1.45; color: var(--tn-charcoal); letter-spacing: -0.01em; }
.tn-archive-hero__search { margin: var(--tn-space-5) auto 0; max-width: 440px; }
.tn-archive-hero__search .tn-search { margin-top: 0; max-width: none; }

/* Line above a list: what it is on the left, where you are on the right. */
.tn-listhead { display: flex; justify-content: space-between; align-items: baseline; gap: var(--tn-space-3); padding-bottom: var(--tn-space-3); }
.tn-listhead .tn-eyebrow { margin: 0; }
.tn-listhead__meta { font-size: var(--tn-fs-small); color: var(--tn-gray); font-variant-numeric: tabular-nums; }
.tn-lead--center { margin-left: auto; margin-right: auto; text-align: center; }

.tn-page-head--narrow .tn-page-head__title { font-size: var(--tn-fs-title); line-height: 1.14; letter-spacing: var(--tn-track-heading); }
.tn-page-head--narrow { padding-bottom: clamp(48px, 6vw, 80px); }
.tn-page--default { padding-bottom: var(--tn-section); }

.tn-pagination { margin-top: var(--tn-gap-head); }
.tn-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--tn-space-1); }
.tn-pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--tn-radius-pill); color: var(--tn-ink); font-size: var(--tn-fs-small); font-variant-numeric: tabular-nums;
}
.tn-pagination .page-numbers.current { background: var(--tn-ink); color: var(--tn-white); }
.tn-pagination a.page-numbers:hover { background: var(--tn-offwhite); }

/* ---------- 20. Single article ---------- */
/* Article layout: a reading column and, on wide screens, a side column that
   follows the reader. One column below 1100px, with the side lists under the article. */
.tn-single__grid {
	max-width: calc(var(--tn-narrow) + var(--tn-gutter) * 2); margin: 0 auto; padding: 0 var(--tn-gutter);
	display: grid; grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "head" "cover" "main" "aside" "after";
}
.tn-single__main { grid-area: main; min-width: 0; }
.tn-single__after { grid-area: after; min-width: 0; }
.tn-article-head { grid-area: head; padding: clamp(72px, 10vw, 136px) 0 clamp(48px, 6vw, 80px); }
.tn-article-head__title { font-size: var(--tn-fs-title); line-height: 1.14; font-weight: 700; letter-spacing: var(--tn-track-heading); }
.tn-article-head__lead { margin-top: var(--tn-space-3); font-size: var(--tn-fs-lead); line-height: 1.45; color: var(--tn-charcoal); }
.tn-article-head__meta { margin-top: var(--tn-space-3); font-size: var(--tn-fs-small); color: var(--tn-gray); font-variant-numeric: tabular-nums; }

.tn-article-cover { grid-area: cover; margin: 0 0 clamp(48px, 6vw, 80px); }
.tn-article-cover img { width: 100%; border-radius: var(--tn-radius); }

.tn-prose { font-size: var(--tn-fs-prose); line-height: 1.7; color: var(--tn-ink); }
.tn-prose > * + * { margin-top: 1.25em; }
.tn-prose h2 { margin-top: 2em; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.2; letter-spacing: var(--tn-track-title); }
.tn-prose h3 { margin-top: 1.8em; font-size: var(--tn-fs-h4); line-height: 1.25; letter-spacing: -0.02em; }
.tn-prose h4 { margin-top: 1.6em; font-size: var(--tn-fs-h5); line-height: 1.3; letter-spacing: -0.01em; }
.tn-prose a { color: var(--tn-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tn-prose ul, .tn-prose ol { padding-left: 1.3em; }
.tn-prose li + li { margin-top: .5em; }
.tn-prose blockquote {
	margin: 2em 0; padding: 0 0 0 var(--tn-space-3); border-left: 2px solid var(--tn-ink);
	font-size: var(--tn-fs-h4); line-height: 1.4; font-weight: 500; letter-spacing: -0.02em;
}
.tn-prose blockquote cite { display: block; margin-top: 12px; font-size: var(--tn-fs-small); font-style: normal; font-weight: 400; letter-spacing: 0; color: var(--tn-gray); }
.tn-prose img, .tn-prose figure img { border-radius: var(--tn-radius-sm); }
.tn-prose figure { margin: 2em 0; }
.tn-prose figcaption, .tn-prose .wp-element-caption { margin-top: 10px; font-size: var(--tn-fs-micro); color: var(--tn-gray); text-align: center; }
.tn-prose .alignwide { margin-left: calc(-1 * min(120px, 8vw)); margin-right: calc(-1 * min(120px, 8vw)); }
.tn-prose .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.tn-prose .alignfull img { border-radius: 0; }
.tn-prose code { font-size: .88em; background: var(--tn-offwhite); padding: 2px 6px; border-radius: 6px; }
.tn-prose pre { background: var(--tn-ink); color: var(--tn-paper); padding: var(--tn-space-3); border-radius: var(--tn-radius-sm); overflow-x: auto; font-size: var(--tn-fs-small); line-height: 1.6; }
.tn-prose pre code { background: none; padding: 0; font-size: inherit; }
.tn-prose hr { border: 0; border-top: 1px solid var(--tn-line); margin: 3em 0; }

/* Tables: horizontal rules only, full measure, scroll sideways when too wide.
   The extra selectors override the block editor's default cell borders. */
.tn-prose table { width: 100%; border-collapse: collapse; font-size: var(--tn-fs-body); line-height: 1.5; }
.tn-prose > table { display: block; overflow-x: auto; }
.tn-prose .wp-block-table { overflow-x: auto; }
.tn-prose th, .tn-prose td,
.tn-prose .wp-block-table th, .tn-prose .wp-block-table td { padding: 12px var(--tn-space-2) 12px 0; border: 0; border-bottom: 1px solid var(--tn-line); text-align: left; vertical-align: top; }
.tn-prose th { font-weight: 600; }
.tn-prose .wp-block-table thead { border-bottom: 0; }
.tn-prose thead th,
.tn-prose .wp-block-table thead th { border-bottom-color: var(--tn-ink); font-size: var(--tn-fs-small); }

/* Block-editor buttons follow the theme button. */
.tn-prose .wp-block-button__link {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px;
	border-radius: var(--tn-radius-pill); background: var(--tn-ink); color: var(--tn-white);
	font: 500 var(--tn-fs-body)/1 var(--tn-font); text-decoration: none;
}
.tn-page-links { margin-top: var(--tn-space-5); display: flex; gap: var(--tn-space-2); font-size: var(--tn-fs-small); color: var(--tn-gray); }

.tn-tags { margin-top: var(--tn-space-5); display: flex; flex-wrap: wrap; gap: 0 var(--tn-space-3); }
.tn-tags a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tn-gray); font-size: var(--tn-fs-small); transition: color .2s; }
.tn-tags a:hover { color: var(--tn-ink); }

.tn-post-nav { margin-top: var(--tn-space-6); row-gap: var(--tn-space-4); }

/* Rules above the blocks that follow an article. Drawn inside the reading
   column so they line up with the text, not with the gutter. */
.tn-post-nav::before,
.tn-comments::before { content: ""; display: block; height: 1px; background: var(--tn-line); grid-column: 1 / -1; }
.tn-comments::before { margin-bottom: var(--tn-space-4); }
.tn-post-nav__item { display: flex; flex-direction: column; gap: 6px; color: var(--tn-ink); font-size: var(--tn-fs-prose); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; transition: color .25s; }
.tn-post-nav__item span { font-size: var(--tn-fs-micro); font-weight: 600; letter-spacing: var(--tn-track-caps); text-transform: uppercase; color: var(--tn-gray); }
.tn-post-nav__item:hover { color: var(--tn-accent); }
.tn-post-nav__item--next { grid-column: 2; text-align: right; }

/* Comments */
.tn-comments { margin-top: var(--tn-space-6); }
.tn-comments__title,
.tn-comments .comment-reply-title { font-size: var(--tn-fs-h4); font-weight: 600; letter-spacing: var(--tn-track-title); line-height: 1.2; }
.tn-comments .comment-reply-title small { margin-left: var(--tn-space-2); font-size: var(--tn-fs-small); font-weight: 400; letter-spacing: 0; }
.tn-comments .comment-list { list-style: none; margin: var(--tn-space-4) 0 0; padding: 0; }
.tn-comments .comment-list .children { list-style: none; margin: 0; padding-left: var(--tn-space-4); }
.tn-comments .comment-body { padding: var(--tn-space-3) 0; border-bottom: 1px solid var(--tn-line); }
.tn-comments .comment-author { font-weight: 600; }
.tn-comments .comment-author .avatar { display: inline-block; vertical-align: middle; margin-right: 10px; border-radius: 50%; }
.tn-comments .comment-author .says { display: none; }
.tn-comments .comment-metadata,
.tn-comments .reply,
.tn-comments .comment-notes,
.tn-comments .logged-in-as,
.tn-comments .comment-form-cookies-consent,
.tn-comments .comment-awaiting-moderation { font-size: var(--tn-fs-small); color: var(--tn-gray); }
.tn-comments .comment-metadata a { color: inherit; }
.tn-comments .comment-content { margin-top: 12px; line-height: 1.6; }
.tn-comments .comment-content > * + * { margin-top: 1em; }
.tn-comments .reply { margin-top: 12px; }
.tn-comments .comment-respond { margin-top: var(--tn-space-5); }
.tn-comments .comment-list + .comment-respond { margin-top: var(--tn-space-6); }
.tn-comments .comment-form { margin-top: var(--tn-space-2); display: grid; gap: var(--tn-space-3); }
.tn-comments .comment-form p { margin: 0; }
.tn-comments .comment-form label { display: block; margin-bottom: var(--tn-space-1); font-size: var(--tn-fs-small); font-weight: 500; color: var(--tn-ink); }
.tn-comments .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.tn-comments .comment-form-cookies-consent input { margin-top: 4px; }
.tn-comments .comment-form-cookies-consent label { margin: 0; font-weight: 400; color: var(--tn-gray); }
.tn-comments .form-submit { margin: 0; }

/* Form fields — one style everywhere */
.tn-comments textarea,
.tn-comments input[type="text"],
.tn-comments input[type="email"],
.tn-comments input[type="url"],
.tn-search__input {
	width: 100%; min-height: 48px; padding: 12px var(--tn-space-2);
	border: 1px solid var(--tn-line); border-radius: var(--tn-radius-sm);
	background: var(--tn-white); color: var(--tn-ink);
	font: var(--tn-fs-body)/1.4 var(--tn-font);
	transition: border-color .2s;
}
.tn-comments textarea { min-height: 160px; resize: vertical; }
.tn-comments textarea:focus,
.tn-comments input:focus,
.tn-search__input:focus { border-color: var(--tn-ink); outline: none; }
.tn-comments textarea:focus-visible,
.tn-comments input:focus-visible,
.tn-search__input:focus-visible { outline: 2px solid var(--tn-accent); outline-offset: 2px; }

.tn-comments .submit {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; margin: 0; padding: 0 28px;
	border: 0; border-radius: var(--tn-radius-pill);
	background: var(--tn-ink); color: var(--tn-white);
	font: 500 var(--tn-fs-body)/1 var(--tn-font); cursor: pointer;
	transition: background .3s;
}
.tn-comments .submit:hover { background: var(--tn-black); }

/* What to read next: text-only lists beside (or under) the article. */
.tn-aside { grid-area: aside; min-width: 0; margin-top: var(--tn-space-6); padding-top: var(--tn-space-4); border-top: 1px solid var(--tn-line); }
.tn-aside__inner { display: grid; gap: var(--tn-space-5); }
.tn-aside .tn-eyebrow { margin: 0 0 var(--tn-space-1); }
.tn-aside__list { list-style: none; margin: 0; padding: 0; }
.tn-aside__list li + li { border-top: 1px solid var(--tn-line); }
.tn-aside__link { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; color: var(--tn-ink); }
.tn-aside__link:hover { color: var(--tn-ink); }
.tn-aside__title {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
	font-size: var(--tn-fs-small); font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; transition: color .2s;
}
.tn-aside__link:hover .tn-aside__title { color: var(--tn-accent); }
.tn-aside__meta { font-size: var(--tn-fs-micro); color: var(--tn-gray); font-variant-numeric: tabular-nums; }
.tn-aside__list--ranked { counter-reset: tn-rank; }
.tn-aside__list--ranked .tn-aside__link { flex-direction: row; gap: 14px; }
.tn-aside__list--ranked .tn-aside__link::before {
	counter-increment: tn-rank; content: counter(tn-rank, decimal-leading-zero);
	flex: none; width: 1.6em; font-size: var(--tn-fs-micro); font-weight: 600; line-height: 1.62; color: var(--tn-gray); font-variant-numeric: tabular-nums;
}
.tn-aside__list--topics .tn-aside__link { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 12px 0; }
.tn-aside__all { min-height: 0; margin-top: var(--tn-space-2); font-size: var(--tn-fs-small); }

@media (min-width: 620px) and (max-width: 1099px) {
	/* Under the article on tablets: two lists side by side, topics below. */
	.tn-aside__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--tn-col-gap); }
	.tn-aside__group:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
	.tn-single__grid {
		max-width: var(--tn-container);
		grid-template-columns: minmax(0, var(--tn-narrow)) minmax(0, 300px);
		justify-content: space-between; column-gap: var(--tn-space-6);
		grid-template-areas: "head head" "cover cover" "main aside" "after aside";
		grid-template-rows: auto auto auto 1fr;
	}
	.tn-article-head__title { max-width: 900px; }
	.tn-article-head__lead { max-width: var(--tn-narrow); }
	.tn-aside { margin-top: 0; padding-top: 0; border-top: 0; }
	.tn-aside__inner {
		position: sticky; top: calc(var(--tn-header-h) + var(--tn-admin-bar) + var(--tn-space-4));
		gap: var(--tn-space-4);
	}
	/* Tighter in the side column, so the whole column fits a laptop screen. */
	.tn-aside__link { padding: 12px 0; }
	.tn-aside__title { -webkit-line-clamp: 2; }
	.tn-aside__group--latest .tn-aside__meta { display: none; }
	.tn-aside__list--topics .tn-aside__link { padding: 10px 0; }
	/* Wide and full-width blocks stay inside the reading column when there is a side column. */
	.tn-single__grid .tn-prose .alignwide,
	.tn-single__grid .tn-prose .alignfull { margin-left: 0; margin-right: 0; max-width: 100%; }
	.tn-single__grid .tn-prose .alignfull img { border-radius: var(--tn-radius-sm); }
}

/* Short screens: drop the least useful lists first, so the column never runs off the screen. */
@media (min-width: 1100px) and (max-height: 880px) {
	.tn-aside__group--topics { display: none; }
}
@media (min-width: 1100px) and (max-height: 700px) {
	.tn-aside__list--ranked li:nth-child(n+4),
	.tn-aside__all { display: none; }
}

/* ---------- 20b. Blocks that plugins add to an article ---------- */
/* Jetpack contact form — the theme's fields, through the form's own variables. */
.tn-prose .contact-form,
.tn-page .contact-form {
	--jetpack--contact-form--border-color: var(--tn-line);
	--jetpack--contact-form--border-size: 1px;
	--jetpack--contact-form--border-style: solid;
	--jetpack--contact-form--border-radius: var(--tn-radius-sm);
	--jetpack--contact-form--input-padding: 12px;
	--jetpack--contact-form--input-padding-left: 16px;
	--jetpack--contact-form--input-background: var(--tn-white);
	--jetpack--contact-form--text-color: var(--tn-ink);
	--jetpack--contact-form--primary-color: var(--tn-ink);
	--jetpack--contact-form--font-size: var(--tn-fs-body);
	--jetpack--contact-form--line-height: 1.4;
	--jetpack--contact-form--label--font-size: var(--tn-fs-small);
	--jetpack--contact-form--error-color: #B3261E;
	font-family: var(--tn-font);
}
.tn-prose .wp-block-jetpack-contact-form { gap: var(--tn-space-3); margin-top: 2em; }
.tn-prose .contact-form .grunion-field-wrap { margin: 0; }
.tn-prose .contact-form label.grunion-field-label { margin-bottom: var(--tn-space-1); font-size: var(--tn-fs-small); font-weight: 500; line-height: 1.4; color: var(--tn-ink); }
.tn-prose .contact-form .grunion-label-required { font-size: inherit; color: var(--tn-gray); }
.tn-prose .contact-form input.grunion-field,
.tn-prose .contact-form textarea.grunion-field,
.tn-prose .contact-form select,
.tn-prose .contact-form .jetpack-field__input-phone-wrapper {
	min-height: 48px; border: 1px solid var(--tn-line); border-radius: var(--tn-radius-sm);
	background: var(--tn-white); color: var(--tn-ink); box-shadow: none;
	font: var(--tn-fs-body)/1.4 var(--tn-font); transition: border-color .2s;
}
.tn-prose .contact-form textarea.grunion-field { min-height: 160px; }
.tn-prose .contact-form input.grunion-field:focus,
.tn-prose .contact-form textarea.grunion-field:focus,
.tn-prose .contact-form select:focus,
.tn-prose .contact-form .jetpack-field__input-phone-wrapper:focus-within { border-color: var(--tn-ink); outline: 2px solid var(--tn-accent); outline-offset: 2px; box-shadow: none; }
.tn-prose .contact-form .jetpack-field__input-phone-wrapper input { border: 0; outline: 0; background: transparent; font: inherit; }
.tn-prose .contact-form .wp-block-button { margin: 0; }
.tn-prose .contact-form button.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; width: auto; height: auto; min-height: 48px; padding: 0 28px;
	border: 0; border-radius: var(--tn-radius-pill); background: var(--tn-ink); color: var(--tn-white);
	font: 500 var(--tn-fs-body)/1 var(--tn-font); cursor: pointer; transition: background .3s;
}
.tn-prose .contact-form button.wp-block-button__link:hover { background: var(--tn-black); }

/* Sharing, likes and related articles (Jetpack) — set as quiet end-of-article
   furniture: small caps labels, text links, the theme's rules. */
.tn-prose .sharedaddy,
.tn-prose div#jp-relatedposts { margin-top: var(--tn-space-5); padding-top: var(--tn-space-4); border-top: 1px solid var(--tn-line); font-family: var(--tn-font); }
.tn-prose .sharedaddy + .sharedaddy { margin-top: var(--tn-space-4); padding-top: 0; border-top: 0; }
.tn-prose .sharedaddy h3.sd-title,
.tn-prose div#jp-relatedposts h3.jp-relatedposts-headline {
	display: block; float: none; margin: 0 0 var(--tn-space-2);
	font-family: var(--tn-font); font-size: var(--tn-fs-micro); font-weight: 600; letter-spacing: var(--tn-track-caps); text-transform: uppercase; line-height: 1.4; color: var(--tn-gray);
}
.tn-prose .sharedaddy h3.sd-title::before,
.tn-prose div#jp-relatedposts h3.jp-relatedposts-headline em::before { display: none; }
.tn-prose div#jp-relatedposts h3.jp-relatedposts-headline em { font-style: normal; font-weight: inherit; }
.tn-prose .sd-content ul { margin: 0; padding: 0; }
.tn-prose .sd-content ul li { margin: 0 var(--tn-space-1) 0 0; }
.tn-prose .sd-social-icon-text .sd-content ul li a.sd-button {
	min-height: 36px; padding: 0 var(--tn-space-2); display: inline-flex; align-items: center;
	border: 1px solid var(--tn-line); border-radius: var(--tn-radius-pill); box-shadow: none;
	background: var(--tn-white); color: var(--tn-ink); font: 500 var(--tn-fs-small)/1 var(--tn-font); text-decoration: none;
	transition: border-color .2s;
}
.tn-prose .sd-social-icon-text .sd-content ul li a.sd-button:hover { border-color: var(--tn-ink); }
.tn-prose div#jp-relatedposts div.jp-relatedposts-items { display: block; clear: both; }
.tn-prose div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post {
	float: none; width: auto; margin: 0; padding: var(--tn-space-2) 0; border-bottom: 1px solid var(--tn-line); opacity: 1;
	display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px var(--tn-space-3);
}
.tn-prose div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post:last-child { border-bottom: 0; }
.tn-prose div#jp-relatedposts .jp-relatedposts-post-title { grid-column: 1; font-size: var(--tn-fs-prose); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.tn-prose div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-title a { color: var(--tn-ink); font-size: inherit; font-weight: 600; text-decoration: none; transition: color .25s; }
.tn-prose div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-title a:hover { color: var(--tn-accent); }
.tn-prose div#jp-relatedposts .jp-relatedposts-post-date,
.tn-prose div#jp-relatedposts .jp-relatedposts-post-context { font-size: var(--tn-fs-small); line-height: 1.5; color: var(--tn-gray); opacity: 1; }
.tn-prose div#jp-relatedposts .jp-relatedposts-post-date { grid-column: 2; grid-row: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tn-prose div#jp-relatedposts .jp-relatedposts-post-context { grid-column: 1; }

/* ---------- 21. Search, 404 ---------- */
.tn-search { position: relative; margin-top: var(--tn-space-4); max-width: 480px; }
.tn-search__input { display: block; height: 52px; border-radius: var(--tn-radius-pill); padding: 0 104px 0 24px; -webkit-appearance: none; appearance: none; }
.tn-search__input::-webkit-search-cancel-button { display: none; }
.tn-search__submit { position: absolute; top: 6px; right: 6px; bottom: 6px; padding: 0 20px; border: 0; border-radius: var(--tn-radius-pill); background: var(--tn-ink); color: var(--tn-white); font: 500 var(--tn-fs-small)/1 var(--tn-font); cursor: pointer; transition: background .3s; }
.tn-search__submit:hover { background: var(--tn-black); }
.tn-404 { min-height: 70vh; }
.tn-404 .tn-actions { margin-top: var(--tn-space-4); }

/* ---------- 22. Full width / Elementor ---------- */
.tn-page--full,
.elementor-page .tn-page { overflow-x: clip; }

/* ---------- 23. Motion ---------- */
.tn-rise { animation: tnRise 1.1s var(--tn-ease) both; }
.tn-rise--2 { animation-delay: .15s; }
.tn-rise--3 { animation-delay: .3s; animation-duration: 1.3s; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--tn-ease), transform 1s var(--tn-ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes tnRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* Negative insets leave room for the end dot, which sits on the edge of the chart. */
@keyframes tnDraw { from { clip-path: inset(-16px 100% 0 0); } to { clip-path: inset(-16px -16px 0 0); } }

/* Page-to-page: a short cross-fade in browsers that support it; others navigate as usual. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--tn-ease); }

/* ---------- 24. Responsive ---------- */
@media (max-width: 1023px) {
	.tn-process,
	.tn-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tn-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tn-blocks > .tn-block:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
	.tn-header__inner { display: flex; justify-content: space-between; }
	.tn-burger { display: block; }
	.tn-header__cta { display: none; }

	/* The panel hangs off the sticky header (absolute, not fixed): the header's
	   backdrop-filter makes it the containing block for fixed children, which
	   would collapse a fixed panel to the header's own height. */
	.tn-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		height: calc(100vh - var(--tn-header-h) - var(--tn-admin-bar));
		height: calc(100dvh - var(--tn-header-h) - var(--tn-admin-bar));
		background: var(--tn-white);
		padding: var(--tn-space-4) var(--tn-gutter) var(--tn-space-5);
		display: flex; flex-direction: column; gap: var(--tn-space-4);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .35s var(--tn-ease), transform .35s var(--tn-ease), visibility .35s;
		overflow-y: auto;
	}
	.tn-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.tn-nav .tn-menu { flex-direction: column; gap: 4px; }
	.tn-nav .tn-menu a { display: block; min-height: 0; padding: 10px 0; font-size: var(--tn-fs-h3); font-weight: 600; letter-spacing: var(--tn-track-heading); line-height: 1.15; color: var(--tn-ink); }
	.tn-nav .tn-nav__cta-mobile { display: inline-flex; align-self: flex-start; }
	body.tn-menu-open { overflow: hidden; }
	body.tn-menu-open .tn-header { background: var(--tn-white); -webkit-backdrop-filter: none; backdrop-filter: none; }

	.tn-postlist__link { grid-template-columns: minmax(0, 1fr); }
	.tn-postlist__link--rich { grid-template-columns: minmax(0, 1fr) 160px; padding: var(--tn-space-4) 0; }
}

@media (max-width: 760px) {
	:root { --tn-gutter: 20px; --tn-fs-prose: 17px; --tn-radius: 16px; --tn-radius-lg: 20px; }

	.tn-services,
	.tn-cases,
	.tn-about,
	.tn-post-nav,
	.tn-feature__link,
	.tn-beliefs__item { grid-template-columns: minmax(0, 1fr); }

	.tn-beliefs__item { padding: var(--tn-space-3) 0; }
	.tn-timeline__item { flex-direction: column; gap: 4px; }
	.tn-postlist__link { padding: var(--tn-space-3) 0; }
	.tn-postlist__meta { white-space: normal; }
	.tn-postlist__link--rich { grid-template-columns: minmax(0, 1fr) 88px; column-gap: var(--tn-space-2); padding: var(--tn-space-3) 0; }
	.tn-postlist__thumb { aspect-ratio: 1 / 1; align-self: start; }
	.tn-blocks,
	.tn-blocks--2,
	.tn-blocks--4 { grid-template-columns: minmax(0, 1fr); }
	.tn-blocks > .tn-block:last-child:nth-child(odd) { grid-column: auto; }
	.tn-topics--center .tn-topics__scroll { margin: 0 calc(var(--tn-gutter) * -1); }
	.tn-postlist__excerpt,
	.tn-postlist__read { display: none; }
	.tn-feature__media { order: -1; }
	.tn-feature__link { row-gap: var(--tn-space-4); }
	.tn-prose div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post { grid-template-columns: minmax(0, 1fr); }
	.tn-prose div#jp-relatedposts .jp-relatedposts-post-date { grid-column: 1; grid-row: auto; }
	.tn-post-nav__item--next { grid-column: auto; text-align: left; }
	.tn-prose .alignwide { margin-left: 0; margin-right: 0; }
	.tn-hero__visual-note { max-width: none; }
	.tn-stages__num { flex-basis: 100%; }
	.tn-curve__svg { top: 40px; height: calc(100% - 40px); } /* keep the curve clear of the two-line labels */
}

@media (max-width: 520px) {
	.tn-process { grid-template-columns: minmax(0, 1fr); row-gap: var(--tn-space-5); }
	.tn-stat__label { font-size: var(--tn-fs-small); }
	.tn-footer__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1600px) {
	:root { --tn-container: 1320px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
	.js .tn-curve__svg { animation: none; }
	::view-transition-old(root),
	::view-transition-new(root) { animation: none; }
}

/* ---------- 25. Homepage: one screen per section ---------- */
/* On the homepage (Customize → Homepage → Layout), each section fills the
   window and one scroll moves to the start of the next section, never halfway.
   Computers only (1024px wide and 640px tall or more). Phones, tablets and
   short windows keep natural section heights with a soft pull to section starts,
   so no content is ever cut off. */
:root { --tn-screen-h: calc(100vh - var(--tn-header-h) - var(--tn-admin-bar)); }
@supports (height: 100dvh) {
	:root { --tn-screen-h: calc(100dvh - var(--tn-header-h) - var(--tn-admin-bar)); }
}

html.tn-snap { scroll-snap-type: y proximity; scroll-padding-top: calc(var(--tn-header-h) + var(--tn-admin-bar)); }
.tn-snap .tn-screen { scroll-snap-align: start; }

/* Section dots: one per screen, the current one in the accent colour. */
.tn-dots {
	display: none;
	position: fixed; z-index: 40; right: 20px; top: 50%; transform: translateY(-50%);
	flex-direction: column; padding: 6px 2px;
	border-radius: var(--tn-radius-pill);
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
.tn-dots__link { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.tn-dots__link::before {
	content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tn-gray);
	transition: transform .3s var(--tn-ease), background-color .3s var(--tn-ease);
}
.tn-dots__link:hover::before { background: var(--tn-ink); }
.tn-dots__link[aria-current="true"]::before { background: var(--tn-accent); transform: scale(1.45); }

@media (min-width: 1024px) and (min-height: 640px) {
	html.tn-snap { scroll-snap-type: y mandatory; }
	.tn-snap .tn-dots { display: flex; }

	.tn-snap .tn-screen {
		/* Sizes follow the window height as well as its width, so each section fits one screen. */
		--tn-fs-display: clamp(44px, min(8vw, 12vh), 112px);
		--tn-fs-h1: clamp(34px, min(5.6vw, 8vh), 80px);
		--tn-fs-h2: clamp(30px, min(4.4vw, 6.6vh), 64px);
		--tn-fs-h3: clamp(24px, min(3.2vw, 4.6vh), 44px);
		--tn-fs-h4: clamp(19px, min(2.2vw, 3.2vh), 28px);
		--tn-fs-figure: clamp(40px, min(6.6vw, 10vh), 96px);
		--tn-fs-figure-lg: clamp(44px, min(5.4vw, 9vh), 96px);
		--tn-gap-head: clamp(28px, 7vh, 96px);
		--tn-row-gap: clamp(24px, 4vh, 64px);
		min-height: var(--tn-screen-h);
		scroll-snap-stop: always;
		display: flex; flex-direction: column; justify-content: center;
		padding-top: clamp(32px, 6vh, 72px);
		padding-bottom: clamp(32px, 6vh, 72px);
	}
	.tn-snap .tn-screen > .tn-wrap { width: 100%; }

	/* Intro: copy on top, the growth chart fills the rest of the screen. */
	.tn-snap .tn-hero { justify-content: flex-start; padding-top: clamp(24px, 5vh, 72px); padding-bottom: 0; }
	.tn-snap .tn-hero__text { margin-top: clamp(16px, 3vh, 32px); }
	.tn-snap .tn-hero .tn-actions { margin-top: clamp(20px, 4vh, 48px); }
	.tn-snap .tn-hero .tn-status { margin-top: clamp(12px, 2.4vh, 24px); }
	.tn-snap .tn-hero__visual {
		flex: 1 1 0; min-height: 170px; width: 100%;
		margin-top: clamp(20px, 4vh, 64px); padding-top: clamp(16px, 3.4vh, 56px);
		display: flex; flex-direction: column;
	}
	.tn-snap .tn-curve { flex: 1 1 0; min-height: 80px; height: auto; margin-top: clamp(12px, 2.6vh, 48px); }

	/* How I think: headline left, the five choices right. */
	.tn-snap .tn-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tn-row-gap) var(--tn-space-6); align-items: center; }
	.tn-snap .tn-split .tn-beliefs { margin-top: 0; }
	.tn-snap .tn-split .tn-beliefs__item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px var(--tn-space-3); padding: clamp(10px, 2.2vh, 28px) 0; }
	.tn-snap .tn-split .tn-beliefs__main { font-size: clamp(22px, min(2.6vw, 4vh), 36px); }
	.tn-snap .tn-split .tn-beliefs__over { font-size: var(--tn-fs-body); }

	/* Services and selected work: four across, one row. */
	.tn-snap .tn-services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tn-snap .tn-cases { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--tn-space-3); }
	.tn-snap .tn-case { gap: var(--tn-space-2); }
	.tn-snap .tn-case__media { aspect-ratio: auto; height: clamp(140px, 28vh, 320px); padding: var(--tn-space-3); }
	.tn-snap .tn-case__big--word { font-size: clamp(30px, min(3vw, 5.4vh), 56px); }
	.tn-snap .tn-case__text { font-size: var(--tn-fs-small); }

	/* About: tighter timeline and toolkit. */
	.tn-snap .tn-about { align-items: center; }
	.tn-snap .tn-about .tn-lead { margin-top: clamp(16px, 3vh, 32px); }
	.tn-snap .tn-timeline__item { padding: clamp(10px, 2vh, 24px) 0; }
	.tn-snap .tn-toolkit { margin-top: clamp(24px, 5vh, 64px); }
	.tn-snap .tn-toolkit__list { font-size: clamp(17px, min(1.8vw, 2.8vh), 26px); }

	/* Articles. */
	.tn-snap .tn-home .tn-postlist__link { padding: clamp(14px, 2.8vh, 32px) 0; }
	.tn-snap .tn-home .tn-topics { margin-top: clamp(20px, 4vh, 64px); }

	/* Contact shares the last screen with the footer. */
	.tn-snap .tn-screen--last { min-height: calc(var(--tn-screen-h) - var(--tn-footer-h, 0px)); }
	.tn-snap .tn-contact .tn-actions { margin-top: clamp(24px, 5vh, 48px); }
}
