:root {
  --air-force-blue: #5890ab;
  --antiflash-white: #ededed;
  --cadet-gray: #a2a2a4;
  --cambridge-blue: #7fb8a5;
  --davys-gray: #484848;
  --fandango: #a5498c;
  --keppel: #46b39c;
  --magenta-dye: #cc1d73;
  --platinum: #e0e0e0;
  --ultra-violet: #6d61a1;
  font-size: 100%;
}
@media (min-width: 600px) {
  :root {
    font-size: 106.25%;
  }
}
@media (min-width: 768px) {
  :root {
    font-size: 112.5%;
  }
}
@media (min-width: 1024px) {
  :root {
    font-size: 118.75%;
  }
}
@media (min-width: 1280px) {
  :root {
    font-size: 125%;
  }
}
*, ::after, ::before {
  background-repeat: no-repeat;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
@font-face {
  font-family: vidaloka-regular;
  src: url(fonts/Vidaloka-Regular.otf);
}
body {
  color: var(--davys-gray);
  font-family: vidaloka-regular, system-ui, sans-serif;
  line-height: 1.5em;
  padding-bottom: 0;
}
main {
  display: block;
}
section {
  margin-bottom: 2em;
  margin-left: auto;
  margin-right: auto;
  max-width: 100ch;
  width: 100%;
}
@media (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
}
h1, h2, h3 {
  font-weight: bold;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}
h1 {
  font-size: 2.4em;
  line-height: 1.25;
}
h2 {
  font-size: 1.44em;
  line-height: 1.15;
}
h3 {
  font-size: 1.2em;
  line-height: 1.175;
}
p {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 1em;
  margin-top: 1em;
}
#hero p {
  font-size: 1.44em;
}
@media (min-height: 600px) {
  h1 {
    font-size: 3em;
  }
  h2 {
    font-size: 1.8em;
  }
  h3 {
    font-size: 1.5em;
  }
  #hero p {
    font-size: 1.8em;
  }
}
button, a[role=button] {
  background: var(--ultra-violet);
  border-radius: 0.4em;
  border: 0px;
  color: var(--antiflash-white);
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  padding: 0.8em 1.6em;
  text-decoration: none;
  transition: background 0.3s ease;
}
button:hover, a[role=button]:hover {
  background: var(--keppel);
}
img {
  border-style: none;
  height: auto;
  width: 8em;
}
:where(img) {
  vertical-align: middle;
}
body > footer {
  text-align: center;
}
@media (min-width: 320px) {
  h2, h3, p, figure, button, ul {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}
#about > article {
  align-items: flex-start;
  display: flex;
  gap: 2rem;
}
#about-text {
  flex: 1 1 60%;
  min-width: 0;
}
#about-portrait {
  flex: 0 0 35%;
  max-width: 320px;
}
#about-portrait img {
  border-radius: 8px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 768px) {
  #about > article {
    flex-direction: column;
  }
  #about-portrait {
    align-self: center;
    flex: none;
    max-width: 220px;
  }
}
#expertize .row {
  align-items: stretch;
  display: grid;
  gap: 0.75em;
  grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
}
#expertize article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  padding: 0.75em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#expertize article > h3 {
  margin: 0 .5rem 0 .5rem;
}
#expertize > .row > article > p {
  margin: .5rem .5rem 0 .5rem;
}
#expertize article > picture {
  margin-left: auto;
  margin-right: auto;
}
#expertize article > button {
  align-self: end;
}
#expertize dialog {
  border-radius: 0.8em;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  margin: auto;
  max-width: 70ch;
  width: calc(100% - 2em);
}
#expertize dialog > article > header :is(a, button)[rel="prev"] {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto 1rem;
  border: none;
  display: block;
  float: right;
  height: 1rem;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
  width: 1rem;
}
#hero {
  align-items: center;
  color: white;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
  text-align: center;
}
#hero-carousel {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}
#hero-carousel .swiper-slide {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  position: relative;
  overflow: hidden;
}
#hero-carousel .swiper-slide picture,
#hero-carousel .swiper-slide img {
  display: block;
  height: 100%;
  width: 100%;
}
#hero-carousel .swiper-slide img {
  object-fit: cover;
  object-position: center;
}
#hero-darklay {
  background: rgba(0,0,0,0.6);
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}
#hero-overlay {
  align-items: center;
  color: var(--antiflash-white);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  position: relative;
  text-align: center;
  z-index: 2;
}
#hero-content {
  max-width: 700px;
}
#hero-scroll-wrapper {
  z-index: -1;
}
@media (min-height: 600px) {
  #hero-scroll-wrapper {
    animation: bounce 2s infinite;
    bottom: 3em;
    display: inline-block;
    left: 50%;
    opacity: 0.7;
    position: absolute;
    text-decoration: none;
    transform: translateX(-50%);
    z-index: 2;
  }
  #hero-scroll-indicator {
    border-bottom: 2px solid var(--antiflash-white);
    border-right: 2px solid var(--antiflash-white);
    height: 2em;
    transform: rotate(45deg);
    width: 2em;
  }
  @keyframes bounce {
    0%, 100% {
      transform: translateX(-50%) translateY(0);
    }
    50% {
      transform: translateX(-50%) translateY(12px);
    }
  }
}
#testimonial-carousel {
  width: 100%;
}
#testimonial article {
  max-width: 70ch;
}
#testimonial blockquote {
  margin: 0 0 1em;
}
#testimonial blockquote p {
  margin: 0;
}
#testimonial footer {
  align-items: center;
  display: flex;
  gap: 1em;
}
#testimonial footer > figure {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: .5em;
  margin: 0;
}
#testimonial footer > figure img {
  border-radius: 50%;
  height: 3em;
  object-fit: cover;
  width: 3em;
}
#testimonial footer > figure > figcaption {
  display: block;
}
.swiper {
  height: 100%;
  width: 100%;
  --swiper-navigation-color: var(--ultra-violet);
  --swiper-navigation-size: 2em;
  --swiper-pagination-bullet-size: 0.5em;
  --swiper-theme-color: var(--cambridge-blue);
}
#gallery .swiper {
  width: 100%;
  --swiper-navigation-color: var(--antiflash-white);
}
@media (min-width: 480px) {
  #gallery .swiper {
    width: 480px;
  }
}
.swiper-slide {
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
}
#gallery .swiper-slide img,
#gallery .swiper-slide video {
  background: #000;
  display: block;
  object-fit: contain;
  width: 100%;
}
@media (min-width: 480px) {
  #gallery .swiper-slide img,
  #gallery .swiper-slide video {
    height: 640px;
    width: 480px;
  }
}
#gallery .swiper-slide {
  background-position: center;
  background-size: cover;
}
#gallery-carousel {
  aspect-ratio: 3/4;
  margin-bottom: 10px;
}
#gallery-thumb-carousel {
  box-sizing: border-box;
  height: 120px;
}
#gallery-thumb-carousel .swiper-slide {
  aspect-ratio: 3/4;
  height: 100%;
  opacity: 0.4;
  width: auto;
}
#gallery-thumb-carousel .swiper-slide-thumb-active {
  opacity: 1;
}
#gallery-thumb-carousel .swiper-slide img {
  background: #000;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
#gallery-thumb-carousel .swiper-slide video {
  background: #000;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
#testimonial .swiper-button-prev,
#testimonial .swiper-button-next {
  bottom: 20px;
  top: auto;
  transform: translateY(0);
  z-index: 20;
}
#testimonial .swiper-pagination {
  bottom: 20px;
}
#testimonial .star-rating {
  display: inline-block;
  position: relative;
}
#testimonial .star-rating::before {
  color: #ccc;
  content: "★★★★★";
}
#testimonial .star-rating::after {
  color: gold;
  content: "★★★★★";
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  width: 0%;
}
#testimonial .rating-05::after { width: 10%; }
#testimonial .rating-10::after { width: 20%; }
#testimonial .rating-15::after { width: 30%; }
#testimonial .rating-20::after { width: 40%; }
#testimonial .rating-25::after { width: 50%; }
#testimonial .rating-30::after { width: 60%; }
#testimonial .rating-35::after { width: 70%; }
#testimonial .rating-40::after { width: 80%; }
#testimonial .rating-45::after { width: 90%; }
#testimonial .rating-50::after { width: 100%; }
.sr-only {
  border: 0;
  clip: rect(0,0,0,0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
#contact ul {
  font-size: 1.2em;
  list-style-type: none;
  margin-left: 1.5em;
}
#contact a {
  color: inherit;
  display: inline-flex;
  gap: 1em;
  text-decoration: none;
}
#contact a img {
  height: 1.5em;
  width: auto;
}
body > nav {
  background: transparent;
  bottom: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  position: fixed;
  right: 1em;
  z-index: 100;
}
body > nav a {
  background: var(--antiflash-white);
  border-radius: 35%;
  display: inline-flex;
  height: 3em;
  width: 3em;
}
body > nav img {
  height: 3em;
  width: auto;
}
@media screen and (orientation: portrait) {
  body {
    padding-bottom: 4em;
  }
  body > nav {
    background: var(--antiflash-white);
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    flex-direction: row;
    justify-content: space-around;
    left: 0;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
    right: 0;
    width: 100%;
  }
  #hero {
    min-height: calc(100vh - 4em);
    min-height: calc(100dvh - 4em);
  }
  #hero-carousel .swiper-slide {
    height: calc(100vh - 4em);
    height: calc(100dvh - 4em);
  }
}
