/* ECC Universe — design system
   Brand colors come from the approved logo:
   red #C8102E (planet), charcoal #1C1F24 (core and orbit), gray #52525B (UNIVERSE), white.
   Other values are neutral tints and shades of those colors. */

:root {
  --red: #C8102E;
  --red-700: #A00D25;
  --red-50: #FCEBEE;
  --ink: #1C1F24;
  --ink-900: #121417;
  --ink-800: #23272E;
  --ink-700: #30353D;
  --gray: #52525B;
  --gray-500: #71717A;
  --gray-300: #C4C4CA;
  --line: #E4E4E7;
  --soft: #F4F4F5;
  --white: #FFFFFF;
  --ok: #15803D;
  --ok-50: #E9F6EE;
  --warn: #B45309;
  --warn-50: #FDF3E7;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(18, 20, 23, .06), 0 8px 24px rgba(18, 20, 23, .06);
  --shadow-lg: 0 20px 50px rgba(18, 20, 23, .14);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-700); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo__word { display: flex; flex-direction: column; line-height: 1; }
.logo__ecc { font-weight: 800; font-size: 26px; letter-spacing: .02em; }
.logo__universe { font-weight: 500; font-size: 8.5px; letter-spacing: .42em; color: var(--gray); margin-top: 4px; }
.logo__rule { width: 2px; height: 30px; background: var(--red); }
.logo__division { font-weight: 600; font-size: 12px; letter-spacing: .18em; }
.logo--light { color: #fff; }
.logo--light .logo__universe { color: rgba(255, 255, 255, .78); }
/* Division header: the ECC Universe part goes home, the division name goes to the division. */
.logo__home { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; padding: 6px 0; }
.logo__home:hover { color: inherit; opacity: .85; }
a.logo__division { color: inherit; text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
a.logo__division:hover { color: inherit; border-bottom-color: var(--red); }

/* ---------- Breadcrumbs: large, tappable "where am I / go back" links ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 22px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); transition: background .2s, border-color .2s; }
.breadcrumb a:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .45); color: #fff; }
.breadcrumb .breadcrumb__sep { color: rgba(255, 255, 255, .5); margin: 0 2px; }
.breadcrumb [aria-current="page"] { color: rgba(255, 255, 255, .78); padding: 6px 4px; }

/* ---------- Back link and previous / next pager ---------- */
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; margin-bottom: 20px; border-radius: 8px; background: var(--soft); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.back-link:hover { background: var(--line); color: var(--ink); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.pager a:hover { border-color: var(--red); box-shadow: var(--shadow); color: var(--ink); }
.pager small { color: var(--gray); font-size: 13px; font-weight: 500; }
.pager strong { font-size: 16px; }
.pager__next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager__next { grid-column: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 8px; border: 2px solid transparent;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-700); color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 46, .3); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-800); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: '→'; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); transition: background .25s, border-color .25s; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.site-header__brand { text-decoration: none; display: inline-flex; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--red); }
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.site-header--overlay .site-nav a:not(.btn) { color: #fff; }
.site-header--overlay.is-solid { background: rgba(18, 20, 23, .94); backdrop-filter: blur(8px); border-bottom-color: rgba(255, 255, 255, .08); }
.site-header--division { background: var(--ink); border-bottom: 3px solid var(--planet, var(--red)); }
.site-header--division .site-nav a:not(.btn) { color: #fff; }

.lang-switch { flex: none; position: relative; display: inline-flex; border: 1.5px solid currentColor; border-radius: 8px; overflow: hidden; color: var(--gray-300); }
.site-nav .lang-switch a:not(.btn) { border: 0; position: relative; white-space: nowrap; padding: 6px 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-decoration: none; color: var(--gray); line-height: 1.2; }
.site-nav .lang-switch a:not(.btn):hover { color: var(--ink); background: var(--soft); }
.site-nav .lang-switch a:not(.btn)[aria-current="true"] { background: var(--ink); color: #fff; }
.site-header--overlay .lang-switch, .site-header--division .lang-switch { color: rgba(255, 255, 255, .35); }
.site-header--overlay .site-nav .lang-switch a:not(.btn), .site-header--division .site-nav .lang-switch a:not(.btn) { color: rgba(255, 255, 255, .8); }
.site-header--overlay .site-nav .lang-switch a:not(.btn):hover, .site-header--division .site-nav .lang-switch a:not(.btn):hover { background: rgba(255, 255, 255, .12); color: #fff; }
.site-header--overlay .site-nav .lang-switch a:not(.btn)[aria-current="true"], .site-header--division .site-nav .lang-switch a:not(.btn)[aria-current="true"] { background: #fff; color: var(--ink); }
@media (max-width: 1020px) {
  .lang-switch { align-self: flex-start; }
  .site-nav--division .lang-switch, .site-header--overlay .site-nav .lang-switch { color: rgba(255, 255, 255, .35); }
}

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle__bar { display: block; height: 2px; width: 24px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle--light .nav-toggle__bar, .site-header--overlay .nav-toggle__bar { background: #fff; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 24px; gap: 16px; display: none; box-shadow: var(--shadow-lg); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink) !important; }
  .site-nav--division, .site-header--overlay .site-nav { background: var(--ink); }
  .site-nav--division ul a:not(.btn), .site-header--overlay .site-nav ul a:not(.btn) { color: #fff !important; border-bottom-color: rgba(255, 255, 255, .12); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark p { color: rgba(255, 255, 255, .8); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--accent-on-dark, #FF5A72); }
.lead { font-size: 1.15rem; color: var(--gray); max-width: 760px; }
.section--dark .lead { color: rgba(255, 255, 255, .8); }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { .section { padding: 64px 0; } .section--tight { padding: 48px 0; } }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split--reverse > :first-child { order: 0; } }

.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--ink); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 20, 23, .94) 0%, rgba(18, 20, 23, .78) 45%, rgba(18, 20, 23, .35) 100%); }
.hero__content { position: relative; padding: calc(var(--header-h) + 110px) 0 120px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255, 255, 255, .85); font-size: 1.2rem; max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero--page .hero__content { padding: 96px 0 88px; }
.hero--division .hero__bg::after { background: linear-gradient(90deg, rgba(18, 20, 23, .96) 0%, rgba(18, 20, 23, .82) 50%, rgba(200, 16, 46, .25) 100%); }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
@media (max-width: 700px) { .hero__content { padding: calc(var(--header-h) + 64px) 0 80px; } .hero--page .hero__content { padding: 64px 0 56px; } .hero__scroll { display: none; } }


/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; height: 100%; display: flex; flex-direction: column; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray); }
.card__foot { margin-top: auto; padding-top: 12px; }
.card__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--red-50); color: var(--red); display: grid; place-items: center; margin-bottom: 18px; }
.section--dark .card { background: var(--ink-800); border-color: var(--ink-700); color: #fff; }
.section--dark .card p { color: rgba(255, 255, 255, .72); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--gray); white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--priority { background: var(--red-50); color: var(--red); }
.pill--development { background: var(--warn-50); color: var(--warn); }
.pill--planned { background: var(--soft); color: var(--gray-500); }

.division-card { position: relative; }
.division-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.division-card--priority { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.division-card .logo { gap: 10px; }

/* ---------- Ecosystem diagram ---------- */
.ecosystem { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ecosystem__diagram svg { width: 100%; height: auto; }
.ecosystem__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ecosystem__list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 10px; background: var(--ink-800); border: 1px solid var(--ink-700); }
.ecosystem__list a { color: #fff; font-weight: 600; text-decoration: none; }
.ecosystem__list a:hover { text-decoration: underline; color: #fff; }
.ecosystem__list strong { font-weight: 600; }
.ecosystem__name { display: flex; flex-direction: column; gap: 6px; }
.ecosystem__branches { display: flex; flex-wrap: wrap; gap: 14px; }
.ecosystem__branches a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.ecosystem__dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; }
@media (max-width: 900px) { .ecosystem { grid-template-columns: 1fr; } }

/* Planets orbit the center; each planet counter-rotates so its label stays upright.
   Hovering or focusing the diagram pauses the motion so a planet is easy to click. */
.eco-orbit { transform-origin: 300px 300px; animation: spin 90s linear infinite; }
.eco-node { animation: spin 90s linear infinite reverse; }
.eco-node a { cursor: pointer; outline: none; }
.ecosystem__diagram:hover .eco-orbit, .ecosystem__diagram:hover .eco-node,
.ecosystem__diagram:focus-within .eco-orbit, .ecosystem__diagram:focus-within .eco-node { animation-play-state: paused; }
.eco-node__planet { transition: stroke .2s, stroke-width .2s; }
.eco-node__link:hover .eco-node__planet, .eco-node__link:focus-visible .eco-node__planet { stroke: #fff; stroke-width: 3; }
.eco-node__link:hover text, .eco-node__link:focus-visible text { text-decoration: underline; }
/* Branch stars (ECC Thermal: heating and cooling) twinkle gently and grow on hover */
.eco-star__core { transition: r .2s, stroke-width .2s; animation: twinkle 3.2s ease-in-out infinite; }
.eco-star:nth-of-type(odd) .eco-star__core { animation-delay: 1.6s; }
.eco-star:hover .eco-star__core, .eco-star:focus-visible .eco-star__core { r: 12; stroke-width: 3; animation: none; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@keyframes spin { to { transform: rotate(360deg); } }
.division-card:target { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-50), var(--shadow-lg); scroll-margin-top: calc(var(--header-h) + 24px); }
.division-card { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- Feature list / steps ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--red-50); box-shadow: inset 0 0 0 5px var(--red); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 20px 20px 20px 68px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 18px; font-weight: 800; color: var(--red); font-size: 18px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; border-radius: var(--radius-lg); padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 620px; }
.cta-band .btn--light:hover { color: var(--red); }
.cta-band--dark { background: var(--ink); }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } }

/* ---------- Notice ---------- */
.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--soft); border-left: 4px solid var(--gray-500); font-size: 15px; }
.notice p:last-child { margin-bottom: 0; }
.notice--brand { background: var(--red-50); border-left-color: var(--red); }
.notice--warn { background: var(--warn-50); border-left-color: var(--warn); }
.notice strong { display: block; margin-bottom: 4px; }

/* ---------- Product catalog ---------- */
.product-card { padding: 0; overflow: hidden; }
.product-card__art { background: linear-gradient(160deg, var(--soft), #fff); border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 18px; }
.product-card__art svg { width: 100%; height: 100%; }
.product-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product-card__body p { font-size: 15px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }

.subnav { position: sticky; top: var(--header-h); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: thin; }
.subnav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--gray); font-size: 14px; font-weight: 500; white-space: nowrap; }
.subnav a:hover, .subnav a.is-active { background: var(--ink); color: #fff; }

.spec-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.spec-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.spec-toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.spec-toc ol a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--gray); text-decoration: none; font-size: 14px; }
.spec-toc ol a:hover, .spec-toc ol a.is-active { color: var(--ink); border-left-color: var(--red); }
.spec-toc .btn { width: 100%; margin-top: 20px; }
.spec-section { padding: 0 0 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.spec-section:last-child { border-bottom: 0; }
.spec-section h2 { font-size: 1.5rem; display: flex; gap: 12px; align-items: baseline; }
.spec-section h2 .num { color: var(--red); font-size: 1rem; font-weight: 800; }
.spec-layout > * { min-width: 0; }
@media (max-width: 960px) { .spec-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } .spec-toc { position: static; } .spec-toc ol { display: none; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--soft); font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.table tr:last-child td { border-bottom: 0; }
.formula { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 16px 20px; font-size: 15px; overflow-x: auto; }
.formula b { color: #FF7A8E; font-weight: 600; }
.source-note { font-size: 13px; color: var(--gray-500); }
.source-note a { color: var(--gray); }

.art-panel { background: linear-gradient(160deg, var(--soft), #fff); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.art-panel svg { width: 100%; height: auto; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--gray-500); }
.req { color: var(--red); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--gray-300); border-radius: 8px; padding: 11px 14px; min-height: 46px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28, 31, 36, .12); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }
.field__error { color: var(--red); font-size: 13px; min-height: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 18px; border-radius: 8px; font-size: 15px; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: var(--ok-50); color: var(--ok); }
.form-status--info { background: var(--warn-50); color: #7C3A06; }
.form-status--error { background: var(--red-50); color: var(--red-700); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .form-card { padding: 22px; } }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1020px) { .calc { grid-template-columns: 1fr; } }
.calc-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.calc-panel + .calc-panel { margin-top: 20px; }
.calc-panel__head { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--soft); }
.calc-panel__head h2, .calc-panel__head h3 { font-size: 1.05rem; margin: 0; }
.calc-panel__step { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.calc-panel__body { padding: 24px; display: grid; gap: 18px; }
.unit-input { display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 8px; }
.segmented { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-block; padding: 9px 14px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--gray); cursor: pointer; }
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.segmented input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--red); }
.calc-derived { font-size: 14px; color: var(--gray); background: var(--soft); border-radius: 8px; padding: 10px 14px; }

.results { position: sticky; top: calc(var(--header-h) + 20px); background: var(--ink); color: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
@media (max-width: 1020px) { .results { position: static; } }
.results__head { padding: 20px 24px; border-bottom: 1px solid var(--ink-700); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.results__head h2 { font-size: 1.05rem; margin: 0; color: #fff; }
.results__badge { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); border: 1px solid var(--ink-700); border-radius: 999px; padding: 4px 10px; }
.results__body { padding: 24px; display: grid; gap: 22px; }
.metric__label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.metric__value { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.metric__value small { font-size: 1rem; font-weight: 600; color: rgba(255, 255, 255, .7); margin-left: 6px; }
.metric__alt { font-size: 14px; color: rgba(255, 255, 255, .7); }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.metric-grid > div { background: var(--ink-800); border: 1px solid var(--ink-700); border-radius: 10px; padding: 14px; }
.metric-grid .metric__value { font-size: 1.35rem; }
.gauge { display: grid; gap: 8px; }
.gauge__track { position: relative; height: 14px; border-radius: 999px; background: var(--ink-700); overflow: hidden; }
.gauge__range { position: absolute; top: 0; bottom: 0; background: rgba(255, 255, 255, .14); }
.gauge__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; transition: width .4s ease, background .3s; background: #fff; }
.gauge__fill.zone-below { background: #4ADE80; }
.gauge__fill.zone-within { background: #FBBF24; }
.gauge__fill.zone-above { background: #FF5A72; }
.gauge__scale { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, .6); }
.verdict { border-radius: 10px; padding: 14px 16px; font-size: 14px; background: var(--ink-800); border: 1px solid var(--ink-700); }
.verdict strong { display: block; font-size: 15px; margin-bottom: 4px; }
.verdict.zone-below strong { color: #4ADE80; }
.verdict.zone-within strong { color: #FBBF24; }
.verdict.zone-above strong { color: #FF7A8E; }
.verdict.zone-none strong { color: #fff; }
.ref-list { display: grid; gap: 10px; font-size: 14px; }
.ref-item { background: var(--ink-800); border: 1px solid var(--ink-700); border-radius: 10px; padding: 12px 14px; }
.ref-item b { color: #fff; }
.ref-item a { color: #FF9BAA; }
.ref-item p { margin: 4px 0 0; color: rgba(255, 255, 255, .72); }
.msg-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.msg-list li { padding: 10px 12px; border-radius: 8px; background: var(--ink-800); border-left: 3px solid var(--gray-500); color: rgba(255, 255, 255, .85); }
.msg-list li.msg-warn { border-left-color: #FBBF24; }
.msg-list li.msg-stop { border-left-color: #FF5A72; }
.results__disclaimer { font-size: 13px; color: rgba(255, 255, 255, .7); border-top: 1px solid var(--ink-700); padding: 18px 24px; background: var(--ink-900); }
.results__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.empty-state { color: rgba(255, 255, 255, .7); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: rgba(255, 255, 255, .72); padding: 72px 0 0; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer__brand p { margin-top: 18px; max-width: 360px; }
.site-footer__title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; padding-bottom: 28px; font-size: 13px; }
.site-footer__legal p { margin: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .eco-orbit, .eco-node, .eco-star__core { animation: none; }
  .btn, .card { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.text-center { text-align: center; }
.muted { color: var(--gray); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Division color themes ----------
   Thermal · Heating uses the brand red (default).
   Thermal · Cooling uses blues: they replace the accent variables on cooling pages.
   The ECC Universe logo keeps its original colors everywhere. */
.theme-cool {
  --red: #0057B8;
  --red-700: #00428C;
  --red-50: #E6F4FB;
  --cool-light: #4FC3F7;
}
.theme-cool .site-header--division { border-bottom-color: var(--cool-light); }
.theme-cool .site-header--division .logo__rule { background: var(--cool-light); }
.theme-cool .hero--division .hero__bg::after { background: linear-gradient(90deg, rgba(18, 20, 23, .95) 0%, rgba(10, 40, 80, .82) 50%, rgba(79, 195, 247, .28) 100%); }
.theme-cool .hero .eyebrow, .theme-cool .section--dark .eyebrow { color: var(--cool-light); }
.theme-cool .btn--primary:hover { box-shadow: 0 6px 18px rgba(0, 87, 184, .3); }

/* Branch cards on the Thermal overview: each one in its branch color */
.branch-card { border-top: 4px solid var(--branch, var(--red)); }
.branch-card .tag { color: var(--branch, var(--red)); }
.branch-card--cool { --branch: #0057B8; }
.branch-card--heat { --branch: #C8102E; }
.branch-card .btn--primary { background: var(--branch); }
.branch-card .btn--primary:hover { filter: brightness(.9); background: var(--branch); }

/* ---------- Division identity (variables come from assets/css/divisions.css) ---------- */
.site-header--division .logo__rule { background: var(--planet, var(--red)); }
.div-electrical .hero--division .hero__bg::after,
.div-engineering .hero--division .hero__bg::after,
.div-commerce .hero--division .hero__bg::after,
.div-logistics .hero--division .hero__bg::after,
.div-technologies .hero--division .hero__bg::after,
.div-ventures .hero--division .hero__bg::after,
.div-capital .hero--division .hero__bg::after { background: linear-gradient(90deg, rgba(18, 20, 23, .95) 0%, rgba(18, 20, 23, .82) 50%, rgba(var(--planet-rgb), .3) 100%); }
.btn--primary:hover { box-shadow: 0 6px 18px rgba(var(--planet-rgb, 200, 16, 46), .3); }

/* ---------- Divisions menu (header) ---------- */
.div-menu { position: relative; }
.div-menu__toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 0; font: 500 15px/1 var(--font); color: inherit; cursor: pointer; border-bottom: 2px solid transparent; }
.site-header--overlay .div-menu__toggle, .site-header--division .div-menu__toggle { color: #fff; }
.div-menu__toggle:hover, .div-menu.is-open .div-menu__toggle { border-bottom-color: var(--red); }
.div-menu__caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.div-menu.is-open .div-menu__caret { transform: translateY(2px) rotate(-135deg); }
.div-menu__panel { position: absolute; top: calc(100% + 14px); right: -40px; width: 380px; background: var(--ink); border: 1px solid var(--ink-700); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 10px; z-index: 60; }
.div-menu__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-nav .div-menu__panel li a { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: #fff; text-decoration: none; font-size: 15px; border: 0; }
.site-nav .div-menu__panel li a:hover, .site-nav .div-menu__panel li a[aria-current="true"] { background: var(--ink-800); }
.div-menu__dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--red)); box-shadow: 0 0 10px rgba(var(--c-rgb, 200, 16, 46), .7); flex: none; }
.div-menu__status { font-size: 12px; color: rgba(255, 255, 255, .7); }
.div-menu__name { font-weight: 600; }
.site-nav .div-menu__all { display: block; margin-top: 6px; padding: 10px 12px; border-top: 1px solid var(--ink-700); border-bottom: 0; font-size: 14px; font-weight: 600; color: #FF5A72; text-decoration: none; }
.site-nav .div-menu__all:hover { text-decoration: underline; border-bottom: 0; }
@media (max-width: 1020px) {
  .div-menu__toggle { padding: 14px 0; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--ink); }
  .site-header--overlay .div-menu__toggle, .site-header--division .div-menu__toggle { border-bottom-color: rgba(255, 255, 255, .12); }
  .div-menu__panel { position: static; width: auto; box-shadow: none; margin-top: 8px; }
}

/* ---------- Universe: colored planets, connections and selection ---------- */
.eco-line { stroke: var(--c); stroke-opacity: .3; transition: stroke-opacity .25s, stroke-width .25s; }
.eco-line.is-hover, .eco-line.is-selected { stroke-opacity: .95; stroke-width: 2.2; }
.eco-node__halo { fill: var(--c); opacity: .14; transition: opacity .25s; }
.eco-node:hover .eco-node__halo, .eco-node.is-selected .eco-node__halo { opacity: .4; }
.eco-node.is-selected .eco-node__planet { stroke: #fff; stroke-width: 3; }
.eco-hemi { cursor: pointer; outline: none; }
.eco-hemi:hover .eco-node__planet, .eco-hemi:focus-visible .eco-node__planet, .eco-hemi.is-selected .eco-node__planet { stroke: #fff; stroke-width: 3; }
.eco-star.is-selected .eco-star__core { r: 12; stroke-width: 3; animation: none; }
.ecosystem.has-selection .eco-orbit, .ecosystem.has-selection .eco-node { animation-play-state: paused; }
.eco-parallax { transition: transform .4s ease-out; }

.eco-panel { --panel-color: #FF5A72; border: 1px solid var(--ink-700); border-left: 4px solid var(--panel-color); background: var(--ink-800); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 16px; min-height: 196px; }
.eco-panel .eyebrow { color: var(--panel-color); margin-bottom: 8px; }
.eco-panel__title { color: #fff; font-size: 1.4rem; margin: 0 0 6px; }
.eco-panel__identity { color: rgba(255, 255, 255, .8); font-weight: 600; margin: 0 0 10px; }
.eco-panel__pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.eco-panel__text { color: rgba(255, 255, 255, .8); font-size: 15px; }
.ecosystem__list li { border-left: 3px solid var(--c, var(--ink-700)); }

/* ---------- Status pills ---------- */
.pill--operational { background: var(--ok-50); color: var(--ok); }

/* ---------- Division cards with their color ---------- */
.division-card { border-top: 4px solid var(--c, var(--line)); }
.division-card .division-card__head { align-items: flex-start; }
.division-card__planet { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), var(--c) 30%, rgba(0, 0, 0, .35) 120%), var(--c); box-shadow: 0 0 0 5px rgba(var(--c-rgb), .14); }
.division-card__pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.division-card__identity { color: var(--c-ink); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.division-card .link-arrow { color: var(--c-ink); }
.division-card--priority { box-shadow: 0 0 0 1px var(--c) inset; border-color: var(--c); }

/* ---------- Division landing: planet hero ---------- */
.hero--planet { background: radial-gradient(ellipse at 78% 45%, rgba(var(--planet-rgb), .22), transparent 55%), radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .05) 1px, transparent 1.5px) 0 0 / 34px 34px, var(--ink); }
.planet-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; }
.hero--planet .hero__content { padding: 72px 0 88px; }
.planet-hero__art { display: grid; place-items: center; }
.planet-art { width: min(420px, 100%); height: auto; animation: float 9s ease-in-out infinite; }
.planet-hero__pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 860px) { .planet-hero { grid-template-columns: 1fr; } .planet-hero__art { order: -1; padding-top: 32px; } .planet-art { width: 240px; } .hero--planet .hero__content { padding: 16px 0 64px; } }
@media (prefers-reduced-motion: reduce) { .planet-art { animation: none; } }

.focus-card .tag { color: var(--accent-ink, var(--red)); }
.focus-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--accent-ink, var(--red)); background: var(--red-50); margin-bottom: 14px; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery__item { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__item figcaption { padding: 10px 14px; font-size: 13px; color: rgba(255, 255, 255, .8); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

.planet-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.planet-chips a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ink-700); background: var(--ink-800); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; transition: border-color .2s; }
.planet-chips a:hover { border-color: var(--c); color: #fff; }
.planet-chips__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px rgba(var(--c-rgb), .7); }

.pager--stack { grid-template-columns: 1fr; margin-top: 16px; }
.site-footer__slogan { color: #fff; font-weight: 600; margin-top: 18px; margin-bottom: 8px; }
.site-footer__divisions a { display: inline-flex; align-items: center; gap: 10px; }

/* Thermal hero: transparent branch buttons that fill with their branch color on hover/focus */
.btn--branch { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--heat:hover, .btn--heat:focus-visible { background: #C8102E; border-color: #C8102E; color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 46, .35); }
.btn--cool:hover, .btn--cool:focus-visible { background: #0057B8; border-color: #4FC3F7; color: #fff; box-shadow: 0 6px 18px rgba(0, 87, 184, .4); }
