/* Multipage layout: the existing Rizvion identity, with more room for the work. */
#main-navigation a[aria-current="page"]::after{transform:scaleX(1)}
.breadcrumbs{display:flex;flex-wrap:wrap;gap:8px 13px;padding-block:26px 0;font-size:14px;color:var(--muted);line-height:1.5}
.breadcrumbs a{text-decoration:underline;text-underline-offset:3px;text-decoration-color:#b7c3cf}
.breadcrumbs a:hover{color:var(--navy);text-decoration-color:var(--navy)}
.breadcrumbs [aria-current]{color:var(--ink)}
.page-intro{padding-block:55px 61px;border-bottom:1px solid var(--line)}
.page-intro h1{max-width:900px;font-size:clamp(40px,4.2vw,58px);line-height:1.12;letter-spacing:-.7px;text-wrap:balance}
.page-lead{max-width:780px;font-size:20px;line-height:1.65;margin-top:23px}
.page-intro>.button,.intro-actions{margin-top:29px}
.intro-actions{display:flex;flex-wrap:wrap;gap:15px}
.page-cta{padding-block:49px;background:var(--navy);color:#fff}
.page-cta>.wrap{display:flex;justify-content:space-between;align-items:center;gap:40px}
.page-cta h2{font-size:33px;letter-spacing:-.3px;max-width:740px}
.page-cta p{color:#d2deeb;max-width:680px;margin-top:13px}
.page-cta .button{flex-shrink:0}
.compact-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-bottom:40px}
.compact-heading h2{max-width:670px;font-size:39px}
.compact-heading>p{max-width:410px}
.compact-heading>.text-link{white-space:nowrap;flex-shrink:0}
.service-rows{border-top:1px solid var(--line)}
.service-rows article{display:flex;align-items:center;justify-content:space-between;gap:50px;padding-block:30px;border-bottom:1px solid var(--line)}
.service-rows article>div{max-width:820px}
.service-rows h2{font-size:28px;letter-spacing:-.2px;margin-bottom:11px}
.service-rows h2 a:hover{color:var(--blue);text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.service-rows p{max-width:760px;font-size:17px}
.service-rows .button{flex-shrink:0;min-height:46px;padding:11px 19px;font-size:15px}
.services-overview{padding-block:15px 65px}
.services-overview .service-rows{border-top:0}
.resource-links{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin-bottom:75px}
.resource-links>a{display:block;border-top:3px solid #cc982e;padding-top:24px}
.resource-links h2{font-size:29px;margin-bottom:12px}
.resource-links p{max-width:450px}
.resource-links>a:hover h2{text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
.delivery-scope{display:grid;grid-template-columns:.7fr 1.3fr;gap:65px}
.delivery-scope>h2{font-size:36px;max-width:330px}
.scope-list{display:grid;grid-template-columns:1fr 1fr;gap:32px 40px}
.scope-list article{padding-top:18px;border-top:1px solid #becbd7}
.scope-list h3{font-size:23px;line-height:1.25;margin-bottom:10px}
.scope-list p{font-size:16px}
.inline-note{padding:21px 26px;border-left:3px solid #d1a33d;background:var(--soft);font-size:16px;line-height:1.7;margin-bottom:15px}
.inline-note a{font-weight:600;text-decoration:underline;text-underline-offset:3px}
.example-callout{border-top:1px solid var(--line);padding-block:40px 65px}
.example-callout h2{font-size:30px;margin-bottom:14px}
.example-callout p{max-width:740px;margin-bottom:23px}
.about-teaser{display:grid;grid-template-columns:.85fr 1.15fr;gap:70px;align-items:center}
.about-teaser>img{width:100%;height:310px;object-fit:cover}
.about-teaser h2{font-size:38px;max-width:550px;margin-bottom:22px}
.about-teaser .text-link{margin-top:22px}
.work-highlight{background:var(--soft)}
.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:45px 36px}
.project-card{min-width:0;background:#fff;border-bottom:1px solid #cbd5df}
.project-cover{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;background:#eaf0f4;border:1px solid #dde4e9;padding:21px;overflow:hidden}
.project-cover img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 9px #18345410)}
.project-card-body{padding:23px 0 27px}
.work-highlight .project-card-body{padding-inline:25px}
.project-meta{font-size:13px;font-weight:600;color:#4c6076;line-height:1.5;margin-bottom:11px}
.project-meta span{padding-inline:6px;color:#7c6b48}
.project-card h3{font-size:27px;line-height:1.22;margin-bottom:13px;letter-spacing:-.15px}
.project-card h3 a:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.project-card-body>p:not(.project-meta){font-size:17px;max-width:520px}
.project-card .text-link{margin-top:17px;font-size:15px}
.work-list{padding-block:35px 65px}
.portfolio-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:20px;padding-block:0 32px;margin-bottom:34px;border-bottom:1px solid var(--line)}
.portfolio-controls label{display:flex;flex-direction:column;gap:8px;font-weight:600;font-size:15px;min-width:220px}
.portfolio-controls select{min-height:48px;padding:10px 38px 10px 13px;border:1px solid #aebdcb;background:#fff;border-radius:2px;font-size:16px;width:100%}
.text-button{background:transparent;border:0;text-decoration:underline;text-underline-offset:4px;min-height:48px;padding:10px 5px;font-size:15px}
.text-button:hover{color:var(--blue)}
#portfolio-status{font-size:14px;line-height:48px;margin-left:auto}
.empty-state{padding:45px 24px;background:var(--soft);text-align:center}
.empty-state h2{font-size:29px;margin-bottom:13px}
.portfolio-disclosure{font-size:13px;line-height:1.6;color:#617183;margin-top:30px}
.portfolio-note{max-width:850px;margin-bottom:30px;padding:18px 22px;background:#f3f6f6;border-left:3px solid #b18a3f;font-size:15px;line-height:1.6;color:#526472}
.portfolio-note strong{display:block;color:#203c4a;font-weight:600;margin-bottom:3px}
.work-intro{padding-block:34px 38px}
.work-intro h1{font-size:clamp(34px,4vw,50px)}
.work-intro .page-lead{max-width:850px;margin-top:18px}
.project-context{display:grid;grid-template-columns:1.15fr .85fr;gap:80px;padding-block:46px 55px}
.project-context h2{font-size:25px;letter-spacing:-.2px;margin-bottom:16px}
.project-context p{max-width:680px}
.project-context aside{border-left:2px solid #d2aa51;padding-left:26px}
.project-context ul{margin:0;padding-left:20px;color:var(--muted);line-height:1.6}
.project-context li+li{margin-top:8px}
.project-gallery{padding-bottom:10px}
.page-intro+.project-gallery{padding-top:38px}
.project-figure+.project-figure{margin-top:48px}
.figure-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:18px}
.figure-heading h2{font-size:27px;letter-spacing:-.2px}
.zoom-button{background:#fff;border:1px solid #b2c1ce;border-radius:2px;font-size:14px;font-weight:600;padding:11px 17px;min-height:44px;flex-shrink:0}
.zoom-button:hover{background:var(--soft)}
.screenshot-link{display:block;padding:25px;background:#eff3f6;border:1px solid #dce3e8;text-align:center}
.screenshot-link img{width:auto;height:auto;max-width:100%;max-height:730px;margin-inline:auto;box-shadow:0 5px 20px #1834540c}
.project-figure figcaption{font-size:15px;line-height:1.6;color:var(--muted);margin-top:14px;max-width:860px}
.project-next{display:flex;justify-content:space-between;gap:24px;padding-block:35px 63px}
.image-dialog{padding:0;max-width:1450px;width:calc(100% - 48px);max-height:calc(100dvh - 48px);border-radius:3px}
.image-dialog-bar{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:25px;padding:15px 22px;background:#fff;border-bottom:1px solid var(--line);z-index:1}
.image-dialog-bar h2{font-size:22px;margin:0;padding:0;letter-spacing:0}
.image-dialog-close{width:44px;height:44px;border:1px solid var(--line);background:#fff;font-size:28px;flex-shrink:0;border-radius:2px}
.image-dialog-close:hover{background:var(--soft)}
.image-dialog-body{padding:24px;background:#edf1f4;overflow:auto;-webkit-overflow-scrolling:touch}
.image-dialog-body img{max-width:100%;height:auto;margin:auto}
.image-dialog>p{font-size:13px;padding:13px 22px}
.contact h1{font-size:45px;line-height:1.15;letter-spacing:-.4px;max-width:470px;margin-bottom:24px}
.contact{margin-top:27px}
.footer-email{display:inline-block;line-height:1.5;font-size:14px;margin-top:18px;text-decoration:underline;text-underline-offset:4px}
.footer-email:hover{color:var(--gold)}
.footer-main{grid-template-columns:1.15fr 1.15fr .7fr;gap:55px}
.page-intro+section.expertise,.page-intro+.company-intro,.page-intro+#data-platforms{padding-top:55px}
.page-intro+#connections{padding-top:40px}
.page-intro+#solutions{padding-top:45px}
.page-intro+.planning-scope{border-top:0;padding-top:50px}
.scope-list>*,.project-context>*,.resource-links>*,.about-teaser>*,.page-cta .wrap>*{min-width:0}
@media(max-width:1100px){
  .compact-heading{gap:30px}.compact-heading h2{font-size:35px}.compact-heading>p{max-width:360px}
  .delivery-scope{grid-template-columns:.65fr 1.35fr;gap:40px}.scope-list{gap:28px}
  .page-cta h2{font-size:31px}.page-cta .wrap{gap:30px}
  .project-context{gap:45px}.about-teaser{gap:40px}
}
@media(max-width:960px){
  #main-navigation a[aria-current="page"]{color:var(--blue);font-weight:700}
  .page-intro{padding-block:44px 50px}
  .compact-heading{align-items:flex-start;flex-direction:column;gap:20px}.compact-heading>p{max-width:680px}
  .service-rows article{gap:26px}.service-rows h2{font-size:26px}
  .delivery-scope{grid-template-columns:1fr;gap:30px}.delivery-scope>h2{max-width:650px}
  .page-cta>.wrap{align-items:flex-start;flex-direction:column;gap:26px}
  .project-grid{gap:38px 24px}.project-card h3{font-size:25px}.project-cover{padding:15px}
  .about-teaser h2{font-size:34px}.about-teaser>img{height:300px}
  .contact h1{font-size:39px}.footer-main{gap:35px}
}
@media(max-width:760px){
  .breadcrumbs{padding-top:22px;gap:5px 9px;font-size:13px}
  .page-intro{padding-block:33px 38px}.page-intro h1{font-size:clamp(32px,6.5vw,43px);letter-spacing:-.4px}
  .page-lead{font-size:18px;line-height:1.6;margin-top:19px}
  .compact-heading{margin-bottom:29px;gap:17px}.compact-heading h2{font-size:32px}
  .service-rows article{align-items:flex-start;gap:22px;flex-direction:column;padding-block:25px}
  .service-rows h2{font-size:25px}.service-rows p{font-size:16px}
  .service-rows .button{font-size:15px;min-height:46px}
  .resource-links{gap:28px;margin-bottom:50px}.resource-links h2{font-size:25px}.resource-links p{font-size:16px}
  .services-overview{padding-bottom:48px}
  .delivery-scope>h2{font-size:31px}.scope-list{gap:28px}.scope-list h3{font-size:22px}
  .about-teaser{grid-template-columns:1fr;gap:28px}.about-teaser>div{order:-1}.about-teaser>img{height:250px}
  .about-teaser h2{font-size:32px;max-width:540px}
  .project-grid{gap:35px 20px}.project-card h3{font-size:24px}.project-card-body>p:not(.project-meta){font-size:16px}
  .work-highlight .project-card-body{padding-inline:19px}
  .project-meta{font-size:12px}.project-meta span{padding-inline:3px}
  .work-list{padding-block:28px 48px}
  .portfolio-controls{gap:15px;align-items:start;margin-bottom:28px;padding-bottom:24px}
  .portfolio-controls label{flex:1 1 200px;min-width:0}
  .portfolio-controls .text-button{order:4}
  #portfolio-status{order:3;flex-basis:calc(100% - 120px);margin-left:0}
  .project-context{grid-template-columns:1fr;gap:29px;padding-block:32px 38px}
  .project-context h2{font-size:24px;margin-bottom:13px}
  .project-context aside{padding-left:20px}
  .figure-heading{align-items:flex-start;flex-direction:column;gap:13px;margin-bottom:15px}.figure-heading h2{font-size:25px}
  .zoom-button{font-size:14px;padding-inline:14px}
  .screenshot-link{padding:12px}.project-figure+.project-figure{margin-top:32px}.project-figure figcaption{font-size:14px}
  .project-next{padding-block:27px 46px;font-size:15px}
  .image-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px)}
  .image-dialog-bar{padding:10px 13px;gap:15px}.image-dialog-bar h2{font-size:20px}
  .image-dialog-body{padding:12px}.image-dialog-body img{max-width:none;width:auto;min-width:100%}
  .image-dialog>p{font-size:12px;padding:12px 15px}
  .page-cta{padding-block:38px}.page-cta h2{font-size:30px}
  .example-callout{padding-block:30px 47px}.example-callout h2{font-size:27px}
  .contact h1{font-size:36px;max-width:540px}.contact-grid>div>p{max-width:650px}
  .footer-main{grid-template-columns:1.15fr .85fr;gap:30px 24px}
  .page-intro+section.expertise,.page-intro+.company-intro,.page-intro+#data-platforms{padding-top:38px}
  .page-intro+#solutions,.page-intro+.planning-scope{padding-top:35px}
}
@media(max-width:600px){
  .page-intro+.project-gallery{padding-top:28px}
  .project-grid{grid-template-columns:minmax(0,1fr);gap:32px}
  .project-cover{padding:16px}.project-card-body{padding-top:20px}.project-card h3{font-size:26px}
  .project-meta{font-size:13px}.project-card .text-link{min-height:44px;display:inline-flex;align-items:center}
  .resource-links,.scope-list{grid-template-columns:minmax(0,1fr)}
  .resource-links{gap:33px}.scope-list{gap:24px}
  .project-next{flex-direction:column;align-items:flex-start;gap:14px}
}
@media(max-width:480px){
  .page-intro h1{font-size:34px}.page-lead{font-size:17px}.compact-heading h2{font-size:30px}
  .page-intro>.button,.intro-actions .button{width:100%}
  .portfolio-controls label{flex-basis:100%}.portfolio-controls select{font-size:16px}
  .page-cta .button{width:100%}.page-cta h2{font-size:28px}
  .contact h1{font-size:34px}.screenshot-link{padding:8px}
  .figure-heading h2{font-size:24px}.footer-nav{font-size:14px}
}

/* Keep the full project view visible on first open, with an explicit detail view. */
.image-dialog-body img{max-width:100%;min-width:0;width:auto}
.image-dialog-body.is-zoomed img{max-width:none;width:auto;min-width:100%}
.image-dialog-tools{display:flex;align-items:center;gap:10px;flex-shrink:0}
#image-size-toggle{min-height:44px;padding:9px 13px;border:1px solid #b2c1ce;background:#fff;border-radius:2px;font-size:14px;font-weight:600}
#image-size-toggle:hover{background:var(--soft)}
.image-dialog-bar h2{min-width:0}

/* Keep the close and send/copy controls available while a long inquiry scrolls. */
#inquiry-dialog{padding:0;overflow:hidden;max-height:calc(100dvh - 32px)}
#inquiry-dialog[open]{display:flex;flex-direction:column}
.inquiry-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:26px 28px 20px;border-bottom:1px solid var(--line);flex-shrink:0}
.inquiry-dialog-header .eyebrow{margin-bottom:9px}
.inquiry-dialog-header h2{margin:0;padding:0}
.inquiry-dialog-header .dialog-close{position:static;flex:0 0 44px;width:44px;height:44px;border-radius:2px}
.inquiry-dialog-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px 28px}
.inquiry-dialog-content>p{font-size:16px;line-height:1.6}
#inquiry-dialog #brief-preview{max-height:none;overflow:visible;margin:20px 0}
.inquiry-dialog-footer{padding:18px 28px 22px;border-top:1px solid var(--line);background:#fff;flex-shrink:0}
.inquiry-dialog-footer .dialog-actions{margin:0}
.inquiry-dialog-footer #copy-status:empty{display:none}
@media(max-width:600px){
  .image-dialog-bar{flex-wrap:wrap;gap:10px}
  .image-dialog-bar h2{flex:1 1 100%;padding:0}
  .image-dialog-tools{width:100%;justify-content:space-between}
  .inquiry-dialog-header{padding:18px 18px 15px;gap:12px}
  .inquiry-dialog-header h2{font-size:26px}
  .inquiry-dialog-content{padding:18px}
  .inquiry-dialog-footer{padding:14px 18px 18px}
  .inquiry-dialog-footer .dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .inquiry-dialog-footer #send-email{grid-column:1/-1}
  .inquiry-dialog-footer .button{font-size:13px;padding:10px 7px;min-height:44px}
}
