:root {
  color-scheme: light;
  --ink: #11212b;
  --muted: #51616d;
  --navy: #07121c;
  --blue: #245f9f;
  --line: #d5dce0;
  --paper: #fafaf7;
  --mono: "IBM Plex Mono", Consolas, monospace;
  font-family: Inter, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box }
body { margin: 0; background: var(--paper) }
button, a, summary { -webkit-tap-highlight-color: transparent }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; cursor: pointer }
:focus-visible { outline: 3px solid #528df2; outline-offset: 3px }
h1,h2,h3,h4,p,ol,ul,dl,dd,figure { margin: 0 }
.wrap { width: min(87.5%, 1320px); margin-inline: auto }
.skip { position: fixed; z-index: 30; top: -100px; left: 12px; padding: 12px; background: white }
.skip:focus { top: 6px }

/* Masthead and homepage scenes */
.header { position: sticky; top: 0; z-index: 10; color: #f4f7fb; background: #07121cf5; backdrop-filter: blur(14px); border-bottom: 1px solid #ffffff1c }
.bar { height: 72px; display: flex; align-items: center; gap: clamp(24px,4.5vw,74px) }
.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; flex-shrink: 0 }
.brand img { filter: brightness(0) invert(1) }
.brand span { font-size: 23px; font-weight: 650; line-height: 1.12; letter-spacing: .09em }
.brand small { display: block; margin-top: 4px; font: 500 7px/1.1 Arial,sans-serif; letter-spacing: .145em; color: #c5d2e0 }
nav { display: flex; align-self: stretch; gap: clamp(19px,2.9vw,48px) }
nav a { position: relative; display: grid; place-items: center; font-size: 14px; font-weight: 450; color: #b7c3ce }
.header nav a { white-space: nowrap }
nav a:hover,nav a[aria-current] { color: white }
nav a[aria-current]::after { content: ""; position: absolute; bottom: 12px; width: 4px; height: 4px; background: #a4c8f2; border-radius: 50% }
.primary,.subtle { display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-weight: 550; transition: color .2s,background .2s,transform .2s }


.subtle b { font: 18px/1 Arial,sans-serif }
.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 74% 42%,#183045 0%,#0c1d2b 29%,var(--navy) 65%); color: white }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(90deg,#b7d5f10c 1px,transparent 1px),linear-gradient(#b7d5f10a 1px,transparent 1px); background-size: 76px 76px; mask-image: radial-gradient(ellipse 48% 72% at 77% 41%,#000 8%,transparent 93%) }
.hero-stage { position: relative; display: flex; align-items: center }
.hero-copy { position: relative; z-index: 1; padding: 50px 0; width: 51% }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 550 11px/1.5 var(--mono); letter-spacing: .14em; color: #48657e }
.eyebrow i { width: 28px; height: 1px; display: block; background: currentColor }
.light { color: #b4cadd }
.hero-copy .eyebrow { font-family: inherit; font-size: 13px; font-weight: 450; letter-spacing: .09em }
h1 { font-size: clamp(44px,4.7vw,77px); line-height: 1.2; letter-spacing: -.055em; margin: 22px 0 20px; font-weight: 570 }
h1 span { color: #abd1f3; background: linear-gradient(100deg,#e0ecfa 0%,#adcfee 48%,#83b8e5); background-clip: text; -webkit-text-fill-color: transparent }
.hero-copy p { font-size: clamp(14px,1.1vw,18px); font-weight: 400; line-height: 1.9; color: #bbc9d4 }
.hero-actions { display: flex; align-items: center; gap: 27px; margin-top: 30px }
.primary { padding: 12px 19px 12px 22px; border-radius: 25px; color: #0d2233; background: #edf4f9; font-size: 14px }
.primary b { font: 19px/1 Arial,sans-serif }
.primary:hover { background: #c5e1ff; transform: translateY(-1px) }
.subtle { font-size: 14px; gap: 8px; color: #d6e2ea }
.subtle:hover { color: #96c8ff }
.hero-art { position: absolute; inset: 5px -2% 6px 47%; display: flex; flex-direction: column; padding-bottom: 12px }
.hero-frames { flex: 1; position: relative; min-height: 0; pointer-events: none; mix-blend-mode: lighten; mask-image: linear-gradient(0deg,transparent,#000 13%,#000 94%,transparent) }
.hero-frames picture,.signals { position: absolute; inset: 0; height: 100%; width: 100% }
.hero-frames img { display: block; width: 100%; height: 100%; object-fit: contain }
.hero-frames picture { opacity: 0; transition: opacity .65s ease-in-out }
.hero-frames picture.is-active { opacity: 1 }
.scene-photo img { width: auto; max-width: 100%; margin-inline: auto; mask-image: linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent) }
.hero-frames [data-frame="integration"] img { filter: saturate(.55) contrast(.94) brightness(1.08) }
.signals path { stroke: #b6edff; stroke-width: 3.5; stroke-dasharray: .05 1; filter: drop-shadow(0 0 4px #57bfff); opacity: 0 }
.hero-art[data-stage="security"] .signals path { animation: trace-signal 2.3s ease-out .3s 1 both }
@keyframes trace-signal { 0% { stroke-dashoffset: .05; opacity: 0 } 22%,75% { opacity: .96 } 100% { stroke-dashoffset: -1; opacity: 0 } }
.scene-caption { position: relative; text-align: center }
.scene-buttons { display: inline-flex; flex-wrap: wrap; justify-content: center; max-width: 100%; padding: 3px; background: #081520c9; border: 1px solid #445565; border-radius: 25px }
.scene-buttons a { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 15px; border: 0; border-radius: 20px; background: transparent; color: #bdcbd9; font-size: 12px; transition: background .25s,color .25s }
.scene-buttons a.is-active { background: #dce9f4; color: #122637; font-weight: 600 }
.scene-caption p { margin-top: 7px; font-size: 12px; line-height: 1.6; color: #adbecc }
.hero-base { position: relative }
.facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; align-items: center; min-height: 100px; border-top: 1px solid #ffffff2c }
.fact { display: flex; align-items: baseline; gap: clamp(8px,1.1vw,18px) }
.fact strong { color: #eff4f9; font: 350 clamp(31px,3vw,47px)/1 Inter,"Segoe UI",Arial,sans-serif; letter-spacing: -.055em; font-variant-numeric: lining-nums tabular-nums }
.fact small { font: 450 15px/1 "Noto Sans SC",sans-serif; margin-left: 4px }
.fact span,.scroll { color: #b2c2d0; font-size: 12px }
.scroll { display: flex; align-items: center; gap: 12px }
.scroll b,.mail b { display: grid; place-items: center; height: 32px; width: 32px; border-radius: 50%; border: 1px solid #536270; font: 18px/1 Arial }

/* Services */
.section { padding: clamp(64px,6.3vw,100px) 0 }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 10px 0 33px }
h2 { font-size: clamp(34px,3.2vw,52px); line-height: 1.24; letter-spacing: -.055em; font-weight: 570 }
.section-head p,.intro p,.extra dd,.steps p,.summary-text { font-size: 15px; line-height: 1.85; color: var(--muted) }
.section-head p { font-size: 14px }
.service-panel { margin-top: 25px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: clip }
.service-main { display: grid; grid-template-columns: 46% 1fr }
.service-photo { position: relative; min-height: 295px; background: #162736; overflow: hidden }
.service-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover }
.service-photo img[src$="/network-room.webp"] { filter: saturate(.51) contrast(.91) brightness(1.09); object-position: 64% 55% }
.service-photo:has(img[src$="/server-room-shield-small.webp"]) { background: #06101d }
.service-photo img[src$="/server-room-shield-small.webp"] { object-fit: contain; mix-blend-mode: lighten }
.service-photo img[src$="/ai-workflow-scene.webp"] { object-fit: contain; background: #101b26 }
.service-photo figcaption { position: absolute; bottom: 14px; left: 16px; font-size: 11px; color: white; padding: 3px 9px; border: 1px solid #ffffff40; border-radius: 3px; background: #101920a6 }
.service-overview { align-self: center; padding: clamp(24px,2.9vw,48px) }
.field-label,.service-main h4 { font-size: 12px; font-weight: 550; letter-spacing: .08em; color: #486580 }
.service-main h3 { margin: 8px 0 12px; font-size: clamp(24px,2.25vw,36px); font-weight: 570; letter-spacing: -.035em; line-height: 1.35 }
.service-main h4 { margin-top: 20px }
.deliverables { list-style: none; display: flex; flex-wrap: wrap; column-gap: 15px; row-gap: 6px; padding: 0; margin: 8px 0 10px }
.deliverables li { font-size: 13px; font-weight: 500 }
.deliverables li::before { content: "✓"; color: #41667e; padding-right: 6px }
.scope-note { font-size: 12px; line-height: 1.7; color: #556777 }
.scope { display: grid; gap: 11px; line-height: 1.8 }
.scope div { display: grid; grid-template-columns: minmax(130px,20%) 1fr; gap: 14px; font-size: 14px }
.scope dt,.extra dt { font-weight: 575 }
.scope dd { color: var(--muted) }
.source-link { display: inline-flex; align-items: center; gap: 10px; color: #24547b; font-size: 13px; margin: 16px 0; padding: 4px 0; border-bottom: 1px solid #b4c3cd }
.source-link:hover { border-color: currentColor }
.source-link small { font: 10px/1.5 var(--mono); color: #536578 }

/* Delivery and company records */
.process { background: #eaf0f1; border-block: 1px solid #d8e0e1 }
.steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); list-style: none; padding: 0; margin-top: 36px }
.steps li { position: relative; padding: 0 clamp(10px,1.8vw,30px) 0 0 }
.steps span { display: block; color: #416275; font: 350 clamp(31px,3.2vw,51px)/1.25 Inter,"Segoe UI",sans-serif; letter-spacing: -.06em; padding-bottom: 24px }
.steps li::before,.steps li::after { content: ""; position: absolute; top: calc(clamp(31px,3.2vw,51px)*1.25 + 9px); left: 0 }
.steps li::before { height: 1px; width: 100%; background: #aabcc6 }
.steps li::after { height: 7px; width: 7px; transform: translateY(-3px); border-radius: 100%; background: #53778c; box-shadow: 0 0 0 4px #eaf0f1 }
.steps li:last-child::before { background: linear-gradient(90deg,#aabcc6,transparent) }
.steps h3 { font-size: 20px; font-weight: 575; margin: 12px 0 8px }
.steps p { font-size: 14px; max-width: 23em }
.about h2,.contact h2 { margin-top: 10px }
.intro { margin-bottom: 12px }
.chapter .intro h2 { font-weight: 570; font-size: clamp(20px,1.75vw,29px); margin-bottom: 10px }
.clients { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 4px 0 24px; color: var(--muted); font-size: 14px }
.extra { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 14px 20px; padding: 0 0 24px; font-size: 14px }
.certs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 0 0 24px }
.certs button { background: #f2f4f3; border: 1px solid var(--line); border-radius: 4px; padding: 14px 8px; line-height: 1.6; font-size: 13px }
.certs button:hover { border-color: var(--blue) }
.certs img { display: block; max-width: 100%; width: auto; height: 125px; object-fit: contain; margin: 0 auto 10px }
.contact,footer { background: var(--navy); color: white }
.contact { position: relative; isolation: isolate; overflow: hidden; padding: clamp(54px,5vw,88px) 0 }
.contact::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(120deg, transparent 24%,#9cc7e707 24% 30%,transparent 30% 32%,#9cc7e709 32% 42%,transparent 42%),radial-gradient(ellipse at 88% 20%,#183040,transparent 62%) }
.contact-grid { display: grid; grid-template-columns: .87fr 1.55fr; gap: 9% }
.contact p { color: #bdc9d3; margin-top: 12px; line-height: 1.8; font-size: 14px }
address { font-style: normal }
address span { display: block; font-size: 12px; color: #b3c6d5 }
.mail { width: fit-content; display: flex; gap: 16px; align-items: center; margin: 4px 0 19px; padding: 0 0 10px; border-bottom: 1px solid #516272; font-size: clamp(22px,2.6vw,42px); font-weight: 400; line-height: 1.5; letter-spacing: -.035em }
.mail:hover b { color: var(--ink); background: white }
address p { margin-top: 4px }
footer .wrap { padding: 22px 0; border-top: 1px solid #ffffff2a; font-size: 12px; color: #bac8d4 }
.footer-identity { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 6px }
.icp-link { justify-self: center; white-space: nowrap }
.icp-link:hover { color: white; text-decoration: underline; text-underline-offset: 3px }
dialog { padding: 0; border: 0; border-radius: 8px; width: min(800px,94vw); max-width: 94vw; max-height: 96dvh; background: white; color: var(--ink) }
dialog::backdrop { background: #030d18db }
.viewer-bar { position: sticky; top: 0; background: white; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; gap: 20px }
.viewer-bar h2 { font-size: 17px; letter-spacing: 0 }
.viewer-bar button { background: #eef2f3; border: 0; width: 36px; height: 36px; font-size: 24px; border-radius: 50% }
#viewer-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; background: #f0f2f3; cursor: grab }
#viewer-track::-webkit-scrollbar { display: none }
#viewer-track.dragging { scroll-snap-type: none; cursor: grabbing }
#viewer-track figure { flex: 0 0 100%; min-width: 0; height: min(72dvh,132vw,720px,calc(96dvh - 130px)); scroll-snap-align: start; scroll-snap-stop: always; padding: 6px }
#viewer-track img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none }
.viewer-nav { display: flex; align-items: center; justify-content: space-between; padding: 5px 12px; border-top: 1px solid var(--line) }
.viewer-nav button { min-height: 42px; padding: 6px 12px; border: 0; border-radius: 6px; background: transparent; color: #24547b; font-size: 14px }
.viewer-nav button:hover:not(:disabled) { background: #eaf0f2 }
.viewer-nav button:disabled { color: #929ca4; cursor: default }
#cert-position { font: 13px/1.5 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums }

@media (max-width: 1050px) {
  .wrap { width: 90% }
  .bar { gap: 22px }
  .fact { flex-direction: column; gap: 6px }
  .contact-grid { gap: 5% }
}
@media (max-width: 760px) {
  :root { scroll-padding-top: 68px }
  .bar { height: 62px; gap: 12px }
  .brand { gap: 8px }
  .brand img { width: 31px; height: 32px }
  .brand span { font-size: 20px }
  .brand small { font-size: 6px }




  .hero { background: radial-gradient(ellipse at 52% 66%,#172c3b,transparent 55%),var(--navy) }
  .hero-stage { min-height: 0; flex-direction: column; align-items: stretch }
  .hero-copy { width: 100%; padding: clamp(12px,2.5dvh,28px) 0 0; order: -1 }
  .hero-copy .eyebrow { font-size: 11px }
  h1 { font-size: clamp(32px,min(9.4vw,5.5dvh),56px); margin: 0 0 10px }
  .hero-copy p { font-size: 14px; line-height: 1.8 }
  .hero-actions { margin-top: clamp(8px,1.8dvh,19px); gap: 23px }
  .primary { padding: 11px 16px 11px 18px }
  .hero-art { position: relative; inset: auto; flex: 1 0 auto; width: 100%; padding-bottom: clamp(6px,1.5dvh,16px); margin-top: 8px }
  .hero-frames { flex: 1 0 clamp(88px,15dvh,185px); width: 100% }
  .scene-buttons a { min-height: 44px; padding: 7px 2px; font-size: 14px }
  .scene-caption p { margin-top: 5px }
  .facts { min-height: clamp(54px,8.4dvh,85px); grid-template-columns: 1fr 1.3fr 1fr }
  .fact + .fact { padding-left: 14px; border-left: 1px solid #ffffff2c }
  .fact strong { font-size: 30px }
  .fact span { font-size: 11px }
  .fact small { font-size: 12px }
  .scroll { display: none }
  .section { padding: 48px 0 }
  .section-head { display: block; margin: 9px 0 21px }
  .section-head p { margin-top: 10px; font-size: 13px }
  .service-panel { margin-top: 16px }
  .service-main { grid-template-columns: 1fr }
  .service-photo { min-height: 0; height: clamp(155px,46vw,230px) }
  .service-overview { padding: 22px }
  .service-main h4 { margin-top: 16px }
  .service-overview .summary-text { font-size: 14px }
  .scope div { grid-template-columns: 1fr; gap: 2px }
  .steps { grid-template-columns: 1fr; margin-top: 22px }
  .steps li { padding: 13px 0 13px 53px; border-top: 1px solid #c5d1d5 }
  .steps li::before,.steps li::after { display: none }
  .steps span { position: absolute; left: 0; top: 12px; font-size: 27px; padding: 0 }
  .steps h3 { margin: 0 0 4px; font-size: 17px }
  .steps p { max-width: none }
  .contact-grid { grid-template-columns: 1fr; gap: 24px }
  .clients { grid-template-columns: 1fr }
  .certs { grid-template-columns: 1fr 1fr }
  .extra { grid-template-columns: 1fr; gap: 5px }
  .extra dd { margin-bottom: 7px }
  .contact { padding: 44px 0 36px }
}
@media (max-width: 365px) {
  .desktop-br { display: none }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto }
  *,*::before,*::after { transition: none!important; animation: none!important }
}

/* Page layout */
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column }
main { flex: 1 0 auto; min-width: 0 }
.header,footer { flex-shrink: 0 }

.page-wrap,.contact-docs { padding-block: clamp(38px,5.5vw,86px) }
.page-wrap:has(> .service-layout) { --service-top-gap: 24px; padding-top: var(--service-top-gap) }
.page-heading { margin-bottom: clamp(22px,3.1vw,48px) }
.page-heading h1 { margin: 10px 0 12px; font-size: clamp(34px,3.8vw,62px); line-height: 1.2; letter-spacing: -.045em; font-weight: 575 }
.page-heading p { color: var(--muted); font-size: clamp(14px,1.2vw,18px); line-height: 1.75; max-width: 36em }
.service-layout { display: grid; grid-template-columns: minmax(155px,19%) minmax(0,1fr); align-items: start; gap: clamp(24px,4vw,68px) }
.service-index { position: sticky; top: calc(73px + var(--service-top-gap)) }
.service-index h2 { font-size: 16px; letter-spacing: 0; padding: 0 12px 13px }
.service-links { display: grid; border-top: 1px solid var(--line) }
.service-links a { display: flex; align-items: center; padding: 15px 12px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted) }
.service-links a[aria-current] { color: #204f74; background: #e9eff1; font-weight: 600; box-shadow: inset 2px 0 #416e91 }
.service-links a:hover { background: #edf1f2 }
.service-article { min-width: 0; container-type: inline-size }
.service-article .page-heading { margin-bottom: 20px }
.service-panel { margin-top: 0 }
.service-overview h2 { font-size: clamp(22px,2.1vw,33px); letter-spacing: -.035em; margin: 8px 0 10px; line-height: 1.35 }
.service-overview h3 { margin: 17px 0 0; font-size: 13px; letter-spacing: .045em; font-weight: 550; color: #486580 }
.scope-section { margin-top: clamp(26px,3vw,42px) }
.scope-section h2,.chapter > :is(h1,h2),.contact-docs h2 { font-size: clamp(22px,2vw,32px); margin: 0 0 16px }
.scope { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 26px }
.scope div { display: block; border-top: 1px solid var(--line); padding: 15px 0 }
.scope dt { font-size: 16px; margin-bottom: 5px }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; border-top: 1px solid var(--line); padding-top: 14px }
.text-link { display: inline-flex; align-items: center; gap: 15px; color: #295b82; font-size: 14px; padding: 8px 0 }
.text-link:hover,.chapter-links a:hover { text-decoration: underline; text-underline-offset: 4px }
.process-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.75fr); gap: clamp(24px,7vw,110px) }
.process-layout .steps { grid-template-columns: 1fr; margin: 0 }
.process-layout .steps li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 27px; border-top: 1px solid var(--line); padding: 20px 0 }
.process-layout .steps li::before,.process-layout .steps li::after { display: none }
.process-layout .steps span { grid-row: span 2; position: static; padding: 0; min-width: 1.65em; font-size: clamp(27px,2.6vw,42px) }
.process-layout .steps h3 { margin: 0 }
.process-layout .steps p { max-width: none }
.chapter-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; color: #295b82; font-size: 14px }
.chapter-links a { padding: 7px 0 }
.chapter { display: grid; grid-template-columns: minmax(140px,.7fr) minmax(0,2.6fr); gap: clamp(18px,4vw,64px); border-top: 1px solid var(--line); padding-block: clamp(24px,3.7vw,55px) }
.chapter .intro { margin: 0 }
.chapter .clients,.chapter .certs,.chapter .extra { padding-bottom: 0 }
.chapter .clients { grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); line-height: 1.7 }
.certs { grid-template-columns: repeat(auto-fit,minmax(min(100%,150px),1fr)) }
.certs button { min-width: 0; background: #f0f3f2 }
.certs img { width: 100%; height: clamp(112px,12vw,163px) }
.contact h1 { font-size: clamp(36px,4vw,64px); margin: 12px 0 }
.contact-docs { display: grid; grid-template-columns: 1fr 1.1fr; align-items: start; gap: 22px }
.contact-docs .text-link { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line) }
@container (max-width: 660px) {
  .service-main { grid-template-columns: 1fr }
  .service-photo { min-height: 0; height: clamp(160px,45cqw,270px) }
  .service-overview { padding: clamp(18px,4cqw,28px) }
}
@media (max-width: 760px) {
  :root { scroll-padding-top: 110px }
  .header .bar { height: auto; display: grid; grid-template-columns: 1fr; gap: 0; padding-top: 9px }
  #nav { grid-column: 1/-1; grid-row: 2; display: grid; grid-template-columns: minmax(44px,.7fr) repeat(4,minmax(max-content,1fr)); gap: 0; margin-top: 8px; border-top: 1px solid #ffffff24 }
  #nav a { min-height: 44px; padding: 5px 0; color: #c2d1dd; font-size: clamp(14px,3.8vw,16px); font-weight: 500; line-height: 1.35 }
  #nav a[aria-current] { color: #f3f9ff; font-weight: 650 }
  #nav a[aria-current]::after { bottom: 0; width: 2em; height: 3px; border-radius: 2px 2px 0 0; background: #9ecdf1 }

  .service-layout,.chapter,.contact-docs,.process-layout { grid-template-columns: 1fr; gap: 18px }
  .service-index { position: static }
  .service-index h2 { padding: 0 0 10px; color: var(--muted); font-size: 14px }
  .service-links { display: flex; flex-wrap: wrap; gap: 6px; border: 0 }
  .service-links a { font-size: 13px; line-height: 1.35; min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 20px }
  .service-links a[aria-current] { box-shadow: none; border-color: #6787a0 }
  .page-wrap { padding-top: 24px }
  .service-article .page-heading { margin: 0 0 18px }
  .scope { grid-template-columns: 1fr }
  .scope div { padding: 12px 0 }
  .chapter > :is(h1,h2) { margin-bottom: 0 }
  .chapter .intro h2 { font-size: 19px }
  .chapter-links { gap: 4px 17px; margin-bottom: 12px }
  .certs { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .chapter .extra dd { margin: 0 0 10px }
  .page-actions .source-link { margin: 4px 0 }
  .process-layout .steps li { padding: 15px 0; column-gap: 15px }
}
.service-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-top: 16px; margin-top: 10px; border-top: 1px solid var(--line) }
.service-pagination a { display: grid; gap: 5px; width: fit-content; padding: 6px 0 }
.service-pagination a[rel="next"] { text-align: right; justify-self: end }
.service-pagination small,.service-pagination span { color: var(--muted); font-size: 12px }
.service-pagination strong { color: #24547b; font-size: 14px; font-weight: 550 }
.service-pagination a:hover strong { text-decoration: underline; text-underline-offset: 3px }
@container (max-width: 500px) {
  .scope { grid-template-columns: 1fr }
}
.home-main,.home-main .hero { display: flex; flex-direction: column }
.home-page { min-height: 100dvh; background: var(--navy) }
.home-main .hero,.home-main .hero-stage { flex: 1 0 auto }
.home-main .hero-frames { pointer-events: auto }
.home-main .facts { grid-template-columns: repeat(3,minmax(0,1fr)) }
.scene-buttons a:hover { text-decoration: underline; text-underline-offset: 3px }

@media (max-width: 760px) {
  .home-page footer .wrap { padding-block: clamp(7px,1.3dvh,16px) }
  .home-page .footer-identity { gap: 2px }
}
@media (max-width: 760px) and (max-height: 680px) {
  .hero-copy { padding-top: 8px }
  .hero-copy p { font-size: 13px; line-height: 1.55 }
  .hero-actions { margin-top: 7px }
  .primary { padding-block: 8px }
  .scene-buttons a { min-height: 37px; padding-block: 4px; font-size: 13px }
  .fact { gap: 2px }
  .fact strong { font-size: 25px }
}
@media (max-width: 760px) and (max-height: 600px) {
  .header .bar { padding-top: 5px }
  #nav { margin-top: 5px }
  .hero-copy h1 { line-height: 1.12; margin-bottom: 4px }
  .hero-actions,.hero-art { margin-top: 4px }
  .home-main .facts { grid-template-columns: .9fr 1.3fr 1fr; min-height: 48px }
  .home-main .fact + .fact { padding-left: 7px }
  .home-page footer .wrap { padding-block: 4px }
}
@media (min-width: 761px) and (max-height: 700px) {
  .hero-copy { padding-block: 18px }
  .hero-copy h1 { margin-block: 0 12px }
  .hero-actions { margin-top: 16px }
  .facts { min-height: 70px }
  .home-page footer .wrap { padding-block: 12px }
}
@media (orientation: landscape) and (min-width: 560px) and (max-height: 540px) {
  .hero-stage { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); align-items: center; gap: 12px }
  .hero-copy { grid-area: 1/1; width: auto; padding: 8px 0 }
  .hero-copy h1 { font-size: clamp(29px,4.3vw,46px); margin: 0 0 6px }
  .hero-copy p { font-size: 13px; line-height: 1.55 }
  .hero-actions { margin-top: 8px; gap: 14px }
  .hero-art { grid-area: 1/2; align-self: stretch; position: relative; inset: auto; margin: 0; padding: 2px 0 4px }
  .hero-frames { flex: 1 0 66px }
  .scene-buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px; border-radius: 15px }
  .scene-buttons a { justify-content: center; min-height: 32px; padding: 3px; font-size: 12px }
  .scene-caption p { margin: 2px 0 0 }
  .facts { min-height: 48px }
  .fact { flex-direction: row; align-items: baseline; gap: 6px }
  .fact strong { font-size: 23px }
  .fact span { font-size: 11px }
  .home-page footer .wrap { padding-block: 6px }
}
@media (min-width: 500px) and (max-width: 760px) and (max-height: 430px) {
  .header .bar { width: calc(100% - 24px); grid-template-columns: auto 1fr; gap: clamp(6px,1.5vw,12px); padding-block: 0 }
  #nav { grid-area: 1/2; margin: 0; border: 0 }
  #nav a { font-size: 13px }
  .brand span { font-size: 17px }
}
@media (min-width: 560px) and (max-width: 760px) and (max-height: 430px) {
  .hero-copy .desktop-br { display: none }
  .hero-actions a { gap: 6px; font-size: 13px; white-space: nowrap }
  .hero-actions .primary { padding-inline: 12px }
}

@media (max-width: 760px), (pointer: coarse) and (orientation: landscape) and (max-height: 540px) {
  body > header, main, footer { touch-action: pan-y pinch-zoom }
  .footer-identity { grid-template-columns: 1fr; justify-items: center; gap: 5px }
  .scene-buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; padding: 0; border: 0; border-radius: 0; background: transparent }
  .scene-buttons a { position: relative; justify-content: space-between; border-radius: 0; border-bottom: 1px solid #ffffff22; color: #c3d0db }
  .scene-buttons a::after { content: ""; width: 6px; height: 6px; margin-inline: 6px; border: solid #7792a6; border-width: 1px 1px 0 0; transform: rotate(45deg) }
  .scene-buttons a.is-active { background: transparent; color: #e6f4ff }
  .scene-buttons a.is-active::before { content: ""; position: absolute; bottom: -1px; left: 0; width: 24px; height: 2px; background: #9ecdf1 }
}
