body {
  margin: 0;
  background-color: rgb(112, 139, 117);
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

html,
body {
  font-size: 33px;
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  min-height: 0;
}

/* fade in */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-in-up 650ms ease forwards;
  animation-delay: var(--d, 0ms); /* default delay if not set */
  will-change: opacity, transform;
}

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .content-split {
    padding: 12px;
  }

  .content-split .image-panel.panel {
    width: 100%;
    padding: 12px;
  }

  .reviews-carousel {
    width: 100%;
    height: 900px;
  }

  .review-card {
    width: 95vw;
    max-width: none;
    border-width: 4px;
  }

  .review-card {
    --gap: 240px;
  }

  .review-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border-width: 3px;
  }

  .headshot {
    width: 170px;
    height: 170px;
  }

  .about-text {
    max-width: 100%;
  }

  .nav-pages {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; /* gives scrollbar space */
  }

  .nav-pages::-webkit-scrollbar {
    height: 6px;
  }
}

/* navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(64, 77, 51);
  padding: 12px 24px;

  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.15);
}

#navbar {
  flex: 0 0 auto;
  height: var(--nav-h, 0px);
}

.nav-left {
  display: flex;
  flex-direction: column;
}

.nav-name {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.3rem;
  font-weight: bold;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-contact {
  margin-top: 4px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.nav-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.nav-contact a:hover {
  text-decoration: underline;
}

.nav-pages {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}
.nav-pages a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  text-decoration: none;
  padding: 8px 16px;
  margin-left: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
  flex: 0 0 auto;
  margin-left: 0;
}

.nav-pages a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.nav-pages a:focus-visible {
  outline: none;
  border-color: white;
}

/* content splitter */
.content-split {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "text"
    "media";
  gap: 32px;
  align-items: stretch;
  padding: 24px;
}

.content-split .text-column {
  display: flex;
  text-align: left;
}
.content-split .text-column > .panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-split .image-panel {
  grid-area: media;
}

.section-divider {
  height: 4px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent
  );
  margin: 56px 24px;
}

/* text */
.text-column {
  color: rgba(255, 255, 255, 0.7);
}
.text-column h1 {
  margin-top: 0;
  text-align: center;
}

.text-column p {
  line-height: 1.6;
}

/* image grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.image-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.7);
  aspect-ratio: 3/4;
}

/* shared look */
.panel {
  background-color: rgba(64, 77, 51, 0.95);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.panel-grid {
  background-color: rgba(64, 77, 51, 0.95);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  height: fit-content;
}
/* video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.video-grid video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.7);
  background-color: black; /* avoids white flash before load */
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.media-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.7);
  background-color: black;
}

.media-tile img,
.media-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* reviews carousel */
.reviews-carousel {
  position: relative;
  height: 780px;
  overflow: hidden;

  /* fade the edges so cards disappear cleanly */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 15%,
    #000 85%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 15%,
    #000 85%,
    transparent
  );
}

.review-card {
  position: absolute;
  left: 50%;
  top: 50%;

  width: min(800px, 100%);
  height: 160px;

  object-fit: contain;
  background: rgba(24, 26, 27);
  border-radius: 14px;
  border: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);

  /* spacing math */
  --gap: 180px; /* distance between cards */
  --count: 15; /* number of cards */
  --slot: 8s; /* time between cards */
  --travel: calc(var(--gap) * var(--count)); /* total travel distance */
  --start: calc(var(--travel) / 2);
  --end: calc(var(--travel) / -2);

  opacity: 1;
  will-change: transform;

  animation: review-conveyor calc(var(--count) * var(--slot)) linear infinite;
}

.review-card:nth-child(1) {
  --i: 0;
}
.review-card:nth-child(2) {
  --i: 1;
}
.review-card:nth-child(3) {
  --i: 2;
}
.review-card:nth-child(4) {
  --i: 3;
}
.review-card:nth-child(5) {
  --i: 4;
}
.review-card:nth-child(6) {
  --i: 5;
}
.review-card:nth-child(7) {
  --i: 6;
}
.review-card:nth-child(8) {
  --i: 7;
}
.review-card:nth-child(9) {
  --i: 8;
}
.review-card:nth-child(10) {
  --i: 9;
}
.review-card:nth-child(11) {
  --i: 10;
}
.review-card:nth-child(12) {
  --i: 11;
}
.review-card:nth-child(13) {
  --i: 12;
}
.review-card:nth-child(14) {
  --i: 13;
}
.review-card:nth-child(15) {
  --i: 14;
}

.review-card {
  animation-delay: calc(var(--i) * -1 * var(--slot));
}

@keyframes review-conveyor {
  0% {
    transform: translate(-50%, var(--start));
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, var(--end));
    opacity: 0;
  }
}

/* about page styling */
.about {
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.headshot {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  border: 7px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: block;
  margin: 0 auto 24px;
}

.about-text h1 {
  margin: 0;
  font-size: 2.2rem;
  text-align: center;
}

.about-text h2 {
  margin: 6px 0 18px;
  font-size: 1.2rem;
  font-weight: normal;
  opacity: 0.8;
  text-align: center;
}

.about-text h3 {
  margin: 6px 0 18px;
  font-size: 1.6rem;
  text-align: center;
}

.about-text p {
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 650px;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  display: flex;
  gap: 0.6em;
  line-height: 1.35;
  align-items: flex-start;
}

.skills-list li::before {
  content: "•";
  opacity: 0.8;
  flex: 0 0 auto;
  line-height: 1;
  margin-top: 0.25em;
}

.skills-list li:nth-child(odd) {
  color: rgba(255, 255, 255, 0.5);
}

.skills-list li:nth-child(even) {
  color: rgba(255, 255, 255, 0.8);
}

.info-list {
  margin: 0;
  padding: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 45px;
  padding: 10px 0;
}

.info-row dt {
  margin: 0;
  font-weight: 700;
}

.info-row dd {
  margin: 0;
  line-height: 1.35;
}

.about-panel {
  background-color: rgba(64, 77, 51, 0.95);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  width: fit-content;
  margin: 0 auto;
}

.about-panel.list {
  width: stretch;
  margin-top: 70px;
  height: fit-content;
}

.about-split {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr;
  grid-template-areas: "text";
  gap: 32px;
  align-items: stretch;
  padding: 24px;
}

.about-split .text-column {
  display: flex;
  text-align: left;
}
.about-split .text-column > .panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-divider {
  height: 4px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent
  );
  margin: 20px 14px;
}

.logo {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.logo img {
  width: 800px;
  max-width: 100%;
  height: auto;
}

.site-footer {
  background-color: rgb(40, 45, 25);
  padding: 30px 24px;
  margin-top: auto;
  flex: 0 0 auto;

  box-shadow:
    0 -2px 4px rgba(0, 0, 0, 0.3),
    0 -8px 20px rgba(0, 0, 0, 0.15);
}
.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  font-weight: 500;
  position: relative;
}

.footer-link:hover {
  color: white;
  text-decoration-thickness: 2px;
}

.footer-link::after {
  content: " ↗";
  font-size: 0.8em;
  opacity: 0.7;
}
