/*
Theme Name: Equipment
Author: PE-AI
Description: Customizable responsive equipment and engineering theme with configurable hero and AI Expert Creator integration.
Version: 2.17.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: equipment
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, wide-blocks, accessibility-ready, translation-ready, blog
*/

:root {
  --black: #050505;
  --black-soft: #101112;
  --black-raised: #17191a;
  --navy-950: #082f33;
  --navy-900: #125156;
  --navy-800: #17636a;
  --teal: #007481;
  --blue: #125156;
  --orange: #e06822;
  --steel-700: #4e7272;
  --steel-500: #8cb5b9;
  --steel-300: #bcd2d4;
  --steel-150: #ddebec;
  --steel-075: #f3f8f8;
  --white: #fff;
  --text: #f1f3f3;
  --button-primary-text: #fff;
  --button-primary-background: #125156;
  --button-primary-hover-text: #fff;
  --button-primary-hover-background: #007481;
  --button-outline-text: #fff;
  --button-outline-background: #050505;
  --button-outline-border: #8cb5b9;
  --button-outline-hover-text: #050505;
  --button-outline-hover-background: #fff;
  --button-outline-hover-border: #fff;
  --button-header-text: #050505;
  --button-header-background: #e06822;
  --button-header-hover-text: #fff;
  --button-header-hover-background: #007481;
  --card-link-text: #fff;
  --card-link-hover-text: #8cb5b9;
  --footer-link-text: #d5e5e6;
  --footer-link-hover-text: #fff;
  --ai-toggle-text: #fff;
  --ai-toggle-background: #125156;
  --ai-toggle-hover-text: #fff;
  --ai-toggle-hover-background: #007481;
  --ai-panel-background: #17191a;
  --ai-panel-border: #4e7272;
  --ai-panel-label: #bcd2d4;
  --ai-panel-text: #fff;
  --ai-panel-dot-one: #007481;
  --ai-panel-dot-two: #8cb5b9;
  --ai-panel-dot-three: #e06822;
  --header-background: #050505;
  --hero-background: #050505;
  --pillars-background: #050505;
  --expertise-background: #101112;
  --method-background: #050505;
  --content-background: #101112;
  --cta-background: #101112;
  --footer-background: #050505;
  --hero-heading-size: 93px;
  --hero-text-size: 20px;
  --pillars-heading-size: 58px;
  --pillars-text-size: 19px;
  --pillar-card-heading-size: 26px;
  --pillar-card-text-size: 16px;
  --expertise-heading-size: 58px;
  --expertise-text-size: 19px;
  --capability-heading-size: 17px;
  --capability-text-size: 15px;
  --method-heading-size: 58px;
  --method-text-size: 16px;
  --cta-heading-size: 48px;
  --footer-heading-size: 15px;
  --footer-text-size: 16px;
  --ai-control-text-size: 16px;
  --ai-panel-heading-size: 12px;
  --ai-panel-item-size: 16px;
  --training-card-background: #101112;
  --training-indicator-color: #007481;
  --transformation-card-background: #101112;
  --transformation-indicator-color: #125156;
  --troubleshooting-card-background: #101112;
  --troubleshooting-indicator-color: #e06822;
  --hero-company-logo-width: 260px;
  --shadow-sm: 0 8px 24px rgba(11, 31, 51, .08);
  --shadow-lg: 0 28px 80px rgba(6, 21, 35, .16);
  --radius-sm: .5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --container: 75rem;
  --content: 48rem;
  --space-section: clamp(4rem, 7vw, 7.5rem);
  --heading: "Montserrat", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --body: "IBM Plex Sans", Inter, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.ai-access-gate {
  padding: clamp(1rem, 3vw, 1.5rem);
  color: var(--white);
}

.ai-access-gate h2 {
  margin: 0 0 0.5rem;
  color: var(--white);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
}

.ai-access-gate p {
  margin: 0 0 1rem;
}

.ai-access-form {
  display: grid;
  gap: 0.65rem;
}

.ai-access-form label {
  color: var(--steel-300);
  font-weight: 700;
}

.ai-access-form input[type="text"],
.ai-access-form input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--steel-700);
  border-radius: 4px;
  background: var(--black);
  color: var(--white);
}

.ai-access-form input:focus {
  border-color: var(--teal);
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.ai-access-form .button {
  justify-self: start;
}

.ai-access-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ai-access-success {
  padding: 0.7rem 0.8rem;
  border-left: 3px solid var(--teal);
  background: rgba(0, 116, 129, 0.16);
}

.ai-access-error {
  padding: 0.7rem 0.8rem;
  border-left: 3px solid var(--orange);
  background: rgba(224, 104, 34, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  color: var(--text);
  background: var(--black);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body { overflow-x: clip; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
iframe, video, embed, object { max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--navy-800); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .7em;
  color: var(--white);
  font-family: var(--heading);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.55rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.65rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
p { margin: 0 0 1.35rem; }

.container { width: min(calc(100% - clamp(2rem, 6vw, 5rem)), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section--soft { background: var(--content-background); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.15rem;
  color: var(--blue);
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { width: 2.3rem; height: 2px; background: currentColor; content: ""; }
.section-heading { max-width: 48rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-heading p { max-width: 42rem; color: #b8c1c1; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

.skip-link { position: fixed; z-index: 9999; top: 1rem; left: 1rem; padding: .75rem 1rem; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 100; color: var(--white); background: var(--header-background); border-bottom: 1px solid rgba(255,255,255,.13); }
.site-header.is-sticky { position: sticky; top: 0; background: var(--header-background); background: color-mix(in srgb, var(--header-background) 94%, transparent); backdrop-filter: blur(16px); }
.header-inner { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-branding { flex: 0 1 auto; min-width: 0; }
.custom-logo-link { display: block; }
.custom-logo { width: auto; max-height: 3.4rem; }
.header-logo-link { display: block; }
.header-logo { width: auto; max-width: min(19rem, 50vw); max-height: 3.4rem; object-fit: contain; }
.brand-fallback { display: flex; align-items: center; gap: .8rem; color: var(--white); text-decoration: none; }
.brand-mark { position: relative; width: 2.9rem; aspect-ratio: 1; border: .42rem solid var(--steel-500); border-right-color: var(--white); border-bottom-color: var(--orange); border-radius: 50%; transform: rotate(-18deg); }
.brand-mark::after { position: absolute; inset: 31%; background: var(--white); border-radius: 50%; content: ""; }
.brand-name { display: grid; font-family: var(--heading); font-weight: 850; line-height: 1; letter-spacing: -.04em; }
.brand-name strong { font-size: 1.7rem; }
.brand-name small { margin-top: .16rem; font-size: .55rem; letter-spacing: .28em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.15rem); }
.primary-nav ul { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2rem); margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--white); font-size: .92rem; font-weight: 650; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: #d5ecee; }
.primary-nav > .button { color: var(--button-header-text); background: var(--button-header-background); border-color: var(--button-header-background); }
.primary-nav > .button:hover { color: var(--button-header-hover-text); background: var(--button-header-hover-background); border-color: var(--button-header-hover-background); }
.nav-toggle { display: none; width: 3rem; height: 3rem; align-items: center; justify-content: center; padding: 0; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; }
.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after { display: block; width: 1.25rem; height: 2px; background: currentColor; transition: .2s ease; content: ""; }
.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before { position: absolute; top: -.4rem; }
.nav-toggle-lines::after { position: absolute; top: .4rem; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }

.button, .wp-block-button__link {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .8rem 1.35rem;
  color: var(--button-primary-text);
  background: var(--button-primary-background);
  border: 2px solid var(--button-primary-background);
  border-radius: var(--radius-sm);
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover, .wp-block-button__link:hover { color: var(--button-primary-hover-text); background: var(--button-primary-hover-background); border-color: var(--button-primary-hover-background); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.button--outline { color: var(--button-outline-text); background: var(--button-outline-background); border-color: var(--button-outline-border); }
.button--outline:hover { color: var(--button-outline-hover-text); background: var(--button-outline-hover-background); border-color: var(--button-outline-hover-border); }
.button--small { min-height: 2.8rem; padding-inline: 1rem; font-size: .9rem; }

.hero { position: relative; overflow: hidden; color: var(--white); background: var(--hero-background); }
.hero-engineering-picture { position: absolute; z-index: 0; inset: 0; overflow: hidden; opacity: var(--hero-engineering-image-opacity); pointer-events: none; }
.hero-engineering-picture img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.97) 0%, rgba(5,5,5,.85) 43%, rgba(5,5,5,.36) 77%, rgba(5,5,5,.28) 100%), linear-gradient(120deg, rgba(0,116,129,.14), transparent 37%); content: ""; }
.hero::after { position: absolute; z-index: 1; right: -12rem; bottom: -23rem; width: min(48rem, 80vw); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 5rem rgba(255,255,255,.025), 0 0 0 10rem rgba(255,255,255,.018); content: ""; }
.hero-inner { position: relative; z-index: 2; min-height: clamp(39rem, 78vh, 50rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); padding-block: clamp(5rem, 9vw, 8rem); }
.hero h1 { max-width: 40rem; color: var(--white); font-size: clamp(.75rem, var(--hero-heading-size), 7.5rem); }
.hero h1 span { color: var(--teal); }
.hero-lead { max-width: 40rem; color: #d9e4eb; font-size: clamp(.75rem, var(--hero-text-size), 7.5rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-actions .button--outline { color: var(--button-outline-text); }
.hero-company-logo { display: flex; width: 100%; align-items: center; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.hero-company-logo-image { width: min(100%, var(--hero-company-logo-width)); max-width: 100%; height: auto; max-height: 11rem; object-fit: contain; object-position: left center; }
.hero-side { display: grid; width: 100%; max-width: none; gap: 1rem; align-self: center; justify-self: stretch; min-width: 0; }
.ai-engineer { display: grid; width: 100%; max-width: none; gap: .7rem; }
.ai-engineer-toggle { display: flex; width: 100%; min-height: 3.35rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.05rem; color: var(--ai-toggle-text); background: var(--ai-toggle-background); border: 1px solid var(--ai-toggle-background); border-radius: var(--radius-sm); cursor: pointer; font: inherit; font-size: clamp(.75rem, var(--ai-control-text-size), 7.5rem); font-weight: 750; text-align: left; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.ai-engineer-toggle:hover { color: var(--ai-toggle-hover-text); background: var(--ai-toggle-hover-background); border-color: var(--ai-toggle-hover-background); transform: translateY(-2px); }
.ai-engineer-toggle-close { display: none; }
.ai-engineer-toggle[aria-expanded="true"] .ai-engineer-toggle-open { display: none; }
.ai-engineer-toggle[aria-expanded="true"] .ai-engineer-toggle-close { display: inline; }
.ai-engineer-icon { position: relative; width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; }
.ai-engineer-icon::before, .ai-engineer-icon::after { position: absolute; top: 50%; left: 50%; width: 1.1rem; height: 2px; background: currentColor; content: ""; transform: translate(-50%, -50%); }
.ai-engineer-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s ease; }
.ai-engineer-toggle[aria-expanded="true"] .ai-engineer-icon::after { transform: translate(-50%, -50%) rotate(0); }
.ai-engineer-panel { width: 100%; max-width: none; overflow: hidden; }
.ai-engineer-panel[hidden] { display: none; }
.hero-metric { width: 100%; max-width: none; padding: clamp(1.5rem, 4vw, 2.5rem); color: var(--ai-panel-text); background: var(--ai-panel-background); border: 1px solid var(--ai-panel-border); border-radius: var(--radius-lg); backdrop-filter: blur(10px); }
.metric-label { color: var(--ai-panel-label); font-family: var(--mono); font-size: clamp(.75rem, var(--ai-panel-heading-size), 7.5rem); letter-spacing: .13em; text-transform: uppercase; }
.metric-flow { display: grid; gap: 1.05rem; margin-top: 1.4rem; }
.metric-step { display: grid; grid-template-columns: 2rem 1fr; align-items: center; gap: .8rem; color: var(--ai-panel-text); font-size: clamp(.75rem, var(--ai-panel-item-size), 7.5rem); font-weight: 700; }
.metric-step b { display: grid; width: 2rem; height: 2rem; place-items: center; color: var(--navy-950); background: var(--ai-panel-dot-one); border-radius: 50%; font-family: var(--mono); font-size: .75rem; }
.metric-step:nth-child(2) b { background: var(--ai-panel-dot-two); }
.metric-step:nth-child(3) b { background: var(--ai-panel-dot-three); }

.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.pillar-card { position: relative; display: flex; min-height: 32rem; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.2rem); overflow: hidden; background: var(--black-soft); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.pillar-card::before { position: absolute; top: 0; right: 0; left: 0; height: .38rem; background: var(--pillar); content: ""; }
.pillar-card--training { --pillar: var(--training-indicator-color); background: var(--training-card-background); }
.pillar-card--transformation { --pillar: var(--transformation-indicator-color); background: var(--transformation-card-background); }
.pillar-card--troubleshooting { --pillar: var(--troubleshooting-indicator-color); background: var(--troubleshooting-card-background); }
.pillar-number { color: var(--pillar); font-family: var(--mono); font-size: .78rem; font-weight: 700; }
.pillar-card h3 { margin-top: 1.5rem; }
.pillar-card ul { display: grid; gap: .85rem; margin: 1rem 0 2rem; padding: 0; list-style: none; }
.pillar-card li { position: relative; padding-left: 1.25rem; color: #bac4c4; }
.pillar-card li::before { position: absolute; top: .72em; left: 0; width: .42rem; height: .42rem; background: var(--pillar); border-radius: 50%; content: ""; }
.pillar-link { margin-top: auto; color: var(--card-link-text); font-weight: 750; text-decoration: none; }
.pillar-link:hover { color: var(--card-link-hover-text); }
.pillar-link span { color: var(--pillar); }

.section#pillars { background: var(--pillars-background); }
.section#pillars > .container > .section-heading h2 { font-size: clamp(.75rem, var(--pillars-heading-size), 7.5rem) !important; }
.section#pillars > .container > .section-heading p { font-size: clamp(.75rem, var(--pillars-text-size), 7.5rem) !important; }
.pillar-card h3 { font-size: clamp(.75rem, var(--pillar-card-heading-size), 7.5rem); }
.pillar-card li, .pillar-link { font-size: clamp(.75rem, var(--pillar-card-text-size), 7.5rem); }
.expertise { color: var(--white); background: var(--expertise-background); }
.expertise .section-heading h2 { font-size: clamp(.75rem, var(--expertise-heading-size), 7.5rem) !important; }
.expertise .section-heading p { font-size: clamp(.75rem, var(--expertise-text-size), 7.5rem) !important; }
.expertise-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.expertise h2, .expertise h3 { color: var(--white); }
.expertise p { color: #c7d5df; }
.expertise .eyebrow { color: var(--teal); }
.capability-list { border-top: 1px solid rgba(255,255,255,.16); }
.capability { display: grid; grid-template-columns: minmax(10rem, .75fr) minmax(0, 1.25fr); gap: 2rem; padding-block: 1.65rem; border-bottom: 1px solid rgba(255,255,255,.16); }
.capability h3 { margin: 0; font-size: clamp(.75rem, var(--capability-heading-size), 7.5rem); }
.capability p { margin: 0; font-size: clamp(.75rem, var(--capability-text-size), 7.5rem); }

.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.method-step { position: relative; padding: 2rem 1.5rem 1rem 0; border-top: 2px solid var(--steel-300); }
.method-step::before { position: absolute; top: -.47rem; left: 0; width: .8rem; height: .8rem; background: var(--blue); border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 2px var(--blue); content: ""; }
.method-step::after { display: none; content: none; }
.method-step p { color: #bac4c4; font-size: .94rem; }

.section#method { background: var(--method-background); }
.section#method > .container > .section-heading h2 { font-size: clamp(.75rem, var(--method-heading-size), 7.5rem) !important; }
.method-step h3, .method-step p { font-size: clamp(.75rem, var(--method-text-size), 7.5rem); }
.cta-band { padding-block: clamp(3rem, 6vw, 5rem); color: var(--white); background: var(--cta-background); border-block: 1px solid rgba(255,255,255,.1); }
.cta-inner { display: flex !important; width: 100%; align-items: center; gap: 0; }
.cta-copy { flex: 0 0 66.6667%; width: 66.6667%; display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 0; padding: 0 2rem; }
.cta-band .cta-heading { width: min(100%, 30ch); max-width: 30ch; margin: 0 auto; color: var(--white); font-size: clamp(.75rem, var(--cta-heading-size), 7.5rem) !important; text-align: center; }
.cta-action { flex: 0 0 33.3333%; width: 33.3333%; display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 0; padding: 0 1rem; }
.cta-action .button { margin: 0; }
.cta-band .button { color: var(--button-primary-text); background: var(--button-primary-background); border-color: var(--button-primary-background); }
.cta-band .button:hover { color: var(--button-primary-hover-text); background: var(--button-primary-hover-background); border-color: var(--button-primary-hover-background); }

/* Training course template */
.training-page { color: var(--page-body-color); background: var(--page-method-background); }
.training-page-hero { position: relative; overflow: hidden; padding-block: clamp(5rem, 10vw, 9rem); background: linear-gradient(118deg, rgba(0,116,129,.18), transparent 46%), var(--page-hero-background); }
.training-page-hero::after { position: absolute; right: -12rem; bottom: -18rem; width: min(50rem, 80vw); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; box-shadow: 0 0 0 5rem rgba(255,255,255,.018), 0 0 0 10rem rgba(255,255,255,.012); content: ""; }
.training-page-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .65fr); align-items: end; gap: clamp(2rem, 7vw, 7rem); }
.training-page-hero h1 { max-width: 17ch; margin: .75rem 0 0; color: var(--page-heading-color); font-size: clamp(.75rem, var(--page-hero-heading-size), 7.5rem); }
.training-page-hero p { max-width: 34rem; margin: 0; color: var(--page-body-color); font-size: clamp(.75rem, var(--page-hero-intro-size), 7.5rem); line-height: 1.65; }
.training-courses { padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--page-foundation-background); }
.training-delivery { display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1.7rem; color: var(--page-body-color); font-family: var(--mono); font-size: .73rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.training-delivery span { width: .55rem; aspect-ratio: 1; background: var(--page-accent-color); border-radius: 50%; }
.training-course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.training-course { --course-accent: var(--page-accent-color); display: grid; grid-template-rows: auto 1fr; min-height: 100%; overflow: hidden; background: var(--page-card-background); border: 1px solid var(--page-card-border); border-radius: var(--radius); }
.training-course::before { display: block; height: .3rem; background: var(--course-accent); content: ""; }
.training-course--cf { --course-accent: var(--page-accent-color); }
.training-course header, .training-objectives { padding-inline: clamp(1.4rem, 3vw, 2.4rem); }
.training-course header { padding-top: clamp(1.5rem, 3vw, 2.4rem); padding-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.training-course-code { display: inline-grid; min-width: 2.65rem; min-height: 1.55rem; place-items: center; color: var(--black); background: var(--course-accent); border-radius: 999px; font-family: var(--mono); font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.training-course h2 { max-width: 17ch; margin: 1.25rem 0 .9rem; color: var(--page-heading-color); font-size: clamp(.75rem, var(--page-card-heading-size), 7.5rem); }
.training-course header p { max-width: 42rem; margin: 0; color: var(--page-body-color); font-size: clamp(.75rem, var(--page-card-text-size), 7.5rem); line-height: 1.65; }
.training-objectives { margin-top: 2rem; padding-bottom: clamp(1.5rem, 3vw, 2.4rem); border-top: 1px solid var(--page-card-border); }
.training-objectives h3 { margin: 1.25rem 0 1rem; color: var(--page-heading-color); font-family: var(--mono); font-size: clamp(.75rem, var(--page-method-heading-size), 7.5rem); letter-spacing: .1em; text-transform: uppercase; }
.training-objectives ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.training-objectives li { position: relative; padding-left: 1rem; color: var(--page-body-color); font-size: clamp(.75rem, var(--page-method-text-size), 7.5rem); line-height: 1.45; }
.training-objectives li::before { position: absolute; top: .55em; left: 0; width: .34rem; height: .34rem; background: var(--course-accent); border-radius: 50%; content: ""; }
.training-page-cta { padding-block: clamp(4rem, 8vw, 7rem); background: var(--page-cta-background); }
.training-page-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.training-page-cta h2 { max-width: 21ch; margin: 0; color: var(--page-heading-color); font-size: clamp(.75rem, var(--page-cta-heading-size), 7.5rem); }

/* Transformation and troubleshooting templates */
.service-page { --service-accent: var(--page-accent-color); color: var(--page-body-color); background: var(--page-method-background); }
.service-page-hero { position: relative; overflow: hidden; padding-block: clamp(5rem, 10vw, 9rem); background: linear-gradient(118deg, rgba(140,181,185,.18), transparent 48%), var(--page-hero-background); }
.service-page--troubleshooting .service-page-hero { background: linear-gradient(118deg, rgba(224,104,34,.18), transparent 48%), var(--page-hero-background); }
.service-page-hero::after { position: absolute; right: -12rem; bottom: -18rem; width: min(50rem, 80vw); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; box-shadow: 0 0 0 5rem rgba(255,255,255,.018), 0 0 0 10rem rgba(255,255,255,.012); content: ""; }
.service-page-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .65fr); align-items: end; gap: clamp(2rem, 7vw, 7rem); }
.service-page-hero h1 { max-width: 16ch; margin: .75rem 0 0; color: var(--page-heading-color); font-size: clamp(.75rem, var(--page-hero-heading-size), 7.5rem); }
.service-page-hero p { max-width: 34rem; margin: 0; color: var(--page-body-color); font-size: clamp(.75rem, var(--page-hero-intro-size), 7.5rem); line-height: 1.65; }
.service-page-foundation { padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--page-foundation-background); }
.service-page-method { padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--page-method-background); }
.service-page-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .65fr); align-items: end; gap: 2rem; margin-bottom: clamp(2.25rem, 5vw, 4rem); }
.service-page-header h2 { max-width: 18ch; margin: .75rem 0 0; color: var(--page-heading-color); font-size: clamp(.75rem, var(--page-section-heading-size), 7.5rem); }
.service-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--page-card-border); border-left: 1px solid var(--page-card-border); }
.service-card { min-height: 17rem; padding: clamp(1.4rem, 3vw, 2.25rem); background: var(--page-card-background); border-right: 1px solid var(--page-card-border); border-bottom: 1px solid var(--page-card-border); }
.service-card::before { display: block; width: 2.4rem; height: .24rem; margin-bottom: clamp(2.5rem, 7vw, 5rem); background: var(--service-accent); content: ""; }
.service-card h3 { margin: 0 0 .75rem; color: var(--page-heading-color); font-size: clamp(.75rem, var(--page-card-heading-size), 7.5rem); }
.service-card p { margin: 0; color: var(--page-body-color); font-size: clamp(.75rem, var(--page-card-text-size), 7.5rem); line-height: 1.6; }
.service-method-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: service-step; }
.service-method-list li { position: relative; min-height: 16rem; padding: 0 clamp(1.25rem, 3vw, 2.25rem) 0 0; counter-increment: service-step; }
.service-method-list li:not(:last-child) { border-right: 1px solid var(--page-card-border); margin-right: clamp(1.25rem, 3vw, 2.25rem); }
.service-method-list li::before { display: block; margin-bottom: 3.5rem; color: var(--service-accent); font-family: var(--mono); font-size: .76rem; font-weight: 700; letter-spacing: .1em; content: counter(service-step, decimal-leading-zero); }
.service-method-list h3 { margin: 0 0 .75rem; color: var(--page-heading-color); font-size: clamp(.75rem, var(--page-method-heading-size), 7.5rem); }
.service-method-list p { margin: 0; color: var(--page-body-color); font-size: clamp(.75rem, var(--page-method-text-size), 7.5rem); line-height: 1.6; }
.service-page-cta { padding-block: clamp(4rem, 8vw, 7rem); background: var(--page-cta-background); }
.service-page-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.service-page-cta h2 { max-width: 21ch; margin: 0; color: var(--page-heading-color); font-size: clamp(.75rem, var(--page-cta-heading-size), 7.5rem); }


/* Premium homepage */
.home-main { overflow: clip; }
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 5.25rem);
  padding-top: clamp(4rem, 8vw, 7.5rem);
  color: var(--white);
  background:
    radial-gradient(circle at 76% 28%, rgba(0,116,129,.15), transparent 24rem),
    var(--black);
}
.home-hero-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .3;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.home-hero::after {
  position: absolute;
  z-index: -1;
  inset: auto -8rem 5rem auto;
  width: 28rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255,255,255,.018), 0 0 0 10rem rgba(255,255,255,.012);
  content: "";
}
.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(25rem, .92fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.hero-proofline { display: flex; flex-wrap: wrap; gap: .55rem 1.5rem; margin-bottom: 2rem; }
.hero-proofline span { position: relative; color: #b8c8d3; font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-proofline span:not(:last-child)::after { position: absolute; top: 50%; right: -.85rem; width: .25rem; height: .25rem; background: var(--steel-500); border-radius: 50%; content: ""; }
.home-hero h1 { max-width: 13ch; margin-bottom: 1.7rem; color: var(--white); font-size: clamp(.75rem, var(--hero-heading-size), 7.5rem); }
.hero-line { display: block; }
.hero-line--training { color: #f7fbfd; }
.hero-line--transform { color: #8cb5b9; }
.hero-line--troubleshoot { color: #f0a16d; }
.home-hero-lead { max-width: 42rem; margin-bottom: 0; color: #cad8e1; font-size: clamp(.75rem, var(--hero-text-size), 7.5rem); }
.button--light { color: var(--button-primary-text); background: var(--button-primary-background); border-color: var(--button-primary-background); }
.button--light:hover { color: var(--button-primary-hover-text); background: var(--button-primary-hover-background); border-color: var(--button-primary-hover-background); }
.button--ghost { color: var(--button-outline-text); background: var(--button-outline-background); border-color: var(--button-outline-border); }
.button--ghost:hover { color: var(--button-outline-hover-text); background: var(--button-outline-hover-background); border-color: var(--button-outline-hover-border); }
.button--large { min-height: 3.75rem; padding-inline: 1.65rem; }

.system-visual { position: relative; width: min(100%, 34rem); aspect-ratio: 1; justify-self: end; }
.system-orbit { position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.system-orbit--outer { inset: 5%; }
.system-orbit--inner { inset: 24%; border-style: dashed; opacity: .7; }
.system-orbit--outer::before, .system-orbit--outer::after { position: absolute; width: .7rem; aspect-ratio: 1; background: var(--teal); border: .2rem solid var(--navy-900); border-radius: 50%; content: ""; }
.system-orbit--outer::before { top: 10%; right: 15%; }
.system-orbit--outer::after { bottom: 3%; left: 31%; background: var(--orange); }
.system-core { position: absolute; inset: 35%; display: grid; place-content: center; text-align: center; background: rgba(6,21,35,.88); border: 1px solid rgba(255,255,255,.28); border-radius: 50%; box-shadow: 0 0 4rem rgba(36,116,210,.25); }
.system-core span { color: var(--white); font-family: var(--heading); font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 850; letter-spacing: -.07em; line-height: .9; }
.system-core strong { max-width: 7rem; margin: .65rem auto 0; color: #9fb1be; font-family: var(--mono); font-size: .56rem; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.system-node { position: absolute; display: grid; min-width: 9rem; grid-template-columns: auto 1fr; align-items: center; gap: .65rem; padding: .8rem .9rem; color: var(--white); background: rgba(11,31,51,.93); border: 1px solid rgba(255,255,255,.18); border-radius: .6rem; box-shadow: 0 1rem 3rem rgba(0,0,0,.18); backdrop-filter: blur(10px); }
.system-node b { display: grid; width: 2rem; aspect-ratio: 1; place-items: center; color: var(--navy-950); background: var(--node-color); border-radius: 50%; font-family: var(--mono); font-size: .65rem; }
.system-node span { font-size: .83rem; font-weight: 750; }
.system-node--training { --node-color: var(--teal); top: 4%; left: 2%; }
.system-node--transform { --node-color: var(--steel-500); top: 42%; right: -2%; }
.system-node--troubleshoot { --node-color: var(--orange); bottom: 5%; left: 4%; }

.hero-capability-bar { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.15); }
.hero-capability-bar > div { display: grid; grid-template-columns: 2.3rem 1fr; gap: .15rem 1rem; padding: 1.7rem clamp(1rem, 2vw, 2rem); border-right: 1px solid rgba(255,255,255,.15); }
.hero-capability-bar > div:first-child { padding-left: 0; }
.hero-capability-bar > div:last-child { border-right: 0; }
.hero-capability-bar span { grid-row: 1 / 3; color: var(--steel-500); font-family: var(--mono); font-size: .7rem; }
.hero-capability-bar strong { color: var(--white); font-size: .91rem; }
.hero-capability-bar small { color: #91a5b4; font-size: .76rem; }

.home-intro { padding-bottom: clamp(4.5rem, 8vw, 8rem); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr); gap: clamp(3rem, 10vw, 10rem); align-items: end; }
.section-heading--large { max-width: 58rem; margin-bottom: 0; }
.intro-copy { padding-left: 2rem; border-left: 2px solid var(--steel-150); }
.intro-copy p { color: #bac4c4; font-size: 1.05rem; }
.intro-copy p:last-child { margin-bottom: 0; }

.pillar-stage { background: var(--black); }
.pillar-stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 100rem); margin-inline: auto; }
.service-panel { --panel: var(--teal); position: relative; min-height: 44rem; color: var(--white); border-right: 1px solid rgba(255,255,255,.13); background: var(--black-soft); transition: background .25s ease; }
.service-panel:last-child { border-right: 0; }
.service-panel::before { position: absolute; inset: 0 0 auto; height: .45rem; background: var(--panel); content: ""; }
.service-panel::after { position: absolute; right: 2rem; bottom: 2rem; color: rgba(255,255,255,.035); font-family: var(--heading); font-size: 11rem; font-weight: 850; line-height: 1; content: "T"; }
.service-panel:hover { background: var(--black-raised); }
.service-panel--transform { --panel: var(--steel-500); }
.service-panel--troubleshoot { --panel: var(--orange); }
.service-panel-inner { position: relative; z-index: 1; display: flex; height: 100%; flex-direction: column; padding: clamp(2rem, 4vw, 4.2rem); }
.service-panel-head { display: flex; justify-content: space-between; gap: 1rem; color: #8fa4b3; font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.service-panel h2 { margin: clamp(4rem, 7vw, 7rem) 0 1rem; color: var(--white); font-size: clamp(2.2rem, 4vw, 4rem); }
.service-panel p { color: #c2d0d9; }
.service-panel ul { display: grid; gap: .7rem; margin: 1rem 0 3rem; padding: 0; list-style: none; }
.service-panel li { position: relative; padding-left: 1.2rem; color: #d6e0e6; font-size: .93rem; }
.service-panel li::before { position: absolute; top: .7em; left: 0; width: .38rem; height: .38rem; background: var(--panel); border-radius: 50%; content: ""; }
.service-panel a { display: flex; justify-content: space-between; margin-top: auto; padding-top: 1.3rem; color: var(--white); border-top: 1px solid rgba(255,255,255,.18); font-weight: 750; text-decoration: none; }
.service-panel a span { color: var(--panel); font-size: 1.3rem; }

.decision-section { background: var(--black-soft); }
.decision-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(3rem, 9vw, 9rem); align-items: start; }
.decision-copy { position: sticky; top: 8rem; }
.decision-copy h2 { max-width: 13ch; }
.decision-copy p { max-width: 35rem; color: #bac4c4; }
.text-link { display: inline-flex; gap: .75rem; align-items: center; color: var(--white); font-weight: 800; text-decoration: none; }
.text-link span { color: var(--blue); font-size: 1.35rem; }
.decision-list { border-top: 1px solid var(--steel-300); }
.decision-item { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding-block: clamp(1.6rem, 3vw, 2.5rem); border-bottom: 1px solid var(--steel-300); }
.decision-code { display: grid; width: 3.25rem; height: 3.25rem; place-items: center; color: var(--white); background: var(--navy-900); border-radius: 50%; font-family: var(--mono); font-size: .72rem; font-weight: 700; }
.decision-code--teal { background: var(--teal); }
.decision-code--blue { background: var(--blue); }
.decision-code--orange { color: #06282b; background: var(--orange); }
.decision-item h3 { margin: .15rem 0 .3rem; font-size: clamp(1.12rem, 2vw, 1.45rem); }
.decision-item p { margin: 0; color: #bac4c4; }

.engineering-system { position: relative; color: var(--white); background: var(--black); }
.engineering-system::before { position: absolute; inset: 0; opacity: .12; background: repeating-linear-gradient(135deg, transparent 0 3.4rem, rgba(255,255,255,.08) 3.4rem 3.5rem); content: ""; }
.system-grid { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.engineering-system h2 { color: var(--white); }
.engineering-system .eyebrow { color: var(--teal); }
.engineering-system .section-heading { margin-bottom: 0; }
.engineering-system .section-heading p { color: #b9c9d3; }
.knowledge-flow { display: grid; gap: .75rem; }
.flow-step { display: grid; grid-template-columns: 2.8rem 1fr; gap: .1rem 1rem; padding: 1.4rem; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14); border-radius: .7rem; }
.flow-step span { grid-row: 1 / 3; color: var(--teal); font-family: var(--mono); font-size: .72rem; }
.flow-step strong { color: var(--white); }
.flow-step small { color: #9db0bd; }
.flow-connector { width: 1px; height: 1.5rem; margin-left: 2.8rem; background: linear-gradient(var(--teal), var(--blue)); }
.flow-step:last-child span { color: var(--orange); }

.method-section { background: var(--black); }
.method-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4rem 0 0; padding: 0; list-style: none; }
.method-track li { position: relative; min-height: 20rem; padding: 2rem 1.5rem 1rem 0; border-top: 2px solid var(--steel-300); }
.method-track li::before { position: absolute; top: -.55rem; left: 0; width: .9rem; height: .9rem; background: var(--blue); border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 2px var(--blue); content: ""; }
.method-track li > span { display: block; margin-bottom: 4rem; color: var(--steel-500); font-family: var(--mono); font-size: .72rem; }
.method-track h3 { margin-bottom: .7rem; }
.method-track p { max-width: 15rem; color: #bac4c4; font-size: .92rem; }

.outcomes-band { padding-block: clamp(4rem, 7vw, 7rem); color: var(--white); background: var(--black-soft); border-block: 1px solid rgba(255,255,255,.1); }
.outcomes-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(24rem, 1fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.outcomes-title > span { display: block; margin-bottom: 1rem; font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.outcomes-title h2 { margin: 0; color: var(--white); font-size: clamp(2rem, 4vw, 3.6rem); }
.outcomes-grid ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.32); list-style: none; }
.outcomes-grid li { position: relative; padding: 1.1rem 0 1.1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.32); font-weight: 650; }
.outcomes-grid li::before { position: absolute; top: 1.7rem; left: 0; width: .4rem; height: .4rem; background: var(--white); border-radius: 50%; content: ""; }

.home-cta { position: relative; padding-block: clamp(5rem, 9vw, 9rem); color: var(--white); background: var(--black); }
.home-cta::before { position: absolute; top: 0; left: 0; width: 33.333%; height: .45rem; background: var(--teal); box-shadow: 33.333vw 0 var(--steel-500), 66.666vw 0 var(--orange); content: ""; }
.home-cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3rem; }
.home-cta .eyebrow { color: var(--teal); }
.home-cta h2 { max-width: 15ch; margin: 0; color: var(--white); font-size: clamp(2.3rem, 5vw, 5rem); }

/* Keep previously pasted 3T Custom HTML pages inside the RCME brand system. */
.tts-home,
.tt-transform {
  --black: #050505 !important;
  --navy-950: #082f33 !important;
  --navy-900: #125156 !important;
  --navy-800: #17636a !important;
  --teal: #007481 !important;
  --blue: #125156 !important;
  --blue-light: #8cb5b9 !important;
  --orange: #e06822 !important;
  --steel: #8cb5b9 !important;
  --steel-700: #4e7272 !important;
  --steel-500: #8cb5b9 !important;
  --steel-300: #bcd2d4 !important;
  --steel-150: #ddebec !important;
  --soft: #f3f8f8 !important;
  --text: #f1f3f3 !important;
}
.tts-home .tts-hero,
.tt-transform .tt-transform-hero {
  color: #f1f3f3 !important;
  background: radial-gradient(circle at 77% 27%, rgba(0,116,129,.14), transparent 24rem), #050505 !important;
}
.tts-home .tts-hero-transform,
.tt-transform .tt-transform-hero h1 span { color: #8cb5b9 !important; }
.tts-home .tts-hero-troubleshoot { color: #f0a16d !important; }
.tts-home .tts-service-transformation { --service-color: #8cb5b9 !important; }
.tt-transform .tt-transform-principle:nth-child(2) { --principle-color: #8cb5b9 !important; }
.tt-transform .tt-transform-comparison { background: #101112 !important; }
.tts-home,
.tt-transform { color: #f1f3f3 !important; background: #050505 !important; }
.tts-home section,
.tt-transform section { color: #f1f3f3 !important; background-color: #050505 !important; }
.tts-home section:nth-of-type(even),
.tt-transform section:nth-of-type(even) { background-color: #101112 !important; }
.tts-home h1, .tts-home h2, .tts-home h3, .tts-home h4,
.tt-transform h1, .tt-transform h2, .tt-transform h3, .tt-transform h4 { color: #fff !important; }
.tts-home p, .tts-home li,
.tt-transform p, .tt-transform li { color: #c5cccc !important; }
.tts-home a[class*="button"], .tts-home button,
.tt-transform a[class*="button"], .tt-transform button { color: var(--button-primary-text) !important; background: var(--button-primary-background) !important; border-color: var(--button-primary-background) !important; }
.tts-home a[class*="button"]:hover, .tts-home button:hover,
.tt-transform a[class*="button"]:hover, .tt-transform button:hover { color: var(--button-primary-hover-text) !important; background: var(--button-primary-hover-background) !important; border-color: var(--button-primary-hover-background) !important; }
.tts-home .button--outline, .tts-home [class*="button-outline"],
.tt-transform .button--outline, .tt-transform [class*="button-outline"] { color: var(--button-outline-text) !important; background: var(--button-outline-background) !important; border-color: var(--button-outline-border) !important; }
.tts-home .button--outline:hover, .tts-home [class*="button-outline"]:hover,
.tt-transform .button--outline:hover, .tt-transform [class*="button-outline"]:hover { color: var(--button-outline-hover-text) !important; background: var(--button-outline-hover-background) !important; border-color: var(--button-outline-hover-border) !important; }

/* Touch devices have no reliable hover. A press uses the same configured
   colours as desktop mouse-over, without leaving a different sticky state. */
@media (hover: none) {
  .button:hover, .wp-block-button__link:hover,
  .cta-band .button:hover, .button--light:hover {
    color: var(--button-primary-text);
    background: var(--button-primary-background);
    border-color: var(--button-primary-background);
    box-shadow: none;
    transform: none;
  }
  .button--outline:hover, .button--ghost:hover {
    color: var(--button-outline-text);
    background: var(--button-outline-background);
    border-color: var(--button-outline-border);
  }
  .primary-nav > .button:hover {
    color: var(--button-header-text);
    background: var(--button-header-background);
    border-color: var(--button-header-background);
  }
  .ai-engineer-toggle:hover {
    color: var(--ai-toggle-text);
    background: var(--ai-toggle-background);
    border-color: var(--ai-toggle-background);
    transform: none;
  }
  .pillar-link:hover { color: var(--card-link-text); }
  .footer-menu a:hover, .footer-contact a:hover { color: var(--footer-link-text); }
  .tts-home a[class*="button"]:hover, .tts-home button:hover,
  .tt-transform a[class*="button"]:hover, .tt-transform button:hover {
    color: var(--button-primary-text) !important;
    background: var(--button-primary-background) !important;
    border-color: var(--button-primary-background) !important;
  }
  .tts-home .button--outline:hover, .tts-home [class*="button-outline"]:hover,
  .tt-transform .button--outline:hover, .tt-transform [class*="button-outline"]:hover {
    color: var(--button-outline-text) !important;
    background: var(--button-outline-background) !important;
    border-color: var(--button-outline-border) !important;
  }
}
@media (hover: none), (pointer: coarse) {
  .button:active, .wp-block-button__link:active,
  .cta-band .button:active, .button--light:active {
    color: var(--button-primary-hover-text);
    background: var(--button-primary-hover-background);
    border-color: var(--button-primary-hover-background);
  }
  .button--outline:active, .button--ghost:active {
    color: var(--button-outline-hover-text);
    background: var(--button-outline-hover-background);
    border-color: var(--button-outline-hover-border);
  }
  .primary-nav > .button:active {
    color: var(--button-header-hover-text);
    background: var(--button-header-hover-background);
    border-color: var(--button-header-hover-background);
  }
  .ai-engineer-toggle:active {
    color: var(--ai-toggle-hover-text);
    background: var(--ai-toggle-hover-background);
    border-color: var(--ai-toggle-hover-background);
  }
  .pillar-link:active { color: var(--card-link-hover-text); }
  .footer-menu a:active, .footer-contact a:active { color: var(--footer-link-hover-text); }
  .tts-home a[class*="button"]:active, .tts-home button:active,
  .tt-transform a[class*="button"]:active, .tt-transform button:active {
    color: var(--button-primary-hover-text) !important;
    background: var(--button-primary-hover-background) !important;
    border-color: var(--button-primary-hover-background) !important;
  }
  .tts-home .button--outline:active, .tts-home [class*="button-outline"]:active,
  .tt-transform .button--outline:active, .tt-transform [class*="button-outline"]:active {
    color: var(--button-outline-hover-text) !important;
    background: var(--button-outline-hover-background) !important;
    border-color: var(--button-outline-hover-border) !important;
  }
}

.page-hero { padding-block: clamp(4rem, 8vw, 7rem); color: var(--white); background: var(--black); border-bottom: 1px solid rgba(255,255,255,.1); }
.page-title-inner { width: min(calc(100% - clamp(2rem, 6vw, 5rem)), var(--page-content-width, 75rem)); margin-inline: auto; }
.page-hero h1 { max-width: 15ch; margin: 0; color: var(--white); font-size: clamp(2.5rem, 6vw, 4.8rem); }
.page-hero p { max-width: 42rem; margin: 1.5rem 0 0; color: var(--steel-300); font-size: 1.15rem; }
.page-content-section { padding-top: var(--page-space-top, 0); padding-bottom: var(--page-space-bottom, 0); }
.page-shell { width: min(calc(100% - clamp(2rem, 6vw, 5rem)), var(--page-content-width, 75rem)); margin-inline: auto; }
.page-shell--full, .page-shell--canvas { width: 100%; max-width: none; }
.page-shell--narrow { width: min(calc(100% - 2rem), 48rem); }
.page-shell--with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.page-shell--sidebar-left { grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr); }
.page-shell--sidebar-left .page-sidebar { grid-column: 1; grid-row: 1; }
.page-shell--sidebar-left .page-article { grid-column: 2; grid-row: 1; }
.page-layout-full .entry-content > *, .page-layout-canvas .entry-content > * { max-width: none; margin-right: 0; margin-left: 0; }
.page-layout-canvas .page-content-section { padding: 0; }
.page-layout-canvas .page-main, .page-layout-full .page-main { width: 100%; max-width: none; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: clamp(3rem, 7vw, 6rem); }
.entry-content > * { max-width: var(--content); margin-right: auto; margin-left: auto; }
.entry-content > .alignwide { max-width: var(--container); }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3 { margin-top: 1.7em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .85rem; border: 1px solid var(--steel-300); text-align: left; }
.entry-content th { background: var(--black-raised); }
.entry-meta { margin-bottom: 2rem; color: var(--steel-500); font-family: var(--mono); font-size: .8rem; }
.sidebar { font-size: .92rem; }
.widget { margin-bottom: 2rem; padding: 1.3rem; background: var(--black-soft); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); }
.widget-title { font-size: 1rem; }
.widget ul { margin: 0; padding-left: 1.1rem; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.post-card { overflow: hidden; background: var(--black-soft); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-content { padding: 1.5rem; }
.post-card h2 { margin-bottom: .5rem; font-size: 1.35rem; }
.post-card h2 a { color: var(--white); text-decoration: none; }
.post-card .entry-meta { margin-bottom: 1rem; }
.pagination { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers { display: grid; min-width: 2.7rem; height: 2.7rem; place-items: center; padding-inline: .7rem; color: var(--white); background: var(--black-raised); border-radius: .35rem; text-decoration: none; }
.page-numbers.current { color: var(--white); background: var(--blue); }

.site-footer { color: #d5e5e6; background: var(--footer-background); border-top: 1px solid rgba(255,255,255,.13); }
.footer-main { display: grid; grid-template-columns: minmax(15rem, 1.25fr) repeat(2, minmax(10rem, .75fr)); gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3.5rem, 7vw, 6rem); }
.footer-brand .brand-fallback { color: var(--white); }
.footer-brand p { max-width: 31rem; margin-top: 1.4rem; }
.footer-title { margin-bottom: 1.1rem; color: var(--white); font-size: clamp(.75rem, var(--footer-heading-size), 7.5rem); letter-spacing: .04em; }
.footer-menu, .footer-contact { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.footer-brand p, .footer-menu a, .footer-contact a { font-size: clamp(.75rem, var(--footer-text-size), 7.5rem); }
.footer-menu a, .footer-contact a { color: var(--footer-link-text); text-decoration: none; }
.footer-menu a:hover, .footer-contact a:hover { color: var(--footer-link-hover-text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); color: #91a5b4; font-family: var(--mono); font-size: .72rem; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 5px; left: 5px; width: auto; height: auto; padding: 15px 23px 14px; clip: auto !important; color: #21759b; background: #f1f1f1; font-size: 14px; font-weight: 700; }

@media (max-width: 64rem) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-side { width: 100%; max-width: none; justify-self: stretch; }
  .hero-side .ai-engineer, .hero-side .ai-engineer-panel, .hero-side .hero-metric { width: 100%; max-width: none; justify-self: stretch; }
  .hero-metric { align-self: auto; }
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-hero-copy { max-width: 50rem; }
  .system-visual { width: min(100%, 30rem); justify-self: center; }
  .intro-grid, .decision-grid, .system-grid, .outcomes-grid { grid-template-columns: 1fr; }
  .intro-copy { max-width: 43rem; }
  .pillar-stage-grid { grid-template-columns: 1fr; }
  .service-panel { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .service-panel-inner { min-height: 34rem; }
  .service-panel h2 { margin-top: 4rem; }
  .decision-copy { position: static; }
  .decision-copy h2 { max-width: 18ch; }
  .knowledge-flow { max-width: 43rem; }
  .method-track { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .outcomes-title { max-width: 48rem; }
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar-card:last-child { grid-column: 1 / -1; min-height: auto; }
  .expertise-grid { grid-template-columns: 1fr; }
  .training-page-hero-inner { grid-template-columns: 1fr; align-items: start; }
  .training-page-hero p { max-width: 42rem; }
  .training-course-grid { grid-template-columns: 1fr; }
  .service-page-hero-inner, .service-page-header { grid-template-columns: 1fr; align-items: start; }
  .service-page-hero p { max-width: 42rem; }
  .service-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-method-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 0; }
  .method-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 50rem) {
  .nav-toggle { display: inline-flex; flex: 0 0 auto; }
  .primary-nav { position: fixed; inset: 5.25rem 0 0; display: none; align-items: stretch; flex-direction: column; padding: 1.5rem max(1.2rem, 5vw) max(3rem, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; background: var(--black); }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.15); }
  .primary-nav a { display: block; padding-block: 1.05rem; font-size: 1.05rem; }
  .primary-nav .button { width: 100%; margin-top: .8rem; }
  .home-hero { padding-top: 3.5rem; }
  .home-hero-inner { padding-bottom: 3.5rem; }
  .hero-capability-bar { grid-template-columns: 1fr; }
  .hero-capability-bar > div { padding: 1.2rem 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .hero-capability-bar > div:last-child { border-bottom: 0; }
  .intro-grid { gap: 2.2rem; }
  .intro-copy { padding-left: 1.25rem; }
  .home-cta-inner { grid-template-columns: 1fr; align-items: start; }
  .home-cta-inner .button { justify-self: start; }
  .content-layout { grid-template-columns: 1fr; }
  .page-shell--with-sidebar, .page-shell--sidebar-left { grid-template-columns: 1fr; }
  .page-shell--sidebar-left .page-sidebar, .page-shell--sidebar-left .page-article { grid-column: 1; grid-row: auto; }
  .page-shell--sidebar-left .page-sidebar { order: 2; }
  .sidebar { border-top: 1px solid var(--steel-150); padding-top: 2rem; }
  .entry-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 40rem) {
	.hero-engineering-picture img { object-position: 62% center; }
  :root { --space-section: 4rem; }
  .container { width: min(calc(100% - 2rem), var(--container)); }
  .page-title-inner, .page-shell { width: min(calc(100% - 2rem), var(--page-content-width, 75rem)); }
  .page-shell--full, .page-shell--canvas { width: 100%; }
  .header-inner { min-height: 4.7rem; }
  .brand-name small { display: none; }
  .brand-mark { width: 2.55rem; }
  .primary-nav { inset-block-start: 4.7rem; }
  .hero-inner { padding-block: 4rem; }
  .hero h1 { font-size: clamp(.75rem, var(--hero-heading-size), 7.5rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .home-hero h1 { font-size: clamp(.75rem, var(--hero-heading-size), 7.5rem); }
  .hero-proofline { gap: .45rem .9rem; }
  .hero-proofline span { font-size: .6rem; }
  .hero-proofline span:not(:last-child)::after { right: -.55rem; }
  .system-visual { width: min(100%, 22rem); margin-block: 1rem; }
  .system-node { min-width: 7.5rem; padding: .6rem; }
  .system-node span { font-size: .7rem; }
  .system-node b { width: 1.65rem; }
  .system-node--transform { right: -1rem; }
  .service-panel-inner { min-height: 0; padding: 2rem 1.25rem 2.5rem; }
  .service-panel h2 { margin-top: 3rem; }
  .service-panel::after { font-size: 8rem; }
  .decision-item { gap: 1rem; }
  .decision-code { width: 2.8rem; height: 2.8rem; }
  .method-track { grid-template-columns: 1fr; gap: 1.5rem; }
  .method-track li { min-height: 0; padding-bottom: 2rem; }
  .method-track li > span { margin-bottom: 2rem; }
  .method-track p { max-width: none; }
  .outcomes-grid { gap: 2.5rem; }
  .outcomes-grid ul { grid-template-columns: 1fr; }
  .home-cta-inner .button { width: 100%; }
  .training-page-hero { padding-block: 4rem; }
  .training-page-hero h1 { font-size: clamp(2.35rem, 11vw, 3.6rem); }
  .training-objectives ul { grid-template-columns: 1fr; }
  .training-page-cta-inner { align-items: stretch; flex-direction: column; }
  .training-page-cta .button { width: 100%; }
  .service-page-hero { padding-block: 4rem; }
  .service-page-hero h1 { font-size: clamp(2.35rem, 11vw, 3.6rem); }
  .service-card-grid, .service-method-list { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .service-method-list li, .service-method-list li:not(:last-child) { min-height: 0; margin-right: 0; padding: 0 0 2rem; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .service-method-list li::before { margin-bottom: 1.25rem; }
  .service-page-cta-inner { align-items: stretch; flex-direction: column; }
  .service-page-cta .button { width: 100%; }
  .pillar-grid, .post-grid, .method-grid { grid-template-columns: 1fr; }
  .pillar-card, .pillar-card:last-child { min-height: 0; grid-column: auto; }
  .capability { grid-template-columns: 1fr; gap: .7rem; }
  .cta-inner { flex-direction: column; gap: 1.5rem; }
  .cta-copy, .cta-action { flex: 0 0 auto; width: 100%; padding-inline: 0; }
  .cta-copy { justify-content: center; }
  .cta-action { justify-content: stretch; }
  .cta-action .button { width: 100%; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: .5rem; }
}

@supports (min-height: 100dvh) {
  @media (max-width: 50rem) { .primary-nav { max-height: calc(100dvh - 5.25rem); } }
}

@media (max-width: 23rem) {
  .brand-name strong { font-size: 1.4rem; }
  .brand-mark { width: 2.2rem; border-width: .34rem; }
  .nav-toggle { width: 2.7rem; height: 2.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .cta-band, .home-cta, .sidebar, .system-visual { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .hero, .home-hero, .page-hero, .expertise, .pillar-stage, .engineering-system, .outcomes-band { color: #000; background: #fff; }
  .hero h1, .home-hero h1, .page-hero h1, .expertise h2, .expertise h3, .service-panel h2, .engineering-system h2, .outcomes-band h2 { color: #000; }
  a { color: #000; text-decoration: none; }
}
