/*
Theme Name: Creative Technology
Author: Creative Technology
Description: Profesjonalny motyw B2B — automatyka przemysłowa od projektu do uruchomienia.
Version: 2.1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: createch
*/

:root {
    --navy: #1e3a5f;
    --deep: #142d4b;
    --orange: #f97316;
    --muted: #586a7c;
    --line: #dce3e9;
    --pale: #f3f6f8;
    --white: #fff;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --section-space: clamp(3.5rem, 7.5vw, 6.75rem);
    --column-gap: clamp(2rem, 5.5vw, 5.5rem);
    --header-height: 6rem;
    --admin-offset: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--admin-offset) + 1rem); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { color: var(--white); background: var(--navy); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, svg { max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.16; text-wrap: balance; }
h1, h2 { letter-spacing: -.045em; }
h2 { max-width: 24ch; font-size: clamp(1.875rem, 1.125rem + 2vw, 3rem); font-weight: 600; }
p { color: var(--muted); }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
main:focus { outline: none; }
main [id], main, #top { scroll-margin-top: var(--admin-offset); }
[hidden] { display: none !important; }
.container { width: min(1280px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(1rem, 2vw, 1.5rem); font-size: 11px; font-weight: 700; letter-spacing: .1em; line-height: 1.6; text-transform: uppercase; }
.status-dot { flex: 0 0 6px; width: 6px; height: 6px; background: var(--orange); }
.accent { color: var(--orange); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 54px; padding: 15px 23px; font-size: 14px; font-weight: 700; line-height: 1.45; transition: background .18s, color .18s; }
.button span, .text-link span { flex-shrink: 0; font-size: 20px; font-weight: 400; }
.button-primary { background: var(--navy); color: var(--white); }
.button-primary:hover { background: var(--deep); }
.text-link { display: inline-flex; gap: 20px; align-items: center; min-height: 48px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--navy); color: var(--white); }
.skip-link:focus { top: 12px; }

/* One shared navigation: an in-flow fallback, enhanced to a mobile dropdown. */
.site-header { position: sticky; top: var(--admin-offset); z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
body.admin-bar { --admin-offset: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-height); }
.brand { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; flex-shrink: 0; }
.brand-name { font-size: clamp(1.25rem, .875rem + 1.1vw, 1.8125rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; white-space: nowrap; }
.brand-dot { color: var(--orange); }
.brand-descriptor { margin-top: 7px; font-size: 10px; line-height: 1.4; letter-spacing: .06em; }
.primary-navigation { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 35px); font-size: 13px; font-weight: 600; }
.primary-navigation a { display: flex; align-items: center; min-width: 44px; min-height: 48px; padding-block: 12px; }
.primary-navigation a:hover { text-decoration: underline; text-underline-offset: 6px; }
.primary-navigation .nav-contact { justify-content: space-between; gap: 24px; padding: 12px 20px; border: 1px solid var(--line); }
.nav-contact span { color: var(--orange); font-size: 20px; line-height: 1; }
.menu-toggle { display: none; }

/* Intro: fluid type, constrained copy and an intrinsic-size SVG. */
.hero { padding-top: clamp(2rem, 4vw, 3.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 2.2vw, 32px); }
.hero-copy { padding-block: clamp(0px, 2vw, 28px) clamp(0px, 2.5vw, 36px); }
.hero h1 { max-width: 17ch; font-size: clamp(2.25rem, 4.4vw, 4.0625rem); font-weight: 600; line-height: 1.075; }
.hero h1 > span { color: #657b90; }
.hero-description { max-width: 34rem; margin-top: clamp(22px, 2vw, 28px); font-size: clamp(1rem, .85rem + .2vw, 1.0625rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: clamp(24px, 2.2vw, 32px); }
.hero-note { margin-top: 22px; font-size: 12px; color: #586f83; }
.hero-figure { background: var(--pale); min-width: 0; }
.drawing-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 8px; color: #526a80; font-family: Consolas, 'Courier New', monospace; font-size: 10px; letter-spacing: .08em; }
.drawing-cross { font-size: 20px; }
.hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 680 / 590; }
.hero-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 11px; }
.hero-figure figcaption > span:first-child { color: #586f83; }
.hero-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-block: 24px; margin-top: clamp(28px, 3vw, 42px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-bottom > span { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.hero-bottom > div { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: 13px; }
.hero-bottom i { color: var(--orange); font-style: normal; }

/* Services keep a readable measure: 4, 2, then compact single-column cards. */
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: var(--column-gap); align-items: end; margin-bottom: clamp(28px, 3.5vw, 48px); }
.section-heading > p { max-width: 30rem; padding-bottom: 4px; font-size: 16px; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(22px, 2vw, 28px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .18s; }
.service-card:hover { background: var(--pale); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.service-number { font: 12px Consolas, 'Courier New', monospace; color: #586f83; }
.service-arrow { font-size: 24px; line-height: 1; color: #586f83; transition: color .18s, transform .18s; }
.service-card:hover .service-arrow { color: var(--orange); transform: translate(2px, -2px); }
.service-card h3 { font-size: clamp(1.125rem, 1rem + .3vw, 1.3125rem); font-weight: 600; letter-spacing: -.025em; margin-bottom: 14px; line-height: 1.3; text-wrap: initial; }
.service-card p { font-size: 14px; line-height: 1.75; margin-bottom: 24px; max-width: 38ch; }
.service-tag { margin-top: auto; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #586f83; }

/* Detailed capabilities. Grid items may shrink without clipping their content. */
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--column-gap); align-items: center; }
.section-copy { min-width: 0; }
.section-copy > p:not(.eyebrow) { margin-top: 24px; max-width: 36rem; font-size: 16px; }
.check-list { list-style: none; padding: 0; margin: 24px 0; font-size: 14px; }
.check-list li { position: relative; padding: 12px 0 12px 21px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ''; width: 5px; height: 5px; background: var(--orange); position: absolute; top: 21px; left: 0; }
.check-list .service-destination strong { display: block; font-size: 16px; line-height: 1.5; }
.check-list .service-destination > span { display: block; margin-top: 4px; }
.service-destination:target { outline: 2px solid var(--orange); outline-offset: 6px; }
.automation-section { background: var(--navy); color: var(--white); }
.automation-section p, .automation-section .eyebrow { color: #c0cfdd; }
.automation-section .check-list li { border-color: #ffffff26; color: #e2eaf0; }
.light-link span { color: var(--orange); }
.control-diagram { min-width: 0; padding: clamp(20px, 2.5vw, 36px); border: 1px solid #ffffff26; background-color: #1b3556; background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px); background-size: 24px 24px; }
.diagram-caption { display: flex; justify-content: space-between; gap: 12px; font: 10px/1.5 Consolas, 'Courier New', monospace; letter-spacing: .08em; color: #b2c4d4; }
.diagram-hmi { width: 78%; margin: 28px auto 0; border: 1px solid #7991a7; padding: 18px; background: #223f60; }
.diagram-small { display: block; color: #b2c4d4; font-size: 10px; letter-spacing: .06em; }
.diagram-hmi strong, .diagram-plc strong { display: block; margin-top: 5px; font-size: 22px; font-weight: 400; }
.hmi-bars { display: flex; align-items: flex-end; gap: 6px; height: 39px; margin-top: 9px; }
.hmi-bars i { display: block; width: 17px; min-width: 0; height: 60%; background: #7e9ab5; }
.hmi-bars i:nth-child(3n) { height: 95%; }
.hmi-bars i:nth-child(2n) { height: 75%; }
.hmi-bars i:nth-child(5) { height: 45%; background: var(--orange); }
.diagram-wire { width: 1px; height: 28px; margin: auto; background: var(--orange); }
.diagram-plc { position: relative; width: 78%; margin: auto; padding: 18px; border: 1px solid var(--orange); background: #223f60; }
.plc-led { position: absolute; right: 12px; top: 12px; width: 5px; height: 5px; background: var(--orange); }
.diagram-bus { height: 47px; position: relative; width: 72%; margin: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.diagram-bus::before { content: ''; position: absolute; top: 0; left: 50%; height: 24px; border-left: 1px solid var(--orange); }
.diagram-bus::after { content: ''; position: absolute; top: 23px; width: 100%; border-top: 1px solid #7991a7; }
.diagram-bus i { height: 24px; border-left: 1px solid #7991a7; }
.diagram-devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.diagram-devices span { border: 1px solid #7991a7; padding: 14px 4px; text-align: center; font-size: 12px; }
.diagram-bottom { border-top: 1px solid #ffffff26; padding-top: 20px; margin-top: 28px; }
.integration-panel { min-width: 0; padding: 10px clamp(20px, 2vw, 28px) 24px; background: var(--pale); border: 1px solid var(--line); }
.integration-panel .drawing-heading { padding-inline: 0; }
.integration-layers { margin: 28px 0; }
.integration-layers > div { display: flex; align-items: center; gap: 20px; padding: 22px 20px; border: 1px solid var(--line); margin-top: -1px; background: var(--white); }
.integration-layers span { font: 12px Consolas, 'Courier New', monospace; color: #586f83; }
.integration-layers strong { font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); letter-spacing: -.03em; font-weight: 400; }
.integration-layers i { font-size: 24px; margin-left: auto; font-style: normal; color: #8b9eaf; }
.integration-layers > .integration-result { margin-top: 16px; background: var(--navy); color: var(--white); border-color: var(--navy); }
.integration-result span { color: var(--orange); font-size: 22px; }
.integration-panel > p { font-size: 12px; }
.lifecycle-section { background: var(--pale); }
.lifecycle-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr) 48px; gap: clamp(24px, 3.5vw, 50px); align-items: center; padding-block: clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.lifecycle-row:last-child { border: 0; }
.lifecycle-heading { display: flex; align-items: flex-start; gap: clamp(16px, 2vw, 28px); min-width: 0; }
.lifecycle-heading > div { min-width: 0; }
.row-number { flex-shrink: 0; color: #586f83; font: 12px Consolas, 'Courier New', monospace; padding-top: 4px; }
.lifecycle-heading .eyebrow { margin-bottom: 14px; }
.lifecycle-heading h2 { font-size: clamp(1.75rem, 1.25rem + 1vw, 2.1875rem); }
.lifecycle-copy > p { font-size: 15px; }
.inline-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; list-style: none; }
.inline-tags li { font-size: 11px; border: 1px solid #cfd9e1; padding: 5px 9px; color: #536b80; }
.circle-link { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid #c7d2dc; border-radius: 50%; font-size: 24px; transition: background .18s, color .18s; }
.circle-link:hover { background: var(--navy); color: var(--white); }

/* Delivery process and technology. */
.process-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; margin: 48px 0 0; list-style: none; }
.process-steps li { position: relative; border-top: 1px solid var(--line); padding: 30px 24px 0 0; }
.process-steps li::before { content: ''; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--orange); }
.step-number { font: 12px Consolas, 'Courier New', monospace; color: #586f83; }
.process-steps h3 { font-size: 18px; font-weight: 600; margin: 18px 0 12px; text-wrap: initial; }
.process-steps p { font-size: 14px; line-height: 1.75; max-width: 48ch; }
.technology-section { border-top: 1px solid var(--line); }
.technology-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: var(--column-gap); }
.technology-grid > div > p:not(.eyebrow) { margin-top: 24px; max-width: 30rem; font-size: 16px; }
.technology-list > div { display: flex; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.technology-list > div:first-child { padding-top: 0; }
.technology-list > div > div { min-width: 0; }
.technology-code { width: 64px; height: 52px; flex-shrink: 0; display: flex; justify-content: center; align-items: center; background: var(--pale); font: 12px Consolas, 'Courier New', monospace; letter-spacing: .04em; }
.technology-list h3 { margin-bottom: 5px; font-size: 18px; font-weight: 600; text-wrap: initial; }
.technology-list p { font-size: 14px; }
.technology-list > div > span:last-child { margin-left: auto; color: #8295a6; font-size: 18px; }

/* Contact and footer: comfortable tap targets and bounded text measures. */
.contact-section { background: var(--pale); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--column-gap); align-items: center; }
.contact-grid h2 { font-size: clamp(1.875rem, 1.25rem + 1.6vw, 2.6875rem); }
.contact-grid p:not(.eyebrow) { margin-top: 24px; max-width: 34rem; font-size: 16px; }
.contact-grid p.contact-hint { font-size: 14px; color: #586f83; max-width: 30rem; }
.contact-details { min-width: 0; }
.contact-link { display: block; padding: 24px 0; border-bottom: 1px solid #c8d4de; }
.contact-label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.contact-value { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: clamp(1.125rem, 1.65vw, 1.5rem); font-weight: 500; letter-spacing: -.03em; overflow-wrap: anywhere; }
.contact-value > span { color: var(--orange); flex-shrink: 0; }
.contact-link:hover .contact-value { text-decoration: underline; text-underline-offset: 5px; }
.site-footer { background: var(--deep); color: #e0e9f0; padding-top: clamp(40px, 4.5vw, 64px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); padding-bottom: 48px; }
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-descriptor { color: #afc0d0; }
.footer-statement { color: #afc0d0; font-size: 15px; margin-top: 24px; }
.footer-links h2 { font-size: 13px; letter-spacing: .02em; font-weight: 700; margin-bottom: 14px; color: var(--white); }
.footer-links a { display: flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 1.5; padding-block: 9px; color: #afc0d0; }
.footer-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid #ffffff21; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 16px; font-size: 12px; color: #afc0d0; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.back-to-top { margin-left: auto; gap: 20px; }
.back-to-top span { font-size: 18px; }

/* WordPress editor content and future service pages. */
.content-main { padding-block: var(--section-space); min-height: 55vh; }
.page-heading { margin-bottom: 48px; max-width: 920px; }
.page-heading h1 { font-size: clamp(2.25rem, 5vw, 4.125rem); overflow-wrap: anywhere; }
.page-heading p:not(.eyebrow) { margin-block: 24px; }
.entry-content { max-width: 840px; min-width: 0; overflow-wrap: anywhere; }
.entry-content > * + * { margin-top: 1.5em; }
.entry-content h2 { font-size: clamp(1.75rem, 3vw, 2.125rem); }
.entry-content h3 { font-size: 24px; }
.entry-content a { text-decoration: underline; text-underline-offset: 4px; }
.entry-content img { height: auto; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px; text-align: left; }
.entry-content iframe { max-width: 100%; }
.entry-content pre { overflow-x: auto; padding: 20px; background: var(--pale); }
.post-summary { padding-block: 30px; border-top: 1px solid var(--line); }
.post-summary h2 { font-size: 28px; margin-bottom: 16px; }
.post-summary p { max-width: 780px; }

/* A 240px card measure determines the four-to-two-column transition. */
@media (max-width: 1151px) {
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    h2 br { display: none; }
    .hero .eyebrow { font-size: 10px; }
    .hero-figure figcaption { padding-inline: 18px; }
    .lifecycle-row { column-gap: 24px; }
}
/* Tablet: keep useful two-column grids; stack the longer engineering narratives. */
@media (max-width: 960px) {
    :root { --header-height: 5rem; }
    .header-inner { flex-wrap: wrap; gap: 0 16px; }
    .has-navigation .menu-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 48px; min-height: 48px; padding: 10px; border: 0; background: transparent; color: var(--navy); font-size: 13px; cursor: pointer; }
    .menu-icon { position: relative; width: 22px; height: 12px; flex-shrink: 0; border-top: 1px solid; border-bottom: 1px solid; }
    .menu-toggle[aria-expanded='true'] .menu-icon { border: 0; }
    .menu-toggle[aria-expanded='true'] .menu-icon::before, .menu-toggle[aria-expanded='true'] .menu-icon::after { content: ''; position: absolute; inset: 5px 0 auto; height: 1px; background: currentColor; transform: rotate(45deg); }
    .menu-toggle[aria-expanded='true'] .menu-icon::after { transform: rotate(-45deg); }
    .primary-navigation { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-block: 12px 20px; }
    .primary-navigation > a { min-height: 48px; font-size: 16px; padding: 12px 0; }
    .primary-navigation .nav-contact { margin-top: 8px; padding-inline: 16px; }
    .has-navigation .primary-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px var(--gutter) 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 20px #142d4b0d; max-height: calc(100vh - var(--header-height) - var(--admin-offset)); max-height: calc(100svh - var(--header-height) - var(--admin-offset)); overflow-y: auto; overscroll-behavior: contain; }
    .has-navigation .primary-navigation.is-open { display: flex; }
    .hero-copy { padding-block: 0; }
    .hero-bottom { align-items: flex-start; flex-direction: column; }
    .hero-figure .drawing-heading { padding: 16px 18px 6px; font-size: 9px; }
    .hero-figure figcaption { font-size: 10px; }
    .section-heading { gap: 28px; }
    .split-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .split-grid .section-copy { max-width: 42rem; }
    .control-diagram, .integration-panel { width: 100%; max-width: 38rem; justify-self: center; }
    .machine-grid > .section-copy { grid-row: 1; }
    .lifecycle-row { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 24px 32px; }
    .lifecycle-row .circle-link { grid-column: 2; justify-self: end; }
    .process-steps { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
    .process-steps li { display: grid; grid-template-columns: 28px minmax(0, .7fr) minmax(0, 1.3fr); gap: 20px; border-top: 0; border-left: 1px solid var(--line); padding: 0 0 32px 24px; margin-left: 3px; }
    .process-steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
    .process-steps li::before { top: 7px; left: -4px; }
    .step-number { padding-top: 5px; }
    .process-steps h3 { margin: 0; font-size: 20px; }
    .process-steps p { font-size: 15px; }
    .technology-grid { gap: 32px; }
    .technology-list > div { gap: 14px; }
    .technology-code { width: 56px; }
    .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .contact-details { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
    .footer-statement { margin: 0; }
}
/* Narrow layouts share the same content and reading order. */
@media (max-width: 700px) {
    .hero-grid, .section-heading, .technology-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hero h1 { font-size: clamp(2.375rem, 9vw, 3.5rem); }
    .hero-figure { width: 100%; max-width: 34rem; justify-self: center; }
    .hero-actions .button { width: 100%; }
    .hero-actions .text-link { justify-content: space-between; width: 100%; }
    .hero-note { margin-top: 14px; }
    .hero-bottom > div { gap: 8px 16px; font-size: 12px; }
    .section-heading > p { max-width: 40rem; }
    .lifecycle-row { grid-template-columns: 24px minmax(0, 1fr) 48px; gap: 18px 12px; }
    .lifecycle-heading, .lifecycle-heading > div { display: contents; }
    .row-number { grid-column: 1; grid-row: 1; align-self: center; padding-top: 0; }
    .lifecycle-heading .eyebrow { grid-column: 2; grid-row: 1; align-self: center; margin: 0; font-size: 10px; }
    .lifecycle-heading h2 { grid-column: 1 / -1; grid-row: 2; }
    .lifecycle-copy { grid-column: 1 / -1; grid-row: 3; }
    .lifecycle-row .circle-link { grid-column: 3; grid-row: 1; }
    .process-steps li { grid-template-columns: 28px minmax(0, 1fr); gap: 8px 16px; padding-left: 20px; }
    .process-steps p { grid-column: 2; }
    .contact-details { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .contact-value { font-size: clamp(1.125rem, 5.1vw, 1.5rem); }
    .contact-link { padding-block: 22px; }
    .footer-grid { column-gap: 24px; }
    .footer-bottom > span { width: 100%; }
}
@media (max-width: 599px) {
    .service-grid { grid-template-columns: minmax(0, 1fr); }
    .service-card { display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; gap: 10px 12px; padding: 22px 18px; }
    .service-top { display: contents; }
    .service-number { grid-column: 1; grid-row: 1; padding-top: 5px; }
    .service-arrow { grid-column: 3; grid-row: 1; }
    .service-card h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 20px; }
    .service-card p { grid-column: 2 / -1; margin: 0; font-size: 15px; line-height: 1.65; }
    .service-tag { grid-column: 2 / -1; margin-top: 4px; }
    .diagram-hmi, .diagram-plc { width: 85%; }
}
@media (max-width: 390px) {
    .menu-toggle > span:first-child { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .has-navigation .menu-toggle { gap: 0; }
}
@media (max-width: 359px) {
    :root { --gutter: 1rem; }
    .hero h1 { font-size: 2.25rem; }
    .service-card { padding-inline: 14px; column-gap: 10px; }
    .service-card h3 { font-size: 19px; }
}
@media screen and (max-width: 782px) { body.admin-bar { --admin-offset: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar { --admin-offset: 0px; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
@media print {
    .site-header, .site-footer, .hero-actions, .circle-link { display: none; }
    .section { padding-block: 24px; }
    .container { width: 100%; }
    .automation-section { background: white; color: #1e3a5f; }
    .automation-section p, .automation-section .check-list li { color: #1e3a5f; }
    .hero-figure, .control-diagram { break-inside: avoid; }
}
