@font-face {
  font-family: "Coalition";
  src: url("./Coalition_v2.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #151917;
  --muted: #6d7470;
  --line: #d8ded8;
  --paper: #f4f3ef;
  --soft: #e8e8e2;
  --dark: #202623;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #000000;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 34px;
  background: transparent;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Coalition", Arial, sans-serif;
  color: #ffffff;
  font-size: 39px;
}

.brand-mark {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
}

nav a:hover {
  color: rgba(255, 255, 255, 0.72);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--dark);
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.09375);
  transition:
    opacity 950ms ease,
    transform 8200ms ease;
  will-change: opacity, transform;
}

.hero-slider img:nth-child(2),
.hero-slider img:nth-child(3),
.hero-slider img:nth-child(4) {
  object-position: 58% center;
  filter: saturate(0.9) contrast(1.04);
}

.hero-slider img:nth-child(5) {
  object-position: 42% center;
  filter: brightness(0.9) contrast(1.08);
}

.hero-slider img:nth-child(6) {
  object-position: center center;
  filter: brightness(0.96) contrast(1.04);
}

.hero-slider img.is-active {
  opacity: 1;
  transform: scale(1.027);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21, 25, 23, 0.62), rgba(21, 25, 23, 0.1) 58%, rgba(21, 25, 23, 0.22));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 44px));
  padding: 0 0 70px 28px;
  color: #ffffff;
}

.hero-copy p,
.section-kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0 0 26px;
  font-family: "Coalition", "Arial Black", Arial, sans-serif;
  font-size: clamp(42px, 8vw, 104px);
  line-height: 0.92;
  font-weight: 400;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-weight: 700;
}

.button:hover {
  background: #ffffff;
  color: var(--ink);
}

.contact-panel,
.team-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 34px;
  background: #3f4441;
  color: #ffffff;
  text-align: center;
  font-weight: 700;
  overflow-y: auto;
}

.contact-panel:target,
.team-panel:target {
  display: grid;
}

.team-content {
  width: min(980px, calc(100% - 44px));
  display: grid;
  gap: 22px;
  text-align: center;
  margin: auto;
}

.panel-kicker {
  margin: 0;
  color: #ffffff;
  font-family: "Coalition", "Arial Black", Arial, sans-serif;
  text-transform: uppercase;
  font-size: clamp(28px, 5vw, 58px);
  font-weight: 400;
  line-height: 0.95;
}

.team-content h2 {
  margin: 0;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.95;
  font-weight: 700;
  transform: scaleY(0.72);
  transform-origin: center;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.team-grid article {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(21, 25, 23, 0.18);
  text-align: left;
}

.team-grid strong {
  color: #ffffff;
  font-size: 22px;
}

.team-grid span {
  color: rgba(255, 255, 255, 0.74);
}

.team-card-copy {
  display: grid;
  align-content: start;
  gap: 8px;
}

.team-card-copy p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

.team-photo {
  position: relative;
  aspect-ratio: 692 / 1122;
  min-height: 420px;
  display: grid;
  place-items: end start;
  overflow: hidden;
  background-color: #222925;
  background-position: center;
  background-size: cover;
  width: min(100%, 300px);
  margin: 0 auto;
}

.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 25, 23, 0.04), rgba(21, 25, 23, 0.58));
}

.team-photo--marian {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(32, 38, 35, 0.2)),
    url("./team-marian.jpg?v=vertical1"),
    linear-gradient(135deg, #1d2724, #66706a);
}

.team-photo--neli {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(32, 38, 35, 0.2)),
    url("./team-neli.jpg?v=vertical1"),
    linear-gradient(135deg, #26312d, #7b827a);
}

.contact-content {
  display: grid;
  gap: 14px;
}

.contact-content p {
  margin: 0;
  font-size: 24px;
}

.contact-content a,
.contact-content span {
  color: #ffffff;
  overflow-wrap: anywhere;
}

.contact-close,
.panel-close {
  position: fixed;
  top: 28px;
  right: 34px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
}

@media (max-width: 820px) {
  .site-header {
    align-items: center;
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px 0;
  }

  nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    justify-content: stretch;
    font-size: 14px;
    text-align: center;
  }

  nav a {
    min-height: 34px;
    display: grid;
    place-items: center;
  }

  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    height: 100svh;
    height: 100dvh;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12) 38%, rgba(0, 0, 0, 0.66)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.08));
  }

  .hero-slider img {
    object-position: center center;
  }

  .hero-copy {
    width: calc(100% - 36px);
    padding: 0 18px clamp(48px, 8dvh, 72px);
  }

  .hero-copy p {
    font-size: 10px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 32px;
    line-height: 1;
    margin-bottom: 18px;
  }

  .button {
    min-height: 44px;
    padding: 0 16px;
    background: #ffffff;
    color: var(--ink);
    font-size: 14px;
  }

  .site-brand {
    gap: 8px;
    font-size: 28px;
  }

  .brand-mark {
    width: 68px;
    height: 68px;
  }

  .brand-mark img {
    width: 56px;
    height: 56px;
  }

  .contact-panel {
    padding: 28px 18px;
    font-size: 14px;
  }

  .team-content {
    width: calc(100% - 36px);
    gap: 20px;
    padding: 28px 0;
  }

  .team-content h2 {
    font-size: 42px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .team-grid article {
    padding: 20px 16px;
  }

  .team-grid strong {
    font-size: 18px;
  }

  .team-photo {
    width: min(100%, 320px);
    min-height: 0;
    margin: 0 auto;
  }

  .team-card-copy p {
    font-size: 14px;
  }

  .contact-content p {
    font-size: 20px;
  }

  .contact-close,
  .panel-close {
    top: 18px;
    right: 22px;
  }
}

@media (max-width: 420px) {
  nav {
    font-size: 12px;
    font-weight: 700;
  }

  .site-brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-mark img {
    width: 38px;
    height: 38px;
  }

  .hero-copy h1 {
    max-width: calc(100vw - 36px);
    font-size: clamp(20px, 6.2vw, 25px);
    line-height: 1.08;
    overflow-wrap: normal;
  }

  .hero-copy {
    padding-bottom: clamp(44px, 8dvh, 68px);
  }

  .hero-copy p {
    font-size: 9px;
  }

  .button {
    min-height: 40px;
    font-size: 13px;
  }
}

@media (max-width: 420px) and (max-height: 700px) {
  .site-header {
    gap: 8px;
    padding-top: 10px;
  }

  nav a {
    min-height: 30px;
  }

  .hero-copy {
    padding-bottom: clamp(36px, 7dvh, 54px);
  }

  .hero-copy h1 {
    margin-bottom: 12px;
  }
}

@media (min-width: 421px) and (max-width: 820px) and (max-height: 760px) {
  .site-header {
    gap: 8px;
    padding-top: 10px;
  }

  nav a {
    min-height: 30px;
  }

  .hero-copy {
    padding-bottom: clamp(36px, 7dvh, 54px);
  }

  .hero-copy h1 {
    margin-bottom: 12px;
  }
}

@media (max-width: 920px) and (orientation: landscape) and (max-height: 500px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 8px 18px 0;
  }

  .site-brand {
    flex: 0 0 auto;
    gap: 6px;
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark img {
    width: 32px;
    height: 32px;
  }

  nav {
    width: auto;
    flex: 1 1 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 12px;
    font-size: 12px;
    text-align: right;
  }

  nav a {
    min-height: 28px;
    white-space: nowrap;
  }

  .hero {
    align-items: end;
  }

  .hero-copy {
    width: min(520px, calc(100% - 36px));
    padding: 0 18px 24px;
  }

  .hero-copy p {
    margin-bottom: 8px;
    font-size: 8px;
  }

  .hero-copy h1 {
    max-width: min(500px, calc(100vw - 36px));
    margin-bottom: 10px;
    font-size: clamp(20px, 5.4vw, 32px);
    line-height: 0.98;
  }

  .button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (min-width: 821px) and (max-width: 1280px) and (orientation: landscape) and (max-height: 850px) {
  .site-header {
    gap: 18px;
    padding: 14px 24px 0;
  }

  .site-brand {
    gap: 8px;
    font-size: 26px;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
  }

  .brand-mark img {
    width: 52px;
    height: 52px;
  }

  nav {
    gap: 16px;
    font-size: 16px;
  }

  .hero {
    min-height: 100dvh;
    height: 100dvh;
  }

  .hero-copy {
    width: min(680px, calc(100% - 48px));
    padding: 0 0 clamp(42px, 7dvh, 68px) 24px;
  }

  .hero-copy p {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .hero-copy h1 {
    margin-bottom: 16px;
    font-size: clamp(38px, 6.2vw, 72px);
    line-height: 0.95;
  }

  .button {
    min-height: 40px;
    padding: 0 16px;
    background: #ffffff;
    color: var(--ink);
    font-size: 14px;
  }
}
