/* AFBS Portal v3.1: components introduced in v3 and missing from the v2 stylesheet.
   Only design, layout and responsiveness are changed: routes, scripts, news and chat remain. */
:root {--v3-edge:#233b55;--v3-surface:#0e1d31;--v3-surface-2:#10233a;--v3-muted:#9eb4c9}
:focus-visible{outline:2px solid #53dbf6;outline-offset:3px}
.header .nav a[aria-current="page"]{color:#7bdef7}
/* Maintain a compact landing page, like the original design */
.hero-home{min-height:580px;padding-top:44px;padding-bottom:62px}
.hero-home .hero-visual{min-height:435px}
.hero-home .hero-emblem{width:min(92%,440px)}
.hero-home .hero-proof{margin-top:35px}
.hero-home h1{font-size:clamp(45px,4.55vw,68px);line-height:1.09}
.section-preview{padding-block:76px}
.section-preview .section-head{align-items:flex-end;margin-bottom:30px}
.section-preview .section-head h2{max-width:700px}
.section-aside{max-width:370px;display:flex;flex-direction:column;align-items:flex-start;gap:18px;padding-bottom:5px}
.section-aside p{margin:0;color:#a8bed3;font-size:15px;line-height:1.7}
.section-aside .text-link{align-self:flex-start}
.section-panel{background:linear-gradient(110deg,#0c1c31,#0b182a 56%,#0b2037);border-block:1px solid #20374e}
.section-panel>.container{position:relative}
/* Solution preview tiles */
.teaser-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.teaser{display:flex;flex-direction:column;position:relative;min-height:219px;padding:27px 26px;background:linear-gradient(145deg,#112a41,#0c1b2e);border:1px solid #294660;border-radius:16px;overflow:hidden;transition:transform .25s,border-color .25s,box-shadow .25s}
.teaser:before{content:"";position:absolute;top:0;left:0;width:35%;height:3px;background:linear-gradient(90deg,#4de5ed,transparent)}
.teaser:hover{transform:translateY(-5px);border-color:#50bce9;box-shadow:0 15px 36px #0003}
.teaser>span{font-size:11px;font-weight:830;letter-spacing:.17em;color:#62cbe9;margin-bottom:25px}
.teaser strong{font-size:23px;line-height:1.25;letter-spacing:-.025em;max-width:260px;color:#f4fbff}
.teaser p{font-size:13px;line-height:1.7;color:#a4bad0;margin:13px 0 21px;max-width:310px}
.teaser b{font-size:19px;color:#5ae4fc;margin-top:auto;align-self:flex-end;font-weight:500}
/* Project cards: compact on home, substantial on portfolio */
.case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;align-items:stretch}
.case-card{position:relative;min-width:0;padding:25px;display:flex;flex-direction:column;gap:0;background:linear-gradient(150deg,#132940,#101d30 85%);border:1px solid #29445d;border-radius:16px;transition:transform .24s,border-color .24s,box-shadow .24s;overflow:hidden}
.case-card:before{position:absolute;content:"";inset:0 0 auto;height:2px;background:linear-gradient(90deg,#47dffa,transparent);opacity:.45}
.case-card:hover{border-color:#3ba9cf;box-shadow:0 18px 34px #0003;transform:translateY(-4px)}
.case-card-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.case-icon{width:42px;height:42px;min-width:42px;border:1px solid #245c82;border-radius:11px;background:#0c3b59;color:#65dffe;display:grid;place-items:center;font-size:22px;line-height:1}
.case-status{font-size:10px;line-height:1.3;color:#7ee9c7;font-weight:780;background:#0e3a38;border:1px solid #225850;padding:7px 9px;border-radius:99px;text-align:center}
.case-category{font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:#6baccd;font-weight:780;line-height:1.5}
.case-category span{margin-inline:5px;color:#356f93}
.case-card h3{font-size:19px;letter-spacing:-.02em;line-height:1.35;margin:10px 0 11px;color:#f6fbff}
.case-card p{font-size:13px;line-height:1.72;color:#9eb3c9;margin:0 0 22px}
.case-card .chips{margin-top:auto;margin-bottom:20px}
.case-card .chips span{white-space:normal}
.case-read{border-top:1px solid #2a445a;padding-top:16px;color:#64dafa;font-weight:800;font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.case-read:hover{color:#fff}
.case-read span{font-size:18px}
.case-card-compact{min-height:340px}
.disclosure{color:#809bb0;font-size:12px;line-height:1.7;margin:20px 0 0}
/* Short promotional CTA */
.cta-short{padding-block:65px}
.cta-short h2{font-size:clamp(40px,4.6vw,64px);margin-block:12px}
.cta-short p{margin-bottom:21px}
/* Consistent internal-page headings and breadcrumbs */
.breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding-top:34px;color:#718ea9;font-size:12px}
.breadcrumb a{color:#93b7d0}.breadcrumb a:hover{color:#56def9}.breadcrumb>span{color:#4ca7d6}
.subhero{padding-top:72px;padding-bottom:67px;position:relative;overflow:hidden}
.subhero:after{content:"";position:absolute;top:-200px;right:-85px;width:560px;height:560px;background:radial-gradient(circle,rgba(4,130,220,.13),transparent 70%);pointer-events:none}
.subhero h1{font-size:clamp(44px,5.4vw,76px);letter-spacing:-.057em;line-height:1.08;font-weight:870;max-width:940px;margin:22px 0}
.subhero h1 span,.project-hero h1 span{background:linear-gradient(90deg,#55e2f1,#538cff);background-clip:text;-webkit-background-clip:text;color:transparent}
.subhero>p{font-size:17px;line-height:1.75;color:#acbfd2;max-width:720px;margin:0}
/* Portfolio intro and filter navigation */
.portfolio-intro{padding-bottom:26px}
.portfolio-banner{background:radial-gradient(circle at 88% 34%,#123e65,#101e32 48%,#12283e);border:1px solid #2b5370;border-radius:20px;display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:20px;align-items:center;padding:36px 40px;overflow:hidden}
.mini-kicker{font-size:10px;letter-spacing:.19em;color:#65d6f6;font-weight:880;display:block;margin-bottom:15px}
.portfolio-banner h2{font-size:clamp(29px,3.3vw,42px);letter-spacing:-.035em;line-height:1.16;margin:0 0 13px}
.portfolio-banner p{font-size:14px;color:#a1b6c9;max-width:690px;line-height:1.75;margin:0}
.portfolio-banner-graphic{font-size:45px;font-weight:900;letter-spacing:-.06em;color:#cdf7ff;text-shadow:0 0 40px #1fb6ff8c;opacity:.76;text-align:center;white-space:nowrap}
.portfolio-banner-graphic span{color:#33bced;font-size:30px;margin:0 8px}
.portfolio-list{padding-top:30px;padding-bottom:90px}
.portfolio-tools{display:flex;align-items:flex-end;gap:20px;justify-content:space-between;flex-wrap:wrap;margin-bottom:16px}
.filter-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:9px;flex:1}
.filter-tab{cursor:pointer;background:#111f34;color:#9eb6ca;border:1px solid #2b445f;border-radius:10px;padding:10px 14px;font-size:12px;font-weight:750;transition:background .2s,border-color .2s,color .2s}
.filter-tab:hover{color:#fff;border-color:#528aa9}
.filter-tab[aria-pressed="true"]{color:#081a2a;background:#5ad2ed;border-color:#5ad2ed}
.search-label{display:flex;flex-direction:column;gap:8px;color:#8aa5bd;font-size:11px;font-weight:750;min-width:250px}
.search-label input{background:#0f2337;border:1px solid #2b516a;color:#f6fcff;border-radius:10px;padding:12px 13px;font-size:13px;width:100%;outline:none}
.search-label input:focus{border-color:#53c7ef;box-shadow:0 0 0 3px #228ecb22}
.search-label input::placeholder{color:#7792a9}
.case-counter{font-size:12px;color:#82a4b8;margin-bottom:22px}
.portfolio-list .case-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.portfolio-list .case-card{min-height:340px}
.case-empty{padding:40px;border:1px dashed #315673;border-radius:14px;color:#b4cbdc;grid-column:1/-1;text-align:center}
.case-card[hidden]{display:none!important}
/* Solutions */
.services-page-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-top:0;padding-bottom:85px}
.service-detail{background:linear-gradient(150deg,#142b42,#0b1b2f);border:1px solid #2b4863;border-radius:18px;min-height:300px;padding:30px;display:flex;flex-direction:column;align-items:flex-start}
.service-detail-head{display:flex;align-items:center;gap:17px;margin-bottom:20px}
.service-detail-icon{width:49px;height:49px;border-radius:13px;border:1px solid #286185;display:grid;place-items:center;background:#123e5c;color:#75e2f8;font-size:27px}
.service-detail h2{font-size:29px;line-height:1.22;letter-spacing:-.035em;margin:0 0 12px}
.service-detail p{font-size:14px;color:#9eb7cc;line-height:1.8;margin:0 0 19px}
.service-detail .chips{margin-top:auto;margin-bottom:22px}
/* About */
.about-page{padding-top:0;display:grid;grid-template-columns:.85fr 1.15fr;gap:75px;align-items:center}
.about-page .about-photo{max-height:none}
.about-page .about-photo img{height:530px}
.about-page .about-copy{max-width:640px}
.about-page h2{font-size:clamp(34px,4vw,57px)}
.about-page .about-copy>p{line-height:1.85}
.teaser.static:hover{transform:none;box-shadow:none}
/* Contact */
.contact-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:20px;padding-bottom:90px}
.contact-primary{border:1px solid #2c5874;border-radius:19px;background:radial-gradient(circle at top right,#1b5170,#10283e 60%,#0c1d31);padding:43px;display:flex;flex-direction:column;align-items:flex-start}
.contact-primary h2{font-size:clamp(32px,4vw,51px);line-height:1.15;letter-spacing:-.045em;margin:15px 0 19px}
.contact-primary p{font-size:15px;line-height:1.85;color:#b1c3d4;margin:0 0 27px}
.contact-number{margin-top:29px;font-size:24px;letter-spacing:-.025em;font-weight:830;color:#67dff5}
.contact-secondary{border:1px solid #2a435d;border-radius:19px;background:#0f1d30;padding:33px 34px}
.contact-method{border-top:1px solid #284058;padding:19px 0;display:flex;flex-direction:column;gap:7px}
.contact-method b{color:#d8f6ff;font-size:15px}
.contact-method span{color:#97b0c5;font-size:13px;line-height:1.65}
/* Radar */
.radar-page{padding-bottom:92px}
.radar-info{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px;border:1px solid #284a64;border-radius:14px;padding:22px 24px;background:#0e2237}
.radar-info strong{font-size:14px;color:#ebf9ff;margin-left:12px}
.radar-info p{color:#9fb6c9;font-size:13px;line-height:1.65;margin:8px 0 0}
.radar-bubble{background:#173751;border:1px solid #306587;border-radius:30px;padding:9px 17px;white-space:nowrap;color:#6fdef5;font-size:11px;font-weight:850;letter-spacing:.12em}
.radar-bottom{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-top:23px;color:#819eb5;font-size:12px}
/* Individual case page */
.project-hero{padding:75px 45px;background:radial-gradient(circle at 94% 30%,#16456d,#0d2139 54%,#0b1d31);border:1px solid #254e6c;border-radius:20px;display:grid;grid-template-columns:1fr 155px;gap:24px;align-items:center;margin-top:32px}
.project-head h1{font-size:clamp(35px,4.4vw,60px);line-height:1.11;letter-spacing:-.045em;margin:18px 0}
.project-head>p{color:#b0c5d5;font-size:16px;line-height:1.8;max-width:810px;margin:0 0 25px}
.project-meta{display:flex;flex-wrap:wrap;gap:8px}
.project-meta span{display:inline-block;border:1px solid #336080;background:#10354e;border-radius:99px;padding:7px 13px;font-size:11px;color:#b8e2f4}
.project-hero-icon{font-size:85px;color:#67dcf4;opacity:.5;text-align:center}
.project-layout{display:grid;grid-template-columns:minmax(0,1fr) 328px;gap:40px;align-items:start;padding-top:62px;padding-bottom:60px}
.project-section{padding:0 0 32px;margin:0 0 31px;border-bottom:1px solid #24435b}
.project-section h2{font-size:30px;letter-spacing:-.03em;line-height:1.2;margin:13px 0}
.project-section p{font-size:15px;color:#a6bed1;line-height:1.9;margin:0}
.case-disclaimer{border-left:3px solid #2a9dc2;background:#0e2638;color:#90b4ca;font-size:12px;line-height:1.8;padding:15px 18px;border-radius:0 9px 9px 0}
.project-side-card{border:1px solid #2c536b;border-radius:16px;background:#11243a;padding:24px;position:sticky;top:108px}
.project-side-card dl{display:grid;grid-template-columns:120px 1fr;gap:13px 11px;margin:0 0 28px;font-size:12px}
.project-side-card dt{color:#77a1bd}
.project-side-card dd{margin:0;color:#e0f4fe;font-weight:700}
.project-side-card .chips{margin:0 0 25px}
.project-side-card .btn{width:100%;min-height:auto;text-align:center;line-height:1.4;padding:13px 15px}
.related{padding-top:45px}
/* Legal page */
.legal-prose{background:#102238;border:1px solid #29465d;border-radius:16px;padding:34px 43px;margin-bottom:90px;color:#b0c5d3;font-size:15px;line-height:1.85}
.legal-prose h2{color:#f1faff;font-size:23px;letter-spacing:-.02em;line-height:1.28;margin:25px 0 12px}
.legal-prose h2:first-child{margin-top:0}
.legal-prose a{color:#55d9f6;text-decoration:underline}
.footer-legal{font-size:11px;color:#6e91a9}
@media(max-width:1100px){
 .hero-home h1{font-size:clamp(42px,5.1vw,61px)}
 .section-preview{padding-block:66px}
 .case-grid,.portfolio-list .case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .section-head .section-aside{max-width:350px}
 .project-layout{grid-template-columns:minmax(0,1fr) 295px;gap:25px}
 .portfolio-banner{grid-template-columns:1fr 180px}
}
@media(max-width:760px){
 .hero-home{padding-top:49px;padding-bottom:46px;min-height:0}
 .hero-home .hero-visual{min-height:310px}
 .hero-home .hero-proof{margin-top:25px}
 .section-preview{padding-block:55px}
 .section-preview .section-head{display:block;margin-bottom:25px}
 .section-aside{max-width:none;margin-top:20px;gap:12px}
 .teaser-grid{grid-template-columns:1fr;gap:12px}
 .teaser{min-height:170px;padding:21px}
 .teaser>span{margin-bottom:12px}
 .teaser strong{font-size:22px}
 .teaser p{margin:10px 0}
 .case-grid,.portfolio-list .case-grid{grid-template-columns:1fr;gap:14px}
 .case-card,.case-card-compact,.portfolio-list .case-card{min-height:0;padding:23px}
 .case-card .chips{margin-top:8px}
 .cta-short{padding-block:59px}
 .breadcrumb{padding-top:21px}
 .subhero{padding-top:49px;padding-bottom:45px}
 .subhero h1{font-size:clamp(39px,9.2vw,57px)}
 .subhero>p{font-size:15px}
 .portfolio-banner{grid-template-columns:1fr;padding:25px}
 .portfolio-banner-graphic{font-size:29px;text-align:left;opacity:.65}
 .portfolio-tools{display:block}
 .filter-tabs{margin-bottom:19px}
 .search-label{width:100%}
 .services-page-grid{grid-template-columns:1fr;gap:12px;padding-bottom:55px}
 .service-detail{padding:25px;min-height:0}
 .service-detail h2{font-size:26px}
 .about-page{grid-template-columns:1fr;gap:30px}
 .about-page .about-photo img{height:440px}
 .contact-layout{grid-template-columns:1fr;padding-bottom:60px}
 .contact-primary,.contact-secondary{padding:26px}
 .contact-primary h2{font-size:37px}
 .radar-info{flex-direction:column;align-items:flex-start}
 .radar-bottom{flex-direction:column;align-items:flex-start}
 .project-hero{padding:31px 25px;grid-template-columns:1fr}
 .project-hero-icon{display:none}
 .project-layout{grid-template-columns:1fr;gap:15px;padding-block:40px}
 .project-side-card{position:static}
 .related{padding-top:30px}
 .legal-prose{padding:25px}
}
@media(max-width:420px){
 .hero-home h1{font-size:40px}
 .portfolio-banner-graphic{white-space:normal}
 .project-side-card dl{grid-template-columns:100px 1fr}
 .case-status{font-size:9px}
}
/* The ambient background is purely decorative; never let it extend mobile page width. */
@media(max-width:760px){.ambient{display:none}}
