/*
Theme Name: Custom Innovations
Theme URI:
Author: Custom Innovations
Description: Standalone classic theme for the Custom Innovations marketing site. Hand-rolled markup, no default WP styles or scripts.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: custom-innovations
*/

@font-face {
    font-family: "Doner";
    src: url("assets/fonts/doner-regulardisplay.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Doner";
    src: url("assets/fonts/doner-mediumdisplay.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Doner";
    src: url("assets/fonts/doner-semibolddisplay.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Doner";
    src: url("assets/fonts/doner-bolddisplay.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

body {
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--body-text);
  min-height: 100vh;
  line-height: 1.5;
  margin: 0;
}

h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

h1, h2,
h3, h4 {
  text-wrap: balance;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

img,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

textarea:not([rows]) {
  min-height: 10em;
}

:root {
    --navy: #00192b;
    --dark: #121c23;
    --ink: #2d2c4a;
    --gray: #9090ae;
    --body-text: #535366;
    --primary: #0079d0;
    --blue: #0079d0;
    --border: #c8c8df;
    --border-light: #dee4f2;
    --page: #f7fafd;
    --font-text: "Inter", system-ui, -apple-system, sans-serif;
    --font-title: "Doner";
    --container: 1310px;
    --gutter: 24px;
    --bar-w: 380px;
    --bar-h: 50px;
    --fluid-min-vw: 360;
    --fluid-max-vw: 1200;
}
@media (min-width: 992px) {
  :root {
    --bar-h: 60px;
  }
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
}

.font-text {
    font-family: var(--font-text);
}

.font-title {
    font-family: var(--font-title);
}

.font-size-clamp {
  font-size: clamp(
    calc(var(--min-fs) * 1px),
    calc(
      var(--min-fs) * 1px +
      (var(--max-fs) - var(--min-fs)) *
      (100vw - var(--fluid-min-vw) * 1px) /
      (var(--fluid-max-vw) - var(--fluid-min-vw))
    ),
    calc(var(--max-fs) * 1px)
  );
}

@media (max-width: 991px) {
  .no-br-mobile br {
    display: none;
  }
}

.home-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 0 auto;
  padding-block: 100px 40px;
  padding-inline: 10px;
  min-height: 640px;
  text-align: center;
  max-width: 1600px;
}
@media (min-width: 1200px) {
  .home-hero {
    aspect-ratio: 16 / 9;
    padding-block: 130px 90px;
    min-height: unset;
  }
}
.home-hero h1 {
  --min-fs: 34;
  --max-fs: 64;
  color: white;
  font-weight: 700;
}
.home-hero-button {
  --min-fs: 14;
  --max-fs: 16;
  color: var(--dark);
  background-color: rgba(255, 255, 255, 0.8);
  padding: 12px 28px;
  max-width: fit-content;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: .25rem;
  text-decoration: none;
  display: flex;
  gap: 19px;
  align-items: center;
}
@media (min-width: 480px) {
  .home-hero-button {
    padding-block: 14px;
  }
}
.home-hero-button:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 3px;
}
.home-hero picture {
  display: contents;
}
.home-hero img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  inset: 0;
  z-index: -1
}

.home-services {
  padding-block: 90px;
}

.home-services h2 {
  --min-fs: 28;
  --max-fs: 48;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  color: var(--navy);
}

.home-services-intro {
  max-width: var(--container);
  margin: 16px auto 0;
  padding-inline: var(--gutter);
}

.services-swiper {
  margin-top: 48px;
  padding-inline: calc(max(0px, (100% - var(--container)) / 2) + 10px);
}

.service-slide {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  width: min(380px, 78vw);
  height: 480px;
  padding: 32px;
  overflow: hidden;
  background: var(--dark);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

.service-slide-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-slide::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 65%);
}

.service-slide-title,
.service-slide-items {
  position: relative;
  z-index: 2;
}

.service-slide-title {
  font-size: clamp(24px, 2.25vw, 32px);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-transform: uppercase;
}

.service-slide-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(12px, 0.875vw, 14px);
  line-height: 23px;
}

.service-slide:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.home-how-it-works {
  max-width: var(--container);
  margin-inline: auto;
  padding-block: 90px;
  padding-inline: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  justify-content: space-between;
}

.how-it-works-text {
  --min-fs: 14;
  --max-fs: 16;
  color: var(--gray);
}

.home-how-it-works h2 {
  --min-fs: 38;
  --max-fs: 76;
  color: var(--navy);
  margin-bottom: 2rem;
}

.how-it-works-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.how-it-works-list li {
  --min-fs: 22;
  --max-fs: 30;
  --graphic: url("assets/img/how-it-works-graphic.webp");
  text-transform: uppercase;
  line-height: 0.7;
  display: flex;
  align-items: center;
  gap: 20px;
  isolation: isolate;
  position: relative;
  padding: 30px 0px;
  color: var(--ink);
  transition: color 500ms cubic-bezier(0.9, 0, 0.1, 1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-it-works-list a:first-of-type li {
  border-top-width: 2px;
}

.how-it-works-list a:last-of-type li {
  border-bottom-width: 2px;
}

.how-it-works-item {
  text-decoration: none;
}

.how-it-works-item-title {
  font-weight: 700;
}

.how-it-works-list li svg {
  margin-left: auto;
}

@media (min-width: 992px) {
  .home-how-it-works {
    grid-template-columns: minmax(0, 415px) minmax(0, 700px);
  }
  .home-how-it-works h2 {
    margin-bottom: 4rem;
  }
  
  .how-it-works-list li {
    gap: 55px;
    padding: 45px 28px;
  }

  .how-it-works-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0px;
    background-color: var(--primary);
    background-image: var(--graphic);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: -1;
    transition: 500ms cubic-bezier(0.9, 0, 0.1, 1);
  }

  .how-it-works-list li:hover {
    color: white;
  }

  .how-it-works-list li:hover::before {
    height: 100%;
  }
}

.visually-hidden {
    position: absolute;
    width: 1px;

    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    width: 100%;
    padding: 0.625rem 0.625rem 0;
    pointer-events: none;
}
@media (min-width: 992px) {
  .site-header { 
    padding: 1rem 1.25rem 0;
  }
}

.nav-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: var(--bar-w);
    max-width: 100%;
    height: var(--bar-h);
    margin: 0 auto;
    padding: 0 1.25rem 0 0.5rem;
    background: rgba(0, 25, 43, 0.94);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 4px;
    pointer-events: auto;
}

.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { width: 80px; height: 30px; object-fit: contain; }

.nav-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    line-height: 15px;
    text-transform: uppercase;
    color: #fff;
    pointer-events: none;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.nav-toggle-line {
    display: block;
    width: 32px;
    height: 2px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open .nav-toggle-line:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-line:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav-menu {
    width: 550px;
    max-width: calc(100% - 1.5rem);
    margin: 19px auto 0;
    padding: clamp(2rem, 5vw, 70px) clamp(1.5rem, 4vw, 64px) clamp(1.75rem, 4vw, 60px);
    background: var(--dark);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
}
.nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-pages {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-page {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}
.nav-page a,
.nav-page-trigger {
    font-size: clamp(2rem, 3vw, 48px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}
.nav-page-trigger {
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    cursor: pointer;
}
.nav-page a:hover,
.nav-page-trigger:hover { color: var(--primary); }
.nav-page-index {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #fff;
    pointer-events: none;
}

.nav-contact {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 58px;
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
    color: var(--gray);
}
.nav-regions,
.nav-phones {
    display: flex;
    flex-direction: column;
}
.nav-phones { text-align: right; }
.nav-phones a { text-decoration: none; }
.nav-phones a:hover { color: rgba(255, 255, 255, 0.7); }
.service-map {
  isolation: isolate;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.service-map-photos {
  position: absolute;
  inset: 0;
  height: 100vh;
  z-index: -1;
}

.service-map-photo {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.service-map-photo.is-active { 
  opacity: 1;
}

.service-map-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 150px;
    width: fit-content
}

.service-category-title {
    display: block;
    padding: 0;
    color: #fff;
    font-size: clamp(14px, 1.125vw, 18px);
    font-weight: 700;
    letter-spacing: 1.08px;
    line-height: 1;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.service-category-title:hover { opacity: 0.7; }

.service-category-items {
    display: none;
    flex-direction: column;
    gap: 3px;
    margin: 11px 0 0;
    padding: 0 0 10px;
    list-style: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(12px, 0.875vw, 14px);
    line-height: 23px;
}

.service-category.is-open .service-category-items { display: flex; }

.service-category-items li {
    width: fit-content;
    cursor: pointer;
    transition: color 0.2s ease;
}

.service-category-items li:hover { color: #fff; }

.service-pins {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
}

.service-pin {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    transform: translate(-50%, -50%) scale(0.6);
    background: var(--blue);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, background 0.2s ease, opacity 0.3s ease, visibility 0.3s;
}

.service-pin.is-visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.service-pin.is-visible:hover,
.service-pin.is-visible.is-open {
    z-index: 3;
    background: transparent;
}

.service-pin.is-visible:hover .service-pin-icon,
.service-pin.is-visible.is-open .service-pin-icon { opacity: 0; }

.service-pin-icon {
    width: 50%;
    height: 50%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.service-pin-card {
    --card-x: -40px;
    --card-y: -40px;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 327px;
    max-width: 74vw;
    padding: 35px 40px;
    transform: translate(var(--card-x), var(--card-y)) scale(0.97);
    transform-origin: 40px 40px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.service-pin.is-flipped .service-pin-card { --card-x: calc(-100% + 40px); }
.service-pin.is-flipped-up .service-pin-card { --card-y: calc(-100% + 40px); }

.service-pin.is-visible:hover .service-pin-card,
.service-pin.is-visible.is-open .service-pin-card {
    transform: translate(var(--card-x), var(--card-y)) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.service-pin-card-title {
    color: var(--dark);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.52px;
    line-height: 28px;
    text-transform: uppercase;
}

.service-pin-card-text {
    color: var(--dark);
    font-size: 14px;
    line-height: 19px;
    opacity: 0.75;
}

.service-zones {
    font-size: 116px;
    line-height: 106px;
    height: 1lh;
    padding: 4px 0;
    overflow: hidden;
    pointer-events: none;
}

.service-zone-titles {
    display: flex;
    flex-direction: column;
    gap: var(--zone-gap);
    height: 1lh;
    transform: translateY(calc(var(--zone-index, 0) * -1 * (1lh)));
    transition: transform 0.45s ease;
}

.service-zone-titles span {
    flex: none;
    height: 1lh;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.service-stack {
  display: none;
}

@media (max-width: 991px) {
  .service-map {
    display: none;
  }

  .service-stack {
    display: flex;
    flex-direction: column;
    gap: 80px;
    counter-reset: service-stack;
    padding: calc(20px + var(--bar-h)) 10px 80px;
  }

  .service-stack-item {
    counter-increment: service-stack;
    scroll-margin-top: calc(20px + var(--bar-h));
  }

  .service-stack-photo img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 4px;
  }

  .service-stack-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 6px;
    border-bottom: 1px solid var(--border-light);
  }

  .service-stack-header h2 {
    flex: 1;
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.44px;
    line-height: 24px;
    text-transform: uppercase;
  }

  .service-stack-header::after {
    content: counter(service-stack, decimal-leading-zero);
    color: var(--ink);
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.44px;
    line-height: 24px;
  }

  .service-accordion {
    border-bottom: 1px solid var(--border-light);
  }

  .service-accordion h3 {
    margin: 0;
    font: inherit;
  }

  .service-accordion-label {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 18px 20px 18px 10px;
    border: 0;
    background: none;
    color: var(--dark);
    font-family: var(--font-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 18px;
    text-align: left;
    cursor: pointer;
  }

  .service-accordion-label:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
  }

  .service-accordion-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background-color: var(--dark);
    -webkit-mask-image: var(--service-icon);
    mask-image: var(--service-icon);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
  }

  .service-accordion-title {
    flex: 1;
  }

  .service-accordion-chevron {
    flex: 0 0 12px;
    color: var(--gray);
    transition: transform 0.25s ease;
  }

  .service-accordion-label[aria-expanded="true"] .service-accordion-chevron {
    transform: rotate(180deg);
  }

  .service-accordion-drawer {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.25s ease, visibility 0.25s;
  }

  .service-accordion-drawer-inner {
    overflow: hidden;
  }

  .service-accordion.is-open .service-accordion-drawer {
    grid-template-rows: 1fr;
    visibility: visible;
  }

  .service-accordion-drawer p {
    margin: 0;
    padding: 0 0 26px 46px;
    color: var(--body-text);
    font-size: 14px;
    line-height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-accordion-chevron,
  .service-accordion-drawer {
    transition: none;
  }
}

.home-projects {
    /* Two layers, tint above the line graphic, content above both. The tint is a
       gradient rather than a background-color because a color always paints under
       the image. Figma draws the pattern over the tint rather than under it —
       swapping the two layers is the fix if the lines read too washed out. */
    --projects-pattern: url("assets/img/project-graphic.webp");
    background-image:
        linear-gradient(rgba(229, 236, 254, 0.3), rgba(229, 236, 254, 0.3)),
        var(--projects-pattern);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-block: 50px;
}

.home-projects-inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 10px;
}

.home-projects-head {
    display: contents;
}

.home-projects-title {
    --min-fs: 38;
    --max-fs: 76;
    margin: 0;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    background: linear-gradient(127deg, #00131f 0%, #002f75 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-projects-link {
    order: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 44px;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.43;
    text-decoration: none;
}

.projects-swiper {
    width: 100%;
    max-width: 1310px;
    height: 100%;
    max-height: 736px;
}

.project-slide {
    position: relative;
    isolation: isolate;
    width: min(320px, 89vw);
    height: auto;
    aspect-ratio: 320 / 420;
    overflow: hidden;
    border-radius: 4px;
    background: var(--dark);
}

.project-slide-trigger {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.project-slide-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-slide::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, transparent 71.8%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.project-slide-location,
.project-slide-number {
    position: absolute;
    z-index: 2;
    bottom: 20px;
    color: #fff;
    pointer-events: none;
}

.project-slide-location {
    left: 20px;
    font-family: var(--font-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.21;
}

.project-slide-number {
    right: 20px;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.56px;
    line-height: 1;
}

.projects-nav {
    position: absolute;
    z-index: 3;
    bottom: 56px;
    left: 50%;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px;
    transform: translateX(-50%);
    border-radius: 130px;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.projects-prev,
.projects-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
}

.projects-prev.swiper-button-disabled,
.projects-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
}

.home-projects-link:focus-visible,
.projects-prev:focus-visible,
.projects-next:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.project-slide-trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -3px;
}

@media (min-width: 992px) {
  .home-projects {
    padding-block: 126px 154px;
  }

  .home-projects-inner {
    gap: 58px;
    padding-inline: var(--gutter);
  }

  .home-projects-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }

  .home-projects-link {
    order: 0;
    gap: 14px;
    height: auto;
    background: none;
    color: var(--primary);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.44px;
    line-height: 1.21;
  }

  .project-slide {
    width: 100%;
    aspect-ratio: 1310 / 736;
  }

  .project-slide-location,
  .project-slide-number {
    bottom: 66px;
  }

  .project-slide-location {
    left: 61px;
    font-size: 32px;
    letter-spacing: -0.32px;
  }

  .project-slide-number {
    right: 71px;
    font-size: 24px;
    letter-spacing: 0.96px;
  }

  .projects-nav {
    display: flex;
  }

  /* One project: Swiper locks the arrows, so the pill has nothing to say. */
  .projects-nav:has(.swiper-button-lock) {
    display: none;
  }
}

.home-testimonials {
    padding-block: 50px;
}

.home-testimonials-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 30px;
}

.testimonial-slide {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon  icon"
        "quote quote"
        "photo author";
    column-gap: 21px;
    height: auto;
}

.testimonial-photo {
    grid-area: photo;
    align-self: center;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
}

.testimonial-icon {
    grid-area: icon;
    width: 26px;
    height: auto;
}

.testimonial-quote {
    --min-fs: 22;
    --max-fs: 40;
    grid-area: quote;
    margin-top: 17px;
    color: var(--dark);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.45;
}

.testimonial-author {
    grid-area: author;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.testimonial-photo,
.testimonial-author {
    margin-top: 40px;
}

.testimonial-name,
.testimonial-date {
    font-size: 14px;
    line-height: 1.21;
}

.testimonial-name {
    color: var(--ink);
}

.testimonial-date {
    color: var(--gray);
}

.testimonials-nav {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 44px;
    display: none;
    align-items: center;
    gap: 10px;
}

.testimonials-prev,
.testimonials-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary);
    cursor: pointer;
}

.testimonials-prev.swiper-button-disabled,
.testimonials-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
}

.testimonials-prev:focus-visible,
.testimonials-next:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.testimonials-dots .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
}

.testimonials-dots .swiper-pagination-bullet-active {
    background: var(--primary);
}

.testimonials-dots .swiper-pagination-bullet:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.testimonials-dots.swiper-pagination-lock {
    display: none;
}

@media (min-width: 992px) {
  .home-testimonials {
    padding-block: 100px 150px;
  }

  .home-testimonials-inner {
    padding-inline: var(--gutter);
  }

  .testimonial-slide {
    grid-template-columns: 190px auto 1fr;
    grid-template-areas:
        "photo icon quote"
        "photo .    author";
    align-items: start;
    column-gap: 0;
    row-gap: 77px;
  }

  .testimonial-photo {
    align-self: start;
    width: 190px;
    height: 242px;
    margin-top: 9px;
  }

  /* The two gutters flanking the icon differ, so they cannot be a column-gap. */
  .testimonial-icon {
    width: 31px;
    margin-top: 9px;
    margin-inline: 95px 39px;
  }

  .testimonial-quote {
    color: var(--ink);
    line-height: 1.25;
  }

  .testimonial-author {
    margin-top: 0;
  }

  .testimonial-name,
  .testimonial-date {
    font-size: 18px;
  }

  .testimonials-nav {
    display: flex;
  }

  .testimonials-nav:has(.swiper-button-lock) {
    display: none;
  }

  .testimonials-dots {
    display: none;
  }
}

.project-card-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.project-card-trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.project-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 56px 10px 10px;
    border: 0;
    overflow: hidden;
    background: rgba(0, 25, 43, 0.94);
    backdrop-filter: blur(30px);
    color: #fff;
}

.project-lightbox::backdrop {
    background: transparent;
}

.project-lightbox[open] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-lightbox-panel {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.project-lightbox-swiper {
    flex: 1;
    min-height: 0;
    max-height: 700px;
    width: min(90vw, 1100px);
    max-width: 100%;
}

.project-lightbox-swiper .swiper-slide {
    height: 100%;
}

.project-lightbox-caption {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-family: var(--font-text);
    font-size: 13px;
    line-height: 1.21;
    text-align: center;
}

.project-lightbox-location {
    font-weight: 600;
}

.project-lightbox-year {
    font-weight: 400;
}

.project-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
}

.project-lightbox-controls {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.project-lightbox-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.project-lightbox-dots .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #5c5a92;
    cursor: pointer;
}

.project-lightbox-dots .swiper-pagination-bullet-active {
    background: var(--primary);
}

.project-lightbox-nav {
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 71px;
    background: #f1f5fd;
}

.project-lightbox-prev,
.project-lightbox-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 46px;
    background: transparent;
    color: var(--body-text);
    cursor: pointer;
}

.project-lightbox-prev.swiper-button-disabled,
.project-lightbox-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

.project-lightbox-dots.swiper-pagination-lock,
.project-lightbox-nav:has(.swiper-button-lock) {
    display: none;
}

.project-lightbox-close:focus-visible,
.project-lightbox-prev:focus-visible,
.project-lightbox-next:focus-visible,
.project-lightbox-dots .swiper-pagination-bullet:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.page-privacy {
    max-width: 740px;
    margin-inline: auto;
    padding: 100px 10px 80px;
    font-family: var(--font-text);
    color: var(--body-text);
}

.page-privacy-title {
    --min-fs: 38;
    --max-fs: 76;
    margin: 0 0 25px;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--ink);
}

.page-privacy-body > * {
    margin: 25px 0 0;
}

.page-privacy-body > *:first-child {
    margin-top: 0;
}

.page-privacy-body p {
    font-size: 15px;
    line-height: 22px;
}

.page-privacy-body h2 {
    margin-top: 45px;
    font-family: var(--font-text);
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.03em;
    color: var(--ink);
}

@media (min-width: 992px) {
  .page-privacy {
    padding: 223px 0 180px;
  }

  .page-privacy-title {
    margin-bottom: 70px;
    line-height: 1;
    background: linear-gradient(93deg, #00131f 0%, #002f75 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .page-privacy-body > * {
    margin-top: 50px;
  }

  .page-privacy-body p {
    font-size: 16px;
    line-height: 24px;
  }

  .page-privacy-body h2 {
    margin-top: 70px;
    font-size: 36px;
    line-height: 44px;
  }
}

.contact-modal {
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-width: 100%;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    translate: 0 -100%;
    transition:
        translate 0.35s ease,
        overlay 0.35s ease allow-discrete,
        display 0.35s ease allow-discrete;
}
.contact-modal::backdrop { background: transparent; }
.contact-modal[open] {
    display: flex;
    flex-direction: column;
    translate: 0 0;
}
@starting-style {
    .contact-modal[open] { translate: 0 -100%; }
}
@media (prefers-reduced-motion: reduce) {
    .contact-modal { transition: none; }
}

.contact-modal-image {
    flex: none;
    width: 100%;
    height: 191px;
    object-fit: cover;
}

.contact-modal-panel {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 10px 20px;
    background: var(--dark);
}

.contact-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 60px;
}
.contact-modal-title {
    margin: 0;
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 700;
    line-height: 44px;
    text-transform: uppercase;
    color: #fff;
}
.contact-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
}
.contact-modal-close svg { width: 12px; height: 12px; }

.contact-field {
    display: grid;
    gap: 5px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(92, 90, 146, 0.4);
}
.contact-field label {
    font-size: 15px;
    font-weight: 400;
    line-height: 18px;
    color: #fff;
}
.contact-modal .wpcf7-form-control-wrap { display: block; }

.contact-input {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--font-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 18px;
    color: #fff;
}
.contact-input::placeholder { color: var(--gray); opacity: 1; }
textarea.contact-input {
    resize: vertical;
    overflow: hidden auto;
}

.contact-submit-row { padding-top: 40px; }
.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 12px 28px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    background: transparent;
    font-family: var(--font-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-submit svg { width: 13px; height: 10px; }
.contact-submit:hover {
    border-color: #fff;
    color: #fff;
}

.contact-modal .cf7sr-g-recaptcha { margin-top: 24px; }

.contact-modal .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 18px;
    color: #ff8a80;
}
.contact-modal .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 12px 16px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 14px;
    line-height: 20px;
    color: #fff;
}
.contact-modal .wpcf7-form.sent .wpcf7-response-output { border-color: var(--primary); }
.contact-modal .wpcf7-form.invalid .wpcf7-response-output,
.contact-modal .wpcf7-form.failed .wpcf7-response-output,
.contact-modal .wpcf7-form.spam .wpcf7-response-output { border-color: #ff8a80; }

.contact-modal-info {
    font-size: 14px;
    font-weight: 500;
    line-height: 28px;
}
.contact-modal-email {
    display: flex;
    justify-content: center;
    padding-block: 46px;
}
.contact-modal-email .contact-modal-label { display: none; }
.contact-modal-phone {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
}
.contact-modal-phones { padding-bottom: 20px; }
.contact-modal-info a {
    color: inherit;
    text-decoration: none;
}
.contact-modal-info a:hover { color: var(--gray); }

.contact-modal-close:focus-visible,
.contact-input:focus-visible,
.contact-submit:focus-visible,
.contact-modal-info a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

@media (min-width: 992px) {
  .contact-modal[open] {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contact-modal-image { height: 100dvh; }

  .contact-modal-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 80px 120px;
  }

  .contact-modal-head { height: auto; }
  .contact-modal-title {
    font-size: 52px;
    line-height: 37px;
  }
  .contact-modal-close {
    width: 24px;
    height: 24px;
    color: #fff;
  }
  .contact-modal-close svg { width: 24px; height: 24px; }

  .contact-field {
    grid-template-columns: 101px 1fr;
    gap: 40px;
    align-items: center;
  }
  .contact-field label {
    font-size: 16px;
    line-height: 22.4px;
  }
  .contact-input {
    font-size: 16px;
    line-height: 28px;
  }

  .contact-submit-row { padding-top: 50px; }
  .contact-submit {
    gap: 19px;
    padding: 14px 28px;
    font-size: 16px;
    line-height: 24px;
  }
  .contact-submit svg { width: 15px; height: 12px; }

  .contact-modal-info { font-size: 15px; }
  .contact-modal-email {
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 0 28px;
  }
  .contact-modal-email .contact-modal-label { display: block; }
  .contact-modal-phones { padding-bottom: 0; }
}
