/* Shared type and spacing roles for the approved homepage. Layout, media and
   interaction styles remain owned by their section stylesheets. */
.home-rhythm {
  --page-section-space:80px;
  --page-intro-space:40px;
  --page-column-gap:clamp(32px,4.5vw,64px);
  --page-h2:38px;
  --page-body:16px;
  --page-detail:14px;
  --page-caption:12px;
  --page-row-space:20px;
}
.home-rhythm main>.content-section {padding-block:var(--page-section-space)}
.home-rhythm #napravleniya {padding-bottom:var(--page-section-space)}
.home-rhythm :is(#manufacturing,#ai,#it,#energy,#electronics,#projects) .section-intro,
.home-rhythm #company .company-intro {margin-bottom:var(--page-intro-space);column-gap:var(--page-column-gap)}
.home-rhythm :is(#napravleniya,#manufacturing,#ai,#it,#energy,#electronics,#projects) .section-intro h2,
.home-rhythm #company #company-title,.home-rhythm #request #request-title {
  font-size:var(--page-h2);line-height:1.2;letter-spacing:-.025em;
  font-weight:600;overflow-wrap:normal;word-break:normal;
}
.home-rhythm main>section:not(.hero) .eyebrow {font-size:var(--page-caption);line-height:1.5;letter-spacing:.09em;margin-bottom:12px}
.home-rhythm :is(#napravleniya,#manufacturing,#ai,#it,#energy,#electronics,#projects) .section-intro>p,
.home-rhythm :is(#napravleniya,#manufacturing,#ai,#it,#energy,#electronics,#projects) .section-intro>div>p:not(.eyebrow),
.home-rhythm #company .closing-lead,.home-rhythm #request .closing-lead {font-size:var(--page-body);line-height:1.65}
.home-rhythm :is(#napravleniya,#manufacturing) .image-note,
.home-rhythm #it figcaption,.home-rhythm #electronics figcaption,
.home-rhythm #energy .energy-media-note,.home-rhythm #projects figcaption {
  font-size:var(--page-caption);line-height:1.5;
}
.home-rhythm :is(#napravleniya,#manufacturing) .text-link,
.home-rhythm #napravleniya .direction-band a,
.home-rhythm :is(#it,#energy,#electronics,#projects) .section-intro a,
.home-rhythm #company :is(.closing-link,.company-document-link),
.home-rhythm #company .competency-links .closing-link {font-size:var(--page-detail);line-height:1.5;min-height:44px}

/* Engineering rail: retain all ten topics and the two scope columns. */
.home-rhythm #napravleniya .direction-nav button {font-size:var(--page-detail);padding-block:15px}
.home-rhythm #napravleniya :is(.direction-choice-label,.side-heading) {font-size:var(--page-caption);line-height:1.5}
.home-rhythm #napravleniya .installation-scope li {font-size:var(--page-detail);line-height:1.6}
.home-rhythm #napravleniya .installation-scope ul {gap:12px}
.home-rhythm #napravleniya .feature>p:not(.eyebrow):not(.image-note) {font-size:15px;line-height:1.65}
.home-rhythm #napravleniya .feature .image-note {margin-bottom:20px}
.home-rhythm #napravleniya .direction-band {padding-top:20px}
.home-rhythm #napravleniya .direction-band p {font-size:var(--page-detail);line-height:1.6}

/* Product directory: use readable specifications in a tighter row rhythm. */
.home-rhythm #manufacturing {--equipment-gap:var(--page-column-gap)}
.home-rhythm #manufacturing .equipment-heading {font-size:var(--page-caption);padding-bottom:12px}
.home-rhythm #manufacturing .equipment-list>:is(a,button) {min-height:84px;padding-block:16px;row-gap:5px}
.home-rhythm #manufacturing .equipment-list strong {font-size:18px;line-height:1.4}
.home-rhythm #manufacturing .equipment-list span {font-size:15px;line-height:1.5;color:#344e63}
.home-rhythm #manufacturing .production-lead h3 {font-size:24px;line-height:1.35}
.home-rhythm #manufacturing .production-lead>p:not(.image-note) {font-size:var(--page-body);line-height:1.65}
.home-rhythm #manufacturing .production-lead .image-note {margin-bottom:20px}
.home-rhythm #manufacturing .equipment-specs {margin-block:20px 12px;padding-block:16px}
.home-rhythm #manufacturing .equipment-specs dt {font-size:13px;line-height:1.5;margin-bottom:6px}
.home-rhythm #manufacturing .equipment-specs dd {font-size:15px;line-height:1.5}

/* Preserve the animated engineering diagram and its deliberately dark palette. */
.home-rhythm #ai .ai-grid {gap:var(--page-column-gap)}
.home-rhythm #ai .ai-points {gap:20px;margin-bottom:24px}
.home-rhythm #ai .ai-points h3 {font-size:18px;line-height:1.4}
.home-rhythm #ai .ai-points p {font-size:15px!important;line-height:1.65}
.home-rhythm #ai .ai-control-note {font-size:var(--page-detail)!important;line-height:1.65}
.home-rhythm #ai .small-note {font-size:13px!important;line-height:1.6}
.home-rhythm #ai .ai-motion-toggle {font-size:var(--page-detail)}

/* Shared editorial spacing, without turning the sections into identical grids. */
.home-rhythm #it .it-offer h3,.home-rhythm #energy .energy-copy h3 {font-size:24px;line-height:1.3}
.home-rhythm #it .it-description,.home-rhythm #energy .energy-copy p {font-size:15px;line-height:1.65}
.home-rhythm #it .it-offer h3 {min-height:0}
.home-rhythm #it .it-description {min-height:0;margin-top:8px;color:#344e63}
.home-rhythm #it .it-scope li {font-size:15px;line-height:1.65;color:#455e74}
.home-rhythm #it .it-scope {gap:10px;margin-top:16px;padding-top:16px}
.home-rhythm #it .it-project-note {margin-top:32px;padding-top:16px;font-size:var(--page-detail)}
@media(min-width:1101px),(max-width:700px){.home-rhythm #it figure {margin-bottom:16px}}
.home-rhythm #energy .energy-copy {padding-top:22px;padding-bottom:20px}
.home-rhythm #energy .energy-copy p {margin-bottom:20px}
.home-rhythm #energy .energy-notes {margin-top:28px;padding-top:16px}
.home-rhythm #energy .energy-project-note {font-size:var(--page-detail)}
.home-rhythm #electronics {padding-top:0}
.home-rhythm #electronics>.wrap {padding-top:48px}
.home-rhythm #electronics>.wrap {border-top-color:#b9cad7}
.home-rhythm #electronics .electronics-grid {column-gap:var(--page-column-gap)}
.home-rhythm #electronics .electronics-scopes article {padding-block:20px}
.home-rhythm #electronics .electronics-scopes article:first-child {padding-top:0}
.home-rhythm #electronics .electronics-scopes p {margin-top:10px;line-height:1.65}
.home-rhythm #electronics .electronics-result {margin-top:24px;padding-top:20px}
.home-rhythm #electronics .electronics-request {margin-top:24px}
.home-rhythm #electronics .electronics-request p {font-size:var(--page-detail);line-height:1.6;margin-top:12px}

/* Keep the project rail, case dialogs and five company competencies intact. */
.home-rhythm #projects .project-sector {font-size:var(--page-caption)!important;letter-spacing:.05em}
.home-rhythm #projects .project-classification {gap:4px;margin-bottom:12px}
.home-rhythm #projects .project-area {margin-block:14px 22px}
.home-rhythm #projects .project-area dt,.home-rhythm #projects .project-dialog-facts dt {font-size:13px}
.home-rhythm #projects .project-copy {padding-top:20px;padding-bottom:20px}
.home-rhythm #company {--closing-column-gap:var(--page-column-gap);--company-row-space:var(--page-row-space)}
.home-rhythm #company .company-competency>p {margin-top:10px;font-size:15px;line-height:1.65}
.home-rhythm #company .company-competency .competency-proof {font-size:var(--page-detail);line-height:1.6}
.home-rhythm #company .company-project figcaption {padding-top:20px}
.home-rhythm #company .company-documents {margin-top:28px;padding-top:24px}
.home-rhythm #company .document-type {font-size:var(--page-caption)}
.home-rhythm #company .company-documents>p {font-size:var(--page-detail);line-height:1.65}
.home-rhythm #request .closing-lead {margin-block:20px}
.home-rhythm #request .request-hint {font-size:var(--page-detail);line-height:1.6;margin-top:12px}
.home-rhythm .footer-grid>div {font-size:var(--page-detail);gap:10px}
.home-rhythm .footer-grid>div>a {min-height:28px;display:flex;align-items:center}
.home-rhythm .footer-bottom {font-size:var(--page-caption)}

@media(min-width:701px) and (max-width:900px){
  .home-rhythm #it .it-intro {grid-template-columns:minmax(0,1fr);row-gap:20px}
  .home-rhythm #it .it-intro>div:last-child {padding-top:0}
}
@media(max-width:1100px){
  .home-rhythm {--page-section-space:64px;--page-h2:32px;--page-column-gap:32px;--page-body:15px}
  .home-rhythm #manufacturing .equipment-list>:is(a,button) {min-height:76px}
  .home-rhythm #manufacturing .equipment-specs dt {margin-bottom:0}
}
@media(max-width:700px){
  .home-rhythm {--page-section-space:56px;--page-intro-space:32px;--page-h2:28px;--page-row-space:18px}
  .home-rhythm #napravleniya {padding-top:56px}
  .home-rhythm #manufacturing .production-grid {gap:28px}
  .home-rhythm #manufacturing .production-lead h3 {font-size:22px}
  .home-rhythm #manufacturing .equipment-mobile-select {font-size:var(--page-detail)}
  .home-rhythm #manufacturing .equipment-mobile-select select {font-size:var(--page-detail)}
  .home-rhythm #it .it-offers {gap:32px}
  .home-rhythm #it .it-offer h3,.home-rhythm #energy .energy-copy h3 {font-size:22px}
  .home-rhythm #electronics>.wrap {padding-top:40px}
  .home-rhythm #electronics .electronics-grid {row-gap:28px}
  .home-rhythm #company .company-evidence-grid {gap:32px}
  .home-rhythm #company .company-project h3,.home-rhythm #company .company-documents h3,.home-rhythm #company .company-competency h3 {font-size:20px}
  .home-rhythm .footer {padding-top:48px}
}
@media(max-width:350px){
  /* The longest approved word must fit without arbitrary character breaks. */
  .home-rhythm #electronics .section-intro h2 {font-size:26px}
}
@media(max-width:380px){.home-rhythm #projects .project-open{max-width:100%;overflow-wrap:anywhere}}

/* Clarify selection versus navigation without changing the approved grid. */
.home-rhythm #manufacturing .equipment-list>button .equipment-arrow {display:none}
.home-rhythm #manufacturing .equipment-list>button::after {content:"";grid-column:2;grid-row:1/3;align-self:center;justify-self:center;width:10px;height:10px;border:1px solid #52718a;border-radius:50%;transition:background var(--motion-fast),border-color var(--motion-fast)}
.home-rhythm #manufacturing .equipment-list>button[aria-pressed="true"] {background:#d9e8f4;box-shadow:inset 4px 0 var(--blue)}
.home-rhythm #manufacturing .equipment-list>button[aria-pressed="true"]::after {background:var(--blue);border-color:var(--blue)}
.home-rhythm #manufacturing .equipment-title-link {display:inline-grid;grid-template-columns:minmax(0,1fr) 22px;column-gap:12px;row-gap:7px;align-items:center}
.home-rhythm #manufacturing .equipment-title-link .equipment-link-hint {grid-column:1 / -1;font-size:14px;line-height:1.5;letter-spacing:0;font-weight:600;color:#00579d;text-decoration:none}
.home-rhythm #manufacturing .equipment-title-link:is(:hover,:focus-visible) .equipment-link-hint {text-decoration:underline;text-underline-offset:3px}
.home-rhythm main .text-link:is(:hover,:focus-visible) {text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.home-rhythm :is(#napravleniya,#manufacturing) {--muted:#455e74}
.home-rhythm #napravleniya .direction-choice-label,.home-rhythm #manufacturing .equipment-heading {color:#314d64;font-weight:700;letter-spacing:.04em}
.home-rhythm #manufacturing .production-lead .image-note,.home-rhythm #napravleniya .feature .image-note {margin-bottom:16px}
@media(prefers-reduced-motion:reduce){.home-rhythm #manufacturing .equipment-list>button::after{transition:none}}

/* Editorial rhythm and readable hierarchy across content sections. */
.home-rhythm :is(#it,#energy,#electronics,#projects) {--muted:#455e74}
.home-rhythm :is(#it,#energy,#electronics,#projects) .section-intro>div>p:not(.eyebrow) {color:#344e63}
.home-rhythm #napravleniya .section-intro>p,
.home-rhythm #manufacturing .section-intro>div>p:not(.eyebrow) {color:#344e63}
@media(min-width:701px){
  .home-rhythm :is(#napravleniya,#manufacturing) .section-intro {
    grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);
    column-gap:var(--page-column-gap);
  }
}
.home-rhythm :is(#it,#electronics) figcaption,.home-rhythm #energy .energy-media-note {color:#52687a}
.home-rhythm #ai {padding-block:64px}
.home-rhythm #ai .ai-section-intro {margin-bottom:32px}
.home-rhythm #energy .energy-copy h3 {min-height:0}
.home-rhythm #energy .energy-copy p {margin:10px 0 16px;color:#d6e2ea}
.home-rhythm #energy .energy-media-intro {max-width:none;margin:-16px 0 16px;font-size:12px;line-height:1.5;color:#52687a}
.home-rhythm #energy .energy-media-intro {color:#40566a}
.home-rhythm :is(#ai,#it,#energy,#electronics) .button {min-height:58px;gap:24px;font-size:14px}
.home-rhythm #it .section-intro .button {min-height:58px}
@media(max-width:360px){.home-rhythm #it .section-intro .button {gap:8px}}
@media(max-width:700px){.home-rhythm #ai{padding-block:56px}}

/* Tighter mobile rhythm in the three longest sections; content and tap targets remain intact. */
@media(max-width:700px){
  .home-rhythm :is(#ai,#it,#energy){padding-block:48px}
  .home-rhythm :is(#ai,#it,#energy) .section-intro{margin-bottom:28px}
  .home-rhythm #ai .ai-mobile-core{width:134px;min-height:134px}
  .home-rhythm #ai .ai-connector{height:32px}
  .home-rhythm #ai .ai-diagram-restored figcaption{margin-top:12px}
  .home-rhythm #it .it-offers{gap:28px}
  .home-rhythm #it .it-project-note{margin-top:24px}
  .home-rhythm #energy .energy-offers{row-gap:16px}
  .home-rhythm #energy .energy-notes{margin-top:24px}
}


/* Keep the approved homepage navigation visible while scrolling. */
body.home.home-rhythm::before { content: none !important; }
body.home.home-rhythm .site-head { position: sticky; top: 0; z-index: 100; }
body.home.home-rhythm :is(section[id], main[id]) { scroll-margin-top: 148px; }
body.home.home-rhythm .skip:focus { z-index: 110; }
@media (max-width: 1100px) {
  body.home.home-rhythm :is(section[id], main[id]) { scroll-margin-top: 80px; }
  body.home.home-rhythm .nav-row.is-open { max-height: calc(100vh - 72px); overflow-y: auto; overscroll-behavior: contain; }
}

/* Keep anchored headings and sticky equipment clear of the header. */
body.home.home-rhythm #napravleniya { scroll-margin-top: 148px; }
body.home.home-rhythm #manufacturing .production-lead { top: 148px; }
@media (max-width: 1100px) {
  body.home.home-rhythm #napravleniya { scroll-margin-top: 80px; }
  body.home.home-rhythm #manufacturing .production-lead { top: 80px; }
  body.home.home-rhythm .nav-row.is-open { max-height: calc(100dvh - 72px); }
}

/* Prevent the theme overflow rule from trapping the sticky header. */
body.home.home-rhythm { overflow-x: clip; overflow-y: visible; }

/* The theme resets top with !important; keep the header at the viewport edge. */
body.home.home-rhythm .site-head { top: 0 !important; }
