/* =========================================================
   PARKER DUSTIN — PERSONAL PORTFOLIO
   CLEAN / RESPONSIVE / MOTION SYSTEM
========================================================= */


/* =========================================================
   TOKENS
========================================================= */

:root {
  --red: #d95757;
  --ink: #08100c;
  --forest: #10291f;
  --paper: #f0f2ed;
  --muted: #829087;
  --white: #ffffff;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --smooth: cubic-bezier(.22, 1, .36, 1);

  --container: 1400px;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;

  color: var(--white);
  background: var(--ink);

  font-family:
    "Manrope",
    sans-serif;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--ink);
  background: var(--red);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea,
input {
  font: inherit;
}

button {
  border: 0;
}

p,
h1,
h2,
h3,
figure {
  margin-top: 0;
}


/* =========================================================
   GLOBAL
========================================================= */

.section {
  width: min(
    var(--container),
    100%
  );

  margin-inline: auto;

  padding:
    clamp(6rem, 12vw, 12rem)
    clamp(1.25rem, 6vw, 6rem);
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 1.5rem;

  color: #ffffff45;

  border-bottom:
    1px solid #ffffff12;

  font:
    500 9px
    "DM Mono",
    monospace;

  letter-spacing: .22em;
}

.section__head small {
  font: inherit;
  opacity: .5;
}

.section-kicker {
  color: #ffffff55;

  font:
    500 9px
    "DM Mono",
    monospace;

  letter-spacing: .25em;

  text-transform: uppercase;
}

.copy {
  color: var(--muted);

  font-size: 14px;
  line-height: 1.9;
}


/* =========================================================
   LOADER
========================================================= */

#loader {
  position: fixed;
  inset: 0;

  z-index: 9999;

  display: grid;
  place-items: center;

  overflow: hidden;

  background: var(--ink);

  transition:
    opacity .8s var(--ease),
    visibility .8s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__grid,
.hero__grid,
.footer__grid {
  position: absolute;
  inset: 0;

  opacity: .08;

  background-image:
    linear-gradient(
      #fff 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      #fff 1px,
      transparent 1px
    );

  background-size: 80px 80px;

  mask-image:
    linear-gradient(
      to bottom,
      black,
      transparent
    );
}

.loader__content {
  width: min(82%, 560px);

  animation:
    loaderIn 1s var(--ease);
}

.loader__top,
.loader__bottom {
  display: flex;
  justify-content: space-between;

  color: #ffffff35;

  font:
    500 9px
    "DM Mono",
    monospace;

  letter-spacing: .2em;
}

.loader__brand {
  margin: 2rem 0 2.5rem;

  font-size:
    clamp(7rem, 18vw, 12rem);

  font-weight: 800;

  line-height: .7;

  letter-spacing: -.12em;
}

.loader__brand i {
  color: var(--red);
  font-style: normal;
}

.loader__track {
  height: 1px;

  overflow: hidden;

  background: #ffffff12;
}

.loader__track span {
  display: block;

  width: 0;
  height: 100%;

  background: var(--red);

  box-shadow:
    0 0 25px var(--red);
}


/* =========================================================
   NAVIGATION
========================================================= */

.site-nav {
  position: fixed;
  inset: 0 0 auto;

  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding:
    1.25rem
    clamp(1.25rem, 6vw, 6rem);

  mix-blend-mode: difference;
}

.logo {
  font-size: 20px;
  font-weight: 800;

  letter-spacing: -.1em;
}

.logo span {
  color: var(--red);
}

.site-nav nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  position: relative;

  color: white;

  opacity: .45;

  font:
    500 9px
    "DM Mono",
    monospace;

  letter-spacing: .2em;

  text-transform: uppercase;

  transition:
    opacity .3s,
    transform .3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
}

.nav-link:hover {
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";

  position: absolute;

  right: 0;
  bottom: -7px;
  left: 0;

  height: 1px;

  background: var(--red);

  transform:
    scaleX(0);

  transform-origin: right;

  transition:
    transform .5s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);

  transform-origin: left;
}

.nav-index {
  color: #ffffff55;

  font:
    500 9px
    "DM Mono",
    monospace;
}

#scrollProgress {
  position: fixed;
  inset: 0 auto auto 0;

  z-index: 1000;

  width: 0;
  height: 2px;

  background: var(--red);

  box-shadow:
    0 0 15px #d9575780;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  min-height: 100svh;

  overflow: hidden;

  isolation: isolate;
}

.hero__image {
  position: absolute;

  inset: -4%;

  width: 108%;
  height: 108%;

  object-fit: cover;

  filter:
    saturate(.5)
    contrast(1.15);

  transform: scale(1.05);

  animation:
    heroDrift 18s ease-in-out infinite alternate;

  will-change: transform;
}

.hero__shade {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      #08100cf2,
      #08100c72 50%,
      #08100c15
    ),
    linear-gradient(
      0deg,
      #08100c,
      transparent 55%
    );
}

.hero__glow {
  position: absolute;

  top: 15%;
  right: 10%;

  z-index: 1;

  width:
    min(35vw, 500px);

  aspect-ratio: 1;

  border:
    1px solid #ffffff12;

  border-radius: 50%;

  box-shadow:
    0 0 100px #ffffff05,
    inset 0 0 100px #ffffff04;

  animation:
    orb 9s ease-in-out infinite alternate;
}

.hero__content {
  position: relative;

  z-index: 5;

  display: flex;

  min-height: 100svh;

  flex-direction: column;
  justify-content: flex-end;

  padding:
    8rem
    clamp(1.25rem, 7vw, 7rem)
    5rem;
}

.hero__meta {
  display: flex;
  justify-content: space-between;

  max-width: 1100px;

  margin-bottom: 2rem;

  color: #ffffff55;

  font:
    500 9px
    "DM Mono",
    monospace;

  letter-spacing: .22em;

  animation:
    fadeUp 1s var(--ease) .2s both;
}

.hero__title {
  display: flex;
  flex-direction: column;

  margin: 0;

  font-size:
    clamp(4.8rem, 14vw, 13rem);

  font-weight: 800;

  line-height: .76;

  letter-spacing: -.11em;

  animation:
    titleIn 1.2s var(--ease) .3s both;
}

.hero__title span:last-child {
  color: #ffffff18;
}

.hero__bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;

  max-width: 1100px;

  margin-top: 3rem;

  animation:
    fadeUp 1s var(--ease) .65s both;
}

.hero__bottom p {
  max-width: 400px;

  margin: 0;

  color: #ffffff65;

  font-size: 15px;
  line-height: 1.8;
}

.circle-button {
  display: grid;

  width: 86px;
  height: 86px;

  place-items: center;
  align-content: center;

  gap: 3px;

  border:
    1px solid #ffffff20;

  border-radius: 50%;

  color: white;

  transition:
    background .5s var(--ease),
    color .5s var(--ease);
}

.circle-button span {
  font:
    500 7px
    "DM Mono",
    monospace;

  letter-spacing: .2em;
}

.circle-button b {
  color: var(--red);
}

.circle-button:hover {
  color: var(--ink);
  background: white;
}

.hero__side,
.hero__scroll {
  position: absolute;

  z-index: 5;

  color: #ffffff30;

  font:
    500 8px
    "DM Mono",
    monospace;

  letter-spacing: .2em;
}

.hero__side {
  top: 50%;
  right: 2rem;

  display: flex;

  gap: 1rem;

  writing-mode: vertical-rl;
}

.hero__scroll {
  bottom: 2rem;
  left: 50%;

  display: flex;
  align-items: center;

  gap: .75rem;

  transform:
    translateX(-50%);
}

.hero__scroll span {
  width: 35px;
  height: 1px;

  background: #ffffff35;

  animation:
    linePulse 1.8s ease-in-out infinite;
}


/* =========================================================
   ABOUT
========================================================= */

.about__layout {
  display: grid;

  grid-template-columns: .8fr 1.2fr;

  gap:
    clamp(4rem, 10vw, 10rem);

  padding-top: 8rem;
}

.about__intro h2,
.oregon__copy h2,
.hockey__intro h2,
.goals__title h2,
.gallery__title h2 {
  margin: 1.5rem 0 0;

  font-size:
    clamp(4rem, 8vw, 9rem);

  font-weight: 800;

  font-style: italic;

  line-height: .78;

  letter-spacing: -.1em;
}

.about__intro em,
.oregon__copy em,
.hockey__intro em,
.goals__title em,
.gallery__title em,
.footer__content em,
.stats-hero__identity em,
.stats-insight em {
  color: var(--red);

  font-style: normal;
}

.about__body {
  padding-top: 4rem;
}

.typing {
  min-height:
    clamp(150px, 18vw, 260px);

  color: white;

  font:
    500
    clamp(1.5rem, 3vw, 3rem)/1.35
    "DM Mono",
    monospace;

  letter-spacing: -.06em;
}

.typing i {
  display: inline-block;

  width: 2px;
  height: .9em;

  margin-left: 5px;

  vertical-align: -.08em;

  background: var(--red);

  animation:
    blink .7s steps(1) infinite;
}

.about__columns {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 2rem;

  padding-top: 2rem;

  border-top:
    1px solid #ffffff12;
}

.about__columns p {
  color: var(--muted);

  font-size: 14px;

  line-height: 1.9;
}


/* =========================================================
   OREGON
========================================================= */

.oregon {
  position: relative;

  overflow: hidden;

  background: var(--forest);
}

.oregon__glow {
  position: absolute;

  top: -20%;
  left: -10%;

  width: 50vw;

  aspect-ratio: 1;

  border-radius: 50%;

  background: #6f9d7b15;

  filter: blur(100px);

  animation:
    glow 8s ease-in-out infinite alternate;
}

.oregon__layout {
  display: grid;

  grid-template-columns: 1.1fr .9fr;

  gap:
    clamp(4rem, 9vw, 9rem);

  align-items: center;

  padding-top: 7rem;
}

.oregon__image {
  position: relative;

  overflow: hidden;

  border-radius: 2rem;
}

.oregon__image img {
  width: 100%;

  height:
    min(70vh, 720px);

  object-fit: cover;

  filter: saturate(.7);
}

.image-caption {
  position: absolute;

  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;

  display: flex;

  justify-content: space-between;

  color: white;

  font:
    500 8px
    "DM Mono",
    monospace;

  letter-spacing: .2em;
}

.image-hover {
  transition:
    transform .6s var(--ease);
}

.image-hover img {
  transition:
    transform 1.3s var(--ease),
    filter 1.3s var(--ease);
}

.image-hover:hover img {
  filter: saturate(.95);

  transform: scale(1.05);
}

.oregon__copy p {
  max-width: 520px;

  margin-top: 2rem;

  color: #ffffff65;

  font-size: 16px;

  line-height: 1.9;
}

.location-line {
  display: flex;

  align-items: center;

  gap: 1rem;

  margin-top: 3rem;

  color: #ffffff45;

  font:
    500 8px
    "DM Mono",
    monospace;

  letter-spacing: .2em;
}

.location-line span {
  width: 50px;
  height: 1px;

  background: var(--red);
}


/* =========================================================
   HOCKEY
========================================================= */

.hockey__intro {
  display: grid;

  grid-template-columns: 1fr .8fr;

  gap: 6rem;

  padding-top: 7rem;

  align-items: end;
}

.large-copy {
  max-width: 650px;

  color: #ffffff85;

  font-size:
    clamp(1.5rem, 3vw, 3rem);

  line-height: 1.35;

  letter-spacing: -.04em;
}

.hockey__image {
  position: relative;

  margin-top: 8rem;

  overflow: hidden;

  border-radius: 2rem;
}

.hockey__image img {
  width: 100%;

  height:
    min(72vh, 800px);

  object-fit: cover;

  filter: saturate(.65);
}

.hockey__badge {
  position: absolute;

  right: 2rem;
  bottom: 2rem;

  display: flex;

  align-items: center;

  gap: 1rem;

  padding: .8rem 1rem;

  border:
    1px solid #ffffff25;

  border-radius: 999px;

  background: #08100c99;

  backdrop-filter: blur(15px);

  font:
    500 8px
    "DM Mono",
    monospace;

  letter-spacing: .2em;
}

.hockey__badge b {
  color: var(--red);
}


/* =========================================================
   PLAYER STATS
========================================================= */

.stats-section {
  position: relative;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 85% 18%,
      #d9575712,
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #08100c 0%,
      #0b1510 100%
    );
}

.stats-section::before {
  content: "20";

  position: absolute;

  top: 5rem;
  right: -1rem;

  z-index: 0;

  color: #ffffff03;

  font-size:
    clamp(16rem, 35vw, 34rem);

  font-weight: 800;

  line-height: .7;

  letter-spacing: -.12em;

  pointer-events: none;
}

.stats-section > .section {
  position: relative;

  z-index: 1;
}


/* =========================================================
   STATS HERO
========================================================= */

.stats-hero {
  display: grid;

  grid-template-columns: 1fr auto;

  gap: 3rem;

  align-items: end;

  padding-top: 7rem;
}

.stats-hero__identity h2 {
  max-width: 900px;

  margin:
    1.5rem 0 2rem;

  font-size:
    clamp(4rem, 9vw, 10rem);

  font-weight: 800;

  font-style: italic;

  line-height: .76;

  letter-spacing: -.11em;
}

.stats-hero__identity p {
  max-width: 570px;

  margin: 0;

  color: #ffffff62;

  font-size: 15px;

  line-height: 1.85;
}

.stats-hero__rank {
  min-width: 190px;

  padding: 1.5rem;

  border:
    1px solid #ffffff18;

  background: #ffffff05;

  backdrop-filter: blur(16px);
}

.stats-hero__rank span,
.stats-hero__rank small {
  display: block;

  color: #ffffff42;

  font:
    500 8px
    "DM Mono",
    monospace;

  letter-spacing: .2em;
}

.stats-hero__rank strong {
  display: block;

  margin: .35rem 0 .15rem;

  color: white;

  font-size:
    clamp(4rem, 8vw, 7rem);

  font-weight: 800;

  line-height: .8;

  letter-spacing: -.1em;
}


/* =========================================================
   STAT GRID
========================================================= */

.stats-grid {
  display: grid;

  grid-template-columns:
    repeat(6, 1fr);

  gap: 1px;

  margin-top: 5rem;

  border:
    1px solid #ffffff12;

  background: #ffffff12;
}

.stat-card {
  position: relative;

  min-height: 190px;

  padding: 1.35rem;

  overflow: hidden;

  background: #0a130e;

  transition:
    transform .5s var(--ease),
    background .5s var(--ease);
}

.stat-card:hover {
  z-index: 2;

  transform:
    translateY(-7px);

  background: #102018;
}

.stat-card::after {
  content: "";

  position: absolute;

  right: -35px;
  bottom: -55px;

  width: 120px;
  height: 120px;

  border:
    1px solid #ffffff0b;

  border-radius: 50%;

  transition:
    transform .7s var(--ease);
}

.stat-card:hover::after {
  transform: scale(1.45);
}

.stat-card > span {
  display: block;

  color: #ffffff38;

  font:
    500 8px
    "DM Mono",
    monospace;

  letter-spacing: .2em;
}

.stat-card strong {
  display: block;

  margin-top: 2.5rem;

  color: #fff;

  font-size:
    clamp(3rem, 5vw, 5rem);

  font-weight: 800;

  line-height: .8;

  letter-spacing: -.1em;

  font-variant-numeric: tabular-nums;
}

.stat-card small {
  display: block;

  margin-top: 1.2rem;

  color: #ffffff42;

  font:
    500 7px
    "DM Mono",
    monospace;

  letter-spacing: .18em;
}

.stat-card i {
  position: absolute;

  right: 1.35rem;
  bottom: 1.35rem;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--red);

  box-shadow:
    0 0 18px #d9575780;
}

.stat-card--primary {
  background: #d9575710;
}


/* =========================================================
   STATS TABLE
========================================================= */

.stats-detail {
  margin-top: 7rem;

  border-top:
    1px solid #ffffff14;
}

.stats-detail__heading {
  display: flex;

  justify-content: space-between;

  padding: 1.25rem 0;

  color: #ffffff42;

  font:
    500 8px
    "DM Mono",
    monospace;

  letter-spacing: .2em;
}

.stats-table {
  overflow: hidden;

  border:
    1px solid #ffffff12;

  border-radius: 2px;

  background: #ffffff03;
}

.stats-table__row {
  display: grid;

  grid-template-columns:
    2.5fr
    .7fr
    .7fr
    .7fr
    .7fr
    .7fr
    .8fr
    .7fr;

  align-items: center;

  min-height: 76px;

  padding:
    0 1.5rem;

  border-bottom:
    1px solid #ffffff0b;

  color: #ffffff70;

  font:
    500 10px
    "DM Mono",
    monospace;

  letter-spacing: .08em;

  transition:
    background .4s var(--ease),
    color .4s var(--ease);
}

.stats-table__row:last-child {
  border-bottom: 0;
}

.stats-table__row--head {
  min-height: 46px;

  color: #ffffff30;

  background: #ffffff03;

  font-size: 7px;

  letter-spacing: .16em;
}

.stats-table__row--featured {
  position: relative;

  color: #fff;

  background:
    linear-gradient(
      90deg,
      #d9575712,
      transparent 70%
    );
}

.stats-table__row--featured::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;
  left: 0;

  width: 2px;

  background: var(--red);

  box-shadow:
    0 0 18px #d9575770;
}

.stats-table__row--featured:hover {
  background:
    linear-gradient(
      90deg,
      #d957571b,
      #ffffff03
    );
}

.stats-table__row--head > span:not(:first-child),
.stats-table__row--featured > span:not(:first-child),
.stats-table__row--total > span:not(:first-child) {
  text-align: center;
}

.stats-player {
  display: flex;

  align-items: center;

  gap: .75rem;

  min-width: 0;
}

.stats-player b {
  color: #fff;

  font-family:
    "Manrope",
    sans-serif;

  font-size: 14px;

  font-weight: 700;

  letter-spacing: -.03em;

  white-space: nowrap;
}

.stats-player small {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 34px;

  height: 20px;

  padding:
    0 .45rem;

  border:
    1px solid #d9575735;

  border-radius: 999px;

  color: var(--red);

  background: #d9575708;

  font:
    500 7px
    "DM Mono",
    monospace;

  letter-spacing: .08em;
}

.stats-table__row--featured
> span:not(:first-child) {
  color: #ffffffd9;

  font-weight: 500;

  font-variant-numeric:
    tabular-nums;
}

.stats-table__row--featured
> span:nth-child(5) {
  color: #fff;

  font-family:
    "Manrope",
    sans-serif;

  font-size: 13px;

  font-weight: 800;

  letter-spacing: -.03em;
}

.stats-table__row--featured
> span:last-child {
  color: #d95757;

  font-family:
    "Manrope",
    sans-serif;

  font-size: 12px;

  font-weight: 800;
}

.stats-table__row--total {
  min-height: 64px;

  color: #ffffff45;

  background: #ffffff02;
}

.stats-total-label {
  color: #ffffff55;

  font:
    500 8px
    "DM Mono",
    monospace;

  letter-spacing: .16em;
}

.stats-table__row--total
> span:not(:first-child) {
  color: #ffffff55;

  font-variant-numeric:
    tabular-nums;
}

.stats-table__row--total
> span:last-child {
  color: #d9575790;
}


/* =========================================================
   STATS PERFORMANCE
========================================================= */

.stats-insight {
  display: grid;

  grid-template-columns: .9fr 1.1fr;

  gap:
    clamp(3rem, 8vw, 9rem);

  align-items: center;

  margin-top: 7rem;

  padding:
    clamp(2rem, 5vw, 4rem);

  border:
    1px solid #ffffff12;

  background: #ffffff03;
}

.stats-insight h3 {
  margin: 1rem 0 0;

  font-size:
    clamp(2.5rem, 5vw, 5rem);

  font-weight: 800;

  font-style: italic;

  line-height: .88;

  letter-spacing: -.08em;
}

.stats-bars {
  display: grid;

  gap: 1.7rem;
}

.stat-bar > div {
  display: flex;

  justify-content: space-between;

  margin-bottom: .65rem;

  color: #ffffff48;

  font:
    500 8px
    "DM Mono",
    monospace;

  letter-spacing: .16em;
}

.stat-bar > div b {
  color: #fff;
}

.stat-bar__track {
  display: block;

  height: 2px;

  overflow: hidden;

  background: #ffffff12;
}

.stat-bar__track i {
  display: block;

  width: var(--value, 0%);

  height: 100%;

  background: var(--red);

  box-shadow:
    0 0 15px #d9575780;

  transition:
    width 1.2s var(--ease);
}

.stats-source {
  display: grid;

  grid-template-columns:
    auto 1fr auto;

  gap: 1.5rem;

  align-items: center;

  margin-top: 3rem;

  padding-top: 1.5rem;

  border-top:
    1px solid #ffffff0e;
}

.stats-source > span {
  color: #ffffff35;

  font:
    500 8px
    "DM Mono",
    monospace;

  letter-spacing: .18em;
}

.stats-source p {
  margin: 0;

  color: #ffffff35;

  font:
    500 9px/1.7
    "DM Mono",
    monospace;

  letter-spacing: .05em;
}


/* =========================================================
   GOALS
========================================================= */

.goals {
  color: var(--ink);

  background: var(--paper);
}

.goals .section__head {
  color: #08100c45;

  border-color:
    #08100c18;
}

.goals__title {
  padding-top: 7rem;
}

.goals__title em {
  display: block;
}

.goals__grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 1px;

  margin-top: 7rem;

  border-top:
    1px solid #08100c20;
}

.goal-card {
  position: relative;

  min-height: 330px;

  padding: 2rem;

  border-right:
    1px solid #08100c20;

  transition:
    transform .6s var(--ease),
    background .6s var(--ease);
}

.goal-card:last-child {
  border-right: 0;
}

.goal-card:hover {
  background: #e4e8e1;

  transform:
    translateY(-8px);
}

.goal-card > span {
  font:
    500 9px
    "DM Mono",
    monospace;

  opacity: .4;
}

.goal-card h3 {
  margin-top: 6rem;

  font-size: 1.4rem;

  letter-spacing: -.04em;
}

.goal-card p {
  max-width: 280px;

  margin-top: 1rem;

  color: #08100c80;

  font-size: 14px;

  line-height: 1.8;
}

.goal-card b {
  position: absolute;

  right: 2rem;
  bottom: 2rem;

  color: var(--red);

  font-size: 1.5rem;
}


/* =========================================================
   LIFE IN FRAMES — MEMORY GALLERY
========================================================= */

.gallery-section {
  position: relative;

  overflow: hidden;
}

.gallery__title {
  padding-top: 7rem;
}

.gallery__title h2 {
  max-width: 900px;
}


/* ---------------------------------------------------------
   DESKTOP GALLERY
--------------------------------------------------------- */

.gallery {
  width: min(100%, 1050px);

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 1.25rem;

  margin:
    5rem auto 0;
}


/* ---------------------------------------------------------
   MEMORY CARD
--------------------------------------------------------- */

.gallery figure {
  position: relative;

  width: 100%;

  height: 420px;

  min-height: 0;

  margin: 0;

  overflow: hidden;

  border-radius: 18px;

  background: #101812;

  border:
    1px solid #ffffff10;

  box-shadow:
    0 25px 70px #00000020;

  isolation: isolate;

  transition:
    transform .7s var(--ease),
    box-shadow .7s var(--ease),
    border-color .5s ease;
}


/* ---------------------------------------------------------
   WIDE MEMORY
--------------------------------------------------------- */

.gallery .gallery-wide {
  grid-column: 1 / -1;

  height: 480px;

  min-height: 0;
}


/* ---------------------------------------------------------
   IMAGE
--------------------------------------------------------- */

.gallery img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  filter:
    saturate(.7)
    contrast(1.02);

  transform: scale(1.01);

  transition:
    transform 1s var(--ease),
    filter 1s var(--ease);
}


/* ---------------------------------------------------------
   IMAGE OVERLAY
--------------------------------------------------------- */

.gallery figure::after {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 1;

  pointer-events: none;

  background:
    linear-gradient(
      to top,
      #00000085 0%,
      #00000025 35%,
      transparent 65%
    );

  opacity: .8;

  transition:
    opacity .6s ease;
}


/* ---------------------------------------------------------
   HOVER
--------------------------------------------------------- */

.gallery figure:hover {
  z-index: 2;

  transform:
    translateY(-6px);

  border-color:
    #ffffff22;

  box-shadow:
    0 35px 90px #00000045;
}

.gallery figure:hover img {
  filter:
    saturate(.95)
    contrast(1.05);

  transform:
    scale(1.045);
}

.gallery figure:hover::after {
  opacity: .55;
}


/* ---------------------------------------------------------
   CAPTION
--------------------------------------------------------- */

.gallery figcaption {
  position: absolute;

  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;

  z-index: 3;

  display: flex;

  align-items: center;

  justify-content: flex-start;

  color: #ffffffc0;

  font:
    500 8px
    "DM Mono",
    monospace;

  letter-spacing: .2em;

  text-transform: uppercase;

  text-shadow:
    0 2px 15px #000000;
}

.gallery figcaption::before {
  content: "";

  width: 24px;
  height: 1px;

  margin-right: .75rem;

  background: var(--red);

  box-shadow:
    0 0 12px #d9575770;
}


/* =========================================================
   NOTES
========================================================= */

.notes-section {
  position: relative;

  overflow: hidden;

  padding:
    clamp(6rem, 10vw, 10rem)
    clamp(1.25rem, 6vw, 6rem);

  background: var(--ink);
}

.notes-section::before {
  content: "";

  position: absolute;

  top: 0;
  right: 0;
  left: 0;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #ffffff18,
      transparent
    );
}

.notes-inner {
  width:
    min(900px, 100%);

  margin-inline: auto;
}

.notes-label {
  display: flex;

  justify-content: space-between;

  padding-bottom: 1.5rem;

  border-bottom:
    1px solid #ffffff12;

  color: #ffffff45;

  font:
    500 9px
    "DM Mono",
    monospace;

  letter-spacing: .22em;
}

.notes-label small {
  font: inherit;

  color: #ffffff30;
}


/* =========================================================
   COMMENT CARD
========================================================= */

.comment-card {
  position: relative;

  margin-top: 4rem;

  overflow: hidden;

  color: #d9ddd9;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.018)
    );

  border:
    1px solid rgba(255,255,255,.1);

  border-radius: 24px;

  box-shadow:
    0 40px 100px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.05);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  transition:
    transform .8s var(--ease),
    border-color .6s ease,
    box-shadow .8s var(--ease);
}

.comment-card::before {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(
      300px circle at
      var(--mouse-x, 50%)
      var(--mouse-y, 50%),
      #d9575710,
      transparent 60%
    );

  opacity: 0;

  transition: opacity .4s;
}

.comment-card:hover::before {
  opacity: 1;
}

.comment-card:hover {
  transform:
    translateY(-6px);

  border-color:
    rgba(255,255,255,.17);

  box-shadow:
    0 50px 120px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.07);
}

.comment-card__header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  height: 62px;

  padding:
    0 1.5rem;

  border-bottom:
    1px solid rgba(255,255,255,.08);
}

.comment-card__title {
  position: relative;

  color: #f0f2ed;

  font:
    600 12px
    "DM Mono",
    monospace;

  letter-spacing: .08em;
}

.comment-card__title::after {
  content: "";

  position: absolute;

  right: 0;
  bottom: -21px;
  left: 0;

  height: 1px;

  background: var(--red);

  box-shadow:
    0 0 15px #d9575766;
}

.comment-card__count {
  display: grid;

  min-width: 32px;
  height: 28px;

  place-items: center;

  border:
    1px solid #ffffff12;

  border-radius: 999px;

  color: #ffffff55;

  background: #ffffff04;

  font:
    500 10px
    "DM Mono",
    monospace;
}

.comment-card__body {
  padding: 2rem;
}

.comment-card__user {
  display: grid;

  grid-template-columns:
    46px 1fr;

  gap: 14px;

  align-items: center;
}

.comment-card__avatar {
  position: relative;

  display: grid;

  width: 46px;
  height: 46px;

  place-items: center;

  color: #829087;

  background:
    linear-gradient(
      145deg,
      #ffffff10,
      #ffffff04
    );

  border:
    1px solid #ffffff10;

  border-radius: 50%;
}

.comment-card__avatar::after {
  content: "";

  position: absolute;

  right: -1px;
  bottom: 1px;

  width: 10px;
  height: 10px;

  border:
    2px solid var(--ink);

  border-radius: 50%;

  background: #55b978;

  box-shadow:
    0 0 12px #55b97866;
}

.comment-card__user-info {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.comment-card__user-info strong {
  color: #f0f2ed;

  font-size: 13px;

  font-weight: 700;
}

.comment-card__user-info span {
  color: #ffffff35;

  font:
    500 9px
    "DM Mono",
    monospace;

  letter-spacing: .03em;
}

.comment-card__content {
  max-width: 720px;

  margin:
    1.75rem
    0
    0
    60px;

  color: #ffffff70;

  font-size: 14px;

  line-height: 1.9;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
  position: relative;

  min-height: 100svh;

  display: grid;

  place-items: center;

  overflow: hidden;

  text-align: center;

  background: var(--forest);
}

.footer__orb {
  position: absolute;

  width:
    min(65vw, 800px);

  aspect-ratio: 1;

  border:
    1px solid #ffffff0c;

  border-radius: 50%;

  animation:
    orb 10s ease-in-out infinite alternate;
}

.footer__content {
  position: relative;

  z-index: 2;
}

.footer__content h2 {
  margin: 2rem 0 0;

  font-size:
    clamp(6rem, 16vw, 14rem);

  font-weight: 800;

  line-height: .72;

  letter-spacing: -.12em;
}

.footer__content p {
  max-width: 360px;

  margin:
    3rem auto 0;

  color: #ffffff45;

  font-size: 14px;

  line-height: 1.8;
}

.footer__button {
  display: inline-flex;

  gap: 2rem;

  margin-top: 2.5rem;

  padding:
    1rem 1.5rem;

  border:
    1px solid #ffffff20;

  border-radius: 999px;

  font:
    500 9px
    "DM Mono",
    monospace;

  letter-spacing: .2em;

  transition:
    background .5s var(--ease),
    color .5s var(--ease);
}

.footer__button:hover {
  color: var(--ink);

  background: white;
}

.footer footer {
  position: absolute;

  right:
    clamp(1.25rem, 6vw, 6rem);

  bottom: 2rem;

  left:
    clamp(1.25rem, 6vw, 6rem);

  display: flex;

  justify-content: space-between;

  color: #ffffff25;

  font:
    500 8px
    "DM Mono",
    monospace;

  letter-spacing: .2em;
}


/* =========================================================
   CURSOR
========================================================= */

.cursor,
.cursor-label {
  position: fixed;

  z-index: 10000;

  pointer-events: none;
}

.cursor {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: var(--red);

  transform:
    translate(-50%, -50%);

  transition:
    width .35s var(--ease),
    height .35s var(--ease);
}

.cursor-label {
  display: grid;

  width: 55px;
  height: 55px;

  place-items: center;

  border-radius: 50%;

  background: white;

  color: var(--ink);

  font:
    700 7px
    "DM Mono",
    monospace;

  opacity: 0;

  transform:
    translate(-50%, -50%)
    scale(.5);

  transition:
    opacity .3s,
    transform .4s var(--ease);
}

.cursor.active {
  width: 0;
  height: 0;
}

.cursor-label.active {
  opacity: 1;

  transform:
    translate(-50%, -50%)
    scale(1);
}


/* =========================================================
   REVEAL
========================================================= */

.reveal {
  opacity: 0;

  transform:
    translateY(45px);

  clip-path:
    inset(0 0 12%);

  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease),
    clip-path 1s var(--ease);
}

.reveal.is-visible {
  opacity: 1;

  transform: none;

  clip-path:
    inset(0);
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes loaderIn {
  from {
    opacity: 0;

    transform:
      translateY(25px);
  }

  to {
    opacity: 1;

    transform: none;
  }
}

@keyframes titleIn {
  from {
    opacity: 0;

    transform:
      translateY(70px);

    clip-path:
      inset(100% 0 0);
  }

  to {
    opacity: 1;

    transform: none;

    clip-path:
      inset(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;

    transform:
      translateY(25px);
  }

  to {
    opacity: 1;

    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform:
      scale(1.05)
      translate3d(0,0,0);
  }

  to {
    transform:
      scale(1.11)
      translate3d(-1%,-1%,0);
  }
}

@keyframes orb {
  from {
    transform:
      translate(0,0)
      scale(.96);
  }

  to {
    transform:
      translate(25px,-25px)
      scale(1.04);
  }
}

@keyframes glow {
  from {
    opacity: .35;

    transform:
      scale(.9);
  }

  to {
    opacity: .8;

    transform:
      scale(1.1);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes linePulse {
  50% {
    width: 55px;
    opacity: .5;
  }
}


/* =========================================================
   TABLET — <= 1000px
========================================================= */

@media (max-width: 1000px) {

  .stats-grid {
    grid-template-columns:
      repeat(3, 1fr);
  }


  .stats-table {
    overflow-x: auto;

    scrollbar-width: none;
  }


  .stats-table::-webkit-scrollbar {
    display: none;
  }


  .stats-table__row {
    min-width: 760px;
  }


  /* GALLERY */

  .gallery {
    width: 100%;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 1rem;

    margin-top: 4rem;
  }


  .gallery figure {
    height: 350px;

    border-radius: 16px;
  }


  .gallery .gallery-wide {
    height: 400px;
  }
}


/* =========================================================
   MOBILE — <= 768px
========================================================= */

@media (max-width: 768px) {

  /* NAV */

  .site-nav {
    padding: 1.25rem;
  }

  .site-nav nav,
  .nav-index {
    display: none;
  }


  /* HERO */

  .hero__content {
    padding:
      7rem
      1.25rem
      4rem;
  }

  .hero__meta {
    gap: 1rem;
  }

  .hero__meta span:last-child {
    display: none;
  }

  .hero__title {
    font-size:
      clamp(4rem, 18vw, 7rem);
  }

  .hero__bottom {
    align-items: end;

    gap: 2rem;
  }

  .hero__bottom p {
    max-width: 260px;

    font-size: 13px;
  }

  .circle-button {
    flex: 0 0 70px;

    width: 70px;
    height: 70px;
  }

  .hero__side,
  .hero__scroll {
    display: none;
  }


  /* GLOBAL */

  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .section__head small {
    display: none;
  }


  /* ABOUT / OREGON / HOCKEY */

  .about__layout,
  .oregon__layout,
  .hockey__intro {
    grid-template-columns: 1fr;

    gap: 4rem;

    padding-top: 5rem;
  }

  .about__body {
    padding-top: 0;
  }

  .about__intro h2,
  .oregon__copy h2,
  .hockey__intro h2,
  .goals__title h2,
  .gallery__title h2 {
    font-size:
      clamp(4rem, 18vw, 7rem);
  }

  .typing {
    min-height: 220px;

    font-size: 1.35rem;
  }

  .about__columns {
    grid-template-columns: 1fr;
  }

  .oregon__image img {
    height: 60svh;
  }

  .oregon__copy p {
    font-size: 14px;
  }

  .hockey__intro {
    gap: 2rem;
  }

  .hockey__image {
    margin-top: 4rem;
  }

  .hockey__image img {
    height: 60svh;
  }


  /* =======================================================
     STATS
  ======================================================= */

  .stats-hero {
    grid-template-columns: 1fr;

    gap: 2rem;
  }

  .stats-hero__identity h2 {
    font-size:
      clamp(3.5rem, 17vw, 6rem);
  }

  .stats-hero__rank {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns:
      repeat(2, 1fr);

    margin-top: 4rem;
  }

  .stat-card {
    min-height: 160px;
  }

  .stat-card strong {
    margin-top: 2rem;

    font-size: 3.2rem;
  }


  /* =======================================================
     MOBILE STATS TABLE
  ======================================================= */

  .stats-detail {
    margin-top: 5rem;
  }

  .stats-detail__heading {
    padding:
      1rem 0;

    font-size: 7px;
  }

  .stats-table {
    overflow: visible;

    border: 0;

    background: transparent;
  }

  .stats-table__row {
    display: grid;

    grid-template-columns:
      repeat(4, 1fr);

    gap: 0;

    min-width: 0;

    min-height: auto;

    padding: 0;

    border: 0;

    background: transparent;
  }

  .stats-table__row--head {
    display: none;
  }

  .stats-table__row--featured {
    position: relative;

    grid-template-columns:
      repeat(4, 1fr);

    gap: 1px;

    padding-top: 0;

    border:
      1px solid #ffffff12;

    border-radius: 16px;

    overflow: hidden;

    background:
      linear-gradient(
        145deg,
        #d9575710,
        #ffffff03
      );

    box-shadow:
      0 20px 60px #00000025;
  }

  .stats-table__row--featured::before {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;

    width: 100%;
    height: 2px;
  }

  .stats-table__row--featured
  .stats-player {
    grid-column:
      1 / -1;

    display: flex;

    justify-content: space-between;

    padding:
      1.25rem 1.15rem;

    border-bottom:
      1px solid #ffffff0d;
  }

  .stats-player b {
    font-size: 13px;
  }

  .stats-player small {
    min-width: 38px;

    height: 22px;

    font-size: 7px;
  }

  .stats-table__row--featured
  > span:not(:first-child) {
    display: flex;

    min-height: 76px;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: .35rem;

    padding:
      .7rem .3rem;

    border-right:
      1px solid #ffffff0b;

    border-bottom:
      1px solid #ffffff0b;

    color: #fff;

    text-align: center;

    font-family:
      "Manrope",
      sans-serif;

    font-size: 18px;

    font-weight: 800;

    letter-spacing: -.04em;
  }

  .stats-table__row--featured
  > span:nth-child(5) {
    color: #fff;

    font-size: 20px;
  }

  .stats-table__row--featured
  > span:last-child {
    color: var(--red);

    font-size: 18px;
  }

  .stats-table__row--featured
  > span:not(:first-child)::before {
    content: attr(data-label);

    display: block;

    color: #ffffff35;

    font:
      500 7px
      "DM Mono",
      monospace;

    letter-spacing: .16em;

    order: -1;
  }

  .stats-table__row--featured
  > span:nth-child(5),
  .stats-table__row--featured
  > span:nth-child(8) {
    border-right: 0;
  }


  /* TOTAL */

  .stats-table__row--total {
    display: grid;

    grid-template-columns:
      repeat(4, 1fr);

    gap: 1px;

    margin-top: 1rem;

    padding: 1rem;

    border:
      1px solid #ffffff0d;

    border-radius: 14px;

    background: #ffffff02;
  }

  .stats-table__row--total
  .stats-total-label {
    grid-column:
      1 / -1;

    padding-bottom: .8rem;

    border-bottom:
      1px solid #ffffff0b;

    color: #ffffff45;

    font-size: 7px;

    text-align: left;
  }

  .stats-table__row--total
  > span:not(:first-child) {
    display: flex;

    min-height: 55px;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: .3rem;

    border-right:
      1px solid #ffffff08;

    font-family:
      "Manrope",
      sans-serif;

    font-size: 13px;

    font-weight: 700;
  }

  .stats-table__row--total
  > span:not(:first-child)::before {
    content: attr(data-label);

    color: #ffffff25;

    font:
      500 6px
      "DM Mono",
      monospace;

    letter-spacing: .14em;
  }

  .stats-table__row--total
  > span:nth-child(5),
  .stats-table__row--total
  > span:last-child {
    border-right: 0;
  }

  .stats-table__row--total
  > span:last-child {
    color: #d9575790;
  }


  /* PERFORMANCE */

  .stats-insight {
    grid-template-columns: 1fr;

    gap: 3rem;
  }

  .stats-source {
    grid-template-columns: 1fr;

    gap: .8rem;
  }

  .stats-source > span:last-child {
    display: none;
  }


  /* =======================================================
     GOALS
  ======================================================= */

  .goals__title {
    padding-top: 5rem;
  }

  .goals__grid {
    grid-template-columns: 1fr;

    margin-top: 5rem;
  }

  .goal-card {
    min-height: 270px;

    border-right: 0;

    border-bottom:
      1px solid #08100c20;
  }

  .goal-card h3 {
    margin-top: 4rem;
  }


  /* =======================================================
     LIFE IN FRAMES
  ======================================================= */

  .gallery-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .gallery__title {
    padding-top: 4rem;
  }

  .gallery {
    display: grid;

    grid-template-columns: 1fr;

    gap: .85rem;

    margin-top: 3rem;
  }

  .gallery figure,
  .gallery .gallery-wide {
    grid-column: auto;

    width: 100%;

    height: 300px;

    min-height: 0;

    border-radius: 15px;
  }

  .gallery .gallery-wide {
    height: 330px;
  }

  .gallery figcaption {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;

    font-size: 7px;
  }

  .gallery figure:hover {
    transform: none;

    box-shadow:
      0 20px 50px #00000025;
  }

  .gallery figure:hover img {
    transform: scale(1.01);
  }


  /* =======================================================
     COMMENTS
  ======================================================= */

  .notes-section {
    padding:
      5rem
      1.25rem
      6rem;
  }

  .notes-label {
    gap: 1rem;
  }

  .comment-card {
    margin-top: 2.5rem;

    border-radius: 18px;
  }

  .comment-card__header {
    padding:
      0 1.1rem;
  }

  .comment-card__body {
    padding: 1.25rem;
  }

  .comment-card__user {
    grid-template-columns:
      40px 1fr;

    gap: 11px;
  }

  .comment-card__avatar {
    width: 40px;
    height: 40px;
  }

  .comment-card__user-info strong {
    font-size: 12px;
  }

  .comment-card__user-info span {
    font-size: 8px;

    line-height: 1.5;
  }

  .comment-card__content {
    margin:
      1.5rem
      0
      0;

    font-size: 13px;

    line-height: 1.85;
  }


  /* =======================================================
     FOOTER
  ======================================================= */

  .footer {
    min-height: 90svh;
  }

  .footer__content h2 {
    font-size: 28vw;
  }

  .footer footer {
    gap: .5rem;

    font-size: 7px;
  }

  .footer footer span:nth-child(2) {
    display: none;
  }


  /* CURSOR */

  .cursor,
  .cursor-label {
    display: none;
  }
}


/* =========================================================
   SMALL MOBILE — <= 480px
========================================================= */

@media (max-width: 480px) {

  .stats-grid {
    grid-template-columns:
      1fr 1fr;
  }

  .stat-card {
    min-height: 150px;

    padding: 1rem;
  }

  .stat-card strong {
    font-size: 2.8rem;
  }

  .stats-hero__identity h2 {
    font-size:
      clamp(3.5rem, 17vw, 6rem);
  }


  /* LIFE IN FRAMES */

  .gallery {
    gap: .7rem;
  }

  .gallery figure,
  .gallery .gallery-wide {
    height: 250px;

    border-radius: 13px;
  }

  .gallery .gallery-wide {
    height: 280px;
  }

  .gallery figcaption {
    right: .8rem;
    bottom: .8rem;
    left: .8rem;

    font-size: 6px;

    letter-spacing: .16em;
  }

  .gallery figcaption::before {
    width: 18px;

    margin-right: .5rem;
  }


  /* STATS */

  .stats-table__row--featured
  > span:not(:first-child) {
    min-height: 72px;

    font-size: 16px;
  }

  .stats-table__row--featured
  > span:nth-child(5) {
    font-size: 18px;
  }

  .stats-player b {
    font-size: 12px;
  }

  .stats-player small {
    min-width: 34px;

    height: 20px;
  }

  .stats-table__row--total {
    padding: .75rem;
  }

  .stats-table__row--total
  > span:not(:first-child) {
    min-height: 52px;

    font-size: 12px;
  }
}


/* =========================================================
   VERY SMALL MOBILE — <= 360px
========================================================= */

@media (max-width: 360px) {

  .gallery figure,
  .gallery .gallery-wide {
    height: 220px;
  }

  .gallery .gallery-wide {
    height: 245px;
  }

  .gallery figcaption {
    font-size: 5.5px;
  }

  .stats-table__row--featured
  > span:not(:first-child) {
    min-height: 68px;

    font-size: 15px;
  }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;

    transition: none !important;
  }

  .reveal {
    opacity: 1;

    transform: none;

    clip-path: none;
  }

  .stat-bar__track i {
    transition: none;
  }
}