@font-face {
  font-family: Cinzel;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cinzel-400.woff2') format('woff2');
}

@font-face {
  font-family: Oxygen;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/oxygen-300.woff2') format('woff2');
}

@font-face {
  font-family: Oxygen;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/oxygen-400.woff2') format('woff2');
}

@font-face {
  font-family: Oxygen;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/oxygen-700.woff2') format('woff2');
}

:root {
  --black: #000;
  --white: #fff;
  --blue: #1daafb;
  --page: #f2f2f2;
  --muted: #b7b7b7;
  --line: #dadada;
  --track: #7a7a7a;
}

html, body, div, span, h1, h2, p, a, address, img, strong, ul, li,
header, nav, main, button {
  font-size: 100%;
  font: inherit;
  padding: 0;
  border: 0;
  margin: 0;
  vertical-align: baseline;
}

html, body {
  height: 100%;
}

body {
  line-height: 1;
  min-height: 100%;
  position: relative;
  background: var(--page);
}

ul {
  list-style: none;
}

h1 {
  font-family: Cinzel, serif;
  letter-spacing: 1px;
}

h2 {
  font-family: Oxygen, serif;
  font-weight: 300;
  font-size: 28px;
  line-height: 2em;
  color: var(--black);
}

p, address {
  font-family: Oxygen, serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4em;
  color: var(--black);
}

li {
  font-family: Oxygen, serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.3em;
  color: var(--black);
}

a {
  text-decoration: none;
  font-weight: 600;
  color: var(--black);
}

a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.slides:focus-visible {
  outline: none;
}

.carousel:has(.slides:focus-visible)::after {
  content: "";
  position: absolute;
  inset: 0;
  outline: 2px solid var(--blue);
  outline-offset: -4px;
  pointer-events: none;
}

.site-header {
  width: 200px;
  background: var(--black);
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  text-align: center;
  z-index: 9999;
}

.logo {
  display: block;
  width: 100%;
  height: 175px;
}

.logo img {
  margin: 10px 0 0 2px;
}

.site-nav {
  background: var(--black);
  margin-top: 40px;
}

.menu-button {
  display: none;
  font-family: Oxygen, serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3em;
  color: var(--muted);
  background: var(--black);
}

.menu ul {
  padding: 5px 0;
}

.menu li, .menu a {
  padding: 5px 0;
  font-weight: 400;
  transition: 0.3s all;
  text-decoration: none;
  color: var(--white);
}

.menu li:hover, .menu li:hover a {
  font-size: 17px;
  cursor: pointer;
  color: var(--white);
}

.menu a[aria-current="page"] {
  color: var(--blue);
}

.menu li:hover a[aria-current="page"] {
  color: var(--white);
}

main {
  padding: 0 0 0 200px;
}

.photo {
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  height: 100svh;
  box-sizing: border-box;
}

.photo-about { background-image: url('/img/about.webp'); }
.photo-management { background-image: url('/img/management.webp'); }
.photo-strategy { background-image: url('/img/strategy.webp'); }
.photo-current { background-image: url('/img/current.webp'); }
.photo-past { background-image: url('/img/past.webp'); }
.photo-contact { background-image: url('/img/contact.webp'); }

.page-title, .not-found h1 {
  font-family: Cinzel, serif;
  color: var(--black);
  font-size: 35px;
  font-weight: 400;
  padding: 30px 10px 0 0;
  background: var(--white);
  margin-bottom: 0;
  text-align: center;
}

.page-title {
  display: none;
}

main.photo p, main.photo address {
  padding: 10px 20px;
}

.panel {
  position: relative;
}

.panel-text {
  background: var(--white);
  min-height: 200px;
  padding: 50px 40px;
  box-sizing: border-box;
  text-align: center;
}

.panel-text h2 {
  display: inline-block;
  margin-top: 30px;
  border-bottom: 2px solid var(--blue);
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.panel-toggle {
  display: none;
  background: var(--white);
  color: var(--black);
  width: 20px;
  height: 20px;
  padding-bottom: calc(20px - 1.1em);
  position: absolute;
  top: 0;
  left: 100%;
  z-index: 999999;
  font-family: Oxygen, serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1em;
}

.carousel {
  position: relative;
}

.slides {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
}

.slides::-webkit-scrollbar {
  display: none;
}

@supports not selector(::-webkit-scrollbar) {
  .slides {
    scrollbar-width: none;
  }
}

.slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100svh;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  position: absolute;
  top: 30%;
  left: 20%;
  width: 60%;
  text-align: center;
  background: var(--black);
  padding: 30px 0;
}

.caption h2 {
  font-size: 35px;
  line-height: 1.1em;
  margin: 0 50px;
  font-family: Cinzel, serif;
  color: var(--white);
  font-weight: 400;
}

.caption p {
  margin: 20px 50px 0;
  color: var(--white);
}

.pager {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.pager button {
  display: block;
  width: 20px;
  height: 20px;
  margin: 5px 7px;
  opacity: 0.9;
  border-radius: 20px;
  background: var(--blue);
}

.pager button[aria-current="true"] {
  background: var(--white);
}

@media (hover: hover) {
  .pager button:hover {
    background: var(--white);
  }
}

main.not-found {
  margin-left: 200px;
  background: var(--white);
  padding: 50px 40px;
  text-align: center;
}

.not-found p {
  padding: 10px 20px;
}

@media (min-width: 820px) {
  main.photo {
    padding-top: calc(5vw - 10px);
    overflow: hidden;
  }

  .panel {
    width: 40%;
    height: 70svh;
    animation: panel-in 1s ease-in-out;
    animation-fill-mode: backwards;
    transition: translate 1s ease-in-out;
  }

  .panel.closed {
    translate: -100% 0;
  }

  .panel.closed .panel-text {
    visibility: hidden;
    transition: visibility 0s 1s;
  }

  .panel-text {
    height: 100%;
    padding: 0 4px 0 0;
    overflow-y: auto;
  }

  .panel-toggle {
    display: block;
  }

  .panel-text::-webkit-scrollbar {
    width: 16px;
  }

  .panel-text::-webkit-scrollbar-track {
    background: var(--track);
  }

  .panel-text::-webkit-scrollbar-thumb {
    background: var(--black);
  }

  .panel-text::-webkit-scrollbar-button {
    display: none;
  }

  @supports not selector(::-webkit-scrollbar) {
    .panel-text {
      scrollbar-color: var(--black) var(--track);
    }
  }

  @keyframes panel-in {
    from { translate: -100% 0; }
    to { translate: 0 0; }
  }
}

@media (max-width: 819px) {
  :root {
    --phone-header-height: 199.2px; /* 160px logo + 1px border + 20px padding + 18.2px line */
  }

  html, body {
    background: var(--black);
  }

  main {
    padding: 0;
  }

  main.not-found {
    margin-left: 0;
    min-height: calc(100svh - var(--phone-header-height));
    box-sizing: border-box;
  }

  .site-header {
    position: static;
    height: auto;
    width: 100%;
  }

  .logo {
    height: 160px;
    overflow: hidden;
  }

  .site-nav {
    margin-top: 0;
  }

  .menu-button {
    display: block;
    width: 100%;
    border-top: 1px solid var(--line);
    padding: 10px 0;
  }

  .menu {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.5s, visibility 0.5s;
  }

  .menu-button[aria-expanded="false"] + .menu {
    grid-template-rows: 0fr;
    visibility: hidden;
  }

  .menu ul {
    min-height: 0;
    overflow: hidden;
    padding: 0;
  }

  .menu li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .menu li:first-child {
    margin-top: 5px;
    border-top: 1px solid var(--line);
  }

  .menu li:last-child {
    margin-bottom: 5px;
    border-bottom: 0;
  }

  .carousel {
    border-bottom: 5px solid var(--black);
  }

  .pager {
    bottom: -2px;
  }

  .caption {
    left: 0;
    top: 30%;
    width: 100%;
    padding: 10px 0;
  }

  .caption h2 {
    font-size: 22px;
    line-height: 1.1em;
    margin: 0 20px;
  }

  .caption p, .caption h2 br, .caption p br {
    display: none;
  }

  .photo {
    height: auto;
  }

  .page-title {
    display: block;
    padding: 30px 0 0;
  }

  main.photo {
    padding: 5% 5% 0;
    min-height: calc(100svh - var(--phone-header-height));
  }

  .panel-text {
    padding: 10px 15px 30px;
  }

  .panel-text h2 {
    line-height: 1.5em;
    padding-bottom: 20px;
  }

  .panel-text p br, .spacer {
    display: none;
  }
}

@media (max-width: 480px) {
  .slide {
    height: max(50svh, calc(100svh - var(--phone-header-height) - 5px));
  }

  .page-title {
    padding-top: 20px;
  }

  .panel-text {
    padding-top: 0;
  }
}

@media (min-width: 820px) and (max-width: 1080px) {
  .caption {
    width: 90%;
    left: 5%;
    padding: 20px 0;
  }

  .caption h2 {
    line-height: 1.1em;
    margin: 0 30px;
  }

  .caption p {
    margin: 10px 20px 0;
    font-size: 14px;
  }

  .caption p br {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .slides {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel {
    animation: none;
    transition: none;
  }

  .panel.closed .panel-text {
    transition: none;
  }

  .menu, .menu li, .menu a {
    transition: none;
  }
}
