:root {
    --ink: #162a33;
    --ink-deep: #142631;
    --muted: #465d67;
    --blue: #166660;
    --blue-hover: #0d514c;
    --blue-soft: #e5f1ef;
    --surface: #f1f6f5;
    --line: #d9e5e4;
}
.site-header { background: #fcfefd; border-bottom-color: #dbe6e4; }
.site-header .brand img { background: white; padding: 2px; border: 1px solid #e1e9e8; }
.site-header .header-cta { border-radius: 8px; }
.header-row nav a { color: #405660; }
.header-row nav a:hover, .header-row nav a[aria-current] { color: var(--blue); }
:focus-visible { outline-color: #248378; }
.text-link, .category, .eyebrow { color: #216960; }
.intro-links svg { width: 16px; height: 16px; }
.automation-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(125deg,#f9faf7 0%,#f3f8f6 60%,#e5f0ed);
}
.automation-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0 0 0 45%;
    opacity: .65;
    background: repeating-linear-gradient(90deg,transparent 0 43px,#83a6a128 44px 45px),repeating-linear-gradient(0deg,transparent 0 43px,#83a6a128 44px 45px);
    mask-image: linear-gradient(120deg,transparent 0%,#000 60%);
}
.automation-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: clamp(20px,5vw,70px);
    padding-block: clamp(38px,6vw,85px) clamp(23px,4.5vw,55px);
}
.automation-copy { min-width: 0; }
.automation-copy .eyebrow { display: flex; align-items: center; gap: 8px; font-size: .72rem; }
.automation-copy .eyebrow::before { content: ''; width: 18px; height: 2px; background: #4c9588; }
.automation-copy h1 { margin-top: 16px; font-size: clamp(3rem,6.2vw,5.8rem); line-height: .99; letter-spacing: -.07em; text-wrap: initial; }
.automation-copy h1 em { color: #356f69; font-style: normal; }
.automation-copy > p:not(.eyebrow) { max-width: 46ch; margin-top: 17px; color: var(--muted); font-size: clamp(1rem,1.5vw,1.2rem); }
.automation-copy .actions { margin-top: 21px; }
.button.subtle, .menu-toggle { border-color: #cbdcda; }
.button.subtle:hover:not(:disabled), .menu-toggle:hover { border-color: #94b6b1; background: #ecf5f3; }
.automation-index { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid #d4e1df; }
.automation-index a { display: flex; gap: 8px; align-items: center; min-height: 59px; padding: 8px 11px; color: #324a52; font-size: .86rem; font-weight: 670; }
.automation-index a:first-child { padding-left: 0; }
.automation-index a + a { border-left: 1px solid #d4e1df; }
.automation-index a:hover { color: var(--blue); background: #eef6f2; }
.automation-index svg { width: 17px; height: 17px; color: #32756e; }
.automation-index svg:last-child { margin-left: auto; width: 13px; height: 13px; }
.gate-panel {
    min-width: 0;
    padding: clamp(12px,1.45vw,20px);
    border: 1px solid #c9dcd7;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 50px #24484318, 0 4px 12px #2448430b;
}
.gate-heading, .gate-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 10px; }
.gate-heading h2 { font-size: clamp(1.04rem,1.9vw,1.45rem); letter-spacing: -.035em; }
.gate-heading > span { padding: 4px 7px; border-radius: 6px; background: #eef4f3; color: #45655f; font-size: .73rem; font-weight: 680; }
[data-phase='open'] .gate-heading > span, [data-phase='cross'] .gate-heading > span { color: #185d4e; background: #e0f3e8; }
[data-phase='approval'] .gate-heading > span, [data-phase='denied'] .gate-heading > span { color: #73531f; background: #f7eedc; }
.gate-modes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; padding: 3px; margin-block: 10px 8px; background: #eff5f3; border: 1px solid #e5edeb; border-radius: 8px; }
.gate-modes button, .automation-categories button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 39px; padding: 5px 7px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #496169; font-size: .78rem; font-weight: 690; text-align: center; }
.gate-modes button svg { width: 14px; height: 14px; }
.gate-modes button[aria-pressed='true'] { border-color: #cadfdb; color: #165e56; background: white; box-shadow: 0 2px 5px #1f3a3310; }
.gate-modes button:hover:not([aria-pressed='true']) { background: #e3eeeb; }
.gate-visual {
    position: relative;
    height: clamp(135px,15vw,215px);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #d4e3e0;
    border-radius: 10px;
    background: linear-gradient(155deg,#f3f8f7,#e0edeb);
}
.gate-visual::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg,transparent 0 33px,#94ada72d 34px 35px),repeating-linear-gradient(0deg,transparent 0 33px,#94ada72d 34px 35px); mask-image: linear-gradient(transparent,#000); }
.gate-structure { position: absolute; inset: 21% 7% 24%; border: 1px solid #a6beba7d; border-radius: 7px 7px 0 0; background: repeating-linear-gradient(90deg,#d9e8e479 0 30px,#a6beba6e 31px 32px); }
.gate-structure::before { content: ''; position: absolute; inset: -5px -8px auto; height: 5px; background: #97b2ad; border-radius: 3px; }
.gate-lane { position: absolute; inset: auto 0 12%; height: 22%; border-block: 1px solid #a9bfbb; background: #c5d8d5; }
.gate-lane::after { content: ''; position: absolute; top: 50%; left: 4%; right: 4%; border-top: 1px dashed #7f9d98; }
.gate-road, .gate-walkway { position: absolute; inset: 0; }
.gate-walkway, [data-mode='card'] .gate-road { display: none; }
[data-mode='card'] .gate-walkway { display: block; }
[data-mode='card'] .gate-lane { height: 13%; background: #cfddda; }
[data-mode='card'] .gate-lane::after { display: none; }
.gate-sensor { position: absolute; left: 53%; bottom: 24%; width: 6px; height: 52%; border-radius: 4px; background: #688985; box-shadow: 1px 1px #617c79; }
.gate-sensor span { position: absolute; width: 20px; height: 12px; right: 0; top: 0; border: 1px solid #758e8a; border-radius: 3px; background: #476762; transform: rotate(-10deg); }
.gate-sensor span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 4px; height: 4px; border-radius: 50%; background: #ccded8; }
.gate-beam { position: absolute; top: 27%; bottom: 27%; left: 24%; right: 47%; background: linear-gradient(110deg,#38a88b29,#3a99738f); clip-path: polygon(1% 83%,100% 0,100% 22%,5% 100%); opacity: 0; transition: opacity .32s; }
.gate-vehicle { position: absolute; left: 13%; bottom: 22%; width: 25%; height: 22%; max-width: 140px; transition: left .76s cubic-bezier(.26,.69,.29,1); }
.gate-vehicle > div { position: absolute; inset: 0; clip-path: polygon(0 52%,15% 34%,32% 6%,66% 6%,81% 34%,95% 44%,100% 61%,100% 83%,0 83%); border-radius: 5px; background: linear-gradient(#91b4ae 0 47%,#5a827e 48% 65%,#416767 66% 100%); }
.gate-vehicle b { position: absolute; inset: 11% 21% 57% 21%; clip-path: polygon(0 100%,19% 2%,68% 2%,99% 100%); background: linear-gradient(140deg,#d5e5e1,#6c9894); }
.gate-vehicle small { position: absolute; top: 53%; right: 0; width: 10%; height: 11%; border-radius: 3px; background: #fef7d9; }
.gate-vehicle i { position: absolute; bottom: 0; left: 17%; width: 14%; aspect-ratio: 1; border: 2px solid #36575b; border-radius: 50%; background: #a3bdb9; }
.gate-vehicle i:last-child { left: auto; right: 15%; }
[data-mode='visitor'] .gate-vehicle > div { background: linear-gradient(#adbdc4 0 47%,#79939e 48% 65%,#56707b 66% 100%); }
.gate-assembly { position: absolute; left: 72%; bottom: 24%; width: 19px; height: 43%; }
.gate-base { position: absolute; z-index: 1; inset: 0; border: 1px solid #547a74; border-radius: 5px 5px 2px 2px; background: linear-gradient(90deg,#759a94,#a8c3bd 47%,#6f938d); }
.gate-base::after { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #9c7653; top: 5px; left: 5px; }
.gate-arm { position: absolute; top: 11px; right: 9px; width: clamp(67px,14vw,173px); height: 7px; border: 1px solid #789a96; border-radius: 2px; background: repeating-linear-gradient(135deg,#edf4f1 0 17px,#739793 17px 29px); transform-origin: right center; transition: transform .4s cubic-bezier(.25,.65,.27,1); }
.gate-turnstile { position: absolute; left: 61%; bottom: 24%; width: 27%; height: 44%; border: 1px solid #718f8b; border-radius: 6px 6px 0 0; background: linear-gradient(90deg,#799e9799,#d5e3e0 21% 77%,#6f9690a8); }
.gate-turnstile span, .gate-turnstile i { position: absolute; left: 1%; top: 20%; bottom: 17%; width: 49%; border: 1px solid #6a928d; border-radius: 3px; background: #a3cbc296; transform-origin: left center; transition: transform .4s; }
.gate-turnstile i { left: auto; right: 1%; transform-origin: right center; }
.gate-reader { position: absolute; left: 54%; bottom: 24%; height: 49%; width: 5px; border-radius: 4px; background: #73968f; }
.gate-reader span { position: absolute; right: 0; top: 0; width: 14px; height: 17px; border: 1px solid #53706e; border-radius: 4px; background: #8daea7; }
.gate-person { position: absolute; left: 31%; bottom: 24%; width: 19px; height: 43%; transition: left .76s cubic-bezier(.26,.69,.29,1); }
.gate-person span { position: absolute; left: 4px; top: 0; width: 11px; height: 11px; border-radius: 50%; background: #5b827e; }
.gate-person i { position: absolute; left: 2px; right: 2px; top: 22%; bottom: 30%; border-radius: 6px 6px 2px 2px; background: #426b66; }
.gate-person i:last-child { top: 65%; bottom: 0; background: linear-gradient(90deg,#597e79 0 35%,transparent 36% 62%,#597e79 63%); }
.gate-person::after { content: ''; position: absolute; z-index: 2; top: 34%; right: -7px; width: 8px; height: 6px; opacity: 0; border: 1px solid #659a90; border-radius: 2px; background: #cde8de; transition: opacity .25s; }
[data-phase='identify'] .gate-person, [data-phase='recognized'] .gate-person, [data-phase='open'] .gate-person { left: 45%; }
[data-phase='identify'] .gate-person::after, [data-phase='recognized'] .gate-person::after { opacity: 1; }
[data-phase='identify'] .gate-beam, [data-phase='recognized'] .gate-beam { opacity: 1; }
[data-phase='identify'] .gate-reader span, [data-phase='recognized'] .gate-reader span { background: #57a78e; box-shadow: 0 0 0 5px #82c9b24d; }
[data-phase='open'] .gate-arm, [data-phase='cross'] .gate-arm { transform: rotate(64deg); }
[data-phase='open'] .gate-base::after, [data-phase='cross'] .gate-base::after { background: #49a684; }
[data-phase='open'] .gate-turnstile :is(span,i), [data-phase='cross'] .gate-turnstile :is(span,i) { transform: scaleX(.19); }
[data-phase='cross'] .gate-vehicle, [data-phase='done'] .gate-vehicle { left: 91%; }
[data-phase='cross'] .gate-person, [data-phase='done'] .gate-person { left: 91%; }
.gate-steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
.gate-steps li { min-width: 0; padding: 6px 4px; display: flex; align-items: center; gap: 5px; color: #536c70; font-size: .72rem; font-weight: 680; border-top: 2px solid #dce7e5; transition: color .18s,border-color .18s; }
.gate-steps svg { width: 15px; height: 15px; }
.gate-steps [aria-current='step'], .gate-steps .gate-passed { color: #1b6a62; border-color: #61a99c; }
[data-phase='approval'] .gate-steps [aria-current='step'], [data-phase='denied'] .gate-steps [aria-current='step'] { border-color: #b3935c; color: #765520; }
.gate-controls { border-top: 1px solid #e4ecea; padding-top: 8px; margin-top: 2px; }
.gate-status { flex: 1 1 128px; color: #465e63; font-size: .79rem; font-weight: 620; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.gate-button { min-height: 40px; font-size: .78rem; padding: 6px 10px; }
.gate-button[aria-disabled='true'] { opacity: .7; cursor: wait; }
.gate-button svg { width: 13px; height: 13px; }
.automation-solutions, .demo-section { background: #f2f7f6; border-color: #dce9e6; }
.automation-catalog { background: #f3f7f6; border-block: 1px solid #dce8e6; }
.automation-filters { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.automation-categories { display: flex; flex-wrap: wrap; gap: 5px; }
.automation-categories button { border-color: #d2e0dd; background: white; }
.automation-categories button[aria-pressed='true'] { border-color: #95bdb6; color: #134f47; background: #e0efea; }
.automation-card { display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s,box-shadow .2s; }
.automation-card:hover { border-color: #a7c6be; box-shadow: 0 10px 30px #1d494811; }
.automation-card-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #d6e7e3; border-radius: 8px; background: #e9f3f0; color: #206d65; margin: 16px 0 0 16px; }
.automation-card .card-body { padding-top: 11px; }
.card-body h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .14em; }
.automation-catalog .find-empty { margin-top: 12px; }
.page-intro, .motion-detail-hero { color: var(--ink); background: radial-gradient(ellipse at 80% 39%,#e2efec,transparent 63%),#f3f7f6; }
.page-intro::after { opacity: .22; background: repeating-linear-gradient(90deg,transparent 0 40px,#7fa7a15c 41px 42px),repeating-linear-gradient(0deg,transparent 0 40px,#7fa7a15c 41px 42px); }
.breadcrumb, .breadcrumb a, .page-intro p { color: var(--muted); }
.intro-links a { gap: 5px; color: #31575a; border-color: #cbdedb; background: #ffffffc9; }
.intro-links a:hover { background: #e4f1ed; }
.intro-links svg { color: var(--blue); }
.software-banner .intro-inner { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(14px,4.5vw,52px); }
.software-banner-actions { margin-top: 14px; }
.software-banner-actions .outline-light { color: #235b56; border-color: #aec7c2; background: white; }
.software-banner-actions .outline-light:hover { background: #e8f2ef; }
.software-banner-screen { min-width: 0; overflow: hidden; border: 1px solid #cddfdb; border-radius: 13px; background: #f6faf9; padding: 8px; box-shadow: 0 13px 38px #2a54451c; }
.software-banner-screen figcaption { display: flex; align-items: center; gap: 6px; padding: 4px 3px 8px; color: #3e5c62; font-size: .77rem; font-weight: 650; }
.software-banner-screen svg { width: 16px; height: 16px; color: var(--blue); }
.software-banner-screen img { width: 100%; height: auto; aspect-ratio: 1.9; object-fit: contain; background: white; border-radius: 7px; }
.motion-detail-hero { isolation: isolate; position: relative; overflow: hidden; }
.motion-detail-backdrop { position: absolute; inset: 0; z-index: -1; opacity: .23; mask-image: linear-gradient(105deg,transparent 35%,#000); }
.motion-detail-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.55); }
.detail-type { border-color: #caddd9; color: #286358; background: #e7f2ef; }
.detail-type span { border-color: #bad1cc; }
.detail-gallery { border-color: #bdd4ce; box-shadow: 0 14px 35px #183f351c; }
.gallery-switch { background: #ebf4f1; }
.gallery-switch button[aria-pressed='true'] { border-color: #c0d8d2; color: #1c635c; }
.detail-feature-icon { background: #e4f1ed; }
.detail-lab-section { background: #eef6f3; border-color: #d6e8e1; }
.detail-photo-grid figure { background: #e0ede9; }
.cta { background: radial-gradient(ellipse at 86% 0%,#3c776d,transparent 65%),#224d48; }
.cta .eyebrow { color: #d0eedf; }
.button.white { color: #1d675f; }
.button.white:hover { background: #e6f2ef; }
.site-footer { background: #182e32; }
.screen-dialog { width: min(1080px,calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: min(2.4vw,16px); border: 1px solid #bfd1ce; border-radius: 13px; background: white; color: var(--ink); }
.screen-dialog::backdrop { background: #0c1c22d9; }
.screen-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 4px 2px 9px; }
.screen-dialog-header h2 { font-size: clamp(1.05rem,2.4vw,1.4rem); }
.screen-dialog-header .button { min-height: 40px; }
.screen-dialog img { width: 100%; max-height: calc(100dvh - 105px); object-fit: contain; background: #f0f6f4; border-radius: 7px; }
@keyframes calm-in { from { opacity: .66; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
    .automation-copy, .gate-panel, .detail-intro, .detail-gallery { animation: calm-in .42s ease-out both; }
    .gate-panel { animation-delay: .05s; }
    .gallery-frame.is-switching, .motion-reveal { animation: calm-in .24s ease-out; }
}
@media (max-width: 1010px) {
    .automation-copy h1 { font-size: clamp(2.6rem,6vw,4.7rem); }
    .js .header-row nav { background: #fbfefd; border-color: #d2e0dc; }
}
@media (max-width: 740px) {
    .automation-grid, .software-banner .intro-inner { grid-template-columns: minmax(0,1fr); }
    .automation-grid { padding-block: 29px 15px; gap: 15px; }
    .automation-copy h1 { margin-top: 12px; font-size: clamp(2.75rem,9vw,4.2rem); }
    .automation-copy > p:not(.eyebrow), .automation-copy .actions { margin-top: 11px; }
    .automation-index { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .automation-index a { min-height: 49px; font-size: .78rem; padding-inline: 5px; gap: 5px; }
    .automation-index a:nth-child(3) { border-left: 0; padding-left: 0; }
    .automation-index a:nth-child(n+3) { border-top: 1px solid #dbe6e3; }
    .gate-panel { border-radius: 13px; }
    .gate-steps li { gap: 3px; font-size: .68rem; }
    .gate-steps svg { width: 13px; height: 13px; }
    .gate-modes button { min-height: 37px; padding-inline: 4px; font-size: .73rem; }
    .gate-modes button svg { width: 13px; height: 13px; }
    .automation-filters { align-items: start; gap: 8px; }
}
@media (max-width: 480px) {
    .automation-copy .button { flex: 1 1 0; min-width: 0; padding-inline: 7px; gap: 5px; font-size: .78rem; }
    .automation-copy .actions { gap: 6px; }
}
@media (max-width: 370px) {
    .gate-modes button svg { display: none; }
}
