.deans-portal{--hero-blend:0;--hero-height:max(555px,calc(100svh - 118px));position:relative;color:#f7fbfd;background:#08141f}
.portal-stage{position:relative;isolation:isolate;overflow:hidden;min-height:var(--hero-height);display:grid;align-items:center;background:#102231}
.portal-art,.portal-photo,.portal-vignette{position:absolute;inset:0;pointer-events:none}
.portal-art{z-index:0}.portal-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 69%;filter:saturate(.92) contrast(1.015)}
.portal-vignette{z-index:1;background:linear-gradient(90deg,#06121df5 0%,#071521db 29%,#10213186 54%,#12243929 79%,#06111b22),linear-gradient(0deg,#091522a6,transparent 51%)}
.portal-inner{position:relative;min-width:0;z-index:2}
.portal-copy{padding:3rem 0 5rem}
.portal-copy>.eyebrow{font-size:.73rem;letter-spacing:.19em;color:#d2eaf5;margin-bottom:1.3rem}
.portal-copy>.eyebrow span{width:7px;height:7px;vertical-align:1px;margin-right:7px}
.portal-lines{display:grid;grid-template-columns:1fr}
.portal-intro,.portal-outro{grid-area:1/1}
.portal-copy h1,.portal-statement{font-weight:810;line-height:.96;letter-spacing:-.055em;color:#f7fbfd;margin:0}
.portal-copy h1{font-size:clamp(2.7rem,5.25vw,5.15rem)}
.portal-copy em{font-style:normal;color:#55def9}.portal-motto em{font-size:.82em}
.portal-intro>p,.statement-desc{max-width:41ch;font-size:clamp(.97rem,1.4vw,1.15rem);color:#e7f2f8;line-height:1.48;margin-top:1rem}
.portal-outro{display:none;opacity:var(--hero-blend);transform:translateY(calc((1 - var(--hero-blend))*14px));pointer-events:none}
.portal-statement{font-size:clamp(2.85rem,5.72vw,6.2rem);line-height:.92}
.portal-actions{display:flex;gap:.48rem 1.18rem;align-items:center;flex-wrap:wrap;margin-top:1.22rem}
.portal-actions .button{min-height:49px;gap:.65rem;padding-inline:1.15rem}
.portal-phone{font-size:.88rem;font-weight:750;text-decoration:none;color:#f0f7fa;min-height:44px;display:inline-flex;align-items:center}
.portal-phone:hover{text-decoration:underline}
.portal-services{display:flex;flex-wrap:wrap;gap:.26rem .8rem;margin-top:1.15rem;padding-top:.49rem;border-top:1px solid #a9c4d670;width:fit-content;max-width:100%}
.portal-services a{display:inline-flex;align-items:center;gap:.35rem;min-height:40px;color:#ecf5f9;text-decoration:none;font-size:.77rem;font-weight:720;white-space:nowrap}
.portal-services a:hover{color:#6de7ff;text-decoration:underline}
.portal-services span{color:#70e5ff;font-size:.64rem;font-weight:800;letter-spacing:.05em}
.portal-branches{position:absolute;inset:auto 0 0;width:100%;z-index:3;background:#071a28f2;border-top:1px solid #95c4db40}
.portal-branch-inner{display:flex;align-items:center;gap:.08rem clamp(.9rem,2.4vw,2.15rem);min-height:55px;flex-wrap:wrap}
.portal-branch-inner span{color:#9adaf3;font-size:.66rem;font-weight:800;letter-spacing:.15em;white-space:nowrap}
.portal-branch-inner a{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;color:#f4faff;font-size:.84rem;font-weight:730;text-decoration:none}
.portal-branch-inner a::before{content:'';width:5px;height:5px;border-radius:50%;background:#5adcf4}
.portal-branch-inner a:hover{text-decoration:underline}
.portal-hint{display:none}
.portal-active{height:calc(var(--hero-height) + 45svh)}
.portal-active .portal-stage{height:var(--hero-height);position:sticky;top:0}
.portal-active .portal-intro{opacity:calc(1 - var(--hero-blend));transform:translateY(calc(var(--hero-blend)*-14px))}
.portal-active .portal-outro{display:block}
@media(max-width:760px){
 .deans-portal{--hero-height:max(520px,calc(100svh - 153px))}
 .portal-inner,.portal-branch-inner{width:calc(100% - 38px)}
 .portal-copy{padding:2.1rem 0 6.3rem}
 .portal-copy h1{font-size:clamp(2.42rem,10.4vw,4.4rem)}
 .portal-statement{font-size:clamp(2.4rem,8.7vw,4.9rem)}
 .portal-vignette{background:linear-gradient(90deg,#071421f0,#0714219e 72%,#0714216b),linear-gradient(0deg,#071825 1%,transparent 66%)}
 .portal-photo img{object-position:78% 65%}
 .portal-branch-inner{gap:0 .77rem;padding:.57rem 0 .1rem}
 .portal-branch-inner span{flex-basis:100%}
 .portal-branch-inner a{font-size:.79rem}
 .portal-services{gap:.05rem .62rem;margin-top:.81rem}
 .portal-services a{min-height:44px}
}
@media(max-width:350px){.portal-branch-inner{gap:0 .60rem}.portal-branch-inner a{font-size:.73rem}.portal-copy{padding-bottom:7.45rem}}

/* Pin the masthead and intro as a single viewport; the next section touches it. */
:root{--masthead-height:76px;--branch-dock-height:0px;scroll-padding-block:var(--masthead-height) var(--branch-dock-height)}
.opening{--hero-travel:clamp(150px,20svh,185px);position:relative}
.opening-masthead{position:sticky;top:0;z-index:8}
.opening .deans-portal{--hero-height:max(500px,calc(100svh - var(--masthead-height)))}
.opening .portal-active{height:calc(var(--hero-height) + var(--hero-travel))}
.opening .portal-active .portal-stage{top:var(--masthead-height)}
@media(max-width:760px){:root{--masthead-height:114px}.opening{--hero-travel:130px}}
@media(max-width:350px){.opening .deans-portal{--hero-height:max(540px,calc(100svh - var(--masthead-height)))}}


.portal-branch-inner{justify-content:center}
@media(max-width:760px){.portal-branch-inner span{text-align:center}}

.portal-phone{min-height:54px;gap:.62rem;padding:.39rem .82rem;border:1px solid #b5dced91;border-radius:6px;background:#071725d9;line-height:1.03;white-space:nowrap}
.portal-phone svg{color:#68e2fa;flex:none}
.portal-phone small,.portal-phone strong{display:block}.portal-phone small{font-size:.56rem;font-weight:820;letter-spacing:.13em;color:#a3dcea;margin-bottom:.21rem}
.portal-phone strong{font-size:clamp(1.07rem,1.75vw,1.43rem);font-weight:820;letter-spacing:.015em;font-variant-numeric:tabular-nums}
.portal-phone:hover{background:#12354a;border-color:#5ae0fa;text-decoration:none}
@media(max-width:760px){.portal-actions{gap:.48rem .56rem}.portal-phone{min-height:50px;padding:.36rem .57rem;gap:.38rem}.portal-phone svg{width:16px;height:16px}.portal-actions .button{padding-inline:.86rem}}

/* The pinned navbar should not pick up the hero photo behind it. */
.opening-masthead>header{background:#fff}

/* A fixed desktop branch strip frames the story without crowding phones. */
.branch-dock{display:none}
@media(min-width:1000px) and (min-height:730px){
 :root{--branch-dock-height:48px}
 body{padding-bottom:var(--branch-dock-height)}
 .portal-stage>.portal-branches{display:none}
 .branch-dock{display:block;position:fixed;inset:auto 0 0;z-index:7;height:var(--branch-dock-height);background:#071a28}
 .branch-dock .portal-branch-inner{min-height:0;height:100%}
 .opening .deans-portal{--hero-height:max(480px,calc(100svh - var(--masthead-height) - var(--branch-dock-height)))}
 .portal-copy{padding-bottom:3rem}
}

@media(max-width:730px){
 .opening .deans-portal{--hero-height:clamp(420px,calc(100svh - var(--masthead-height)),525px)}
 .portal-copy{padding-block:1.35rem 5.9rem}
 .portal-branch-inner a{min-height:44px}
 .draft-inner{min-height:29px}
 .nav nav{padding-top:.34rem}
}

.opening-masthead .nav{gap:clamp(.65rem,1.5vw,1.35rem)}
.opening-masthead .nav-wide{gap:clamp(.58rem,1.24vw,1.2rem);white-space:nowrap;font-size:.92rem}
.opening-masthead .nav-actions{gap:clamp(.55rem,1.4vw,1rem);margin-inline-start:auto;white-space:nowrap}
.nav-menu{display:none;position:relative}
.nav-menu summary{display:flex;align-items:center;justify-content:center;gap:.38rem;cursor:pointer;min-height:44px;padding:.35rem .58rem;border:1px solid #b3cbd8;border-radius:5px;background:#f4f9fc;font-size:.83rem;font-weight:730;list-style:none}
.nav-menu summary::-webkit-details-marker{display:none}
.nav-menu summary span{color:#086987}
.nav-menu[open] summary{border-color:#087b9f;background:#e2f5fb}
.opening-masthead .nav-menu nav{position:absolute;top:calc(100% + 10px);right:0;display:grid;width:min(270px,calc(100vw - 32px));max-height:calc(100svh - var(--masthead-height) - 12px);overflow:auto;gap:0;padding:.35rem;border:1px solid #bed4df;border-radius:8px;background:white;box-shadow:0 14px 30px #13334433}
.opening-masthead .nav-menu nav a{padding:.6rem .65rem;min-height:43px;border-radius:4px;display:flex;align-items:center;color:#132d41}
.opening-masthead .nav-menu nav a:hover{background:#edf7fb;color:#075674;text-decoration:none}
@media(max-width:1150px){
 .opening-masthead .nav-wide{display:none}
 .nav-menu{display:block}
}
@media(max-width:680px){
 .opening-masthead .nav{flex-wrap:nowrap;width:calc(100% - 24px);gap:.4rem}
 .opening-masthead .nav .logo img{width:clamp(106px,32vw,145px)}
 .opening-masthead .nav-actions .primary{font-size:.78rem;min-height:43px;padding:.35rem .52rem}
 .nav-menu summary{padding-inline:.46rem}
}

.branch-dock .portal-branch-inner{gap:clamp(.65rem,1.6vw,1.55rem);flex-wrap:nowrap;white-space:nowrap}
.dock-branch{display:flex;align-items:center;gap:.48rem}
.branch-dock .dock-office{font-size:.73rem;color:#b9ddea;font-variant-numeric:tabular-nums}
.branch-dock .dock-office::before{content:none}
.branch-dock .dock-office:hover{color:white}
.branch-dock .dock-top{
 position:absolute;inset-block:2px;inset-inline-end:clamp(.7rem,1.55vw,1.6rem);
 display:inline-flex;align-items:center;gap:.42rem;min-width:44px;padding-inline:.7rem;
 border-inline-start:1px solid #375668;color:#f4faff;font-size:.84rem;font-weight:730;text-decoration:none
}
.branch-dock .dock-top svg{color:#5adcf4}
.branch-dock .dock-top:hover{background:#15374b}

@media(min-width:731px){
 .opening-masthead .full-phone{display:inline-flex;align-items:center;gap:.4rem}
 .opening-masthead .full-phone svg{color:#086987;flex:none}
}

/* Keep page links centred independently of the logo and contact actions. */
@media(min-width:1151px){
 .opening-masthead .nav{
  width:min(1280px,calc(100% - 54px));
  display:grid;grid-template-columns:minmax(244px,1fr) max-content minmax(244px,1fr);
  column-gap:clamp(.8rem,1.55vw,1.55rem);
 }
 .opening-masthead .nav .logo{justify-self:start}
 .opening-masthead .nav-wide{
  --nav-link-gap:clamp(.7rem,1.2vw,1.25rem);
  justify-content:center;gap:var(--nav-link-gap);
 }
 .opening-masthead .nav-wide>a+a::before{
  content:'';position:absolute;pointer-events:none;
  inset-inline-start:calc(var(--nav-link-gap) / -2);
  top:50%;transform:translateY(-50%);
  width:1px;height:22px;background:#c9d9e2;
 }
 .opening-masthead .nav-wide a{
  position:relative;display:flex;align-items:center;min-height:44px;
  font-weight:660;color:#183447;text-decoration:none;
 }
 .opening-masthead .nav-wide a::after{
  content:'';position:absolute;inset:auto 0 4px;height:2px;border-radius:2px;
  background:#09a9cc;opacity:0;
 }
 .opening-masthead .nav-wide a:is(:hover,:focus-visible){color:#006783;text-decoration:none}
 .opening-masthead .nav-wide a:is(:hover,:focus-visible)::after{opacity:1}
 .opening-masthead .nav-actions{
  justify-self:end;margin:0;gap:clamp(.6rem,1vw,.95rem);border-inline-start:1px solid #c9d9e2;
  padding-inline-start:clamp(.65rem,1.1vw,1.15rem);
 }
 .opening-masthead .nav-actions .call{font-size:.87rem;font-weight:750;font-variant-numeric:tabular-nums}
 .opening-masthead .nav-actions .primary{font-size:.9rem;padding-inline:1rem}
}

.portal-review{
 display:inline-flex;align-items:center;gap:.62rem;max-width:100%;min-height:44px;margin-top:.35rem;
 padding:.35rem .7rem;border:1px solid #b0dcf163;border-radius:5px;background:#071d2bde;
 color:#edf9ff;text-align:left;cursor:pointer;line-height:1.2;
}
.portal-review svg{color:#ffe2a1;flex:none}
.portal-review strong{font-size:.82rem;font-weight:750}
.portal-review span{font-size:.74rem;color:#cae4ee;border-inline-start:1px solid #9abed16b;padding-inline-start:.62rem}
.portal-review:hover{background:#11374d;border-color:#79d3e9}
.portal-review:hover span{text-decoration:underline;text-underline-offset:3px}
#review-dialog{width:min(520px,calc(100% - 2rem));background:#f7fbfd;border-color:#b5d5e2;color:#0b2130;padding:clamp(1.1rem,4vw,2rem)}
#review-dialog::backdrop{background:#04121dd1}
#review-dialog .review-close{display:grid;place-items:center;width:44px;height:44px}
.review-brand{width:138px;height:auto;margin-bottom:1rem}
#review-dialog h2{font-size:clamp(1.7rem,5.5vw,2.42rem)}
#review-dialog p{color:#304d60;font-size:.95rem}
#review-dialog .review-place{margin:.35rem 0 .4rem;color:#075f7e;font-size:.75rem;font-weight:820;letter-spacing:.1em}
.review-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.05rem}
.review-actions [hidden]{display:none}
#review-dialog .review-hint{font-size:.79rem}
@media(max-width:730px){
 .portal-copy{display:flex;flex-direction:column;align-items:start}
 .portal-review{order:1;margin-top:.6rem}
 .portal-services{order:2}
 .review-actions .button{flex:1 1 180px;font-size:.88rem}
}

/* A consistent, shallow photo band keeps the service chapter compact. */
#services .services article{--service-pad:1rem;min-width:0;padding:0 var(--service-pad) 1rem;gap:.64rem}
#services .service-photo{display:block;width:calc(100% + 2 * var(--service-pad));max-width:none;margin-inline:calc(-1 * var(--service-pad));height:clamp(76px,13svh,116px);object-fit:cover;object-position:center 49%;background:#dfebf1;border-bottom:1px solid var(--line)}
#services .service-photo[src$="deans-field-ute.webp"]{object-position:100% 62%}
#services .service-photo[src$="adas-bracket.webp"]{object-position:50% 35%}
#services .service-icon{margin-top:.12rem}
@media (731px <= width < 1000px){
 #services .services{grid-template-columns:repeat(3,minmax(0,1fr))}
}
