html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  --bg: #061009;
  --ink: #f2efe4;
  --soft: rgba(242,239,228,.72);
  --muted: rgba(242,239,228,.48);
  --accent: #b9df72;
  --line: rgba(242,239,228,.16);

  --x: clamp(20px,5vw,84px);
  --y: clamp(86px,11vh,132px);

  --ease: cubic-bezier(.22,1,.36,1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

/* =========================================================
   REAL VIDEO BACKGROUND
   ---------------------------------------------------------
   The video itself is NEVER transformed or animated.
   There is no still image behind it.
========================================================= */

.video-world {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #061009;
}

.forest-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center center;

  background: #061009;

  /*
    Dark premium grade only.
    This changes colour, not motion.
  */
  filter:
    brightness(.60)
    contrast(1.10)
    saturate(.90);
}

.video-grade,
.video-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.video-grade {
  z-index: 2;

  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.26) 0%,
      rgba(0,0,0,.04) 38%,
      rgba(0,0,0,.30) 100%
    ),
    linear-gradient(
      90deg,
      rgba(2,8,4,.18),
      transparent 22%,
      transparent 78%,
      rgba(2,8,4,.18)
    );
}

.video-vignette {
  z-index: 3;

  background:
    radial-gradient(
      circle at 50% 48%,
      transparent 42%,
      rgba(0,0,0,.18) 74%,
      rgba(0,0,0,.46) 100%
    );
}

/* =========================================================
   LOADER
========================================================= */

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: grid;
  place-items: center;

  background: #020503;

  transition:
    opacity .72s ease,
    visibility 0s linear .72s;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__inner {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.loader__inner strong {
  font-size: clamp(72px,13vw,200px);
  font-weight: 900;
  line-height: .78;
  letter-spacing: -.08em;
}

.loader__inner span {
  color: var(--muted);

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2em;
}

/* =========================================================
   HEADER / NAVIGATION
========================================================= */

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;

  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding:
    22px
    var(--x);

  pointer-events: auto;
}


/* -------------------------
   LOGO
------------------------- */

.brand--logo {
  display: flex;
  align-items: center;

  position: relative;
  z-index: 2;
}

.brand-logo {
  display: block;

  width: auto;
  height: 120px;

  object-fit: contain;

  transition:
    transform .45s var(--ease),
    opacity .3s ease;
}

.brand--logo:hover .brand-logo {
  transform: scale(1.05);
}


/* -------------------------
   NAVIGATION
------------------------- */

.main-nav {
  display: flex;
  align-items: center;

  gap: clamp(18px, 2.2vw, 38px);
}

.main-nav > a {
  position: relative;

  padding: 8px 0;

  color: rgba(242,239,228,.76);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;

  text-transform: uppercase;

  transition:
    color .3s ease,
    opacity .3s ease;
}


/* animated underline */

.main-nav > a:not(.nav-cta)::after {
  content: "";

  position: absolute;

  right: 0;
  bottom: 2px;
  left: 0;

  height: 1px;

  background: var(--accent);

  transform: scaleX(0);
  transform-origin: right center;

  transition:
    transform .45s var(--ease);
}

.main-nav > a:not(.nav-cta):hover {
  color: var(--ink);
}

.main-nav > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}


/* -------------------------
   CTA
------------------------- */

.main-nav .nav-cta {
  padding: 11px 15px;

  border: 1px solid rgba(242,239,228,.24);

  color: var(--ink);

  background: rgba(3,9,5,.18);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition:
    background .35s ease,
    color .35s ease,
    border-color .35s ease,
    transform .35s var(--ease);
}

.main-nav .nav-cta:hover {
  border-color: var(--accent);

  color: #071009;
  background: var(--accent);

  transform: translateY(-2px);
}

/* =========================================================
   MENU
========================================================= */

.menu {
  position: fixed;
  top: 78px;
  right: var(--x);

  z-index: 110;

  display: none;

  min-width: 230px;
  padding: 20px;

  border: 1px solid rgba(255,255,255,.14);

  background: rgba(3,9,5,.75);
  backdrop-filter: blur(16px);
}

.menu.is-open {
  display: block;
}

.menu nav {
  display: grid;
  gap: 13px;
}

.menu nav a,
.menu__cta {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.menu__cta {
  display: block;

  margin-top: 22px;

  color: var(--accent);
}

/* =========================================================
   STORY
========================================================= */

.story {
  position: fixed;
  inset: 0;

  z-index: 10;

  pointer-events: none;
}

.scroll-driver {
  height: 980vh;
}

.scene {
  position: absolute;
  inset: 0;

  padding:
    var(--y)
    var(--x)
    56px;

  opacity: 0;
  visibility: hidden;

  transform: translateY(14px);

  transition:
    opacity .44s ease,
    transform .58s var(--ease),
    visibility 0s linear .44s;
}

.scene.is-visible {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);

  transition:
    opacity .44s ease,
    transform .58s var(--ease),
    visibility 0s;
}

.eyebrow,
.scene-label,
.opening-meta,
.scroll-cue {
  margin: 0;

  color: var(--soft);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .20em;
  text-transform: uppercase;
}

.scene-label {
  position: absolute;
  top: var(--y);
  left: var(--x);
}

/* =========================================================
   OPENING
========================================================= */

.scene--opening {
  display: grid;
  place-items: center;

  text-align: center;
}

.eyebrow {
  position: absolute;
  top: 15vh;
}

.opening-title,
.copy h2,
.copy h3 {
  margin: 0;

  font-weight: 900;
  line-height: .78;
  letter-spacing: -.07em;

  text-transform: uppercase;
}

.opening-title {
  font-size: clamp(68px,12.5vw,205px);
}

.opening-title span {
  display: block;
}

.opening-title span:last-child,
.copy em,
.statement span {
  color: var(--accent);
  font-style: normal;
}

.opening-meta {
  position: absolute;
  bottom: 7vh;
  left: var(--x);
}

.scroll-cue {
  position: absolute;
  right: var(--x);
  bottom: 7vh;
}

/* =========================================================
   CONTENT SCENES
========================================================= */

.copy {
  position: absolute;
  top: 50%;
  left: var(--x);

  max-width: 92vw;

  transform: translateY(-50%);
}

.copy h2 {
  font-size: clamp(54px,9.6vw,158px);
}

.copy h3 {
  margin-top: 5vh;
  margin-left: 16vw;

  font-size: clamp(42px,7.2vw,116px);
}

.statement {
  max-width: 620px;

  margin: 20px 0 0;

  color: var(--soft);

  font-size: clamp(16px,1.7vw,27px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.03em;
}

.tags {
  position: absolute;
  right: var(--x);
  bottom: 7vh;
  left: var(--x);

  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tags span {
  padding: 8px 10px;

  border: 1px solid rgba(242,239,228,.17);

  background: rgba(3,9,5,.23);
  backdrop-filter: blur(10px);

  color: var(--soft);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;

  text-transform: uppercase;
}

.scene--center .copy {
  left: 50%;

  width: 100%;

  text-align: center;

  transform:
    translate(-50%,-50%);
}

/* =========================================================
   WORK
========================================================= */

.project-row {
  position: absolute;
  right: var(--x);
  bottom: 7vh;
  left: var(--x);

  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}


/* CLICKABLE PROJECT CARD */

.project-card {
  position: relative;

  display: block;

  padding: 18px;

  border-top: 1px solid var(--line);

  background: rgba(4,10,6,.17);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: inherit;
  text-decoration: none;

  cursor: pointer;

  transition:
    background .35s ease,
    border-color .35s ease,
    transform .45s var(--ease);
}


.project-card:hover {
  background: rgba(8,18,11,.48);

  border-color: var(--accent);

  transform: translateY(-5px);
}


.project-card > span {
  color: var(--accent);

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
}


.project-card h4 {
  margin: 12px 0 8px;

  font-size: 13px;
  letter-spacing: .05em;
}


.project-card p {
  max-width: 300px;

  margin: 0;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.5;
}

/* =========================================================
   CONTACT
========================================================= */

.contact-actions {
  position: absolute;
  bottom: 7vh;
  left: var(--x);

  z-index: 30;

  display: flex;
  gap: 16px;

  pointer-events: auto;
}

.cta {
  display: inline-flex;

  padding: 14px 17px;

  border: 1px solid rgba(242,239,228,.20);

  background: rgba(3,9,5,.25);
  backdrop-filter: blur(10px);

  color: var(--ink);

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.cta--primary {
  border-color: transparent;

  color: #071009;
  background: var(--accent);
}

/* =========================================================
   AUTOPLAY FALLBACK
========================================================= */

.play-button {
  position: fixed;
  bottom: 26px;
  left: 50%;

  z-index: 500;

  transform: translateX(-50%);

  padding: 13px 18px;

  border: 1px solid rgba(242,239,228,.5);

  color: var(--ink);
  background: rgba(3,9,5,.82);

  backdrop-filter: blur(14px);

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;

  cursor: pointer;
}

.play-button[hidden],
.video-error[hidden] {
  display: none !important;
}

.video-error {
  position: fixed;
  bottom: 78px;
  left: 50%;

  z-index: 500;

  width: min(
    380px,
    calc(100vw - 40px)
  );

  transform: translateX(-50%);

  padding: 12px;

  border: 1px solid rgba(242,239,228,.14);

  background: rgba(3,9,5,.78);
  backdrop-filter: blur(14px);

  text-align: center;
}

.video-error strong,
.video-error span {
  display: block;
}

.video-error strong {
  margin-bottom: 5px;

  font-size: 9px;
  letter-spacing: .13em;
}

.video-error span {
  color: var(--muted);

  font-size: 10px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

  :root {
    --x: 20px;
    --y: 86px;
  }

  .counter {
    display: none;
  }

  .opening-title {
    font-size: 18vw;
  }

  .copy h2 {
    font-size: 15vw;
  }

  .copy h3 {
    margin-left: 7vw;

    font-size: 11.5vw;
  }

  .opening-meta {
    bottom: 34px;
    left: 20px;
  }

  .scroll-cue {
    right: 20px;
    bottom: 34px;
  }

  .tags {
    right: 20px;
    bottom: 34px;
    left: 20px;
  }

  .project-row {
    right: 20px;
    bottom: 28px;
    left: 20px;

    grid-template-columns: 1fr;
  }

  .project-row .project-card:nth-child(3) {
  display: none;
}

  .contact-actions {
    bottom: 34px;
    left: 20px;

    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   MAKE WORK CARDS CLICKABLE
========================================================= */

.project-row {
  pointer-events: auto;
  z-index: 50;
}

.project-card {
  position: relative;
  z-index: 51;

  display: block;

  color: inherit;
  text-decoration: none;

  cursor: pointer;

  pointer-events: auto;
}

.project-card:hover {
  transform: translateY(-5px);

  background: rgba(4, 10, 6, .45);

  border-top-color: var(--accent);
}

/* =========================================================
   FIXED SOCIAL MEDIA RAIL
========================================================= */

.social-rail {
  position: fixed;

  top: 50%;
  right: 18px;

  z-index: 150;

  transform: translateY(-50%);

  display: flex;
  flex-direction: column;

  gap: 10px;

  pointer-events: auto;
}


/* individual icon */

.social-link {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border:
    1px solid
    rgba(242,239,228,.10);

  border-radius: 50%;

  color:
    rgba(242,239,228,.38);

  background:
    rgba(3,9,5,.18);

  backdrop-filter:
    blur(10px);

  -webkit-backdrop-filter:
    blur(10px);

  opacity: .72;

  transition:
    color .3s ease,
    background .3s ease,
    border-color .3s ease,
    opacity .3s ease,
    transform .35s var(--ease),
    box-shadow .3s ease;
}

.social-link svg {
  width: 21px;
  height: 21px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.5;

  stroke-linecap: round;
  stroke-linejoin: round;

  transition:
    transform .35s var(--ease);
}


/* hover */

.social-link:hover {
  color: var(--accent);

  background:
    rgba(6,16,9,.78);

  border-color:
    rgba(185,223,114,.55);

  opacity: 1;

  transform:
    translateX(-5px)
    scale(1.08);

  box-shadow:
    0 0 25px
    rgba(185,223,114,.12);
}


.social-link:hover svg {
  transform:
    scale(1.08);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

  .social-link {
    width: 40px;
    height: 40px;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }

}

/* =========================================================
   CONSISTENT BODY TEXT
========================================================= */

main p:not(.case-category),
section p:not(.case-category) {
  font-size: 16px !important;
  line-height: 1.65 !important;
}

@media (max-width: 760px) {

  main p:not(.case-category),
  section p:not(.case-category) {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

}

/* =========================================================
   SMALL SCROLL TO GROW
========================================================= */

.scroll-cue {
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: .20em !important;

  color: rgba(242, 239, 228, .68) !important;

  text-transform: uppercase;
}

/* =========================================================
   FORCE SMALL "SCROLL TO GROW"
========================================================= */

.scene--opening .scroll-cue {
  font-size: 7px !important;
  line-height: 1 !important;

  font-weight: 800 !important;

  letter-spacing: .18em !important;

  color: rgba(242, 239, 228, .55) !important;

  text-transform: uppercase !important;
}


/* MOBILE */

@media (max-width: 760px) {

  .scene--opening .scroll-cue {
    font-size: 7px !important;
  }

}

/* =========================================================
   SOCIAL MEDIA ICONS - SMALLER + VISIBLE
========================================================= */

.social-rail a,
.social-links a {
  width: 40px !important;
  height: 40px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 50% !important;

  border:
    1px solid
    rgba(242, 239, 228, .35) !important;

  background:
    rgba(0, 0, 0, .38) !important;

  color:
    rgba(242, 239, 228, .82) !important;

  backdrop-filter:
    blur(10px);

  -webkit-backdrop-filter:
    blur(10px);

  transition:
    background .3s ease,
    color .3s ease,
    border-color .3s ease,
    transform .3s ease !important;
}


/* ICON ITSELF */

.social-rail a i,
.social-rail a svg,
.social-links a i,
.social-links a svg {
  font-size: 15px !important;

  width: 15px !important;
  height: 15px !important;

  opacity: 1 !important;
}


/* HOVER */

.social-rail a:hover,
.social-links a:hover {
  color:
    #071009 !important;

  background:
    #b9df72 !important;

  border-color:
    #b9df72 !important;

  transform:
    scale(1.08);
}