/* Additions to the supplied WAN design system. Base palette and fonts are unchanged. */
:root { --ink-3: #b7a1ae; }
[hidden] { display: none !important; }
html { scroll-padding-top: 120px; }
main, .wrap, .split > *, .subhero-grid > *, .hero-grid > *, .contact-grid > * { min-width: 0; }
figure { margin: 0; }
.hl { color: var(--orange); }
.brand .mark { width: 36px; height: 36px; object-fit: contain; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 200; transform: translateY(-160%); background: var(--orange); color: white; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--orange-soft); outline-offset: 4px; }
.nav-toggle { display: none; align-items: center; gap: 8px; border: 1px solid var(--stroke-hi); background: rgba(255,255,255,.04); color: var(--ink); padding: 10px 12px; border-radius: 9px; font: inherit; cursor: pointer; }
.menu { min-width: 292px; }
.menu::before { content: ''; position: absolute; inset: -14px 0 auto; height: 15px; }
.has-menu.is-open .menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.js .has-menu:not(.is-open) .menu { opacity: 0; visibility: hidden; }
.menu a[aria-current="page"] { background: rgba(233,84,32,.12); color: var(--ink); }
.menu .ic { font-family: 'Ubuntu Mono', monospace; font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--orange-soft); font-size: 15px; font-weight: 500; margin-top: 20px; }
.text-link:hover { color: var(--ink); }
.section-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--stroke); }
.section-nav a { font-size: 14px; color: var(--ink-2); }
.section-nav a:hover { color: var(--orange-soft); }
.diagram-label { display: block; font: 12px 'Ubuntu Mono', monospace; letter-spacing: .12em; color: var(--orange-soft); }
.architecture { padding: 28px; }
.architecture figcaption strong { display: block; margin: 12px 0 24px; font-size: 20px; line-height: 1.3; }
.module-grid, .external-systems { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.module-grid li, .external-systems li { border: 1px solid var(--stroke-hi); border-radius: 10px; text-align: center; padding: 13px 8px; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.module-grid li { background: rgba(255,255,255,.045); color: var(--ink); }
.external-systems li { background: rgba(119,41,83,.13); color: var(--ink-2); }
.api-bus { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 18px 0; padding: 12px; border-radius: 9px; background: linear-gradient(110deg,var(--orange),#b84132); color: #fff; font-size: 14px; font-weight: 500; }
.diagram-caption { text-align: center; margin: 18px 0 0 !important; font-size: 12px !important; color: var(--ink-3) !important; }
.section-note { color: var(--ink-2); font-size: 15px; margin-top: 28px; }
.table-shell { border: 1px solid var(--stroke-hi); border-radius: var(--radius-lg); overflow-x: auto; background: var(--card); }
.channel-table { border-collapse: collapse; width: 100%; min-width: 460px; text-align: left; }
.channel-table caption { text-align: left; color: var(--ink-3); font: 12px 'Ubuntu Mono', monospace; padding: 24px; }
.channel-table th, .channel-table td { padding: 19px 24px; border-bottom: 1px solid var(--stroke); }
.channel-table thead th { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.channel-table td, .channel-table thead th:not(:first-child) { text-align: center; }
.channel-table tr:last-child th, .channel-table tr:last-child td { border-bottom: 0; }
.table-check { color: var(--orange-soft); background: rgba(233,84,32,.15); width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 50%; }
.process { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 28px; list-style: none; padding: 0; margin: 0; counter-reset: steps; }
.process li { position: relative; min-width: 0; padding-top: 20px; border-top: 1px solid var(--stroke-hi); }
.process li::before { content: ''; position: absolute; height: 3px; width: 32px; left: 0; top: -2px; background: var(--orange); }
.step-number { display: inline-grid; place-items: center; width: 38px; height: 38px; background: rgba(233,84,32,.14); color: var(--orange-soft); border: 1px solid rgba(233,84,32,.3); border-radius: 11px; font: 13px 'Ubuntu Mono', monospace; }
.process h3 { font-size: 18px; margin: 20px 0 12px; }
.process p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 0; }
.exception-path { margin: 32px 0 0 25%; border-left: 2px solid var(--orange); padding: 8px 0 8px 24px; max-width: 650px; }
.exception-path h3 { font-size: 21px; margin: 12px 0; }
.exception-path p { font-size: 16px; color: var(--ink-2); }
.djs-flow { padding: 30px; }
.process.vertical { display: flex; flex-direction: column; gap: 0; margin-top: 24px; }
.process.vertical li { border-top: none; border-left: 1px solid var(--stroke-hi); padding: 0 0 28px 54px; margin-left: 19px; }
.process.vertical li:last-child { padding-bottom: 4px; border-left-color: transparent; }
.process.vertical li::before { display: none; }
.process.vertical .step-number { position: absolute; left: -20px; top: 0; background: var(--panel-solid); }
.process.vertical h3 { margin: 0 0 8px; padding-top: 3px; }
.integration-diagram { text-align: center; padding: 30px; }
.integration-wan { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; font-size: 32px; font-weight: 700; }
.integration-wan span { font-size: 14px; color: var(--ink-2); font-weight: 400; }
.integration-diagram .api-bus { background: none; color: var(--orange); padding: 0; font-size: 28px; margin: 14px 0; }
.related-line { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--stroke); }
.related-line p { font-size: 16px; color: var(--ink-2); }
.related-line .text-link { margin: 0; flex-shrink: 0; }
.callout { text-align: center; border: 1px solid var(--stroke-hi); background: linear-gradient(135deg,rgba(233,84,32,.16),rgba(119,41,83,.22)); padding: 60px 40px; border-radius: var(--radius-lg); }
.callout h2 { font-size: clamp(28px,4vw,42px); max-width: 760px; margin: 0 auto 20px; }
.callout p { color: var(--ink-2); font-size: 18px; max-width: 650px; margin: 0 auto 28px; }
.client-logos { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 18px; }
.client-logos > div { display: flex; justify-content: center; align-items: center; height: 96px; background: #fff; border-radius: 12px; padding: 20px; }
.client-logos img { width: 100%; max-width: 150px; max-height: 52px; object-fit: contain; }
.product-shot { max-width: 460px; margin: 0 auto; }
.product-shot img { width: 100%; height: auto; border-radius: 18px; }
.product-shot figcaption { color: var(--ink-3); font-size: 12px; text-align: center; margin-top: 16px; }
.mobile-hero img { display: block; width: 100%; max-width: 350px; height: auto; margin: 0 auto; }
.mobile-gallery-section { padding-top: 0; }
.mobile-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.mobile-gallery li { min-width: 0; }
.mobile-gallery img { width: 100%; height: auto; aspect-ratio: 470 / 582; object-fit: contain; }
.gallery-caption { border-top: 1px solid var(--stroke-hi); padding-top: 22px; margin-top: 18px; }
.gallery-caption h3 { font-size: 18px; margin: 16px 0 10px; }
.gallery-caption p { color: var(--ink-2); font-size: 15px; }
.office { padding: 28px 0; border-bottom: 1px solid var(--stroke); }
.office h3 { font-size: 20px; margin-bottom: 14px; color: var(--orange-soft); }
address { font-style: normal; }
.office address { line-height: 1.7; color: var(--ink-2); font-size: 15px; }
.office address span { color: var(--ink-3); }
.office-phone { display: block; font-size: 17px; margin-top: 14px; }
.office .text-link { margin-top: 12px; font-size: 14px; }
.office-email { margin-top: 28px; }
.office-email a { display: inline-block; font-size: 18px; margin-top: 12px; }
.contact-title { font-size: 24px; margin-bottom: 12px; }
.contact-intro { color: var(--ink-2); font-size: 14px; line-height: 1.65; margin-bottom: 26px; }
.contact-intro a { color: var(--orange-soft); }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-submit { width: 100%; justify-content: center; }
.field-note { font-size: 12px; margin: 14px 0 0; }
.field select { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #20121c; border: 1px solid var(--stroke); border-radius: 11px; padding: 13px 15px; }
#formMsg { color: var(--orange-soft); font-size: 14px; margin-top: 20px; }
.footer address { color: var(--ink-2); font-size: 14px; line-height: 1.8; margin-bottom: 14px; }
.footer .footer-email { display: inline-block; margin-top: 16px; }
.footer-grid { grid-template-columns: 1.1fr 1.1fr 1.25fr 1.2fr; }
.footer-bot { font-family: 'Ubuntu Mono', monospace; font-size: 12px; }
/* Keep content visible when scripts fail or are disabled. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (max-width: 1100px) and (min-width: 981px) { .nav-group a, .nav-item { padding-inline: 9px; } .panel { gap: 12px; } }
@media (max-width: 980px) {
  .panel { flex-wrap: wrap; }
  .brand { margin-right: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-group { display: flex; flex-basis: 100%; flex-direction: column; align-items: stretch; order: 4; margin: 4px 0 0; max-height: calc(100dvh - 120px); overflow-y: auto; }
  .js .nav-group { display: none; }
  .js .nav-group.is-open { display: flex; }
  .nav-group > a, .nav-item { display: block; width: 100%; text-align: left; padding: 13px; }
  .menu { position: static; min-width: 0; left: auto; transform: none; opacity: 1; visibility: visible; border: none; border-radius: 10px; box-shadow: none; background: rgba(0,0,0,.12); }
  .js .menu { display: none; }
  .js .has-menu.is-open .menu { display: block; transform: none; }
  .menu::before { display: none; }
  .menu a { white-space: normal; }
  .has-menu:focus-within .menu, .has-menu:hover .menu { transform: none; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .client-logos { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .mobile-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px 24px; }
  .mobile-hero { max-width: 350px; margin: 0 auto; }
  .related-line { align-items: flex-start; flex-direction: column; }
  .widget-stage { margin-top: 20px; }
  .wf-pay { left: 0; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 20px; }
  .panel-shell { padding-inline: 10px; top: 10px; }
  .panel { gap: 10px; }
  .panel-cta .btn { padding: 10px 12px; font-size: 13px; }
  .brand .word { font-size: 18px; }
  .nav-toggle { font-size: 13px; padding: 10px; }
  .architecture { padding: 22px 16px; }
  .architecture figcaption strong { font-size: 18px; }
  .module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .external-systems { gap: 7px; }
  .external-systems li { padding: 12px 5px; font-size: 12px; }
  .api-bus { font-size: 12px; gap: 10px; }
  .client-logos { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .client-logos > div { height: 88px; }
  .process { grid-template-columns: 1fr; gap: 25px; }
  .process li { padding-top: 18px; }
  .process h3 { margin: 14px 0 9px; }
  .exception-path { margin-left: 0; }
  .section-nav { margin-top: 30px; padding-top: 26px; gap: 14px 20px; }
  .channel-table { min-width: 0; }
  .channel-table caption { padding: 18px 12px; font-size: 11px; }
  .channel-table th, .channel-table td { padding: 16px 8px; font-size: 12px; }
  .channel-table thead th { font-size: 11px; }
  .table-check { width: 24px; height: 24px; }
  .callout { padding: 42px 22px; }
  .callout .btn { white-space: normal; justify-content: center; }
  .contact-card { padding: 25px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .mobile-gallery { gap: 32px 14px; }
  .gallery-caption h3 { font-size: 16px; line-height: 1.3; }
  .gallery-caption p { font-size: 13px; }
  .widget-stage { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
  .widget-stage .widget-float { position: static; }
  .wf-secure { align-self: flex-end; }
  .wf-pay { align-self: flex-start; }
  .hero-meta .m b { font-size: 26px; }
}
@media (max-width: 380px) { .dock { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: min(280px,100%); gap: 20px; } .dock a { width: 100%; } }
@media (max-width: 360px) { .panel-cta { display: none; } .mobile-gallery { grid-template-columns: 1fr; } .mobile-gallery img { max-width: 260px; margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } *, *::before, *::after { animation: none !important; transition: none !important; } }
