/* CQ's blue–teal direction. Scoped to this view;
   no legacy shell dependencies. */
.cq-next {
  --navy:#112e40;
  --blue:#1c3c50;
  --teal:#245a64;
  --green:#82ce3f;
  --ink:#102936;
  --text:#eef4f5;
  --muted:#c3d5db;
  --line:rgb(191 227 230 / 22%);

  margin:0;
  background:linear-gradient(160deg,var(--blue),var(--teal));
  color:var(--text);
  font:16px/1.65 Arial,Helvetica,sans-serif
}


.cq-next * {
  box-sizing:border-box
}

.cq-next img {
  display:block;
  max-width:100%;
  height:auto
}

.cq-next a {
  color:inherit;
  text-underline-offset:5px
}

.cq-next button,.cq-next input,.cq-next select,.cq-next textarea {
  font:inherit
}

.cq-next button {
  cursor:pointer
}

.cq-next h1,.cq-next h2,.cq-next h3,.cq-next h4,.cq-next p {
  margin-top:0
}

.cq-next h1,.cq-next h2 {
  font-family:Arial,Helvetica,sans-serif;
  text-transform:uppercase;
  font-weight:800;
  letter-spacing:-.045em;
  line-height:.98;
  text-wrap:balance
}

.cq-next h2 {
  font-size:clamp(2.3rem,4.7vw,4.6rem);
  margin-bottom:24px
}

.cq-next h3 {
  font-size:1.15rem;
  line-height:1.25
}

.cq-next p {
  margin-bottom:20px
}

.cq-next :focus-visible {
  outline:3px solid var(--green);
  outline-offset:5px
}

.cq-next section[id],
.next-legacy-anchor {
  scroll-margin-top:100px
}

.next-legacy-anchor {
  display:block;
  height:0;
}

.next-wrap {
  width:min(1180px,calc(100% - 48px));
  margin-inline:auto
}

.next-section {
  padding-block:86px
}

.next-header {
  position:sticky;
  top:0;
  z-index:30;
  background:rgb(11 37 52 / 98%);
  border-bottom:1px solid var(--line)
}

.admin-bar .next-header {
  top:32px
}

.next-nav-row {
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px
}

.next-logo {
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  flex-shrink:0
}

.next-logo>span:where(:first-child) {
  font-size:26px;
  letter-spacing:-2px;
  font-weight:900;
  background:#137c93;
  padding:0 7px;
  border-radius:5px
}

.next-logo>span:where(:last-child) {
  font-size:10px;
  line-height:1.25;
  letter-spacing:2px;
  font-weight:800
}

.next-menu {
  display:flex;
  align-items:center;
  gap:19px
}

.next-menu>a {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.03em;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
  padding-block:12px
}

.next-menu>a[aria-current] {
  color:var(--green);
  box-shadow:inset 0 -2px var(--green)
}

.cq-next .next-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding:15px 22px;
  background:var(--green);
  color:#102a20;
  text-decoration:none;
  text-transform:uppercase;
  font-size:12px;
  font-weight:800;
  letter-spacing:.035em;
  border:0;
  border-radius:5px
}

.next-button:hover {
  background:#9de763
}

.next-menu .next-button {
  font-size:10px;
  padding:12px
}

.next-menu-toggle {
  display:none
}

.next-eyebrow {
  text-transform:uppercase;
  font-weight:800;
  letter-spacing:.13em;
  font-size:12px;
  color:#a3e776;
  margin-bottom:16px
}

.next-lead {
  font-size:18px;
  line-height:1.7;
  max-width:760px;
  color:var(--muted)
}

.next-intro {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#15384b
}

.next-hero-photo {
  position:absolute;
  inset:0;
  width:100%;
  height:100%!important;
  object-fit:cover;
  object-position:center top;
  z-index:-2
}

.next-intro::after {
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgb(5 29 44 / 86%),rgb(5 29 44 / 30%)),linear-gradient(180deg,transparent 30%,#16384b 96%)
}

.next-hero {
  min-height:660px;
  padding-block:105px 85px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center
}

.next-hero h1 {
  font-size:clamp(3.5rem,6.6vw,6.2rem);
  max-width:830px;
  margin-bottom:28px
}

.next-hero .next-lead {
  max-width:590px;
  color:#fff
}

.next-hero .next-eyebrow {
  color:#fff
}

.next-intro-copy {
  padding-top:38px
}

.next-grid {
  display:grid;
  gap:20px;
  margin-top:32px
}

.next-two {
  grid-template-columns:repeat(2,minmax(0,1fr))
}

.next-three {
  grid-template-columns:repeat(3,minmax(0,1fr))
}

.next-four {
  grid-template-columns:repeat(4,minmax(0,1fr))
}

.next-panel {
  background:#f2f6f7;
  color:var(--ink);
  padding:28px;
  border:1px solid #d5e6e9;
  border-radius:8px
}

.next-panel h3 {
  text-transform:uppercase
}

.next-panel p {
  color:#405b66;
  margin-bottom:0
}

.next-panel a {
  display:inline-block;
  margin-top:20px;
  color:#09627b;
  font-weight:700;
  font-size:13px
}

.next-panel .next-eyebrow {
  color:#24683f;
  margin-bottom:14px
}

.next-start {
  margin-top:64px
}

.next-start h2 {
  font-size:clamp(2.1rem,3.6vw,3.3rem)
}

.next-stage {
  text-decoration:none;
  transition:transform .2s
}

.next-stage:hover {
  transform:translateY(-4px)
}

.next-stage h3 {
  display:flex;
  justify-content:space-between;
  gap:10px
}

.next-centered {
  text-align:center
}

.next-centered .next-lead {
  margin-inline:auto
}

.next-process {
  background:linear-gradient(#17384b,#1b4757)
}

.next-steps {
  padding:0;
  list-style:none;
  gap:15px
}

.next-step {
  position:relative;
  isolation:isolate;
  min-height:335px;
  border-radius:6px;
  overflow:hidden;
  border:1px solid var(--line);
  display:flex;
  align-items:flex-end;
  padding:22px
}

.next-step>img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:-2
}

.next-step::after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgb(5 35 48 / 15%) 15%,rgb(4 27 40 / 45%) 45%,#062331 100%);
  z-index:-1
}

.next-step-no {
  position:absolute;
  top:15px;
  left:15px;
  background:#143c4c;
  padding:3px 10px;
  color:#b4ed89;
  border:1px solid #7ab393;
  border-radius:4px;
  font-weight:bold
}

.next-step h3 {
  font-size:19px;
  text-transform:uppercase;
  margin-bottom:9px
}

.next-step p {
  font-size:13px;
  line-height:1.5;
  margin:0;
  color:#f1f7f9
}

.next-nda {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  border-block:1px solid var(--line);
  padding:27px 0;
  margin-top:35px
}

.next-nda h3 {
  margin-bottom:6px
}

.next-nda p {
  margin:0;
  color:var(--muted);
  font-size:14px;
  max-width:760px
}

.next-nda a {
  white-space:nowrap;
  font-size:13px;
  font-weight:bold
}

.next-cases {
  background:linear-gradient(#1b4757,#225b61)
}

.next-case {
  border-radius:10px;
  overflow:hidden;
  background:#f2f6f7;
  color:var(--ink);
  margin-top:36px
}

.next-case-image {
  width:100%;
  max-height:650px;
  object-fit:contain;
  background:#e5eef0
}

.next-case-body {
  padding:35px 38px
}

.next-case-body>.next-eyebrow {
  color:#27673f;
  font-size:11px
}

.next-case-body h3 {
  font-size:clamp(2rem,3.7vw,3.4rem);
  text-transform:uppercase;
  letter-spacing:-.04em;
  margin-bottom:15px
}

.next-case-intro {
  max-width:880px;
  color:#435d66
}

.next-status {
  font-size:12px;
  font-weight:700;
  color:#305c4b
}

.next-case details {
  border-top:1px solid #c7d9df
}

.next-case summary {
  cursor:pointer;
  padding:18px 0 0;
  text-transform:uppercase;
  font-size:12px;
  font-weight:bold;
  list-style:none;
  display:flex;
  justify-content:space-between;
  gap:20px
}

.next-case summary::-webkit-details-marker {
  display:none
}

.next-case :where(summary) span {
  font-size:23px;
  line-height:1
}

.next-case :where(details[open] summary) span {
  transform:rotate(45deg)
}

.next-case-details {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px 35px;
  padding-top:30px
}

.next-case-details h4 {
  margin-bottom:8px;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.05em
}

.next-case-details p {
  font-size:15px;
  color:#405b66;
  margin:0
}

.next-husar {
  padding:50px 38px;
  min-height:350px;
  background:repeating-linear-gradient(135deg,transparent 0,transparent 30px,rgb(153 202 207 / 6%) 30px,rgb(153 202 207 / 6%) 31px),linear-gradient(110deg,#122d3b,#176171);
  color:#fff
}

.next-husar>span {
  font-size:11px;
  letter-spacing:.16em
}

.next-husar strong {
  display:block;
  font-size:clamp(4rem,8vw,7rem);
  line-height:.9;
  letter-spacing:-.06em;
  margin:24px 0
}

.next-husar p {
  font-size:12px;
  margin:0;
  letter-spacing:.05em
}

.next-case-end {
  text-align:center;
  margin:55px 0 0!important;
  font-size:clamp(1.2rem,2.4vw,2rem);
  line-height:1.4
}

.next-services {
  gap:24px
}

.next-service {
  background:#f2f6f7;
  color:var(--ink);
  border-radius:7px;
  overflow:hidden;
  display:flex;
  flex-direction:column
}

.next-service>img {
  width:100%;
  height:240px;
  object-fit:cover
}

.next-service>div {
  padding:25px;
  display:flex;
  flex-direction:column;
  flex:1
}

.next-service h3 {
  text-transform:uppercase;
  font-size:19px
}

.next-service p {
  font-size:14px;
  color:#405b66
}

.next-service a {
  margin-top:auto;
  color:#09627b;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase
}

.next-why {
  background:#153849
}

.next-reason {
  border-top:2px solid #8cca72;
  padding-top:24px
}

.next-reason h3 {
  text-transform:uppercase;
  font-size:17px;
  min-height:44px
}

.next-reason p {
  font-size:14px;
  color:var(--muted);
  margin:0
}

.next-about {
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:50px;
  align-items:center;
  margin-top:35px
}

.next-about>img {
  height:340px;
  width:100%;
  object-fit:cover;
  border-radius:7px
}

.next-about p {
  color:var(--muted)
}

.next-text-link {
  font-size:13px;
  font-weight:bold
}

.next-gallery-heading {
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-top:50px
}

.next-gallery-heading p {
  font-size:13px;
  color:var(--muted)
}

.next-gallery {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px
}

.next-gallery-item {
  overflow:hidden;
  border-radius:4px
}

.next-gallery-item>img {
  width:100%;
  height:185px;
  object-fit:cover;
  transition:transform .25s
}

.next-gallery-item:where(:hover)>img {
  transform:scale(1.04)
}

.next-insights {
  background:#193d4e
}

.next-contact {
  background:linear-gradient(125deg,#204454,#23666a)
}

.next-footer {
  padding:54px 0 25px;
  background:#112b3b;
  font-size:14px;
  color:var(--muted)
}

.next-footer .next-grid {
  margin-top:0
}

.next-footer h3 {
  font-size:15px;
  color:#fff
}

.next-footer p {
  max-width:330px
}

.next-contacts {
  margin-top:40px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border:1px solid var(--line)
}

.next-contacts>div {
  padding:20px;
  border-right:1px solid var(--line);
  display:grid;
  gap:4px
}

.next-contacts>div:last-child {
  border-right:0
}

.next-contacts span {
  font-size:12px
}

.next-contacts strong {
  color:#fff;
  font-size:13px
}

.next-contacts a {
  text-decoration:none
}

.next-copyright {
  font-size:12px;
  margin:30px 0 0!important
}

.next-skip {
  position:fixed;
  top:8px;
  left:8px;
  transform:translateY(-160%);
  z-index:100;
  background:white;
  color:#112b3b!important;
  padding:12px
}

.next-skip:focus {
  transform:none
}

.next-dialog {
  color:#fff;
  background:#0b202d;
  border:1px solid #688f9d;
  border-radius:8px;
  padding:55px 20px 20px;
  width:min(1100px,94vw);
  max-height:94dvh
}

.next-dialog::backdrop {
  background:rgb(2 12 18 / 88%)
}

.next-dialog figure {
  margin:0
}

.next-dialog figure img {
  max-height:70dvh;
  width:100%;
  object-fit:contain
}

.next-dialog figcaption {
  text-align:center;
  font-size:13px;
  margin-top:12px
}

.next-gallery-close {
  position:absolute;
  right:13px;
  top:7px;
  font-size:28px!important
}

.next-dialog button {
  color:#fff;
  border:1px solid #6c939f;
  border-radius:4px;
  background:#204655;
  min-width:44px;
  min-height:44px
}

.next-gallery-controls {
  display:flex;
  justify-content:center;
  gap:15px;
  margin-top:10px
}

.cq-next.next-dialog-open {
  overflow:hidden
}



/* Existing CQ Core form: server validation, uploads and submission remain in Core. */
/* stylelint-disable selector-class-pattern -- Existing CQ Core uses BEM class names. */
.cq-next .cq-enquiry {
  max-width:850px;
  margin-top:35px
}

.cq-next .cq-enquiry__fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}

.cq-next .cq-enquiry__field {
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0
}

.cq-next .cq-enquiry__field label {
  font-size:14px;
  font-weight:bold
}

.cq-next .cq-enquiry__field input:not([type="checkbox"]),.cq-next .cq-enquiry__field select,.cq-next .cq-enquiry__field textarea {
  background:#f5f8f9;
  color:#163444;
  border:1px solid #c9dce1;
  border-radius:4px;
  min-width:0;
  width:100%;
  padding:12px
}

.cq-next .cq-enquiry__field textarea {
  min-height:130px;
  resize:vertical
}

.cq-next .cq-enquiry__field:has(textarea),.cq-next .cq-enquiry__field:has(input[type="file"]),.cq-next .cq-enquiry__field--checkbox {
  grid-column:1/-1
}

.cq-next .cq-enquiry__field--checkbox label {
  display:flex;
  gap:10px;
  align-items:flex-start
}

.cq-next .cq-enquiry__field small {
  font-size:12px
}

.cq-next .cq-enquiry__field input[type="checkbox"] {
  width:20px;
  height:20px;
  flex-shrink:0;
  accent-color:#75bc3a
}

.cq-next .cq-enquiry button[type="submit"] {
  background:var(--green);
  color:#102a20;
  font-weight:800;
  text-transform:uppercase;
  font-size:12px;
  border:0;
  border-radius:5px;
  padding:16px 23px;
  margin-top:23px
}

.cq-next .cq-enquiry__trap {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%)
}

.cq-next .cq-enquiry__result {
  padding:18px;
  border:1px solid #b1d58d;
  margin-bottom:20px
}

.cq-next .cq-enquiry__result:empty {
  display:none
}



/* stylelint-enable selector-class-pattern */
@media(width >=901px) {
  .next-menu[hidden] {
  display:flex
}


}



@media(width <=1100px) {
  .next-menu {
  gap:11px
}

.next-menu>a {
  font-size:10px
}

.next-nav-row {
  gap:14px
}

.next-service>img {
  height:210px
}

.next-step {
  padding:18px;
  min-height:300px
}


}



@media(width <=900px) {
  .next-menu-toggle {
  display:flex;
  gap:12px;
  align-items:center;
  color:#fff;
  background:transparent;
  border:1px solid var(--line);
  padding:8px 13px;
  border-radius:4px
}

.next-nav-row {
  flex-wrap:wrap;
  padding-block:15px;
  min-height:74px
}

.next-menu {
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:2px;
  padding-bottom:10px
}

.next-menu[hidden] {
  display:none
}

.next-menu>a {
  padding:12px;
  font-size:12px
}

.next-four {
  grid-template-columns:repeat(2,minmax(0,1fr))
}

.next-three {
  grid-template-columns:repeat(2,minmax(0,1fr))
}

.next-stage:last-child {
  grid-column:1/-1
}

.next-hero {
  min-height:590px;
  padding-block:75px
}

.next-about {
  gap:28px
}

.next-gallery {
  grid-template-columns:repeat(3,minmax(0,1fr))
}

.next-step {
  min-height:350px
}

.next-footer .next-three {
  grid-template-columns:1fr 1fr
}

.next-menu .next-button {
  font-size:12px
}

.next-header {
  max-height:100dvh;
  overflow:auto
}


}



@media(width <=600px) {
  .next-hero-photo {
    object-position: 80% top;
  }

  .next-wrap {
  width:calc(100% - 32px)
}

.next-section {
  padding-block:58px
}

.next-hero {
  padding-block:65px;
  min-height:560px
}

.next-hero h1 {
  font-size:clamp(2.75rem,10vw,3.65rem)
}

.next-lead {
  font-size:16px
}

.next-two,.next-three,.next-four,.next-about,.next-case-details,.next-footer .next-three {
  grid-template-columns:1fr
}

.next-step {
  min-height:310px;
  padding:13px
}

.next-steps {
  grid-template-columns:1fr 1fr;
  gap:10px
}

.next-step h3 {
  font-size:16px
}

.next-step p {
  font-size:12px
}

.next-step-no {
  top:10px;
  left:10px
}

.next-panel {
  padding:23px
}

.next-nda {
  align-items:flex-start;
  flex-direction:column;
  gap:18px
}

.next-case-body {
  padding:25px 21px
}

.next-case-body h3 {
  font-size:2rem
}

.next-husar {
  padding:35px 23px;
  min-height:290px
}

.next-husar strong {
  font-size:4.5rem
}

.next-gallery {
  grid-template-columns:1fr 1fr
}

.next-gallery-item>img {
  height:145px
}

.next-gallery-heading {
  display:block
}

.next-about>img {
  height:280px
}

.next-contacts {
  grid-template-columns:1fr
}

.next-contacts>div {
  border-right:0;
  border-bottom:1px solid var(--line)
}

.next-contacts>div:last-child {
  border-bottom:0
}

/* stylelint-disable-next-line selector-class-pattern -- Existing CQ Core BEM class. */
.cq-next .cq-enquiry__fields {
  grid-template-columns:1fr
}

.next-hero .next-button {
  width:100%
}

.admin-bar .next-header {
  top:46px
}

.next-reason h3 {
  min-height:0
}


}



@media(prefers-reduced-motion:reduce) {
  .cq-next * {
  scroll-behavior:auto!important;
  transition:none!important;
  animation:none!important
}


}
