:root {
  --background: #222222;
  --panel: #2a2a2a;
  --panel-dark: rgba(0, 0, 0, 0.62);
  --foreground: #eee9e3;
  --muted: #c4beb6;
  --line: #8d867d;
  --blue: #1648b6;
  --orange: #e6754f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.25;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  padding: 20px 28px 0;
}

.header-inner {
  display: flex;
  width: min(100%, 980px);
  min-height: 43px;
  margin: 0 auto;
  background: rgba(38, 38, 38, 0.96);
}

.brand,
.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand {
  flex: 0 0 180px;
  justify-content: flex-start;
  padding: 0 22px;
  color: #f4eee8;
  font-size: 21px;
  text-transform: none;
  letter-spacing: -0.4px;
}

.site-nav {
  display: flex;
  flex: 1;
}

.nav-link {
  flex: 1;
  padding: 0 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  color: #ddd7d0;
  font-size: 15px;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
}

.nav-link.active {
  background: var(--blue);
  color: #ffffff;
}

.home-hero {
  display: grid;
  min-height: 267px;
  margin: 30px auto 0;
  padding: 45px 24px 37px;
  width: min(100% - 56px, 980px);
  place-items: center;
  align-content: center;
  gap: 37px;
  background-image: linear-gradient(rgba(8, 12, 10, 0.22), rgba(8, 12, 10, 0.22)), url("public/images/graphics/vegetation.jpg");
  background-position: center;
  background-size: cover;
}

.hero-card,
.hero-button {
  background: var(--panel-dark);
}

.hero-card {
  width: min(100%, 430px);
  padding: 19px 20px 15px;
  text-align: center;
}

.hero-card h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 39px);
  line-height: 1;
}

.hero-card p {
  margin: 5px 0 0;
  color: #4d91ff;
  font-size: clamp(18px, 2.2vw, 23px);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 13px;
  width: min(100%, 430px);
}

.hero-button {
  padding: 12px 17px 11px;
  color: #65a2ff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.hero-button:hover,
.hero-button:focus-visible {
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  outline: 1px solid rgba(255, 255, 255, 0.45);
}

.latest-work {
  width: min(100% - 56px, 980px);
  margin: 0 auto;
  padding: 30px 18px 42px;
  text-align: center;
}

.latest-work h2,
.contact-section h2,
.proficiencies > h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.work-status {
  display: grid;
  gap: 8px;
  margin: 36px auto 40px;
  color: var(--muted);
  font-size: 21px;
}

.work-status p {
  margin: 0;
}

.work-status strong {
  color: #f4eee8;
}

.work-status a {
  color: #7da7ff;
  text-decoration: none;
}

.work-status a:hover,
.work-status a:focus-visible,
.about-copy a:hover,
.about-copy a:focus-visible,
.contact-lede a:hover,
.contact-lede a:focus-visible {
  color: var(--orange);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 27px;
}

.home-card {
  display: block;
  min-width: 0;
  color: #f4eee8;
  text-decoration: none;
}

.home-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.home-card h3 {
  margin: 24px 0 0;
  font-size: 21px;
  line-height: 1.05;
}

.home-card:hover h3,
.home-card:focus-visible h3 {
  color: #6ca0ff;
}

.portfolio-page,
.about-page,
.effects-page {
  width: min(100% - 56px, 980px);
  margin: 0 auto;
  padding: 26px 0 42px;
}

.page-heading {
  padding: 0 12px 30px;
  text-align: center;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(29px, 4vw, 38px);
  font-weight: 400;
}

.page-heading p {
  margin: 0;
  color: #eee9e3;
  font-size: clamp(21px, 3vw, 27px);
}

.project-list {
  display: grid;
  gap: 48px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(285px, 0.86fr) minmax(0, 1.7fr);
  min-height: 380px;
  border: 1px solid var(--line);
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 20px;
  background: rgba(34, 34, 34, 0.86);
}

.project-copy h2 {
  margin: 0 0 24px;
  color: #eee9e3;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

.project-copy p {
  margin: 0 0 18px;
  color: #eee9e3;
  font-size: 17px;
  line-height: 1.14;
}

.project-copy p:last-child {
  margin-bottom: 0;
}

.project-media {
  position: relative;
  min-height: 380px;
  background: #171717;
}

.project-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.media-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
  background: #171717;
}

.media-carousel img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 42px;
  height: 64px;
  padding: 0 0 7px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.52);
  color: #ffffff;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  opacity: 0.82;
  transition: background 160ms ease, opacity 160ms ease;
}

.carousel-arrow.previous {
  left: 12px;
}

.carousel-arrow.next {
  right: 12px;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: rgba(22, 72, 182, 0.9);
  opacity: 1;
  outline: none;
}

.carousel-dots {
  position: absolute;
  bottom: 13px;
  left: 50%;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.carousel-dot.active,
.carousel-dot:hover,
.carousel-dot:focus-visible {
  background: #ffffff;
  outline: none;
}

.project-video {
  width: 100%;
  height: 100%;
  min-height: 380px;
  background: #0b0b0b;
}

.project-video iframe,
.project-video video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  object-fit: cover;
}

.project-row.image-left .project-copy {
  order: 2;
}

.project-row.image-left .project-media {
  order: 1;
}

.effects-page {
  padding-top: 62px;
}

.video-panel {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.video-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #0b0b0b;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  display: block;
  padding: 13px 18px;
  color: #71a2ff;
  font-size: 16px;
  text-align: right;
  text-decoration: none;
}

.video-fallback:hover,
.video-fallback:focus-visible {
  color: var(--orange);
}

.about-page {
  padding-top: 38px;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.45fr);
  align-items: start;
  gap: 44px;
  width: min(100%, 890px);
  margin: 0 auto;
}

.portrait-frame {
  overflow: hidden;
  border-radius: 4px;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 23%;
}

.about-copy h1 {
  margin: 0 0 25px;
  font-size: clamp(29px, 4vw, 38px);
  font-weight: 400;
  text-align: center;
}

.about-copy p {
  margin: 0 0 20px;
  color: #eee9e3;
  font-size: 16px;
  line-height: 1.12;
}

.about-copy a,
.contact-lede a {
  color: var(--orange);
  text-decoration: none;
}

.contact-section {
  padding: 36px 0 36px;
  text-align: center;
}

.contact-lede {
  margin: 24px auto 35px;
  color: #eee9e3;
  font-size: 21px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  width: min(100%, 650px);
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #eee9e3;
  text-align: left;
  text-decoration: none;
}

.contact-card img {
  width: 59px;
  height: 59px;
  object-fit: contain;
  flex: 0 0 59px;
}

.contact-card span {
  display: grid;
  gap: 1px;
}

.contact-card strong {
  color: var(--orange);
  font-size: 15px;
  text-transform: uppercase;
}

.contact-card b {
  font-size: 19px;
  font-weight: 400;
}

.contact-card:hover b,
.contact-card:focus-visible b {
  color: #7da7ff;
}

.proficiencies {
  padding: 14px 28px 42px;
  background: rgba(47, 47, 47, 0.68);
}

.proficiencies > h2 {
  margin-bottom: 32px;
  text-align: center;
  text-transform: none;
}

.proficiency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 62px;
}

.proficiency-column {
  min-width: 0;
  color: #eee9e3;
  font-size: 15px;
}

.proficiency-column h3,
.proficiency-column h4 {
  margin: 0 0 14px;
  text-align: center;
}

.proficiency-column h3 {
  font-size: 19px;
}

.proficiency-column h4 {
  margin-top: 20px;
  font-size: 15px;
}

.proficiency-column ul {
  margin: 0 0 22px;
  padding-left: 25px;
}

.proficiency-column ul ul {
  margin: 3px 0 3px;
}

.proficiency-column li {
  margin: 2px 0;
}

.proficiency-column p {
  margin: 12px 0 0;
  text-align: center;
}

.proficiency-note {
  margin-top: 28px !important;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(100% - 56px, 980px);
  margin: 0 auto;
  padding: 19px 12px 30px;
  color: #8f8983;
  font-size: 13px;
}

@media (max-width: 820px) {
  .site-header {
    padding: 14px 16px 0;
  }

  .header-inner {
    display: block;
  }

  .brand {
    justify-content: center;
    min-height: 48px;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .nav-link {
    min-height: 40px;
    flex: 1 0 20%;
    padding: 0 8px;
    font-size: 12px;
  }

  .home-hero,
  .latest-work,
  .portfolio-page,
  .about-page,
  .effects-page,
  .site-footer {
    width: min(100% - 32px, 700px);
  }

  .home-hero {
    margin-top: 20px;
  }

  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .project-row {
    grid-template-columns: 1fr;
  }

  .project-row.image-left .project-copy,
  .project-row.image-left .project-media {
    order: initial;
  }

  .project-media,
  .project-media img,
  .media-carousel,
  .media-carousel img,
  .project-video,
  .project-video iframe,
  .project-video video {
    min-height: 300px;
  }

  .about-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: min(100%, 520px);
  }

  .portrait-frame {
    width: min(100%, 390px);
    margin: 0 auto;
  }

  .proficiencies {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 520px) {
  .nav-link {
    flex-basis: 33.333%;
  }

  .nav-link:last-child {
    flex-basis: 100%;
  }

  .hero-actions,
  .contact-grid,
  .proficiency-grid {
    grid-template-columns: 1fr;
  }

  .work-status,
  .contact-lede {
    font-size: 18px;
  }

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

  .home-card h3 {
    margin-top: 14px;
    font-size: 16px;
  }

  .project-list {
    gap: 28px;
  }

  .project-copy {
    padding: 24px 18px;
  }

  .project-copy p {
    font-size: 16px;
  }

  .proficiencies {
    padding-right: 16px;
    padding-left: 16px;
  }

  .site-footer {
    display: grid;
    gap: 6px;
    text-align: center;
  }
}
