:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #09060f;
  --panel-strong: #160d24;
  --text: #f5f2ff;
  --muted: #c9c3df;
  --purple: #8767d2;
  --purple-deep: #3b236f;
  --purple-soft: #b19ae7;
  --blue-edge: #2563ff;
  --line: rgba(255, 255, 255, 0.2);
  --max-width: 1888px;
  --header-height: 132px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Avenir, "Avenir Next", Montserrat, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(52, 18, 112, 0.78), rgba(0, 0, 0, 0) 18rem),
    linear-gradient(180deg, #08020f 0, #000 12rem, #000 100%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--purple-soft);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--text);
  color: #08050d;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 2rem clamp(1.5rem, 4vw, 5rem);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 2.1vw, 2.45rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5.25rem);
  color: #f1edf7;
  font-size: clamp(1rem, 1.1vw, 1.35rem);
  letter-spacing: 0;
}

.nav-link {
  position: relative;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--purple-soft);
  transition: transform 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--purple-soft);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-inline: clamp(1.5rem, 4vw, 5rem);
}

.showreel-section {
  display: grid;
  grid-template-columns: minmax(17rem, 0.54fr) minmax(28rem, 1fr);
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-top: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(4rem, 7vw, 7.75rem);
}

.showreel-copy {
  align-self: center;
  padding-left: clamp(0rem, 12vw, 15rem);
}

.eyebrow {
  margin: 1.2rem 0 2.6rem;
  color: #f4f0ff;
  font-size: clamp(1.15rem, 1.7vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.26em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 5.3vw, 5.6rem);
  font-weight: 400;
  line-height: 0.95;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10.2rem;
  min-height: 3.05rem;
  padding: 0.75rem 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button-primary {
  background: var(--purple);
  color: #140c1e;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.25);
  background: #a58be2;
}

.showreel-media {
  position: relative;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.showreel-media::before {
  content: "";
  position: absolute;
  top: -1.35rem;
  right: calc(-1 * clamp(1.5rem, 4vw, 5rem));
  bottom: -1.35rem;
  left: 16%;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(69, 44, 104, 0.78) 36%, rgba(137, 93, 206, 0.95));
}

.showreel-video {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
  box-shadow: 0 1.8rem 4rem rgba(81, 54, 142, 0.45);
  object-fit: cover;
}

.video-scene,
.video-scene span {
  position: absolute;
  inset: 0;
}

.video-scene {
  overflow: hidden;
  background:
    linear-gradient(180deg, #92b3de 0 28%, #77e286 28% 52%, #b2ee8a 52% 100%);
}

.sun {
  width: 4.8%;
  height: 9%;
  left: 3%;
  top: 3%;
  border-radius: 50%;
  background: #c85a36;
  box-shadow: 0 0 0 0.75rem rgba(87, 205, 101, 0.55);
}

.hill {
  inset: auto -6% 34% -6%;
  height: 32%;
  border-radius: 50% 50% 0 0;
  background: #59e06e;
  border-top: 3px solid #17171a;
}

.hill-back {
  bottom: 40%;
  transform: rotate(-2deg);
  background: #55dc72;
}

.hill-front {
  bottom: 22%;
  background: #acf07d;
}

.river {
  inset: auto -4% 19% -5%;
  height: 13%;
  transform: rotate(-7deg);
  background: #1584f2;
  border-top: 2px solid rgba(255, 255, 255, 0.65);
  border-bottom: 2px solid #26317a;
}

.bridge {
  left: 46%;
  top: 42%;
  width: 21%;
  height: 10%;
  border-top: 0.9rem solid #d69a55;
  border-radius: 50% 50% 0 0;
  transform: rotate(-5deg);
}

.bridge::before,
.bridge::after,
.play-icon::before,
.fullscreen-icon::before,
.fullscreen-icon::after {
  content: "";
  position: absolute;
}

.bridge::before {
  inset: 0.45rem 0 0;
  border-top: 2px solid #3f2414;
}

.bridge::after {
  left: 8%;
  right: 8%;
  bottom: -0.7rem;
  height: 0.4rem;
  background: repeating-linear-gradient(90deg, #4b2517 0 0.25rem, transparent 0.25rem 1.6rem);
}

.tree {
  bottom: 39%;
  width: 5%;
  height: 26%;
  background: #c98b65;
  clip-path: polygon(40% 0, 65% 0, 58% 100%, 35% 100%);
}

.tree::before {
  content: "";
  position: absolute;
  left: -180%;
  top: -15%;
  width: 390%;
  height: 48%;
  background: #83c65b;
  clip-path: polygon(0 22%, 34% 0, 55% 18%, 100% 10%, 86% 78%, 44% 67%, 13% 100%);
}

.tree-one {
  left: 30%;
}

.tree-two {
  left: 77%;
  height: 18%;
  transform: scaleX(0.75);
}

.rock {
  width: 15%;
  height: 25%;
  background: #d9c2ef;
  border: 2px solid #1e1930;
  clip-path: polygon(16% 27%, 48% 3%, 85% 18%, 100% 66%, 75% 100%, 20% 89%, 0 53%);
}

.rock-one {
  right: 5%;
  bottom: 1%;
}

.rock-two {
  left: 39%;
  bottom: 28%;
  width: 6%;
  height: 11%;
}

.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 4rem;
  padding: 0.7rem 1rem 0.95rem;
  color: rgba(0, 0, 0, 0.88);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(92, 139, 62, 0.88));
  font-weight: 800;
}

.play-icon {
  position: relative;
  width: 1.05rem;
  height: 1.05rem;
}

.play-icon::before {
  inset: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: #fff;
}

.video-title {
  min-width: 0;
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  line-height: 1;
  white-space: nowrap;
}

.progress-track {
  align-self: end;
  height: 2px;
  margin-bottom: 0.55rem;
  background: rgba(255, 255, 255, 0.52);
}

.progress-track span {
  display: block;
  width: 37%;
  height: 100%;
  background: rgba(255, 255, 255, 0.94);
}

.fullscreen-icon {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
}

.fullscreen-icon::before,
.fullscreen-icon::after {
  inset: 0;
  border: 2px solid #fff;
}

.fullscreen-icon::after {
  inset: 0.28rem;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.85);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(11rem, 0.35fr) minmax(20rem, 0.55fr) minmax(20rem, 0.7fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: stretch;
  min-height: calc(100svh - var(--header-height));
  padding-top: clamp(4rem, 7vw, 7.5rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 4.1vw, 4.7rem);
  font-weight: 400;
  line-height: 1;
}

.section-heading em {
  font-style: italic;
}

.about-copy {
  padding: 0.25rem 0;
  color: #f2eef8;
  font-size: clamp(1.05rem, 1.22vw, 1.35rem);
  line-height: 1.55;
}

.about-copy p {
  margin-bottom: clamp(2rem, 4vw, 3.35rem);
}

.about-actions {
  display: grid;
  justify-items: center;
  gap: 1.6rem;
  width: min(100%, 18rem);
  margin: 1.1rem auto 0;
}

.about-actions .button {
  width: 100%;
  min-height: 3.05rem;
  color: #fff;
  font-size: 1.15rem;
}

.portrait-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 34rem;
  object-fit: cover;
  object-position: 58% 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 6.25rem;
  padding: 1.5rem clamp(1.5rem, 4vw, 5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #f0edf7;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top span {
  width: 1.7rem;
  height: 1.7rem;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translateY(0.35rem) rotate(45deg);
}

@media (max-width: 1180px) {
  :root {
    --header-height: 104px;
  }

  .showreel-section,
  .about-section {
    grid-template-columns: 1fr;
  }

  .showreel-copy {
    padding-left: 0;
  }

  .showreel-media::before {
    left: 6%;
  }

  .about-section {
    gap: 2rem;
  }

  .portrait-photo {
    min-height: 28rem;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 92px;
  }

  body {
    font-size: 16px;
    background:
      linear-gradient(90deg, rgba(52, 18, 112, 0.76), rgba(0, 0, 0, 0) 13rem),
      #000;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    padding-block: 1rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1rem;
  }

  .section {
    padding-inline: 1.25rem;
  }

  .showreel-section {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 4.2rem);
  }

  .eyebrow {
    margin-bottom: 1.6rem;
    font-size: 1rem;
  }

  .button {
    width: 100%;
    max-width: 18rem;
  }

  .showreel-media::before {
    right: -1.25rem;
    left: -1.25rem;
  }

  .showreel-video {
    aspect-ratio: 4 / 3;
  }

  .video-controls {
    grid-template-columns: auto 1fr auto;
  }

  .progress-track {
    grid-column: 1 / -1;
    width: 100%;
  }

  .about-section {
    min-height: auto;
    padding-top: 3rem;
  }

  .about-copy p {
    margin-bottom: 1.9rem;
  }

  .about-actions {
    width: 100%;
  }

  .portrait-photo {
    min-height: 22rem;
  }

  .site-footer {
    min-height: 5.5rem;
    padding-block: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
