:root {
  --scroll: 0;
  --model: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: #050505;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #050505;
  color: white;

  font-family:
    "Inter",
    "Helvetica Neue",
    Arial,
    sans-serif;
}

/* =========================================================
   HERO SCROLL AREA
========================================================= */

.hero-scroll {
  position: relative;
  height: 360vh;
  background: #050505;
}

.scene {
  position: sticky;
  top: 0;

  width: 100%;
  height: 100vh;

  overflow: hidden;
  background: #050505;
}

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

.background {
  position: absolute;
  inset: -5%;

  background:
    linear-gradient(
      rgba(0, 0, 0, calc(.72 - var(--scroll) * .35)),
      rgba(0, 0, 0, calc(.82 - var(--scroll) * .35))
    ),
    url("main.png") center 48% / cover no-repeat;

  opacity: clamp(
    0,
    calc(var(--scroll) * 1.15 - var(--model) * 1.30),
    1
  );

  transform:
    scale(calc(1.08 - var(--scroll) * .055))
    translateY(calc(var(--scroll) * -1.5vh));

  filter:
    grayscale(.2)
    contrast(1.1)
    brightness(.75);

  will-change:
    opacity,
    transform;
}

.vignette {
  position: absolute;
  inset: 0;

  z-index: 1;

  background:
    radial-gradient(
      ellipse at center,
      transparent 24%,
      rgba(0, 0, 0, .20) 58%,
      rgba(0, 0, 0, .82) 100%
    );

  pointer-events: none;
}

/* =========================================================
   HESITATION TYPE
========================================================= */

.word-wrap {
  position: absolute;
  inset: 0;

  z-index: 2;

  display: grid;
  place-items: center;

  padding: 2rem;

  opacity: calc(1 - var(--model));

  pointer-events: none;
}

.word {
  margin: 0;

  padding-left:
    calc(.02em + var(--scroll) * .5em);

  font-size:
    clamp(2.7rem, 8.2vw, 9rem);

  font-weight: 100;
  line-height: 1;

  text-transform: uppercase;
  white-space: nowrap;

  letter-spacing:
    calc(0em + var(--scroll) * .52em);

  color:
    rgba(
      255,
      255,
      255,
      calc(.98 - var(--scroll) * .12)
    );

  text-shadow:
    0 1px 18px rgba(0, 0, 0, .18);

  will-change:
    letter-spacing,
    color;
}

/* =========================================================
   THREE.JS MODEL STAGE
========================================================= */

.model-stage {
  position: absolute;
  inset: 0;

  z-index: 5;

  opacity: var(--model);
  pointer-events: none;

  background:
    rgba(
      3,
      4,
      5,
      calc(var(--model) * .96)
    );

  will-change: opacity;

  /*
    MOBILE:
    Let the browser own vertical finger scrolling.
  */
  touch-action: pan-y;
}

.model-stage.interactive {
  pointer-events: auto;
}

#three-canvas {
  display: block;

  width: 100%;
  height: 100%;

  opacity: var(--model);

  transform:
    scale(calc(.94 + var(--model) * .06))
    translateY(calc((1 - var(--model)) * 18px));

  transform-origin: center;

  outline: none;

  /*
    Vertical swipes remain usable for page scrolling.
    Horizontal mouse/touch movement still rotates the model.
  */
  touch-action: pan-y !important;
  overscroll-behavior-y: auto;
}

.model-halo {
  position: absolute;

  left: 42%;
  top: 35%;

  width: min(55vw, 800px);
  height: min(45vw, 600px);

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

  background:
    radial-gradient(
      ellipse,
      rgba(255,255,255,.035) 0%,
      rgba(255,255,255,.012) 35%,
      transparent 70%
    );

  filter: blur(35px);

  opacity: var(--model);

  pointer-events: none;
}

.loading {
  position: absolute;

  left: 50%;
  top: 50%;

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

  font-size: 10px;
  font-weight: 200;

  letter-spacing: .30em;
  text-transform: uppercase;

  opacity: calc(var(--model) * .65);

  pointer-events: none;

  transition: opacity .35s ease;
}

.loading.hidden {
  opacity: 0;
}

.model-ui {
  position: absolute;

  left: 42px;
  bottom: 34px;

  z-index: 7;

  display: flex;
  align-items: center;
  gap: 14px;

  font-size: 9px;
  font-weight: 300;

  letter-spacing: .24em;
  text-transform: uppercase;

  opacity: calc(var(--model) * .62);

  pointer-events: none;
}

.model-ui-line {
  display: block;

  width: 34px;
  height: 1px;

  background: currentColor;
  opacity: .65;
}

.model-ui-mobile {
  display: none;
}

.model-ui-desktop {
  display: inline;
}

/* =========================================================
   SCROLL HINT / GRAIN
========================================================= */

.hint {
  position: absolute;

  bottom: 34px;
  left: 50%;

  transform: translateX(-50%);

  z-index: 7;

  font-size: 10px;
  font-weight: 200;

  letter-spacing: .28em;
  text-transform: uppercase;

  opacity:
    calc(.45 - var(--scroll) * .8);

  white-space: nowrap;
  pointer-events: none;
}

.line {
  display: inline-block;

  width: 34px;
  height: 1px;

  margin-right: 14px;

  vertical-align: middle;

  background: currentColor;

  opacity: .7;
}

.grain {
  position: absolute;
  inset: 0;

  z-index: 6;

  opacity: .045;
  pointer-events: none;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");

  mix-blend-mode: soft-light;
}

/* =========================================================
   PROJECT SUMMARY
========================================================= */

.project-summary {
  position: relative;
  z-index: 10;

  min-height: 100vh;

  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);

  background: #f1f0ec;
  color: #111;
}

.summary-image-wrap {
  min-height: 100vh;
  overflow: hidden;
  background: #111;
}

.summary-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  filter:
    saturate(.82)
    contrast(1.04);
}

.summary-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding:
    clamp(56px, 8vw, 128px)
    clamp(42px, 6vw, 96px);
}

.eyebrow {
  margin-bottom: 32px;

  font-size: 10px;
  font-weight: 400;

  letter-spacing: .28em;
  text-transform: uppercase;
}

.summary-copy h2 {
  margin:
    0
    0
    38px;

  font-size:
    clamp(3.2rem, 6.2vw, 7rem);

  font-weight: 200;

  line-height: .92;

  letter-spacing: -.055em;
}

.summary-lead {
  max-width: 650px;

  margin: 0;

  font-size:
    clamp(1.15rem, 1.7vw, 1.65rem);

  font-weight: 300;
  line-height: 1.48;

  letter-spacing: -.018em;
}

.summary-rule {
  width: 100%;
  height: 1px;

  margin:
    clamp(42px, 5vw, 72px)
    0;

  background:
    rgba(0,0,0,.18);
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.summary-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
}

.summary-item span {
  padding-top: 3px;

  font-size: 9px;
  font-weight: 400;

  letter-spacing: .18em;
}

.summary-item p {
  margin: 0;

  max-width: 500px;

  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;

  color: rgba(0,0,0,.68);
}

.summary-link {
  align-self: flex-start;

  display: inline-flex;
  align-items: center;
  gap: 18px;

  margin-top:
    clamp(48px, 6vw, 84px);

  padding-bottom: 8px;

  border-bottom:
    1px solid rgba(0,0,0,.35);

  color: inherit;
  text-decoration: none;

  font-size: 10px;
  font-weight: 400;

  letter-spacing: .22em;
  text-transform: uppercase;
}

.summary-link span {
  font-size: 15px;
  font-weight: 300;
}

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

@media (max-width: 850px) {

  .hero-scroll {
    height: 320vh;
  }

  .project-summary {
    display: block;
  }

  .summary-image-wrap {
    min-height: 62vh;
    height: 62vh;
  }

  .summary-copy {
    min-height: auto;
    padding: 60px 28px 84px;
  }

  .summary-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .model-ui {
    left: 22px;
    right: 22px;
    bottom: 24px;

    font-size: 8px;
    letter-spacing: .18em;
  }

  .model-ui-desktop {
    display: none;
  }

  .model-ui-mobile {
    display: inline;
  }

  .word {
    font-size:
      clamp(2.15rem, 11vw, 5rem);

    letter-spacing:
      calc(-.02em + var(--scroll) * .25em);

    padding-left:
      calc(var(--scroll) * .25em);
  }

  .model-halo {
    width: 110vw;
    height: 80vw;
  }
}

@media (prefers-reduced-motion: reduce) {

  .background {
    transform: none;
  }

  .word {
    letter-spacing: .18em;
  }

  #three-canvas {
    transform: none;
  }
}


/* =========================================================
   FUTURE INDIVIDUAL TEAM MEMBER CARDS
   Currently unused, intentionally kept for later.
========================================================= */

.team-section {
  position: relative;
  z-index: 10;

  padding:
    clamp(90px, 10vw, 170px)
    clamp(28px, 5vw, 84px)
    50px;

  background: #050505;
  color: #f2f2ef;
}

.team-header {
  display: grid;
  grid-template-columns:
    minmax(120px, .55fr)
    minmax(0, 2fr)
    minmax(240px, .8fr);
  align-items: end;
  gap: 40px;

  padding-bottom:
    clamp(50px, 6vw, 90px);

  border-bottom:
    1px solid rgba(255,255,255,.15);
}

.team-eyebrow {
  padding-bottom: 12px;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.50);
}

.team-header h2 {
  margin: 0;
  font-size:
    clamp(3.8rem, 8vw, 9rem);
  font-weight: 100;
  line-height: .84;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.team-header > p {
  max-width: 280px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,.55);
}

.team-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: rgba(255,255,255,.13);
}

.team-member {
  min-width: 0;
  background: #050505;
  cursor: default;
}

.team-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
}

.team-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  filter:
    grayscale(1)
    contrast(1.06)
    brightness(.80);

  transform: scale(1.01);

  transition:
    transform .8s cubic-bezier(.2,.7,.2,1),
    filter .8s cubic-bezier(.2,.7,.2,1);
}

.team-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      transparent 55%,
      rgba(0,0,0,.48) 100%
    );
  pointer-events: none;
}

.member-number {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: .2em;
  color: rgba(255,255,255,.58);
}

.member-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;

  padding:
    24px 2px 40px;

  border-top:
    1px solid rgba(255,255,255,.13);
}

.member-info h3 {
  margin: 0 0 8px;
  font-size:
    clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 300;
  letter-spacing: -.02em;
}

.member-info p {
  margin: 0;
  font-size: 8px;
  font-weight: 300;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

.member-arrow {
  padding-top: 2px;
  font-size: 16px;
  opacity: .35;

  transition:
    opacity .35s ease,
    transform .35s ease;
}

.team-member:hover .team-photo {
  transform: scale(1.055);
  filter:
    grayscale(.35)
    contrast(1.03)
    brightness(.95);
}

.team-member:hover .member-arrow {
  opacity: 1;
  transform:
    translate(3px, -3px);
}

.team-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top:
    clamp(60px, 8vw, 120px);

  padding-top: 24px;

  border-top:
    1px solid rgba(255,255,255,.15);

  font-size: 8px;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
}

.team-footer a {
  display: flex;
  gap: 16px;
  color: inherit;
  text-decoration: none;
  transition: color .3s ease;
}

.team-footer a:hover {
  color: white;
}

@media (max-width: 1100px) {
  .team-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-header > p {
    margin-top: 10px;
  }

  .team-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .team-section {
    padding:
      80px
      22px
      36px;
  }

  .team-header h2 {
    font-size:
      clamp(3.2rem, 17vw, 5.2rem);
    white-space: normal;
  }

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

  .team-photo-wrap {
    aspect-ratio: 4 / 4.6;
  }

  .team-footer {
    margin-top: 60px;
  }
}




/* =========================================================
   PROJECT B-ROLL
========================================================= */

.broll-section {
  position: relative;
  z-index: 10;

  width: 100%;
  height: 100vh;
  min-height: 680px;

  overflow: hidden;

  background: #050505;
  color: white;
}

.broll-media {
  position: absolute;
  inset: 0;

  overflow: hidden;
  background: #08090a;
}

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

  width: 100%;
  height: 100%;

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

  background: #08090a;

  filter:
    contrast(1.05)
    brightness(.72)
    saturate(.84);

  transform: scale(1.01);

  opacity: 0;

  transition:
    opacity .8s ease,
    transform 8s cubic-bezier(.15,.6,.2,1);
}

.broll-section.is-ready
.broll-video {
  opacity: 1;
  transform: scale(1.035);
}

.broll-shade {
  position: absolute;
  inset: 0;

  z-index: 1;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.10) 0%,
      rgba(0,0,0,.05) 35%,
      rgba(0,0,0,.18) 62%,
      rgba(0,0,0,.76) 100%
    );

  pointer-events: none;
}

.broll-index {
  position: absolute;

  top: clamp(24px, 4vw, 58px);
  left: clamp(24px, 5vw, 84px);

  z-index: 2;

  font-size: 9px;
  font-weight: 300;

  letter-spacing: .27em;
  text-transform: uppercase;

  color: rgba(255,255,255,.62);
}

.broll-copy {
  position: absolute;

  left: clamp(24px, 5vw, 84px);
  bottom: clamp(58px, 8vw, 118px);

  z-index: 2;

  max-width: 1100px;
}

.broll-copy h2 {
  margin: 0;

  font-size:
    clamp(3.25rem, 7.7vw, 9rem);

  font-weight: 100;

  line-height: .86;

  letter-spacing: -.058em;

  text-transform: uppercase;

  text-shadow:
    0 8px 42px rgba(0,0,0,.24);
}

.broll-status {
  position: absolute;

  right: clamp(24px, 5vw, 84px);
  bottom: clamp(28px, 4vw, 54px);

  z-index: 2;

  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 8px;
  font-weight: 300;

  letter-spacing: .22em;
  text-transform: uppercase;

  color: rgba(255,255,255,.50);
}

.broll-status-dot {
  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: currentColor;

  opacity: .75;
}


/* =========================================================
   B-ROLL MOBILE
========================================================= */

@media (max-width: 650px) {

  .broll-section {
    min-height: 620px;
  }

  .broll-copy h2 {
    font-size:
      clamp(3rem, 15vw, 5.2rem);
  }

  .broll-status {
    left: 24px;
    right: auto;
    bottom: 24px;
  }

}


/* =========================================================
   FULL TEAM PHOTO SECTION
   Active Meet the Team layout
========================================================= */

.team-group-section {
  position: relative;
  z-index: 10;

  padding:
    clamp(90px, 10vw, 170px)
    clamp(28px, 5vw, 84px)
    46px;

  background: #050505;
  color: #f2f2ef;
}


/* =========================================================
   TEAM GROUP HEADER
========================================================= */

.team-group-header {
  display: grid;

  grid-template-columns:
    minmax(120px, .55fr)
    minmax(0, 2fr)
    minmax(220px, .8fr);

  align-items: end;
  gap: 40px;

  padding-bottom:
    clamp(50px, 6vw, 88px);

  border-bottom:
    1px solid rgba(255,255,255,.15);
}

.team-group-eyebrow {
  padding-bottom: 12px;

  font-size: 9px;
  font-weight: 300;

  letter-spacing: .25em;
  text-transform: uppercase;

  color: rgba(255,255,255,.48);
}

.team-group-header h2 {
  margin: 0;

  font-size:
    clamp(3.8rem, 8vw, 9rem);

  font-weight: 100;

  line-height: .84;

  letter-spacing: -.055em;

  white-space: nowrap;
}

.team-group-header > p {
  max-width: 280px;

  margin: 0 0 10px;

  font-size: 13px;
  font-weight: 300;

  line-height: 1.6;

  color: rgba(255,255,255,.54);
}


/* =========================================================
   FULL TEAM IMAGE
========================================================= */

.team-group-figure {
  margin: 1px 0 0;
}

.team-group-image-wrap {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #101112;

  border-top:
    1px solid rgba(255,255,255,.12);

  border-bottom:
    1px solid rgba(255,255,255,.12);
}

.team-group-image {
  display: block;

  width: 100%;
  height: 100%;

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

  filter:
    grayscale(.82)
    contrast(1.06)
    brightness(.78);

  transform: scale(1.005);

  transition:
    transform 1.1s cubic-bezier(.2,.7,.2,1),
    filter 1.1s cubic-bezier(.2,.7,.2,1);
}

.team-group-image-wrap:hover
.team-group-image {
  transform: scale(1.025);

  filter:
    grayscale(.40)
    contrast(1.03)
    brightness(.90);
}

.team-group-shade {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.10) 0%,
      transparent 35%,
      rgba(0,0,0,.08) 65%,
      rgba(0,0,0,.55) 100%
    );

  pointer-events: none;
}

.team-group-corner {
  position: absolute;

  bottom: 22px;

  z-index: 2;

  font-size: 8px;
  font-weight: 300;

  letter-spacing: .22em;
  text-transform: uppercase;

  color: rgba(255,255,255,.66);

  pointer-events: none;
}

.team-group-corner-left {
  left: 24px;
}

.team-group-corner-right {
  right: 24px;
}


/* =========================================================
   TEAM GROUP CAPTION
========================================================= */

.team-group-caption {
  display: grid;

  grid-template-columns:
    minmax(120px, .55fr)
    minmax(0, 2.8fr);

  gap: 40px;

  padding:
    28px 0
    clamp(62px, 7vw, 104px);

  border-bottom:
    1px solid rgba(255,255,255,.15);
}

.team-group-caption-label {
  padding-top: 4px;

  font-size: 8px;
  font-weight: 300;

  letter-spacing: .22em;
  text-transform: uppercase;

  color: rgba(255,255,255,.45);
}

.team-group-caption p {
  max-width: 760px;

  margin: 0;

  font-size:
    clamp(1.05rem, 1.7vw, 1.55rem);

  font-weight: 200;

  line-height: 1.5;

  letter-spacing: -.02em;

  color: rgba(255,255,255,.78);
}


/* =========================================================
   TEAM GROUP FOOTER
========================================================= */

.team-group-footer {
  display: flex;

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

  padding-top: 24px;

  font-size: 8px;
  font-weight: 300;

  letter-spacing: .22em;
  text-transform: uppercase;

  color: rgba(255,255,255,.46);
}

.team-group-footer a {
  display: flex;

  gap: 16px;

  color: inherit;
  text-decoration: none;

  transition: color .3s ease;
}

.team-group-footer a:hover {
  color: #fff;
}


/* =========================================================
   FULL TEAM TABLET
========================================================= */

@media (max-width: 1100px) {

  .team-group-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-group-header > p {
    margin-top: 10px;
  }

  .team-group-caption {
    grid-template-columns: 1fr;
    gap: 14px;
  }

}


/* =========================================================
   FULL TEAM MOBILE
========================================================= */

@media (max-width: 650px) {

  .team-group-section {
    padding:
      80px
      22px
      34px;
  }

  .team-group-header h2 {
    font-size:
      clamp(3.2rem, 17vw, 5.2rem);

    white-space: normal;
  }

  .team-group-image-wrap {
    aspect-ratio: 4 / 3;
  }

  .team-group-corner {
    bottom: 14px;
    font-size: 7px;
  }

  .team-group-corner-left {
    left: 14px;
  }

  .team-group-corner-right {
    right: 14px;
  }

  .team-group-caption {
    padding:
      22px 0
      58px;
  }

}
