html:has(.home-single) { scroll-padding-top: 80px; }
.cockpit-classic.home-single .workspace {
  --home-max: 1176px;
  --home-gutter: clamp(12px, 3vw, 32px);
  --home-width: min(var(--home-max), calc(100% - 2 * var(--home-gutter)));
  margin-left: 0;
}
.cockpit-classic.home-single .content-layout { max-width: none; padding: 0; }
.cockpit-classic.home-single #main { padding: 0; }
.home-single #main > :not(#overview, .home-statement-band, #works, .personal-about, .home-footer) {
  width: var(--home-width);
  margin-inline: auto;
}
.home-single #main :is(section, details) { scroll-margin-top: 0; }
.cockpit-classic.home-single .personal-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  min-height: 0;
  padding: 0 var(--home-gutter);
}
.home-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 18px;
  max-width: var(--home-max);
  min-height: 72px;
  margin-inline: auto;
  padding-block: 8px;
}
.cockpit-classic.home-single .workspace-title {
  display: block;
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}
.home-nav { display: flex; justify-content: center; gap: clamp(16px, 3vw, 40px); }
.home-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--home-light-text);
  font-size: 15px;
  font-weight: 500;
}
.home-nav a:is(:hover, :focus-visible, :first-child), .home-nav .home-management-link { color: var(--home-action); }
.home-nav .home-management-link { font-weight: 700; }
.home-header-about {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--home-action);
  font-size: 15px;
  font-weight: 700;
}
.home-header-about:hover { text-decoration: underline; }
.home-single .home-header-inner .top-actions { margin-left: auto; }
.home-statement-band { position: relative; z-index: 5; background: #354781; }
.home-single .personal-statement {
  width: var(--home-width);
  min-height: 30px;
  margin-inline: auto;
  padding: 1px 0;
  border: 0;
  gap: 8px;
}
.home-single .statement-symbol { color: #dce5ff; font-size: 14px; }
.home-single .statement-copy { color: #f5f7ff; font-size: 12px; line-height: 1.45; }
.home-single .statement-copy .statement-blue { color: #c5dbff; }
.home-single .statement-copy .statement-teal { color: #b0f4e4; }
.home-single .statement-copy .statement-purple { color: #ecd6ff; }
.home-single .statement-copy .statement-amber { color: #ffe0ab; }
.home-single .statement-full-toggle {
  min-height: 26px;
  padding: 1px 8px;
  border-color: #b8c5fc66;
  background: #ffffff18;
  color: #fff;
}
.home-single .statement-full-toggle:hover { background: #ffffff28; }
.home-single .statement-full-panel { width: min(900px, 100%); }

.cockpit-classic.home-single #overview {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: radial-gradient(ellipse at 78% 28%, #d3ddff, transparent 57%),
    linear-gradient(118deg, #f7f9ff, #e7edff 56%, #eee8ff);
}
.home-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  width: var(--home-width);
  margin-inline: auto;
  padding-block: clamp(26px, 4vw, 54px);
  gap: clamp(22px, 3.4vw, 48px);
}
.home-feature-badge {
  display: inline-block;
  padding: 5px 13px;
  margin-bottom: 15px;
  border: 1px solid #c8d1f7;
  border-radius: 999px;
  background: #fff;
  color: #425ab2;
  font-size: 13px;
  font-weight: 700;
}
.cockpit-classic.home-single .home-feature-title {
  margin: 0;
  color: #1e3058;
  font-size: clamp(33px, 4.1vw, 56px);
  line-height: 1.14;
  font-weight: 850;
  letter-spacing: -0.035em;
}
.home-feature-title span { display: block; color: #4f54ad; }
.home-feature-summary {
  max-width: 34ch;
  margin: 17px 0 24px;
  color: #4b6085;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
}
.home-feature-actions { display: flex; flex-wrap: wrap; gap: 9px 12px; }
.home-feature-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px clamp(12px, 1.6vw, 24px);
  border: 1px solid #555db8;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}
.home-feature-actions .home-feature-primary {
  color: #fff;
  background: #4e57b6;
  box-shadow: 0 5px 12px #4b56aa36;
}
.home-feature-actions .home-feature-secondary { color: #414c9b; background: #fff9; }
.home-feature-actions .home-feature-primary:hover { background: #4049a5; }
.home-feature-actions .home-feature-secondary:hover { background: #fff; }
.home-feature-stats {
  display: flex;
  align-items: start;
  gap: clamp(10px, 2.4vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.5;
}
.home-feature-stats strong {
  display: block;
  color: var(--home-action);
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.home-office {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 1px solid #ced7ed;
  border-radius: 16px;
  overflow: hidden;
  background: #fbfcff;
  box-shadow: 0 14px 32px #3a4b8b29;
}
.home-office-visual { position: relative; }
.home-office-visual .scene-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.home-office-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}
.home-office.is-playing .home-office-flow { opacity: 1; }
.office-signal-line {
  fill: none;
  stroke: var(--signal-color);
  stroke-width: 3;
  stroke-dasharray: 8 10;
  stroke-linecap: round;
  opacity: .62;
}
.office-signal-dot {
  fill: var(--signal-color);
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 0 7px var(--signal-color));
}
.office-decision-ring {
  fill: #7778ed17;
  stroke: #6d66d7;
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  opacity: .6;
}
.home-office.is-playing .office-decision-ring { animation: office-decision-pulse 2.8s ease-out infinite; }
.home-office[data-stage="0"] .office-signal-line { opacity: .36; }
.home-office[data-stage="3"] .office-signal-line { stroke-dasharray: 5 8; }
@keyframes office-decision-pulse {
  from { transform: scale(.9); opacity: .78; }
  to { transform: scale(1.25); opacity: .15; }
}
.home-office-controls { position: absolute; inset: 0 0 auto auto; display: flex; gap: 4px; }
.home-office-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: #fffc;
  color: var(--home-action);
  cursor: pointer;
}
.home-office-controls button:hover, .home-office-controls button:focus-visible {
  background: var(--home-soft);
}
#motion-toggle::before {
  content: "";
  box-sizing: border-box;
  width: 9px;
  height: 12px;
  border-inline: 2px solid currentColor;
}
#motion-toggle[aria-pressed="true"]::before {
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-left: 9px solid currentColor;
  border-right: 0;
}
.home-single .infographic-overview { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.home-single #main > .infographic-overview { margin-top: 24px; }
.home-single .infographic-overview h2 br { display: none; }
.home-single .infographic-window { display: block; width: 100%; height: auto; }
.home-single .personal-work-scene { width: 100%; height: auto; }
.home-single img[data-preview-src]:not([src]) { visibility: hidden; }
.home-single .quiet-support[open] .quiet-support-content { display: block; }
.home-single .quiet-support[open] .insights { margin-top: 14px; }

/* The category itself spans the screen; the headers and grids share the old content measure. */
.cockpit-classic.home-single #works {
  --work-inset: 18px;
  --category-inset: 18px;
  padding-inline: 0;
  background: var(--major-background);
}
.home-single #works::before { content: none; }
.home-single #works > :not(#works-grid) {
  width: calc(var(--home-width) - 2 * var(--work-inset));
  margin-inline: auto;
}
.home-single #works .works-toolbar { gap: 8px 12px; }
.home-single #works-total { margin-inline-start: auto; }
.home-single #works .product-category {
  margin: 0;
  padding-block: clamp(19px, 3vw, 38px);
  padding-inline: calc((100% - var(--home-width)) / 2 + var(--work-inset) + var(--category-inset));
  border: 0;
  border-top: 1px solid var(--theme-border);
  border-radius: 0;
  box-shadow: none;
}
.home-single #works .product-category[data-category="automation"] { --theme-bg: #fff; }
.home-single #works .product-category[data-category="data"] {
  --theme-bg: #fff3e0;
  --theme-border: #eed8b9;
}
.home-single #works .product-category[data-category="scripts"] { --theme-bg: #faf8ff; }
.home-single #works > .catalog-note { margin-top: 13px; }
.management-preview {
  max-width: 850px;
  margin: 0 auto 18px;
}
.management-preview h2 { color: #663411; font-size: clamp(19px, 3vw, 27px); line-height: 1.3; }
.management-preview p { color: #674c36; font-size: 14px; margin: 8px 0 16px; }
.management-cover {
  display: block;
  overflow: hidden;
  border: 1px solid #e4cdad;
  border-radius: 12px;
  background: #fffaf2;
  color: #663411;
}
.management-cover img { display: block; width: 100%; height: auto; }
.management-cover > span {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  font-weight: 800;
}
.management-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.management-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e6d3b9;
  border-radius: 8px;
  color: #663411;
  background: #fffaf2;
  font-weight: 650;
}
.management-cover:hover, .management-links a:hover { border-color: #ae7c42; background: #ffedcc; }

.cockpit-classic.home-single #main > .personal-about {
  width: 100%;
  margin: 32px 0 0;
  padding: clamp(24px, 4vw, 48px) max(var(--home-gutter), calc((100% - var(--home-max)) / 2));
  border-inline: 0;
  border-radius: 0;
  box-shadow: none;
}
.home-single #main > .home-footer {
  display: block;
  width: 100%;
  margin: 0;
  padding: clamp(28px, 4.2vw, 60px) 0 0;
  border: 0;
}
.home-footer-inner { width: var(--home-width); margin-inline: auto; }
.home-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(85px, max-content) minmax(100px, max-content);
  gap: 20px clamp(24px, 6vw, 80px);
  padding-block-end: 40px;
  border-bottom: 1px solid #ffffff28;
}
.home-footer-brand strong { display: block; font-size: 20px; }
.home-footer-brand span { display: block; margin-top: 8px; opacity: .78; font-size: 14px; }
.home-footer-links { display: grid; align-content: start; gap: 8px; }
.home-footer-links strong { margin-bottom: 4px; font-size: 14px; }
.home-footer .home-footer-links a { width: fit-content; font-size: 13px; opacity: .8; }
.home-single #main > .home-footer a:hover { color: #ffc488; text-decoration: underline; }
.home-single #main > .home-footer :focus-visible { outline-color: #fff; }
.home-footer-bottom {
  padding-block: 20px;
  font-size: 13px;
  text-align: center;
}
.home-footer-bottom p { margin-bottom: 4px; }
.home-footer-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; opacity: .8; }
.home-footer-bottom .home-theme-switch { margin-top: 12px; }
@media (max-width: 600px) {
  .home-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  html:has(.home-single) { scroll-padding-top: 100px; }
  .home-header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; }
  .home-header-about { grid-area: 1 / 2; font-size: 14px; }
  .home-nav { grid-column: 1 / -1; justify-content: space-between; gap: 5px; }
  .home-single .home-header-inner .top-actions { display: none; }
  .home-nav a { min-height: 33px; font-size: 13px; }
  .home-feature-stats strong { font-size: 22px; }
  .home-banner-inner { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 19px 15px; }
  .cockpit-classic.home-single .home-feature-title { font-size: clamp(31px, 6.2vw, 44px); }
  .home-feature-badge { margin-bottom: 10px; }
  .home-feature-summary { margin-block: 10px 13px; }
  .home-architecture-link { margin-top: 3px; }
  .cockpit-classic.home-single #works { --work-inset: 10px; --category-inset: 10px; }
}
@media (max-width: 420px) {
  .cockpit-classic.home-single .workspace-title { font-size: 17px; }
}
