/*
 * TIBE corporate layer: typography, header, footer and the ecosystem map.
 * Loaded after the theme's own styles so it sets the site-wide finish.
 */
:root {
	--tc-ink: #07090c;
	--tc-ink-2: #0c1016;
	--tc-panel: #10151d;
	--tc-line: rgba(214, 186, 116, .16);
	--tc-line-strong: rgba(214, 186, 116, .34);
	--tc-gold: #d6ba74;
	--tc-gold-deep: #b8954a;
	--tc-ivory: #f3eee3;
	--tc-muted: #a2a8b2;
	--tc-steel: #8fb3d1;
	--tc-display: "Fraunces", Georgia, "Times New Roman", serif;
	--tc-body: "Manrope", "Segoe UI", system-ui, sans-serif;
	--tc-mono: "IBM Plex Mono", ui-monospace, monospace;
	--tc-max: 1240px;
}

/* ---------- Typography ---------- */
body {
	font-family: var(--tc-body);
	background: var(--tc-ink);
	color: var(--tc-ivory);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
#tibe-main h1,
#tibe-main h2,
#tibe-main .wp-block-heading {
	font-family: var(--tc-display);
	font-optical-sizing: auto;
	font-weight: 500;
	letter-spacing: -.02em;
}
#tibe-main h1 { font-variation-settings: "SOFT" 30, "WONK" 0; }
#tibe-main h3, #tibe-main h4 { font-family: var(--tc-body); font-weight: 700; letter-spacing: -.01em; }
#tibe-main p { font-family: var(--tc-body); }
::selection { background: rgba(214, 186, 116, .35); color: #fff; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.tc-eyebrow {
	font-family: var(--tc-mono);
	font-size: .72rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--tc-gold);
	margin: 0 0 1.1rem;
}

/* ---------- Buttons ---------- */
.tc-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 2.6rem; padding: .62rem 1.15rem;
	border-radius: 999px; border: 1px solid transparent;
	font-family: var(--tc-body); font-size: .82rem; font-weight: 700; letter-spacing: .02em;
	text-decoration: none; white-space: nowrap;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.tc-btn:hover { transform: translateY(-1px); }
.tc-btn--gold { background: linear-gradient(135deg, #ead08c, var(--tc-gold) 55%, var(--tc-gold-deep)); color: #15110a; }
.tc-btn--gold:hover { background: #ead08c; color: #15110a; }
.tc-btn--ghost { border-color: var(--tc-line-strong); color: var(--tc-ivory); }
.tc-btn--ghost:hover { border-color: var(--tc-gold); color: var(--tc-gold); }
.tc-btn:focus-visible, .tc-nav__link:focus-visible, .tc-brand:focus-visible, .tc-menu-toggle:focus-visible, .tc-footer a:focus-visible {
	outline: 2px solid var(--tc-gold); outline-offset: 3px;
}

/* ---------- Header ---------- */
.tc-header {
	position: sticky; top: 0; z-index: 60;
	background: rgba(7, 9, 12, .82);
	-webkit-backdrop-filter: saturate(140%) blur(18px);
	backdrop-filter: saturate(140%) blur(18px);
	border-bottom: 1px solid var(--tc-line);
}
.admin-bar .tc-header { top: 32px; }
.tc-header__inner {
	max-width: var(--tc-max); margin: 0 auto; padding: 0 24px;
	min-height: 78px; display: flex; align-items: center; gap: 2rem;
}
.tc-brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--tc-ivory); text-decoration: none; flex: none; }
.tc-brand__mark { width: 38px; height: 38px; color: var(--tc-gold); flex: none; }
.tc-brand__text { display: flex; flex-direction: column; line-height: 1; }
.tc-brand__name { font-family: var(--tc-display); font-size: 1.32rem; font-weight: 600; letter-spacing: .14em; }
.tc-brand__sub { margin-top: .38rem; font-family: var(--tc-mono); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tc-muted); }
.tc-nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.tc-nav__list { display: flex; align-items: center; gap: 1.45rem; list-style: none; margin: 0; padding: 0; }
.tc-nav__link {
	position: relative; display: inline-block; padding: .4rem 0;
	color: #cfd2d6; text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .03em;
	transition: color .2s ease;
}
.tc-nav__link::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
	background: var(--tc-gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.tc-nav__link:hover, .tc-nav__link.is-current { color: #fff; }
.tc-nav__link:hover::after, .tc-nav__link.is-current::after { transform: scaleX(1); }
.tc-nav__actions { display: flex; gap: .55rem; }
.tc-menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--tc-line-strong); border-radius: 999px; background: transparent; cursor: pointer; position: relative; }
.tc-menu-toggle__bar { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--tc-gold); transition: transform .25s ease; }
.tc-menu-toggle__bar:nth-of-type(2) { top: 18px; }
.tc-menu-toggle__bar:nth-of-type(3) { top: 25px; }
.tc-menu-toggle[aria-expanded="true"] .tc-menu-toggle__bar:nth-of-type(2) { transform: translateY(3.5px) rotate(45deg); }
.tc-menu-toggle[aria-expanded="true"] .tc-menu-toggle__bar:nth-of-type(3) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1180px) {
	.tc-nav__list { gap: 1.05rem; }
	.tc-nav__actions .tc-btn--ghost { display: none; }
}
@media (max-width: 1020px) {
	.tc-menu-toggle { display: block; }
	.tc-nav {
		position: absolute; top: 100%; left: 0; right: 0; display: none;
		flex-direction: column; align-items: stretch; gap: 1.2rem;
		padding: 1.4rem 24px 1.8rem; background: rgba(7, 9, 12, .97); border-bottom: 1px solid var(--tc-line);
	}
	.tc-nav.is-open { display: flex; }
	.tc-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.tc-nav__list li { border-bottom: 1px solid rgba(255, 255, 255, .06); }
	.tc-nav__link { display: block; padding: .95rem 0; font-size: .95rem; }
	.tc-nav__link::after { display: none; }
	.tc-nav__actions { flex-direction: column; }
	.tc-nav__actions .tc-btn--ghost { display: inline-flex; }
}
@media (max-width: 782px) { .admin-bar .tc-header { top: 46px; } }

/* Retire the previous header and footer styling where it might still apply. */
.tibe-site-header, .tibe-footer { display: none !important; }

/* ---------- Home hero finish ---------- */
.tibe-industry-hero { position: relative; overflow: hidden; isolation: isolate; }
.tibe-industry-hero::before {
	content: ""; position: absolute; z-index: -1; right: -14%; top: 50%;
	width: min(820px, 90vw); aspect-ratio: 1; transform: translateY(-50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800' fill='none'%3E%3Cg stroke='%23d6ba74'%3E%3Ccircle cx='400' cy='400' r='370' stroke-opacity='.14' stroke-dasharray='2 10'/%3E%3Ccircle cx='400' cy='400' r='290' stroke-opacity='.2'/%3E%3Ccircle cx='400' cy='400' r='200' stroke-opacity='.16' stroke-dasharray='1 6'/%3E%3Cellipse cx='400' cy='400' rx='330' ry='120' stroke-opacity='.18' transform='rotate%28-28 400 400%29'/%3E%3Cellipse cx='400' cy='400' rx='330' ry='120' stroke-opacity='.18' transform='rotate%2832 400 400%29'/%3E%3Cpath d='M400 312 476 356v88l-76 44-76-44v-88Z' stroke-opacity='.55' stroke-width='1.5'/%3E%3C/g%3E%3Cg fill='%23d6ba74'%3E%3Ccircle cx='400' cy='400' r='7' fill-opacity='.9'/%3E%3Ccircle cx='690' cy='400' r='5' fill-opacity='.7'/%3E%3Ccircle cx='255' cy='149' r='4' fill-opacity='.6'/%3E%3Ccircle cx='200' cy='600' r='5' fill-opacity='.55'/%3E%3Ccircle cx='560' cy='234' r='4' fill-opacity='.5'/%3E%3Ccircle cx='110' cy='400' r='3.5' fill-opacity='.45'/%3E%3Ccircle cx='586' cy='620' r='4' fill-opacity='.5'/%3E%3C/g%3E%3Cg fill='%238fb3d1'%3E%3Ccircle cx='541' cy='459' r='4.5' fill-opacity='.65'/%3E%3Ccircle cx='259' cy='341' r='4.5' fill-opacity='.65'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
	opacity: .5; pointer-events: none;
}
.tibe-industry-hero::after {
	content: ""; position: absolute; z-index: -2; inset: 0;
	background:
		radial-gradient(ellipse 60% 70% at 85% 40%, rgba(214, 186, 116, .12), transparent 60%),
		linear-gradient(180deg, rgba(7, 9, 12, 0), var(--tc-ink) 96%);
}
@media (max-width: 900px) { .tibe-industry-hero::before { opacity: .22; right: -40%; } }

/* ---------- Ecosystem map ---------- */
.tc-orbit {
	position: relative; padding: clamp(4.5rem, 9vw, 8rem) 24px;
	background:
		radial-gradient(ellipse 50% 60% at 78% 45%, rgba(143, 179, 209, .07), transparent 70%),
		linear-gradient(180deg, var(--tc-ink), var(--tc-ink-2));
	border-top: 1px solid var(--tc-line);
	border-bottom: 1px solid var(--tc-line);
}
.tc-orbit__inner {
	max-width: var(--tc-max); margin: 0 auto;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.tc-orbit__title { font-family: var(--tc-display); font-weight: 500; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 1.25rem; color: #fff; }
.tc-orbit__lead { color: var(--tc-muted); font-size: 1.04rem; line-height: 1.75; margin: 0 0 2rem; max-width: 34rem; }
.tc-orbit__group { border-top: 1px solid var(--tc-line); padding: 1.15rem 0 .4rem; }
.tc-orbit__group-label { font-family: var(--tc-mono) !important; font-size: .68rem !important; font-weight: 500 !important; letter-spacing: .2em !important; text-transform: uppercase; color: var(--tc-gold); margin: 0 0 .75rem; }
.tc-orbit__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.6rem; margin: 0 0 1rem; }
.tc-orbit__list div { min-width: 0; }
.tc-orbit__list dt { font-weight: 700; color: #fff; font-size: .92rem; margin-bottom: .2rem; }
.tc-orbit__list dd { margin: 0; color: var(--tc-muted); font-size: .84rem; line-height: 1.55; }
.tc-orbit .tc-btn { margin-top: 1.4rem; }
.tc-orbit__figure { margin: 0; }
.tc-orbit__svg { display: block; width: 100%; height: auto; overflow: visible; }
.tc-orbit__ring { fill: none; stroke: var(--tc-line-strong); stroke-width: 1; transform-origin: 320px 320px; }
.tc-orbit__ring--outer { stroke-dasharray: 2 9; animation: tc-spin 140s linear infinite; }
.tc-orbit__ring--inner { stroke-dasharray: 1 6; stroke: rgba(143, 179, 209, .4); animation: tc-spin 90s linear infinite reverse; }
.tc-orbit__spoke { stroke: rgba(214, 186, 116, .22); stroke-width: 1; }
.tc-orbit__spoke--outer { stroke: rgba(214, 186, 116, .1); }
.tc-orbit__node { opacity: 0; animation: tc-rise .8s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--d, 0s); }
.tc-orbit__node circle { fill: var(--tc-ink); stroke: var(--tc-gold); stroke-width: 1.5; }
.tc-orbit__node--core circle { fill: rgba(143, 179, 209, .18); stroke: var(--tc-steel); }
.tc-orbit__node text { fill: #e4e1da; font-family: var(--tc-body); font-size: 15px; font-weight: 600; text-anchor: middle; letter-spacing: .01em; }
.tc-orbit__node--core text { fill: #cfe0ee; }
.tc-orbit__hub path { fill: #14110a; stroke: var(--tc-gold); stroke-width: 1.6; }
.tc-orbit__hub text { fill: var(--tc-gold); font-family: var(--tc-display); font-size: 22px; font-weight: 600; letter-spacing: .14em; text-anchor: middle; }
.tc-orbit__caption { margin-top: 1rem; text-align: center; font-family: var(--tc-mono); font-size: .68rem; letter-spacing: .08em; color: #7d838d; }
@keyframes tc-spin { to { transform: rotate(360deg); } }
@keyframes tc-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
	.tc-orbit__inner { grid-template-columns: 1fr; }
	.tc-orbit__figure { order: -1; max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) { .tc-orbit__list { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.tc-footer { background: linear-gradient(180deg, var(--tc-ink-2), #050608); border-top: 1px solid var(--tc-line); color: var(--tc-muted); }
.tc-footer__inner {
	max-width: var(--tc-max); margin: 0 auto; padding: clamp(3.5rem, 7vw, 5.5rem) 24px 3rem;
	display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 2.5rem;
}
.tc-brand--footer .tc-brand__name { font-size: 1.15rem; letter-spacing: .06em; }
.tc-footer__statement { margin: 1.4rem 0 1.1rem; max-width: 26rem; line-height: 1.7; font-size: .92rem; }
.tc-footer__mail { color: var(--tc-gold); text-decoration: none; font-weight: 600; font-size: .9rem; border-bottom: 1px solid var(--tc-line-strong); padding-bottom: 2px; }
.tc-footer__mail:hover { color: #fff; border-color: #fff; }
.tc-footer__heading { font-family: var(--tc-mono); font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--tc-gold); margin: .4rem 0 1.1rem; }
.tc-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.tc-footer__col a { color: #d3d5d9; text-decoration: none; font-size: .9rem; transition: color .2s ease; }
.tc-footer__col a:hover { color: var(--tc-gold); }
.tc-footer__surfaces {
	max-width: var(--tc-max); margin: 0 auto; padding: 1.1rem 24px;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem;
	border-top: 1px solid var(--tc-line);
}
.tc-footer__surfaces span { font-family: var(--tc-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: #7d838d; }
.tc-footer__surfaces b { color: #cfd2d6; font-weight: 500; margin-right: .5rem; }
.tc-footer__bar {
	max-width: var(--tc-max); margin: 0 auto; padding: 1.2rem 24px 2rem;
	display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
	border-top: 1px solid rgba(255, 255, 255, .05); font-size: .78rem; color: #7d838d;
}
.tc-footer__bar p { margin: 0; }
@media (max-width: 900px) {
	.tc-footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tc-footer__brand { grid-column: 1 / -1; }
	.tc-footer__surfaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.tc-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.tc-orbit__ring--outer, .tc-orbit__ring--inner { animation: none; }
	.tc-orbit__node { animation: none; opacity: 1; }
	.tc-btn, .tc-nav__link::after { transition: none; }
}
