/* TOF2 — extras (fonts + Material base live in fonts.css when built) */

.tof2-nav-link:focus-visible,
a:focus-visible,
button:focus-visible {
	outline: 2px solid #ffdea5;
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Command header + footer (CSS brand lockup: favicon frame + bordered name plate)
   ------------------------------------------------------------------------- */

:root {
	--tof2-command-bg: #050a12;
	--tof2-accent-pink: #f472b6;
}

.tof2-site-header--command {
	background: var(--tof2-command-bg);
	color: #ffffff;
}

.tof2-brand-lockup {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
	text-decoration: none;
	color: inherit;
	font-family: Epilogue, ui-sans-serif, system-ui, sans-serif;
}

.tof2-brand-lockup:focus-visible {
	outline: 2px solid #ffdea5;
	outline-offset: 4px;
	border-radius: 4px;
}

.tof2-brand-favicon-frame {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	box-sizing: border-box;
	background: #000000;
	border: 1px solid rgba(255, 255, 255, 0.88);
}

.tof2-brand-lockup--footer .tof2-brand-favicon-frame {
	width: 2rem;
	height: 2rem;
}

.tof2-brand-favicon-img {
	display: block;
	width: 1.65rem;
	height: 1.65rem;
	object-fit: contain;
}

.tof2-brand-lockup--footer .tof2-brand-favicon-img {
	width: 1.35rem;
	height: 1.35rem;
}

.tof2-brand-type {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	min-width: 0;
}

.tof2-brand-name-plate {
	display: block;
	box-sizing: border-box;
	padding: 0.35rem 0.65rem;
	border: 1px solid rgba(255, 255, 255, 0.9);
	font-weight: 800;
	font-size: clamp(0.7rem, 0.62rem + 0.35vw, 0.85rem);
	line-height: 1.1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tof2-brand-lockup--footer .tof2-brand-name-plate {
	font-size: clamp(0.65rem, 0.58rem + 0.3vw, 0.78rem);
	padding: 0.3rem 0.55rem;
}

.tof2-brand-tagline {
	font-size: 0.62rem;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
}

.tof2-brand-lockup--footer .tof2-brand-tagline {
	font-size: 0.55rem;
	letter-spacing: 0.24em;
}

/* Numbered command nav */
.tof2-nav-command {
	display: inline-flex;
	align-items: baseline;
	gap: 0.45rem;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.88);
	font-family: Epilogue, ui-sans-serif, system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.25rem 0;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.tof2-nav-command:hover {
	color: #ffffff;
}

.tof2-nav-command.is-current {
	color: #ffffff;
	border-bottom-color: rgba(255, 255, 255, 0.85);
}

.tof2-nav-command__num {
	font-weight: 600;
	font-size: 0.7rem;
	opacity: 0.45;
	font-variant-numeric: tabular-nums;
}

.tof2-nav-command--mobile {
	display: flex;
	width: 100%;
	padding: 0.9rem 0;
	box-sizing: border-box;
}

.tof2-header-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 0.5rem 1.15rem;
	background: #ffffff;
	color: var(--tof2-command-bg);
	font-family: Epilogue, ui-sans-serif, system-ui, sans-serif;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
	transition: background 0.2s ease, color 0.2s ease;
}

.tof2-header-cta:hover {
	background: #e8eaef;
	color: #000000;
}

.tof2-header-cta--mobile {
	width: 100%;
	padding: 0.75rem 1rem;
}

.tof2-mobile-nav-panel {
	background: var(--tof2-command-bg);
}

.tof2-nav-command-mobile-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tof2-nav-command-mobile-item:last-child {
	border-bottom: none;
}

/* Footer */
.tof2-footer-intro {
	background: #f8f9fa;
	color: #333333;
}

.tof2-footer-intro-rule {
	border: 0;
	border-top: 1px solid #e0e0e0;
	margin: 0 0 0.85rem;
}

.tof2-footer-intro-row {
	margin: 0;
}

.tof2-footer-intro-tagline {
	margin: 0;
}

.tof2-footer-intro-mail {
	text-decoration: none;
}

/* Dwell zone: hide default disclosure triangles */
.tof2-dwell-zone details summary {
	list-style: none;
}

.tof2-dwell-zone details summary::-webkit-details-marker {
	display: none;
}

.tof2-odd-tile {
	min-height: 48px;
	border-radius: 0.375rem;
	border: 1px solid rgba(116, 119, 125, 0.4);
	background: #ffffff;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease;
}

.tof2-odd-tile:hover {
	background: #eff4ff;
}

.tof2-odd-tile:focus-visible {
	outline: 2px solid #3f6653;
	outline-offset: 2px;
}

.tof2-dwell-play-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	font-family: Epilogue, ui-sans-serif, system-ui, sans-serif;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0b1c30;
	background: linear-gradient(180deg, #ffdea5 0%, #e9c176 100%);
	border: 1px solid rgba(11, 28, 48, 0.12);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.tof2-dwell-play-pill--on-dark {
	color: #071d31;
	background: linear-gradient(180deg, #eaf1ff 0%, #c1ecd4 100%);
	border-color: rgba(255, 255, 255, 0.25);
}

/* Blog: pagination + sidebar disclosure */
.tof2-canvas-main .page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tof2-canvas-main .page-numbers a,
.tof2-canvas-main .page-numbers span {
	display: inline-flex;
	min-width: 2.5rem;
	min-height: 2.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 0.375rem;
	border: 1px solid #c4c6cd;
	font-family: Epilogue, ui-sans-serif, system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
	color: #0b1c30;
	background: #ffffff;
}

.tof2-canvas-main .page-numbers a:hover {
	border-color: #3f6653;
	color: #3f6653;
}

.tof2-canvas-main .page-numbers .current {
	background: #071d31;
	color: #ffffff;
	border-color: #071d31;
}

.tof2-blog-sidebar details summary {
	list-style: none;
}

.tof2-blog-sidebar details summary::-webkit-details-marker {
	display: none;
}

.tof2-footer-intro-exclusive {
	padding-top: 0.25rem;
}

.tof2-footer-intro-audit {
	text-decoration: none;
}

.tof2-footer-panel {
	background-color: var(--tof2-command-bg);
	background-image: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 2px,
		rgba(255, 255, 255, 0.018) 2px,
		rgba(255, 255, 255, 0.018) 4px
	);
	color: rgba(255, 255, 255, 0.7);
}

.tof2-footer-grid {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 768px) {
	.tof2-footer-grid {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
		gap: 2rem 2.5rem;
		align-items: start;
	}
}

.tof2-footer-heading {
	margin: 0 0 1rem;
	font-family: Epilogue, ui-sans-serif, system-ui, sans-serif;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #ffffff;
}

.tof2-footer-mission {
	margin: 1.15rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.62);
	max-width: 26rem;
}

.tof2-footer-nav-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.35rem 2rem;
}

.tof2-footer-nav-col {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.tof2-footer-nav-link {
	font-size: 0.9375rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.62);
	text-decoration: none;
	transition: color 0.2s ease;
}

.tof2-footer-nav-link:hover {
	color: #ffffff;
}

.tof2-footer-nav-link--accent {
	color: var(--tof2-accent-pink);
	font-weight: 600;
}

.tof2-footer-nav-link--accent:hover {
	color: #fbcfe8;
}

.tof2-footer-coords-gps {
	margin: 0 0 0.75rem;
	font-family: "Courier Prime", ui-monospace, monospace;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--tof2-accent-pink);
}

.tof2-footer-coords-place,
.tof2-footer-coords-status {
	margin: 0 0 0.45rem;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.58);
}

.tof2-footer-email-wrap {
	margin: 1.1rem 0 0;
}

.tof2-footer-email {
	display: inline-block;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #ffffff;
	text-decoration: none;
	border-bottom: 1px solid var(--tof2-accent-pink);
	padding-bottom: 2px;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.tof2-footer-email:hover {
	color: #fbcfe8;
	border-bottom-color: #fbcfe8;
}

.tof2-footer-copyright {
	margin: 2.5rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.38);
}

/* -------------------------------------------------------------------------
   Bundled layouts: header clearance on <main> only; heroes sit tight under nav
   (scoped to .tof2-bundled-main — matches slim theme header ~56–62px)
   ------------------------------------------------------------------------- */

/* Full-bleed heroes: absolute inset-0 image/overlay layers stack behind copy */
.tof2-bundled-main > section:first-child[class*="overflow-hidden"]:has(> div[class*="absolute"][class*="inset-0"]) {
	isolation: isolate;
}

main.tof2-bundled-main {
	padding-top: 4.75rem;
	scroll-margin-top: 4.75rem;
}

@media (min-width: 768px) {
	main.tof2-bundled-main {
		padding-top: 5rem;
		scroll-margin-top: 5rem;
	}
}

/*
 * Stitch exports use <main class="pt-24"> for THEIR fixed nav — we strip <main>
 * but sections keep py-24 / py-32 / py-20. Those stack under our header padding
 * and create the large white gap — collapse top padding on the first hero only.
 */
.tof2-bundled-main > section:first-child {
	padding-top: 0.5rem !important;
}

@media (min-width: 768px) {
	.tof2-bundled-main > section:first-child {
		padding-top: 0.75rem !important;
	}
}

/* First hero: avoid rigid 100vh on small screens */
.tof2-bundled-main > section:first-child.min-h-screen {
	min-height: auto;
	padding-bottom: 2rem;
}

@media (min-width: 768px) {
	.tof2-bundled-main > section:first-child.min-h-screen {
		min-height: min(88vh, 56rem);
		min-height: min(88dvh, 56rem);
	}
}

/* Home-style split: text column py-20 adds another band below header */
.tof2-bundled-main > section:first-child [class*="py-20"] {
	padding-top: 0.75rem !important;
}

@media (min-width: 768px) {
	.tof2-bundled-main > section:first-child [class*="py-20"] {
		padding-top: 1rem !important;
	}
}

/* 12-col hero: image column (md:col-span-5 + min-h utilities from Stitch) */
.tof2-bundled-main > section:first-child .md\:col-span-5 {
	max-height: min(88vh, 44rem);
	overflow: hidden;
}

@media (max-width: 767px) {
	.tof2-bundled-main > section:first-child .md\:col-span-5 {
		min-height: min(62vh, 22rem) !important;
		max-height: min(72vh, 30rem);
	}
}

/*
 * Two-column sections below the hero: keep media from blowing past viewport.
 * First hero is excluded so mockup-style image frames (aspect boxes, col-span-5) behave.
 */
.tof2-bundled-main section:not(:first-child) [class*="lg:grid-cols-2"] > div img[class*="h-full"],
.tof2-bundled-main section:not(:first-child) [class*="md:grid-cols-2"] > div img[class*="h-full"] {
	max-height: min(68vh, 36rem);
	width: 100%;
	height: auto !important;
	object-fit: cover;
}

.tof2-bundled-main section:not(:first-child) [class*="lg:grid-cols-2"] > div[class*="relative"][class*="min-h-"],
.tof2-bundled-main section:not(:first-child) [class*="md:grid-cols-2"] > div[class*="relative"][class*="min-h-"] {
	max-height: min(72vh, 40rem);
}

/* Headings inside bundled content — override oversized Tailwind display sizes */
.tof2-bundled-main h1,
.tof2-bundled-main h1[class*="text-"] {
	font-size: clamp(1.875rem, 1.1rem + 3.2vw, 2.875rem) !important;
	line-height: 1.12 !important;
	letter-spacing: -0.03em;
}

.tof2-bundled-main h2,
.tof2-bundled-main h2[class*="text-"] {
	font-size: clamp(1.35rem, 0.95rem + 1.8vw, 2rem) !important;
	line-height: 1.2 !important;
	letter-spacing: -0.025em;
}

.tof2-bundled-main h3,
.tof2-bundled-main h3[class*="text-"] {
	font-size: clamp(1.125rem, 0.9rem + 1vw, 1.5rem) !important;
	line-height: 1.25 !important;
}

/* Interior sections only — do not change first hero vertical padding (handled above) */
.tof2-bundled-main section:not(:first-child)[class*="py-24"],
.tof2-bundled-main section:not(:first-child)[class*="py-20"] {
	padding-top: 3rem !important;
	padding-bottom: 3rem !important;
}

@media (min-width: 768px) {
	.tof2-bundled-main section:not(:first-child)[class*="py-24"],
	.tof2-bundled-main section:not(:first-child)[class*="py-20"] {
		padding-top: 4rem !important;
		padding-bottom: 4rem !important;
	}
}

/* -------------------------------------------------------------------------
   Ultra-wide / large TV — centered canvas, aligned chrome, proportional copy
   ------------------------------------------------------------------------- */

:root {
	--tof2-canvas-max: 120rem; /* 1920px @ 16px — keeps layout from drifting on 4K+ */
}

@media (min-width: 1920px) {
	.tof2-canvas-inner,
	main.tof2-canvas-main {
		max-width: var(--tof2-canvas-max);
		margin-left: auto;
		margin-right: auto;
		width: 100%;
		box-sizing: border-box;
	}

	/*
	 * Stitch sections often use max-w-7xl (80rem / 1280px). On very wide
	 * viewports that reads as a narrow strip; scale up slightly inside the canvas.
	 */
	.tof2-bundled-main .max-w-7xl {
		max-width: min(100rem, 100%) !important;
	}
}

@media (min-width: 2400px) {
	:root {
		--tof2-canvas-max: 132rem; /* ~2112px for 2560-class panels */
	}

	.tof2-bundled-main .max-w-7xl {
		max-width: min(112rem, 100%) !important;
	}
}

/* Cap display type so vw-based Tailwind sizes do not outgrow the mockup */
@media (min-width: 2200px) {
	.tof2-bundled-main h1,
	.tof2-bundled-main h1[class*="text-"] {
		font-size: 3rem !important;
	}

	.tof2-bundled-main h2,
	.tof2-bundled-main h2[class*="text-"] {
		font-size: 2.125rem !important;
	}

	.tof2-bundled-main h3,
	.tof2-bundled-main h3[class*="text-"] {
		font-size: 1.5rem !important;
	}
}

/* -------------------------------------------------------------------------
   Home bundled: “The Architects” — text cards + light motion (respects a11y)
   ------------------------------------------------------------------------- */

@keyframes tof2-architect-card-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tof2-bundled-main .tof2-home-architects .tof2-architect-card {
	will-change: transform;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	animation: tof2-architect-card-in 0.55s ease backwards;
}

.tof2-bundled-main .tof2-home-architects .tof2-architect-card:nth-child(1) {
	animation-delay: 0.04s;
}

.tof2-bundled-main .tof2-home-architects .tof2-architect-card:nth-child(2) {
	animation-delay: 0.12s;
}

.tof2-bundled-main .tof2-home-architects .tof2-architect-card:nth-child(3) {
	animation-delay: 0.2s;
}

@media (hover: hover) and (pointer: fine) {
	.tof2-bundled-main .tof2-home-architects .tof2-architect-card:hover {
		transform: translateY(-6px);
		box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tof2-bundled-main .tof2-home-architects .tof2-architect-card {
		animation: none;
		opacity: 1;
		transform: none;
		transition: none;
		will-change: auto;
	}
}

/* -------------------------------------------------------------------------
   Dwell-time block (accordions + canvas game)
   ------------------------------------------------------------------------- */

.tof2-dwell-zone .tof2-dwell-details summary {
	list-style: none;
}

.tof2-dwell-zone .tof2-dwell-details summary::-webkit-details-marker {
	display: none;
}

.tof2-read-progress {
	background: rgba(11, 28, 48, 0.08);
}

/* -------------------------------------------------------------------------
   Bundled Stitch screens: primary-gradient CTA (inline <style> from export
   is not shipped; Tailwind build may omit these utility names)
   ------------------------------------------------------------------------- */

.tof2-bundled-main a.primary-gradient,
.tof2-bundled-main button.primary-gradient {
	background: linear-gradient(135deg, #000000 0%, #071d31 100%);
	color: #ffffff;
}

.tof2-bundled-main a.primary-gradient:hover,
.tof2-bundled-main button.primary-gradient:hover {
	background: linear-gradient(135deg, #071d31 0%, #3f6653 100%);
	color: #ffffff;
}
