@font-face {
  font-family: "SanMono";
  src: url("../../assets/fonts/centramono-book-webfont.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "SanMono";
  src: url("../../assets/fonts/centramono-bold-webfont.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "SanDisplay";
  src: url("../../assets/fonts/F37stout-black-compressed-webfont.woff2") format("woff2");
  font-display: swap;
}

:root {
  --icy: #dde2e4;
  --sky: #cfe8ff;
  --blue-haze: #7e92a6;
  --midnight: #202b36;
  --deep: #16202a;
  --ink: #08121c;
  --paper: #e7edf4;
  --display: "SanDisplay", Impact, "Arial Narrow Bold", sans-serif;
  --mono: "SanMono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--deep);
  color: var(--icy);
  font-family: var(--mono);
  scrollbar-width: none;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--deep);
}

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

h1,
h2,
h3,
p,
figure,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.about-page {
  background: var(--deep);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  background: var(--blue-haze);
  color: var(--deep);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: clamp(260px, 44vh, 520px);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(126, 146, 166, 0) 0%,
    rgba(126, 146, 166, .34) 28%,
    rgba(76, 92, 110, .58) 54%,
    rgba(22, 32, 42, .78) 82%,
    var(--deep) 100%
  );
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .12;
  background-image:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, .45) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 58%, rgba(0, 0, 0, .3) 0 1px, transparent 1.4px);
  background-size: 28px 26px, 34px 31px;
  mix-blend-mode: soft-light;
}

.hero-map {
  position: absolute;
  inset: -18vh -10vw;
  z-index: 1;
  opacity: .48;
  filter: contrast(1.1);
}

.hero-map span {
  position: absolute;
  border: 1px solid rgba(22, 32, 42, .36);
  border-radius: 48% 52% 45% 55%;
  transform: rotate(var(--rot, 0deg));
}

.hero-map span:nth-child(1) {
  --rot: -11deg;
  inset: 12% 9% 21% 16%;
}

.hero-map span:nth-child(2) {
  --rot: 8deg;
  inset: 20% 17% 15% 7%;
}

.hero-map span:nth-child(3) {
  --rot: 17deg;
  inset: 7% 30% 26% 22%;
}

.hero-map span:nth-child(4) {
  --rot: -22deg;
  inset: 34% 4% 8% 36%;
}

.personal-logo-link {
  position: absolute;
  top: clamp(18px, 2.6vw, 42px);
  left: clamp(18px, 2.6vw, 42px);
  z-index: 4;
  display: block;
  width: clamp(96px, 14vw, 172px);
  aspect-ratio: 1134 / 286;
  color: var(--sky);
  transition: opacity .18s ease, transform .18s ease;
}

.personal-logo-link::before {
  position: absolute;
  inset: 0;
  background: currentColor;
  content: "";
  mask: url("../../assets/HDTs_PAGE_vector.svg") center / contain no-repeat;
  -webkit-mask: url("../../assets/HDTs_PAGE_vector.svg") center / contain no-repeat;
}

.personal-logo-link:hover {
  opacity: .82;
  transform: translateY(-1px);
}

.personal-logo-link img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.brand-mark {
  position: absolute;
  top: clamp(18px, 2.6vw, 42px);
  left: clamp(18px, 2.6vw, 42px);
  z-index: 4;
  color: var(--sky);
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 108px);
  line-height: .62;
  text-transform: uppercase;
  transform: skew(-9deg) rotate(-1deg);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: end;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(150px, 18vh, 190px) 0 clamp(58px, 8vh, 96px);
}

.profile-card {
  position: absolute;
  right: clamp(24px, 5vw, 96px);
  bottom: clamp(58px, 8vh, 96px);
  z-index: 4;
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr);
  gap: 20px;
  width: min(520px, 42vw);
  padding: 18px;
  background: rgba(207, 232, 255, .82);
  color: var(--deep);
  border: 1px solid rgba(22, 32, 42, .2);
}

.avatar-placeholder {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--deep);
  background:
    linear-gradient(135deg, transparent 48%, rgba(22, 32, 42, .4) 49% 51%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(22, 32, 42, .4) 49% 51%, transparent 52%);
  font-size: 12px;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.profile-fields {
  display: grid;
  align-content: center;
  gap: 10px;
}

.profile-fields p {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  font-size: 13px;
  line-height: 1.15;
}

.profile-fields span {
  color: rgba(22, 32, 42, .58);
  text-transform: uppercase;
}

.eyebrow,
.caption,
.service-item li,
.team-card p span {
  font-size: .68rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.hero h1,
.section-title {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin-top: 12px;
  color: var(--deep);
  font-size: clamp(68px, 10vw, 170px);
  line-height: .77;
}

.hero-copy > p:last-child {
  max-width: 390px;
  margin-top: 28px;
  color: rgba(22, 32, 42, .82);
  font-size: clamp(16px, 1.3vw, 22px);
  line-height: 1.17;
}

.content-shell {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  padding: 0 24px 90px;
  overflow-x: clip;
  overflow-y: visible;
  background: var(--deep);
}

.separator {
  grid-column: 1 / -1;
  height: 1px;
}

.separator.large {
  height: clamp(84px, 13vw, 194px);
}

.separator.medium {
  height: clamp(18px, 2.2vw, 36px);
}

.technology + .separator.medium {
  height: clamp(10px, 1.4vw, 22px);
}

.about-section,
.beginning,
.services,
.technology,
.team {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  position: relative;
}

.about-section {
  min-height: auto;
  align-items: center;
  padding: clamp(18px, 2.5vh, 30px) 0 clamp(14px, 2vh, 24px);
}

.about-kicker {
  grid-column: 2 / span 3;
  color: var(--sky);
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 124px);
  line-height: .82;
  text-transform: uppercase;
}

.about-copy {
  grid-column: 6 / span 6;
  max-width: 620px;
  color: var(--icy);
  font-family: var(--mono);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.32;
}

.about-copy p + p {
  margin-top: 24px;
}

.beginning {
  min-height: 320vh;
  align-items: start;
  padding-top: clamp(70px, 11vh, 120px);
}

.beginning-copy {
  grid-column: 2 / span 4;
  position: sticky;
  top: 20vh;
  z-index: 5;
}

.section-title {
  color: var(--sky);
  font-size: clamp(42px, 5.4vw, 100px);
  line-height: .86;
}

.body-copy {
  max-width: 560px;
  color: var(--icy);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.2;
}

.body-copy p + p {
  margin-top: 24px;
}

.beginning .body-copy {
  margin-top: 38px;
}

.image-scroll {
  grid-column: 8 / span 4;
  min-height: 320vh;
  position: relative;
}

.sticky-stack {
  position: sticky;
  top: 12vh;
  width: min(411px, 31vw);
  height: min(513px, 72vh);
  margin-left: auto;
  transform: translateZ(0);
}

.stack-photo {
  position: absolute;
  inset: 0;
  opacity: calc(.28 + var(--active, 0) * .72);
  transform: translate3d(var(--x, 0), calc(var(--y, 0) + (1 - var(--active, 0)) * 54px), 0) rotate(var(--r, 0deg)) scale(calc(.84 + var(--active, 0) * .16));
  transition: opacity .16s linear, transform .16s linear;
  transform-origin: 50% 60%;
}

.stack-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  background: var(--paper);
  color: var(--deep);
  border: 1px solid rgba(207, 232, 255, .22);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .28);
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 72px);
  line-height: .84;
  text-align: center;
  text-transform: uppercase;
}

.caption {
  grid-column: 6 / span 2;
  align-self: end;
  position: sticky;
  bottom: 10vh;
  color: var(--blue-haze);
}

.services {
  min-height: 100vh;
  align-items: start;
  padding: clamp(24px, 4vh, 52px) 0 clamp(80px, 12vh, 150px);
}

.showreel-card {
  grid-column: 2 / span 4;
  position: sticky;
  top: 11vh;
  height: min(80vh, 810px);
  min-height: 580px;
  background: var(--paper);
  color: var(--icy);
  overflow: hidden;
}

.profile-board {
  display: grid;
  color: var(--deep);
  padding: clamp(22px, 3vw, 42px);
}

.board-mark {
  align-self: start;
  display: grid;
  gap: 16px;
}

.board-mark span,
.board-note small {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.board-mark strong {
  max-width: 340px;
  font-family: var(--display);
  font-size: clamp(54px, 5vw, 106px);
  line-height: .78;
  text-transform: uppercase;
}

.board-line {
  position: absolute;
  right: 12%;
  top: 18%;
  width: 28%;
  height: 42%;
  border: solid rgba(22, 32, 42, .24);
  border-width: 0 0 7px 7px;
  border-radius: 0 0 0 56px;
  transform: rotate(-18deg);
}

.board-note {
  position: absolute;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--deep);
  color: var(--sky);
}

.board-note strong {
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 56px);
  line-height: .82;
  text-transform: uppercase;
}

.note-one {
  left: 9%;
  bottom: 12%;
  width: 42%;
}

.note-two {
  right: 7%;
  bottom: 6%;
  width: 42%;
}

.trail-symbol {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 180px;
  height: 150px;
}

.trail-symbol::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 72px;
  height: 72px;
  border: 10px solid var(--sky);
  border-radius: 42% 58% 50% 50%;
  background: var(--deep);
}

.trail-symbol i {
  position: absolute;
  left: 30px;
  top: 86px;
  width: 116px;
  height: 42px;
  border: solid rgba(126, 146, 166, .38);
  border-width: 0 0 6px 6px;
  border-radius: 0 0 0 36px;
  transform: rotate(-25deg);
}

.trail-symbol b {
  position: absolute;
  left: 24px;
  bottom: 9px;
  width: 25px;
  height: 25px;
  border: 6px solid var(--sky);
  border-radius: 50%;
  background: var(--deep);
}

.phone-card {
  position: absolute;
  display: grid;
  padding: 18px;
  background: #030303;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

.phone-card small,
.phone-card span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.phone-card strong {
  align-self: end;
  justify-self: end;
  font-family: var(--display);
  font-size: clamp(24px, 2.7vw, 43px);
  line-height: .82;
  text-align: right;
  text-transform: uppercase;
}

.phone-one {
  left: 7%;
  top: 18%;
  width: min(46%, 330px);
  aspect-ratio: 330 / 700;
}

.phone-one span {
  align-self: end;
  justify-self: end;
  margin-bottom: 26px;
  text-align: right;
}

.phone-two {
  right: 6%;
  bottom: 4%;
  width: min(46%, 330px);
  aspect-ratio: 330 / 690;
}

.stone {
  align-self: center;
  justify-self: center;
  width: 74%;
  aspect-ratio: 1.35;
  background:
    radial-gradient(circle at 56% 43%, rgba(72, 104, 138, .55), transparent 18%),
    radial-gradient(circle at 45% 38%, #788da4, #2e4053 64%, transparent 65%);
  clip-path: polygon(10% 36%, 34% 12%, 72% 10%, 96% 45%, 79% 82%, 31% 90%, 0 62%);
}

.services-copy {
  grid-column: 7 / span 5;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.services-copy .section-title,
.services-copy > .body-copy {
  grid-column: 1 / span 3;
}

.services-copy > .body-copy {
  margin-top: 18px;
}

.service-list {
  grid-column: 1 / span 3;
  display: grid;
  gap: clamp(46px, 7vh, 78px);
  margin-top: clamp(56px, 10vh, 110px);
}

.service-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 26px;
  color: rgba(207, 232, 255, .34);
}

.service-item:first-child {
  color: var(--sky);
}

.service-item h3 {
  margin-bottom: 12px;
  font-size: clamp(16px, 1.3vw, 22px);
  line-height: 1;
  text-transform: uppercase;
}

.service-item li {
  margin-top: 5px;
  color: currentColor;
}

.icon {
  position: relative;
  width: 32px;
  height: 32px;
  color: currentColor;
}

.icon.globe {
  border: 3px solid currentColor;
  border-radius: 50%;
}

.icon.globe::before,
.icon.globe::after {
  content: "";
  position: absolute;
}

.icon.globe::before {
  inset: 6px 3px;
  border: solid currentColor;
  border-width: 0 2px;
  border-radius: 50%;
}

.icon.globe::after {
  left: 0;
  right: 0;
  top: 14px;
  height: 3px;
  background: currentColor;
}

.icon.lens {
  border: 3px solid currentColor;
  border-radius: 50%;
}

.icon.lens::before {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 0;
  width: 14px;
  height: 3px;
  background: currentColor;
  transform: rotate(45deg);
}

.icon.path::before,
.icon.path::after {
  content: "";
  position: absolute;
}

.icon.path::before {
  inset: 5px;
  border: solid currentColor;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 22px;
  transform: rotate(-16deg);
}

.icon.path::after {
  right: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.technology {
  min-height: auto;
  align-items: center;
  padding: clamp(30px, 4vh, 46px) 0 clamp(34px, 5vh, 58px);
}

.technology::after {
  content: "SKILLS METHODS";
  white-space: nowrap;
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: max-content;
  max-width: calc(100vw - 48px);
  color: rgba(207, 232, 255, .11);
  font-family: var(--display);
  font-size: clamp(62px, 11vw, 178px);
  line-height: .79;
  text-transform: uppercase;
  text-align: center;
  transform: translate(-50%, 50%);
  pointer-events: none;
}

.tech-copy {
  grid-column: 2 / span 4;
  position: relative;
  z-index: 2;
}

.tech-copy .body-copy {
  margin-top: clamp(18px, 2.4vw, 30px);
}

.skill-grid {
  grid-column: 7 / span 5;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-self: center;
}

.skill-grid span {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(207, 232, 255, .28);
  color: var(--sky);
  font-family: var(--display);
  font-size: clamp(24px, 2.5vw, 48px);
  line-height: .84;
  text-align: center;
  text-transform: uppercase;
}

.team {
  align-items: start;
}

.team-intro {
  grid-column: 3 / span 8;
  justify-self: center;
  width: min(100%, 820px);
}

.team-intro .body-copy {
  margin-top: 24px;
  max-width: 820px;
}

.team-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 80px;
}

.team-card {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: var(--midnight);
}

.team-card img {
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  filter: saturate(.88) contrast(.95);
  transition: transform .5s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

.team-card p {
  position: absolute;
  inset: auto 18px 16px;
  color: var(--sky);
  font-family: var(--display);
  font-size: clamp(38px, 4vw, 78px);
  line-height: .82;
  text-transform: uppercase;
}

.team-card p span {
  display: inline-block;
  margin: 8px 0;
  color: var(--icy);
  font-family: var(--mono);
}

.reveal {
  opacity: .18;
  transform: translateY(34px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-scroll-content-y linear both;
    animation-timeline: view();
    animation-range: entry 12% contain 62%;
    opacity: 0;
    transform: translateY(40px);
    transition: none;
    will-change: opacity, transform;
  }

  .body-copy.reveal,
  .caption.reveal,
  .service-item.reveal {
    animation-range: entry 8% contain 70%;
  }
}

@keyframes reveal-scroll-content-y {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 799px) {
  .content-shell {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-inline: 16px;
  }

  .beginning {
    min-height: auto;
    padding-bottom: 80px;
  }

  .beginning-copy,
  .about-section,
  .about-kicker,
  .about-copy,
  .image-scroll,
  .caption,
  .showreel-card,
  .services-copy,
  .tech-copy,
  .skill-grid,
  .team-intro {
    grid-column: 1 / -1;
  }

  .hero {
    align-content: end;
    min-height: auto;
    padding: 0 0 28px;
  }

  .profile-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 32px);
    margin: 0 auto;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .about-section {
    min-height: auto;
    padding: 26px 0 22px;
  }

  .about-copy {
    margin-top: 18px;
    font-size: 15px;
  }

  .beginning-copy,
  .caption,
  .showreel-card {
    position: relative;
    top: auto;
    bottom: auto;
  }

  .image-scroll {
    min-height: 560px;
    margin-top: 34px;
  }

  .sticky-stack {
    position: relative;
    top: auto;
    width: min(76vw, 360px);
    height: min(96vw, 450px);
    margin: 0 0 0 auto;
  }

  .caption {
    margin-top: 28px;
  }

  .services {
    gap: 46px;
  }

  .showreel-card {
    height: auto;
    min-height: 560px;
  }

  .services-copy {
    display: block;
  }

  .service-list {
    margin-top: 42px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .technology::after {
    bottom: 0;
    font-size: clamp(54px, 18vw, 118px);
    transform: translate(-50%, 0);
  }

  .team-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }

  .team-card {
    flex: 0 0 min(82vw, 360px);
    scroll-snap-align: center;
  }
}

@media (max-width: 640px) {
  .personal-logo-link {
    width: 104px;
  }

  .hero-copy {
    width: calc(100% - 24px);
  }

  .hero h1 {
    font-size: clamp(62px, 20vw, 112px);
  }

  .section-title {
    font-size: clamp(42px, 14vw, 72px);
  }

  .body-copy {
    font-size: 15px;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .avatar-placeholder {
    width: 132px;
  }

  .phone-one {
    left: 6%;
    width: 48%;
  }

  .phone-two {
    width: 48%;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
