@font-face {
  font-family: "Mountriel";
  src: url("assets/fonts/mountriel-regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #030303;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-strong: rgba(10, 10, 10, 0.72);
  --white: #f7f7f5;
  --muted: #96969d;
  --muted-dark: #626269;
  --violet: #8b5cf6;
  --violet-light: #a78bfa;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --emerald: #10b981;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.045);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.5) #050505;
  overscroll-behavior-y: none;
  background: #030303;
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

body.is-loading,
body.lightbox-open,
body.video-open,
body.testimonial-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

img,
svg {
  display: block;
}

::selection {
  background: var(--violet);
  color: #fff;
}

.ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.noise {
  position: absolute;
  z-index: 5;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.grid-plane {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 72%);
}

.orb {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;
}

.orb--violet {
  top: -14rem;
  left: 50%;
  width: 42rem;
  height: 42rem;
  margin-left: -21rem;
  background: rgba(139, 92, 246, 0.3);
  animation: float-orb 11s ease-in-out infinite alternate;
}

.orb--cyan {
  top: 35%;
  left: -15rem;
  width: 30rem;
  height: 30rem;
  background: rgba(6, 182, 212, 0.12);
  animation: float-orb 14s 1.2s ease-in-out infinite alternate-reverse;
}

.orb--small {
  top: 68%;
  right: -8rem;
  width: 22rem;
  height: 22rem;
  background: rgba(139, 92, 246, 0.13);
  animation: float-orb 9s .5s ease-in-out infinite alternate;
}

.orb--contact {
  top: 8rem;
  left: 70%;
  width: 32rem;
  height: 32rem;
}

@keyframes float-orb {
  to { transform: translate3d(2rem, -1.5rem, 0) scale(1.07); }
}

.page-loader {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: #030303;
  transition: visibility 0s .75s, transform .75s var(--ease);
}

.page-loader.is-done {
  visibility: hidden;
  transform: translateY(-101%);
}

.page-loader__mark {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.page-loader__line {
  width: min(13rem, 42vw);
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.page-loader__line i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--violet), #fff, var(--cyan));
  animation: load-line .65s var(--ease) forwards;
}

@keyframes load-line {
  to { transform: scaleX(1); }
}

.scroll-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--violet), #fff 52%, var(--cyan));
}

.nav-shell {
  position: fixed;
  z-index: 100;
  top: 1.5rem;
  left: 50%;
  width: min(95%, 672px);
  transform: translateX(-50%);
}

.nav-pill {
  position: relative;
  min-height: 3.85rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: .45rem .5rem .45rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35), 0 0 22px -14px var(--violet);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  white-space: nowrap;
}

.brand__dot,
.footer__brand i {
  width: .32rem;
  height: .32rem;
  display: inline-block;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 12px rgba(139, 92, 246, .8);
}

.brand__short {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .2rem;
}

.nav-link {
  position: relative;
  padding: .75rem .68rem;
  color: #8c8c93;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: color .35s var(--ease);
}

.nav-link svg {
  width: 1.15rem;
  display: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.nav-link::after {
  position: absolute;
  bottom: .38rem;
  left: 50%;
  width: .2rem;
  height: .2rem;
  content: "";
  opacity: 0;
  border-radius: 50%;
  transform: translate(-50%, .35rem);
  background: var(--violet-light);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.nav-link:hover,
body[data-page="home"] .nav-link[data-link="home"],
body[data-page="gallery"] .nav-link[data-link="gallery"],
body[data-page="case-study"] .nav-link[data-link="gallery"],
body[data-page="resources"] .nav-link[data-link="resources"],
body[data-page="contact"] .nav-link[data-link="contact"] {
  color: #fff;
}

body[data-page="home"] .nav-link[data-link="home"]::after,
body[data-page="gallery"] .nav-link[data-link="gallery"]::after,
body[data-page="case-study"] .nav-link[data-link="gallery"]::after,
body[data-page="resources"] .nav-link[data-link="resources"]::after,
body[data-page="contact"] .nav-link[data-link="contact"]::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .82rem 1.05rem;
  border-radius: 999px;
  background: var(--white);
  color: #060606;
  font-size: .68rem;
  font-weight: 600;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 255, 255, .16);
}

.nav-cta span {
  transition: transform .4s var(--ease);
}

.nav-cta:hover span {
  transform: translate(.15rem, -.15rem);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 9rem 1.5rem 6rem;
}

.hero::before {
  position: absolute;
  top: 5rem;
  left: 50%;
  width: min(70rem, 96vw);
  height: 42rem;
  content: "";
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, .16), transparent 67%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #aaaab0;
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.status-dot {
  width: .42rem;
  height: .42rem;
  display: inline-block;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .6);
  animation: pulse-dot 2.2s infinite;
}

@keyframes pulse-dot {
  60% { box-shadow: 0 0 0 .42rem rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero__title,
.page-hero h1,
.closing h2 {
  margin: 1.65rem 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(4.8rem, 10.2vw, 9.2rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .82;
}

.hero__title em,
.page-hero h1 em,
.closing h2 em,
.section-heading h2 em,
.contact-aside h2 em {
  font-weight: 400;
}

.shimmer {
  display: inline-block;
  background: linear-gradient(90deg, var(--violet-light) 0%, #fff 38%, #fff 60%, var(--cyan-light) 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  to { background-position: -200% center; }
}

.hero__copy,
.page-hero > p {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(.98rem, 1.5vw, 1.12rem);
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.shiny-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  overflow: hidden;
  padding: 1px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.shiny-button::before {
  position: absolute;
  z-index: -2;
  top: -160%;
  left: -50%;
  width: 200%;
  height: 420%;
  content: "";
  background: conic-gradient(from 0deg, transparent 0%, var(--violet) 40%, var(--cyan) 50%, transparent 60%);
  animation: spin-border 4s linear infinite;
}

.shiny-button::after {
  position: absolute;
  z-index: -1;
  inset: 1px;
  content: "";
  border-radius: inherit;
  background: #0a0a0a;
}

.shiny-button span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.shiny-button:hover::after {
  background: #111;
}

.shiny-button:hover span {
  text-shadow: 0 0 16px rgba(255, 255, 255, .3);
}

@keyframes spin-border {
  to { transform: rotate(360deg); }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #d6d6d9;
  font-size: .76rem;
  font-weight: 500;
}

.text-link span {
  color: var(--cyan-light);
  transition: transform .45s var(--ease);
}

.text-link:hover span {
  transform: translate(.15rem, -.15rem);
}

.hero__actions .text-link:hover span {
  transform: translateY(.25rem);
}

.hero__coordinates {
  position: absolute;
  z-index: 2;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  gap: 1.2rem;
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 1.7rem;
  left: 50%;
  width: 1.25rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: .4rem;
  left: 50%;
  width: .2rem;
  height: .2rem;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #fff;
  animation: scroll-cue 1.8s infinite;
}

@keyframes scroll-cue {
  70% { opacity: 0; transform: translate(-50%, .8rem); }
  100% { opacity: 0; }
}

.ticker {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.ticker__track {
  width: max-content;
  display: flex;
  animation: ticker-scroll 40s linear infinite;
}

.ticker__track--fast {
  animation-duration: 28s;
}

.ticker__set {
  min-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.metric {
  min-height: 4.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 3rem;
  border-right: 1px solid var(--line-soft);
  font-family: var(--mono);
}

.metric small {
  color: #5e5e66;
  font-size: .55rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.metric strong {
  font-size: .84rem;
  font-weight: 400;
}

.accent-violet {
  color: var(--violet-light);
}

.accent-emerald {
  color: #34d399;
}

.ticker-word {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.25rem 2.5rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  white-space: nowrap;
}

.ticker-word i {
  color: var(--violet-light);
  font-family: var(--sans);
  font-size: .7rem;
  font-style: normal;
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

.section,
.gallery-section,
.contact-section {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: clamp(6.5rem, 11vw, 10rem) 1.5rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, .6fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: 4rem;
}

.section-heading--compact {
  grid-template-columns: 1fr auto;
}

.kicker {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--violet-light);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-heading h2,
.contact-aside h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .92;
}

.section-heading h2 em,
.contact-aside h2 em {
  color: var(--violet-light);
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.8;
}

.section-heading__aside {
  display: grid;
  justify-items: start;
  gap: 1.35rem;
}

.section-heading__aside > p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.8;
}

.section-heading__aside .text-link {
  color: #b8b8c0;
}

.text-link--back {
  flex-direction: row;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  position: relative;
  min-height: 25rem;
  overflow: hidden;
  padding: 2.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, .022);
  transform: translateZ(0);
  transition:
    transform .65s var(--ease),
    border-color .65s var(--ease),
    background .65s var(--ease),
    box-shadow .65s var(--ease);
}

.feature-card::after {
  position: absolute;
  right: -6rem;
  bottom: -7rem;
  width: 14rem;
  height: 14rem;
  content: "";
  border-radius: 50%;
  background: rgba(139, 92, 246, .12);
  filter: blur(45px);
  transition: transform .7s var(--ease);
}

.feature-card:hover,
.feature-card:focus-visible {
  transform: translateY(-12px);
  border-color: rgba(139, 92, 246, .38);
  outline: 0;
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .4), 0 0 24px -14px rgba(139, 92, 246, .8);
}

.feature-card:hover::after,
.feature-card:focus-visible::after {
  transform: translate(-2rem, -2rem) scale(1.25);
}

.feature-card__icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin-bottom: 6.5rem;
  border: 1px solid rgba(139, 92, 246, .18);
  border-radius: .8rem;
  background: rgba(139, 92, 246, .1);
  color: var(--violet-light);
  transition: transform .65s var(--ease);
}

.feature-card:hover .feature-card__icon,
.feature-card:focus-visible .feature-card__icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card__icon--cyan {
  border-color: rgba(6, 182, 212, .2);
  background: rgba(6, 182, 212, .09);
  color: var(--cyan-light);
}

.feature-card__icon--mix {
  color: #d8ccff;
  background: linear-gradient(135deg, rgba(139, 92, 246, .13), rgba(6, 182, 212, .08));
}

.feature-card__icon svg {
  width: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.feature-card__number {
  position: absolute;
  top: 2.7rem;
  right: 2.5rem;
  color: #525259;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .14em;
}

.feature-card h3 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.feature-card p {
  max-width: 27rem;
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.75;
}

.feature-card__arrow {
  position: absolute;
  right: 2.5rem;
  bottom: 2.5rem;
  color: #686870;
  transition: color .4s var(--ease), transform .4s var(--ease);
}

.feature-card:hover .feature-card__arrow,
.feature-card:focus-visible .feature-card__arrow {
  color: var(--cyan-light);
  transform: translate(.2rem, -.2rem);
}

.about {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.about__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .7fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 8rem);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background:
    linear-gradient(120deg, rgba(139, 92, 246, .07), transparent 38%),
    rgba(7, 7, 8, .82);
  box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, .35);
}

.about__panel::after {
  position: absolute;
  top: -8rem;
  right: -7rem;
  width: 18rem;
  height: 18rem;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background: rgba(6, 182, 212, .08);
  filter: blur(60px);
}

.about__heading,
.about__content {
  position: relative;
  z-index: 1;
}

.about__heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .92;
}

.about__heading h2 em {
  color: var(--violet-light);
}

.about__content > p {
  margin: 0 0 2rem;
  color: #a5a5ad;
  font-size: .88rem;
  line-height: 1.9;
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin: 0;
}

.about__facts div {
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}

.about__facts dt {
  margin-bottom: .4rem;
  color: #5f5f68;
  font-family: var(--mono);
  font-size: .48rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.about__facts dd {
  margin: 0;
  color: #d5d5d8;
  font-size: .65rem;
  line-height: 1.5;
}

.process,
.skills {
  padding-top: 5rem;
}

.skill-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1.5rem;
  background: rgba(8, 8, 8, .82);
  box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, .45), 0 0 40px -28px var(--violet);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.skill-window__toolbar {
  min-height: 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--line);
  color: #77777f;
  font-family: var(--mono);
  font-size: .58rem;
}

.skill-window__status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #6f9888;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.skill-window__status i {
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, .55);
}

.skill-window__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.skill-group {
  padding: clamp(1.5rem, 3.5vw, 3rem);
}

.skill-group + .skill-group {
  border-left: 1px solid var(--line);
}

.skill-group__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
}

.skill-group__heading span {
  color: var(--violet-light);
  font-size: .59rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.skill-group--creative .skill-group__heading span {
  color: var(--cyan-light);
}

.skill-group__heading small {
  color: #55555d;
  font-size: .5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.skill-list {
  display: grid;
}

.skill-item {
  min-height: 4.65rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line-soft);
  transition: padding .45s var(--ease), background .45s var(--ease);
}

.skill-item:hover {
  padding-right: .65rem;
  padding-left: .65rem;
  background: rgba(139, 92, 246, .035);
}

.skill-group--creative .skill-item:hover {
  background: rgba(6, 182, 212, .035);
}

.skill-item > div {
  display: flex;
  flex-direction: column;
  gap: .34rem;
}

.skill-item strong {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 400;
}

.skill-item small {
  color: #65656d;
  font-size: .58rem;
}

.skill-signal {
  display: flex;
  align-items: center;
  gap: .22rem;
}

.skill-signal::before {
  margin-right: .45rem;
  content: attr(data-level);
  color: #606068;
  font-family: var(--mono);
  font-size: .46rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.skill-signal i {
  width: 1rem;
  height: .18rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--violet-light));
  box-shadow: 0 0 8px rgba(139, 92, 246, .3);
}

.skill-group--creative .skill-signal i {
  background: linear-gradient(90deg, var(--cyan), var(--cyan-light));
  box-shadow: 0 0 8px rgba(6, 182, 212, .25);
}

.skill-signal i.is-dim,
.skill-group--creative .skill-signal i.is-dim {
  background: rgba(255, 255, 255, .07);
  box-shadow: none;
}

.skill-window__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  color: #55555d;
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.testimonials {
  padding-top: 5rem;
}

.testimonial-heading__aside {
  display: grid;
  justify-items: start;
  gap: 1.15rem;
}

.testimonial-heading__aside p {
  max-width: 28rem;
  margin: 0;
  color: #85858d;
  font-size: .78rem;
  line-height: 1.75;
}

.testimonial-heading__aside > span {
  display: inline-flex;
  align-items: baseline;
  gap: .6rem;
  color: #66666f;
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.testimonial-heading__aside strong {
  color: var(--cyan-light);
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0;
}

.testimonial-add {
  justify-self: start;
  min-width: 11.5rem;
  margin-top: .15rem;
}

.testimonial-viewport {
  --testimonial-gap: 1rem;
  overflow: hidden;
  padding: .2rem 0 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.testimonial-track {
  width: max-content;
  display: flex;
  gap: var(--testimonial-gap);
  animation: testimonial-loop-right 34s linear infinite;
  will-change: transform;
}

.testimonial-track.is-static {
  animation: none;
  transform: none;
}

.testimonial-viewport:hover .testimonial-track,
.testimonial-viewport:focus-within .testimonial-track {
  animation-play-state: paused;
}

.testimonial-set {
  display: flex;
  gap: var(--testimonial-gap);
}

.testimonial-card {
  position: relative;
  width: calc((min(100vw, var(--container)) - 5rem) / 3);
  min-width: 18rem;
  min-height: 19rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.5rem;
  overflow: hidden;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border: 1px solid rgba(255, 255, 255, .095);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 100% 100%, rgba(139, 92, 246, .13), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, .025), transparent 55%),
    rgba(7, 7, 8, .92);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .28);
}

.testimonial-card::after {
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 10rem;
  height: 10rem;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background: rgba(6, 182, 212, .055);
  filter: blur(32px);
}

.testimonial-card__top,
.testimonial-card footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.testimonial-card__top > b {
  color: #63636c;
  font-family: var(--mono);
  font-size: .5rem;
  font-weight: 400;
}

.testimonial-stars {
  display: inline-flex;
  gap: .12rem;
}

.testimonial-stars i {
  background: linear-gradient(
    90deg,
    #f1b94f 0 var(--star-fill),
    rgba(255, 255, 255, .12) var(--star-fill) 100%
  );
  background-clip: text;
  color: transparent;
  font-size: .88rem;
  font-style: normal;
  -webkit-background-clip: text;
}

.testimonial-card blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #d8d8dc;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -.018em;
  line-height: 1.3;
}

.testimonial-card footer > span {
  display: grid;
  gap: .28rem;
}

.testimonial-card footer strong {
  color: #efeff1;
  font-size: .66rem;
  font-weight: 500;
}

.testimonial-card footer a,
.testimonial-card footer small {
  color: #66666f;
  font-family: var(--mono);
  font-size: .45rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.testimonial-card footer a:hover {
  color: var(--cyan-light);
}

.testimonial-card footer > i {
  color: rgba(139, 92, 246, .28);
  font-family: var(--serif);
  font-size: 4.5rem;
  font-style: normal;
  line-height: .4;
}

.testimonial-empty {
  width: min(calc(100vw - 3rem), var(--container));
  min-height: 15rem;
  display: grid;
  margin: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: #66666f;
  font-family: var(--mono);
  font-size: .55rem;
  text-transform: uppercase;
}

@keyframes testimonial-loop-right {
  from {
    transform: translateX(calc(-50% - var(--testimonial-gap) / 2));
  }
  to {
    transform: translateX(0);
  }
}

.testimonial-modal {
  position: fixed;
  z-index: 650;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s .45s, opacity .45s var(--ease);
}

.testimonial-modal.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.testimonial-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.testimonial-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 39rem);
  max-height: calc(100svh - 3rem);
  overflow: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(139, 92, 246, .3);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, .16), transparent 34%),
    #080809;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, .72), 0 0 45px -28px var(--violet);
  transform: translateY(1.5rem) scale(.975);
  transition: transform .5s var(--ease);
}

.testimonial-modal.is-open .testimonial-dialog {
  transform: translateY(0) scale(1);
}

.testimonial-dialog h2 {
  margin: .7rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .88;
}

.testimonial-dialog h2 em {
  color: var(--violet-light);
}

.testimonial-dialog > p {
  max-width: 31rem;
  margin: 0 0 1.8rem;
  color: #85858d;
  font-size: .72rem;
  line-height: 1.7;
}

.testimonial-dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .025);
}

.testimonial-dialog__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: .9rem;
  height: 1px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #fff;
}

.testimonial-dialog__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.testimonial-form {
  display: grid;
  gap: 1rem;
}

.testimonial-form label,
.testimonial-form fieldset {
  display: grid;
  gap: .58rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.testimonial-form label > span,
.testimonial-form legend {
  color: #6d6d76;
  font-family: var(--mono);
  font-size: .48rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.testimonial-form input,
.testimonial-form textarea {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  outline: 0;
  background: rgba(255, 255, 255, .025);
  color: #eeeef1;
  font: inherit;
  font-size: .72rem;
  line-height: 1.6;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.testimonial-form textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.testimonial-form input:focus,
.testimonial-form textarea:focus {
  border-color: rgba(139, 92, 246, .55);
  background: rgba(139, 92, 246, .045);
}

.testimonial-rating {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .65rem .85rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: rgba(255, 255, 255, .02);
}

.testimonial-rating__picker {
  display: inline-flex;
  outline: 0;
}

.testimonial-rating__picker:focus-visible {
  border-radius: .4rem;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .18);
}

.testimonial-rating__star {
  position: relative;
  width: 1.75rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(
    90deg,
    #f1b94f 0 var(--star-fill, 100%),
    rgba(255, 255, 255, .12) var(--star-fill, 100%) 100%
  );
  background-clip: text;
  color: transparent;
  font-size: 1.6rem;
  line-height: 1;
  -webkit-background-clip: text;
}

.testimonial-rating__option {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 50%;
  padding: 0;
  border: 0;
  background: transparent;
}

.testimonial-rating__option--half {
  left: 0;
}

.testimonial-rating__option--full {
  right: 0;
}

.testimonial-rating output {
  color: var(--cyan-light);
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .06em;
}

.testimonial-form .shiny-button {
  justify-self: start;
  margin-top: .45rem;
}

.testimonial-form__status {
  min-height: 1.2rem;
  margin: 0;
  color: var(--cyan-light);
  font-size: .58rem;
  line-height: 1.6;
}

.testimonial-form > small {
  color: #5f5f67;
  font-size: .5rem;
  line-height: 1.6;
}

.code-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1.5rem;
  background: rgba(8, 8, 8, .82);
  box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, .45), 0 0 40px -28px var(--violet);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.code-window__toolbar {
  min-height: 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--line);
  color: #77777f;
  font-family: var(--mono);
  font-size: .62rem;
}

.window-controls {
  display: flex;
  gap: .45rem;
}

.window-controls i {
  width: .58rem;
  height: .58rem;
  border-radius: 50%;
  background: rgba(248, 113, 113, .65);
}

.window-controls i:nth-child(2) {
  background: rgba(250, 204, 21, .6);
}

.window-controls i:nth-child(3) {
  background: rgba(52, 211, 153, .6);
}

.copy-code {
  justify-self: end;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: transparent;
  color: #8b8b92;
  font-family: var(--mono);
  font-size: .58rem;
}

.copy-code:hover {
  border-color: rgba(139, 92, 246, .4);
  color: #fff;
}

.code-window pre {
  margin: 0;
  overflow-x: auto;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  color: #d9d9dd;
  font-family: var(--mono);
  font-size: clamp(.72rem, 1.4vw, .92rem);
  line-height: 2;
}

.code-comment { color: #5f5f68; }
.code-violet { color: var(--violet-light); }
.code-cyan { color: var(--cyan-light); }
.code-green { color: #34d399; }

.case-study-list {
  display: grid;
  gap: 1.25rem;
}

.case-study-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 16rem;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 1.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-study-loading span {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(6, 182, 212, .7);
  animation: case-study-pulse 1.1s ease-in-out infinite alternate;
}

.case-study-loading--error {
  color: #fb8d9d;
}

@keyframes case-study-pulse {
  to { opacity: .25; transform: scale(.72); }
}

.case-study-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, .92fr);
  min-height: 35rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.7rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(139, 92, 246, .11), transparent 30%),
    rgba(255, 255, 255, .018);
  box-shadow: 0 30px 70px -55px rgba(139, 92, 246, .55);
}

.case-study-card:nth-child(even) {
  grid-template-columns: minmax(22rem, .92fr) minmax(0, 1.08fr);
}

.case-study-card:nth-child(even) .case-study-card__media {
  order: 2;
}

.case-study-card__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #0b0b0d;
}

.case-study-card__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 60%, rgba(3, 3, 3, .58)),
    linear-gradient(90deg, transparent 74%, rgba(3, 3, 3, .2));
  pointer-events: none;
}

.case-study-card__media img {
  width: 100%;
  height: 100%;
  min-height: 35rem;
  object-fit: cover;
  transition: transform 1s var(--ease), filter .7s var(--ease);
}

.case-study-card__media:hover img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.02);
}

.case-study-card__index {
  position: absolute;
  z-index: 1;
  top: 1.25rem;
  left: 1.25rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(3, 3, 3, .65);
  color: #d8d8dc;
  font-family: var(--mono);
  font-size: .58rem;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.case-study-card__content {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 3.4rem);
}

.case-study-card__heading > span,
.case-study-card__story span,
.case-study-card__facts dt {
  color: var(--violet-light);
  font-family: var(--mono);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.case-study-card__heading h3 {
  margin: .8rem 0 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .92;
}

.case-study-card__facts {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-study-card__facts div {
  min-width: 0;
}

.case-study-card__facts dt,
.case-study-card__facts dd {
  margin: 0;
}

.case-study-card__facts dt {
  margin-bottom: .55rem;
  color: #65656d;
}

.case-study-card__facts dd {
  color: #ceced2;
  font-size: .72rem;
  line-height: 1.55;
}

.case-study-card__story {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.75rem;
}

.case-study-card__story span {
  color: var(--cyan-light);
}

.case-study-card__story p {
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.75;
}

.case-study-card__link {
  justify-content: flex-start;
  align-self: flex-start;
  gap: .65rem;
  margin-top: auto;
  padding-top: 2rem;
}

.case-study-card__link b {
  color: var(--cyan-light);
  font-size: .85rem;
  font-weight: 400;
  transition: transform .35s var(--ease);
}

.case-study-card__link:hover b {
  transform: translate(.2rem, -.2rem);
}

@media (min-width: 1025px) {
  .case-study-card,
  .case-study-card:nth-child(even) {
    height: 35rem;
    min-height: 0;
  }

  .case-study-card__media,
  .case-study-card__media img {
    min-height: 0;
  }

  .case-study-card:first-child .case-study-card__media img {
    object-position: center 38%;
  }
}

.closing {
  position: relative;
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding-top: 12rem;
  padding-bottom: 12rem;
  text-align: center;
}

.closing__orb {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 35rem;
  height: 20rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(139, 92, 246, .17);
  filter: blur(100px);
}

.closing h2 {
  margin-top: .8rem;
  margin-bottom: 2.5rem;
  font-size: clamp(3.8rem, 8vw, 7.4rem);
}

.footer {
  position: relative;
  z-index: 2;
  padding: 5rem max(1.5rem, calc((100% - var(--container)) / 2 + 1.5rem)) 1.5rem;
  border-top: 1px solid var(--line-soft);
  background: #050505;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2.2fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 5rem;
}

.footer__brand a {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--serif);
  font-size: 2rem;
}

.footer__brand p {
  max-width: 22rem;
  margin: 1.2rem 0 0;
  color: #77777f;
  font-size: .76rem;
  line-height: 1.75;
}

.footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .8rem;
}

.footer__column > span {
  margin-bottom: .7rem;
  color: #65656c;
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.footer__column a,
.footer__column p {
  margin: 0;
  color: #aaaab0;
  font-size: .73rem;
  transition: color .35s var(--ease), transform .35s var(--ease);
}

.footer__column a:hover {
  color: #fff;
  transform: translateX(.25rem);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-soft);
  color: #5d5d64;
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer__bottom b {
  font-weight: 400;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #7d9f92;
}

.system-status i {
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, .55);
}

.reveal {
  opacity: 0;
  transform: translateY(1.8rem);
  transition: opacity .9s var(--ease) var(--delay, 0s), transform .9s var(--ease) var(--delay, 0s);
}

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

/* Inner page hero */
.page-hero {
  position: relative;
  width: min(100%, 1120px);
  min-height: 77svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 10rem 1.5rem 5rem;
  text-align: center;
}

.page-hero h1 {
  max-width: 1050px;
  font-size: clamp(4.4rem, 9vw, 8.5rem);
}

.page-hero__index {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  margin-top: 3rem;
}

.page-hero__index span {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-family: var(--serif);
  font-size: 1.6rem;
}

.page-hero__index small {
  color: #66666e;
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Gallery */
.gallery-section {
  padding-top: 5rem;
}

#visual,
#motion,
#code {
  scroll-margin-top: 7rem;
}

.portfolio-heading {
  margin-bottom: 3.5rem;
}

.gallery-toolbar {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.3rem;
  padding: .6rem .65rem .6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(10, 10, 10, .72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}

.filter-button {
  padding: .72rem 1rem;
  border: 0;
  border-radius: .6rem;
  background: transparent;
  color: #77777f;
  font-size: .66rem;
  font-weight: 500;
  transition: color .35s var(--ease), background .35s var(--ease);
}

.filter-button sup {
  margin-left: .2rem;
  color: #55555d;
  font-family: var(--mono);
  font-size: .45rem;
}

.filter-button:hover {
  color: #fff;
}

.filter-button.is-active {
  background: rgba(139, 92, 246, .13);
  color: #e9e1ff;
}

.gallery-toolbar__hint {
  padding-right: .75rem;
  color: #5d5d65;
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: .85rem;
}

.portfolio-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: .85rem;
  background: #0b0b0c;
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity .75s var(--ease),
    transform .75s var(--ease),
    border-color .55s var(--ease),
    box-shadow .55s var(--ease);
}

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

.portfolio-card.is-hidden {
  display: none;
}

.portfolio-card--landscape {
  aspect-ratio: 4 / 3;
}

.portfolio-card--portrait {
  aspect-ratio: 4 / 5;
}

.portfolio-card--square {
  aspect-ratio: 1;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .85s var(--ease), filter .85s var(--ease);
}

.portfolio-card::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  opacity: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(3, 3, 3, .82));
  transition: opacity .45s var(--ease);
}

.portfolio-card__meta {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: .85rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d6d6da;
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .09em;
  opacity: 0;
  transform: translateY(.5rem);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.portfolio-card__meta i {
  color: var(--cyan-light);
  font-style: normal;
}

.portfolio-card:hover {
  z-index: 2;
  border-color: rgba(139, 92, 246, .3);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .45), 0 0 24px -16px var(--violet);
}

.portfolio-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.08) brightness(.83);
}

.portfolio-card:hover::before,
.portfolio-card:hover .portfolio-card__meta {
  opacity: 1;
}

.portfolio-card:hover .portfolio-card__meta {
  transform: translateY(0);
}

/* Motion portfolio */
.motion-portfolio {
  padding-top: 5rem;
}

.motion-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(8, 8, 9, .78);
  color: #62626b;
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.motion-toolbar span {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.motion-toolbar span:first-child {
  color: #9e9ea7;
}

.motion-toolbar i {
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--violet-light);
  box-shadow: 0 0 10px rgba(139, 92, 246, .75);
}

.motion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: .8rem;
}

.motion-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  opacity: 0;
  transform: translateY(1.25rem);
  background: #070708;
  transition:
    opacity .72s var(--ease) var(--delay, 0ms),
    transform .72s var(--ease) var(--delay, 0ms),
    border-color .5s var(--ease),
    box-shadow .5s var(--ease);
}

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

.motion-card--landscape {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.motion-card--portrait {
  aspect-ratio: 3 / 4;
}

.motion-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .85s var(--ease), filter .65s var(--ease);
}

.motion-card__glow {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(3, 3, 4, .9)),
    radial-gradient(circle at 50% 50%, transparent 20%, rgba(3, 3, 4, .12) 80%);
  transition: background .5s var(--ease);
}

.motion-card__play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(5, 5, 6, .64);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
}

.motion-card__play::after {
  position: absolute;
  inset: -.45rem;
  content: "";
  border: 1px solid rgba(139, 92, 246, .14);
  border-radius: 50%;
}

.motion-card__play i,
.video-player__center-play i {
  width: 0;
  height: 0;
  margin-left: .2rem;
  border-top: .38rem solid transparent;
  border-bottom: .38rem solid transparent;
  border-left: .58rem solid #fff;
}

.motion-card__meta {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: .9rem;
  left: 1rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.motion-card__meta > span {
  min-width: 0;
  display: grid;
  gap: .3rem;
}

.motion-card__meta small {
  overflow: hidden;
  color: #a0a0a8;
  font-family: var(--mono);
  font-size: .43rem;
  letter-spacing: .09em;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.motion-card__meta strong {
  overflow: hidden;
  color: #f4f4f2;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.motion-card__meta time {
  flex: 0 0 auto;
  padding: .32rem .48rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(4, 4, 5, .48);
  color: #cacacf;
  font-family: var(--mono);
  font-size: .46rem;
  letter-spacing: .06em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.motion-card:hover {
  z-index: 2;
  border-color: rgba(139, 92, 246, .36);
  box-shadow: 0 1.4rem 3.5rem rgba(0, 0, 0, .42), 0 0 28px -18px rgba(139, 92, 246, .8);
}

.motion-card:hover img {
  transform: scale(1.045);
  filter: brightness(.77) saturate(1.08);
}

.motion-card:hover .motion-card__play {
  border-color: rgba(34, 211, 238, .48);
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(12, 10, 20, .75);
}

.motion-card:focus-visible {
  outline: 1px solid var(--cyan-light);
  outline-offset: 3px;
}

/* Coding portfolio */
.code-portfolio {
  padding-top: 5rem;
}

.repo-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: .6rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(8, 8, 9, .78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.repo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}

.repo-filter {
  padding: .72rem .9rem;
  border: 0;
  border-radius: .6rem;
  background: transparent;
  color: #74747c;
  font-size: .63rem;
  font-weight: 500;
  transition: color .35s var(--ease), background .35s var(--ease);
}

.repo-filter sup {
  margin-left: .18rem;
  color: #55555d;
  font-family: var(--mono);
  font-size: .43rem;
}

.repo-filter:hover {
  color: #fff;
}

.repo-filter.is-active {
  background: rgba(6, 182, 212, .09);
  color: #bcf5ff;
}

.repo-toolbar > a {
  padding: .65rem .8rem;
  color: #74747c;
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .08em;
  white-space: nowrap;
  text-transform: uppercase;
  transition: color .35s var(--ease);
}

.repo-toolbar > a:hover {
  color: var(--cyan-light);
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.repo-card {
  position: relative;
  min-height: 17.5rem;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  opacity: 0;
  transform: translateY(1.1rem);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .025), transparent 55%),
    rgba(7, 7, 8, .82);
  transition:
    opacity .7s var(--ease) var(--delay, 0ms),
    transform .7s var(--ease) var(--delay, 0ms),
    border-color .45s var(--ease),
    background .45s var(--ease),
    box-shadow .45s var(--ease);
}

.repo-card::after {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 10rem;
  height: 10rem;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background: rgba(6, 182, 212, .055);
  filter: blur(35px);
  transition: transform .55s var(--ease), background .55s var(--ease);
}

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

.repo-card:hover {
  border-color: rgba(6, 182, 212, .24);
  background:
    linear-gradient(145deg, rgba(6, 182, 212, .055), transparent 58%),
    rgba(9, 9, 11, .92);
  box-shadow: 0 1.2rem 3.5rem rgba(0, 0, 0, .36), 0 0 24px -18px var(--cyan);
}

.repo-card:hover::after {
  transform: translate(-1rem, -1rem) scale(1.15);
  background: rgba(139, 92, 246, .08);
}

.repo-card__header,
.repo-card__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  text-transform: uppercase;
}

.repo-card__number {
  color: #505058;
  font-size: .5rem;
  letter-spacing: .14em;
}

.repo-card__category {
  color: #5f7e83;
  font-size: .46rem;
  letter-spacing: .1em;
}

.repo-card > strong {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  color: #ededf0;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: .98;
  overflow-wrap: anywhere;
}

.repo-card > p {
  position: relative;
  z-index: 1;
  margin: 1rem 0 2rem;
  color: #7f7f88;
  font-size: .68rem;
  line-height: 1.7;
}

.repo-card__footer {
  margin-top: auto;
  color: #606069;
  font-size: .45rem;
  letter-spacing: .07em;
}

.repo-card__footer > span:last-child {
  color: #6a6a72;
  text-align: right;
}

.repo-language {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.repo-language i {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--violet-light);
  box-shadow: 0 0 8px rgba(139, 92, 246, .35);
}

.repo-language--java i {
  background: #e76f51;
  box-shadow: 0 0 8px rgba(231, 111, 81, .35);
}

.repo-language--php i {
  background: #777bb4;
}

.repo-language--typescript i {
  background: #3178c6;
}

.repo-language--javascript i {
  background: #f1e05a;
}

.repo-language--html i {
  background: #e34c26;
}

.repo-language--css i {
  background: #563d7c;
}

.repo-language--shell i {
  background: #89e051;
}

.repo-loading {
  grid-column: 1 / -1;
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  color: #62626a;
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.repo-loading > span {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, .65);
  animation: status-pulse 1.4s ease-in-out infinite;
}

.repo-loading--error {
  flex-wrap: wrap;
}

.repo-loading--error a {
  color: var(--cyan-light);
}

.pagination {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: 2.4rem;
}

.pagination[hidden] {
  display: none;
}

.pagination__button {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: rgba(255, 255, 255, .02);
  color: #74747d;
  font-family: var(--mono);
  font-size: .55rem;
  transition:
    border-color .35s var(--ease),
    color .35s var(--ease),
    background .35s var(--ease),
    transform .35s var(--ease);
}

.pagination__button:hover:not(:disabled) {
  border-color: rgba(6, 182, 212, .3);
  background: rgba(6, 182, 212, .06);
  color: #fff;
  transform: translateY(-2px);
}

.pagination__button.is-active {
  border-color: rgba(139, 92, 246, .42);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .12), transparent 36%),
    linear-gradient(135deg, rgba(139, 92, 246, .25), rgba(6, 182, 212, .12));
  color: #fff;
  box-shadow: 0 0 18px -8px rgba(139, 92, 246, .8);
}

.pagination__button--arrow {
  border-radius: 50%;
  color: #9d9da5;
}

.pagination__button:disabled {
  cursor: default;
  opacity: .3;
}

.pagination__ellipsis {
  width: 1rem;
  color: #505058;
  font-family: var(--mono);
  font-size: .65rem;
  text-align: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) 5rem;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  background: rgba(3, 3, 3, .95);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  transition: visibility 0s .5s, opacity .5s var(--ease);
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.lightbox__figure {
  position: relative;
  grid-column: 2;
  max-width: calc(100vw - 10rem);
  max-height: 88vh;
  display: grid;
  justify-items: center;
  margin: 0;
}

.lightbox__image {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  opacity: 0;
  transform: translateX(1.5rem) scale(.98);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.lightbox.is-open .lightbox__image {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.lightbox__image.is-switching-next {
  opacity: 0;
  transform: translateX(-2rem) scale(.985);
}

.lightbox__image.is-switching-prev {
  opacity: 0;
  transform: translateX(2rem) scale(.985);
}

.lightbox__caption {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.2rem;
  margin-top: .8rem;
  color: #73737b;
  font-family: var(--mono);
  font-size: .55rem;
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lightbox__caption b {
  color: #c6c6cb;
  font-weight: 400;
}

.lightbox__share {
  padding: .35rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: #94949d;
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}

.lightbox__share:hover,
.lightbox__share:focus-visible {
  border-color: rgba(6, 182, 212, .38);
  outline: 0;
  background: rgba(6, 182, 212, .06);
  color: var(--cyan-light);
}

.lightbox__watermark {
  position: absolute;
  z-index: 2;
  top: 1.5rem;
  left: 1.5rem;
  pointer-events: none;
}

.lightbox__close {
  position: absolute;
  z-index: 4;
  top: 1.4rem;
  right: 1.4rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10, 10, 10, .7);
}

.lightbox__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #fff;
}

.lightbox__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox__nav {
  width: 3.2rem;
  height: 3.2rem;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10, 10, 10, .65);
  color: #b8b8bd;
  transition: border-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}

.lightbox__nav:hover,
.lightbox__close:hover {
  border-color: rgba(139, 92, 246, .5);
  color: #fff;
}

.lightbox__nav:hover {
  transform: scale(1.08);
}

.lightbox__nav--prev {
  grid-column: 1;
}

.lightbox__nav--next {
  grid-column: 3;
}

/* Motion player */
.video-lightbox {
  position: fixed;
  z-index: 520;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  visibility: hidden;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(139, 92, 246, .09), transparent 38%),
    rgba(2, 2, 3, .96);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  transition: visibility 0s .45s, opacity .45s var(--ease);
}

.video-lightbox.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.video-player {
  width: min(100%, 72rem);
  max-height: calc(100svh - 4rem);
  display: grid;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1.15rem;
  transform: translateY(1rem) scale(.985);
  background: #060607;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, .7), 0 0 50px -36px var(--violet);
  transition: transform .55s var(--ease);
}

.video-lightbox.is-open .video-player {
  transform: translateY(0) scale(1);
}

.video-player__stage {
  position: relative;
  min-height: 12rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(139, 92, 246, .035), transparent 55%),
    #020203;
}

.video-player__media {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: min(72vh, 48rem);
  display: block;
  object-fit: contain;
  background: #020203;
  transition: opacity .2s var(--ease), transform .2s var(--ease), filter .2s var(--ease);
}

.video-player.is-switching-next .video-player__media {
  opacity: 0;
  transform: translateY(-1rem) scale(.985);
  filter: blur(5px);
}

.video-player.is-switching-prev .video-player__media {
  opacity: 0;
  transform: translateY(1rem) scale(.985);
  filter: blur(5px);
}

.video-player__watermark {
  position: absolute;
  z-index: 2;
  top: 1.1rem;
  left: 1.2rem;
  pointer-events: none;
}

.video-player__center-play {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 4.6rem;
  height: 4.6rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(5, 5, 6, .65);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}

.video-lightbox.is-playing .video-player__center-play {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.82);
}

.video-player__center-play:hover {
  border-color: rgba(34, 211, 238, .55);
  transform: translate(-50%, -50%) scale(1.06);
}

.video-player__nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  opacity: .66;
  transform: translateY(-50%);
  background: rgba(5, 5, 6, .58);
  color: #fff;
  font-size: 1rem;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}

.video-player__nav--prev {
  left: 1rem;
}

.video-player__nav--next {
  right: 1rem;
}

.video-player__nav:hover,
.video-player__nav:focus-visible {
  border-color: rgba(34, 211, 238, .55);
  outline: 0;
  opacity: 1;
  transform: translateY(-50%) scale(1.07);
}

.video-player__controls {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 2.2rem auto minmax(8rem, 1fr) auto 2.2rem 5.8rem 2.2rem;
  align-items: center;
  gap: .7rem;
  padding: .72rem .85rem;
  border-top: 1px solid var(--line);
  background: rgba(9, 9, 10, .96);
}

.video-control {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #b7b7be;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}

.video-control:hover,
.video-control:focus-visible {
  border-color: rgba(139, 92, 246, .28);
  outline: 0;
  background: rgba(139, 92, 246, .08);
  color: #fff;
}

.video-control__play-icon {
  width: 0;
  height: 0;
  margin-left: .12rem;
  border-top: .3rem solid transparent;
  border-bottom: .3rem solid transparent;
  border-left: .48rem solid currentColor;
}

.video-lightbox.is-playing .video-control__play-icon {
  width: .5rem;
  height: .64rem;
  margin-left: 0;
  border: 0;
  border-right: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.video-control--mute > span {
  position: relative;
  width: .72rem;
  height: .72rem;
  background: currentColor;
  clip-path: polygon(0 32%, 35% 32%, 72% 0, 72% 100%, 35% 68%, 0 68%);
}

.video-control--mute > span::after {
  position: absolute;
  top: 50%;
  left: 68%;
  width: .45rem;
  height: .55rem;
  content: "";
  border: 1px solid currentColor;
  border-left: 0;
  border-radius: 0 100% 100% 0;
  transform: translateY(-50%);
}

.video-control--mute.is-muted > span::after {
  width: .65rem;
  height: 1px;
  border: 0;
  border-radius: 0;
  transform: translate(-.05rem, -.05rem) rotate(-45deg);
  background: currentColor;
}

.video-control--fullscreen > span {
  width: .78rem;
  height: .78rem;
  border: 1px solid currentColor;
  clip-path: polygon(0 0, 38% 0, 38% 14%, 14% 14%, 14% 38%, 0 38%, 0 0, 100% 0, 100% 38%, 86% 38%, 86% 14%, 62% 14%, 62% 0, 100% 0, 100% 100%, 62% 100%, 62% 86%, 86% 86%, 86% 62%, 100% 62%, 100% 100%, 0 100%, 0 62%, 14% 62%, 14% 86%, 38% 86%, 38% 100%, 0 100%);
  background: currentColor;
}

.video-range {
  --range-progress: 0%;
  height: .22rem;
  margin: 0;
  border-radius: 999px;
  outline: 0;
  appearance: none;
  background:
    linear-gradient(90deg, var(--cyan-light) 0 var(--range-progress), rgba(255, 255, 255, .13) var(--range-progress) 100%);
}

.video-range::-webkit-slider-thumb {
  width: .75rem;
  height: .75rem;
  appearance: none;
  border: 2px solid #08080a;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .6), 0 0 12px rgba(34, 211, 238, .4);
}

.video-range::-moz-range-thumb {
  width: .6rem;
  height: .6rem;
  border: 2px solid #08080a;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .6), 0 0 12px rgba(34, 211, 238, .4);
}

.video-range:focus-visible {
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .13);
}

.video-range--volume {
  --range-progress: 80%;
}

.video-player__controls time {
  color: #73737c;
  font-family: var(--mono);
  font-size: .48rem;
  letter-spacing: .05em;
}

.video-player__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem 1rem;
  border-top: 1px solid var(--line-soft);
  background: #070708;
  font-style: normal;
}

.video-player__caption > span:first-child {
  min-width: 0;
  display: grid;
  gap: .3rem;
}

.video-player__caption small {
  color: #777780;
  font-family: var(--mono);
  font-size: .45rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.video-player__caption strong {
  overflow: hidden;
  color: #ededed;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.video-player__caption > span:last-child {
  flex: 0 0 auto;
  color: #65656e;
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .08em;
}

.video-player__caption-actions {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.video-player__share {
  padding: .52rem .72rem;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: #9898a0;
  font-family: var(--mono);
  font-size: .46rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}

.video-player__share:hover,
.video-player__share:focus-visible {
  border-color: rgba(139, 92, 246, .42);
  outline: 0;
  background: rgba(139, 92, 246, .08);
  color: #fff;
}

.video-player__caption b {
  color: #bcbcc2;
  font-weight: 400;
}

.video-lightbox__close {
  position: absolute;
  z-index: 6;
  top: 1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 8, 9, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.video-lightbox__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #fff;
}

.video-lightbox__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.video-lightbox__close:hover,
.video-lightbox__close:focus-visible {
  border-color: rgba(139, 92, 246, .5);
  outline: 0;
}

/* Contact */
.page-hero--contact {
  min-height: 70svh;
  padding-bottom: 2rem;
}

.contact-section {
  padding-top: 3rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 1rem;
  align-items: stretch;
}

.contact-aside,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: rgba(8, 8, 8, .68);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.contact-aside {
  padding: clamp(2rem, 4vw, 3.5rem);
}

.contact-aside h2 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.contact-aside > p {
  max-width: 30rem;
  margin: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.8;
}

.contact-channels {
  border-top: 1px solid var(--line);
}

.contact-channel {
  display: grid;
  grid-template-columns: 5.2rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-channel span {
  color: #66666e;
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-channel strong {
  font-size: .75rem;
  font-weight: 400;
}

.contact-channel i {
  color: #696970;
  font-style: normal;
  transition: color .4s var(--ease), transform .4s var(--ease);
}

.contact-channel:hover i {
  color: var(--cyan-light);
  transform: translate(.2rem, -.2rem);
}

.availability-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: 2.5rem;
  padding: 1.2rem;
  border: 1px solid rgba(16, 185, 129, .12);
  border-radius: .8rem;
  background: rgba(16, 185, 129, .035);
}

.availability-card span {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #78a694;
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.availability-card .status-dot {
  width: .35rem;
  height: .35rem;
}

.availability-card strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
}

.availability-card small {
  color: #65656c;
  font-size: .64rem;
}

.contact-form {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.form-heading small {
  color: #585860;
  font-size: .5rem;
}

.form-field {
  display: grid;
  grid-template-columns: 9rem 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.form-field > span {
  color: #72727a;
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f2f2f4;
  font-size: .83rem;
  resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #4f4f57;
}

.custom-select {
  position: relative;
  width: 100%;
  display: block;
}

.custom-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .25rem 0;
  border: 0;
  border-radius: .35rem;
  outline: 0;
  background: transparent;
  color: #f2f2f4;
  font-size: .83rem;
  text-align: left;
}

.custom-select__trigger:focus-visible {
  box-shadow: 0 0 0 1px rgba(139, 92, 246, .45), 0 0 18px -10px var(--violet);
}

.custom-select__trigger i {
  width: .5rem;
  height: .5rem;
  flex: 0 0 auto;
  border-right: 1px solid #aaaab0;
  border-bottom: 1px solid #aaaab0;
  transform: translateY(-.12rem) rotate(45deg);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}

.custom-select.is-open .custom-select__trigger i {
  border-color: var(--cyan-light);
  transform: translateY(.12rem) rotate(225deg);
}

.custom-select__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 1rem);
  right: -.8rem;
  left: -.8rem;
  visibility: hidden;
  display: grid;
  gap: .25rem;
  padding: .5rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: .85rem;
  opacity: 0;
  transform: translateY(-.65rem) scale(.98);
  transform-origin: top;
  background:
    radial-gradient(circle at 90% 0%, rgba(139, 92, 246, .15), transparent 42%),
    rgba(8, 8, 10, .96);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .6), 0 0 24px -16px var(--violet);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  transition:
    visibility 0s .35s,
    opacity .35s var(--ease),
    transform .35s var(--ease);
}

.custom-select.is-open .custom-select__menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.custom-select__menu button {
  position: relative;
  width: 100%;
  padding: .8rem .85rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: .55rem;
  background: transparent;
  color: #8b8b93;
  font-size: .75rem;
  text-align: left;
  transition:
    color .35s var(--ease),
    border-color .35s var(--ease),
    background .35s var(--ease),
    padding .35s var(--ease);
}

.custom-select__menu button::after {
  position: absolute;
  top: 50%;
  right: .9rem;
  width: .35rem;
  height: .35rem;
  content: "";
  opacity: 0;
  border-radius: 50%;
  transform: translateY(-50%) scale(.4);
  background: var(--cyan-light);
  box-shadow: 0 0 10px rgba(6, 182, 212, .55);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.custom-select__menu button:hover,
.custom-select__menu button:focus-visible,
.custom-select__menu button.is-selected {
  padding-left: 1.05rem;
  border-color: rgba(139, 92, 246, .18);
  outline: 0;
  background: rgba(139, 92, 246, .08);
  color: #fff;
}

.custom-select__menu button.is-selected::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.custom-select.is-invalid .custom-select__trigger {
  color: #fda4af;
}

.custom-select.is-invalid .custom-select__trigger::after {
  content: "Select one";
  margin-left: auto;
  color: #fb7185;
  font-family: var(--mono);
  font-size: .48rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.form-field--message {
  align-items: start;
}

.form-field--message textarea {
  min-height: 5.5rem;
  overflow: hidden;
  line-height: 1.7;
}

.form-submit {
  width: 100%;
  margin-top: 1.8rem;
}

.form-submit span {
  width: 100%;
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip-path: inset(50%) !important;
}

.form-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.form-submit.is-submitting span::after {
  width: .65rem;
  height: .65rem;
  display: inline-block;
  margin-left: .55rem;
  content: "";
  border: 1px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -.08rem;
  animation: form-spinner .7s linear infinite;
}

@keyframes form-spinner {
  to { transform: rotate(360deg); }
}

.form-status {
  min-height: 1rem;
  margin: .9rem 0 0;
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .03em;
  line-height: 1.5;
  text-align: center;
}

.form-status.is-pending {
  color: #8a8a93;
}

.form-status.is-success {
  color: #65d5ad;
}

.form-status.is-error {
  color: #fb8d9d;
}

.form-note {
  margin: .35rem 0 0;
  color: #56565e;
  font-size: .58rem;
  text-align: center;
}

.ticker--contact {
  margin-top: 4rem;
}

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 21rem;
  }

  .feature-card__icon {
    margin-bottom: 4rem;
  }

  .case-study-card,
  .case-study-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .case-study-card:nth-child(even) .case-study-card__media {
    order: 0;
  }

  .case-study-card__media,
  .case-study-card__media img {
    min-height: min(64vw, 34rem);
  }

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

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1.7fr repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .ambient {
    background: #030303;
  }

  .orb--violet {
    top: -8rem;
    width: 28rem;
    height: 28rem;
    margin-left: -14rem;
    opacity: .62;
    background: rgba(139, 92, 246, .18);
    filter: blur(100px);
  }

  .orb--cyan,
  .orb--small {
    opacity: .35;
  }

  .hero::before {
    top: 1rem;
    width: 100%;
    height: 28rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, .08), transparent 68%);
  }

  .nav-shell {
    top: auto;
    bottom: max(.8rem, env(safe-area-inset-bottom));
    width: auto;
  }

  .nav-pill {
    min-height: 0;
    display: block;
    padding: .38rem;
    border-radius: 999px;
  }

  .brand,
  .nav-cta {
    display: none;
  }

  .nav-links {
    position: static;
    visibility: visible;
    display: flex;
    gap: .32rem;
    padding: 0;
    border: 0;
    opacity: 1;
    transform: none;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav-link {
    width: 3.15rem;
    height: 3.15rem;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .035);
    border-radius: 50%;
    background: rgba(255, 255, 255, .018);
    color: #6f6f78;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link span {
    display: none;
  }

  .nav-link svg {
    display: block;
    transition: transform .45s var(--ease);
  }

  .nav-link:hover,
  body[data-page="home"] .nav-link[data-link="home"],
  body[data-page="gallery"] .nav-link[data-link="gallery"],
  body[data-page="case-study"] .nav-link[data-link="gallery"],
  body[data-page="resources"] .nav-link[data-link="resources"],
  body[data-page="contact"] .nav-link[data-link="contact"] {
    border-color: rgba(139, 92, 246, .35);
    background:
      radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .14), transparent 35%),
      linear-gradient(135deg, rgba(139, 92, 246, .3), rgba(6, 182, 212, .14));
    color: #fff;
    box-shadow: 0 0 22px -8px rgba(139, 92, 246, .9), inset 0 0 18px rgba(139, 92, 246, .08);
  }

  .nav-link:hover svg,
  body[data-page="home"] .nav-link[data-link="home"] svg,
  body[data-page="gallery"] .nav-link[data-link="gallery"] svg,
  body[data-page="case-study"] .nav-link[data-link="gallery"] svg,
  body[data-page="resources"] .nav-link[data-link="resources"] svg,
  body[data-page="contact"] .nav-link[data-link="contact"] svg {
    transform: scale(1.08);
  }

  .hero {
    padding-top: 8rem;
  }

  .hero__title,
  .page-hero h1 {
    font-size: clamp(4rem, 17vw, 6.5rem);
  }

  .hero__copy,
  .page-hero > p {
    max-width: 31rem;
    font-size: .88rem;
    line-height: 1.75;
  }

  .hero__coordinates {
    display: none;
  }

  .section-heading,
  .section-heading--compact {
    grid-template-columns: 1fr;
    align-items: start;
    justify-items: center;
    gap: 1.5rem;
    text-align: center;
  }

  .section-heading--compact .text-link {
    justify-self: center;
  }

  .section-heading > p {
    max-width: 32rem;
    margin-inline: auto;
  }

  .section-heading__aside {
    justify-items: center;
    text-align: center;
  }

  .section-heading__aside > p {
    max-width: 32rem;
    margin-inline: auto;
  }

  .about__panel {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2rem;
    text-align: center;
  }

  .about__content > p {
    max-width: 34rem;
  }

  .feature-card {
    text-align: center;
  }

  .feature-card__icon {
    margin-right: auto;
    margin-left: auto;
  }

  .feature-card p {
    margin-inline: auto;
  }

  .case-study-card__content {
    text-align: center;
  }

  .case-study-card__facts {
    text-align: left;
  }

  .case-study-card__link {
    align-self: center;
  }

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

  .motion-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .motion-card--landscape {
    grid-column: span 2;
  }

  .skill-window__body {
    grid-template-columns: 1fr;
  }

  .skill-group + .skill-group {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .gallery-toolbar {
    align-items: flex-start;
  }

  .filter-list {
    justify-content: center;
  }

  .gallery-toolbar__hint {
    display: none;
  }

  .repo-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .repo-filters {
    justify-content: center;
  }

  .repo-toolbar > a {
    align-self: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer__brand {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
  }

  .footer__brand p {
    margin-right: auto;
    margin-left: auto;
  }

  .footer__column {
    align-items: center;
  }

  .footer__column:last-child {
    display: flex;
  }

  .footer__bottom {
    align-items: center;
    flex-direction: column;
    gap: .8rem;
    text-align: center;
  }

  .footer {
    padding-bottom: 7rem;
  }
}

@media (max-width: 540px) {
  .nav-shell {
    width: auto;
  }

  .hero {
    min-height: 78svh;
    place-items: start center;
    padding: 3.75rem 1rem 4rem;
  }

  .scroll-cue {
    bottom: .55rem;
  }

  .eyebrow {
    font-size: .52rem;
    letter-spacing: .11em;
  }

  .hero__title,
  .page-hero h1 {
    margin-top: 1.2rem;
    font-size: clamp(3.6rem, 18vw, 5rem);
    line-height: .87;
  }

  .hero__actions {
    flex-direction: column;
    gap: 1.3rem;
  }

  .metric {
    padding: 0 1.7rem;
  }

  .section,
  .gallery-section,
  .contact-section {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .section-heading h2,
  .contact-aside h2 {
    font-size: 3.2rem;
  }

  .about__panel {
    padding: 2rem 1.25rem;
    border-radius: 1rem;
  }

  .about__heading h2 {
    font-size: 3.2rem;
  }

  .about__facts {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    min-height: 20rem;
    padding: 1.6rem;
  }

  .feature-card__icon {
    margin-bottom: 4.5rem;
  }

  .feature-card__number {
    top: 1.9rem;
    right: 1.6rem;
  }

  .feature-card__arrow {
    right: 1.6rem;
    bottom: 1.6rem;
  }

  .case-study-card {
    min-height: 0;
    border-radius: 1rem;
  }

  .case-study-card__media,
  .case-study-card__media img {
    min-height: 68vw;
    max-height: 27rem;
  }

  .case-study-card__content {
    padding: 1.6rem 1.25rem 1.8rem;
  }

  .case-study-card__heading h3 {
    font-size: 3rem;
  }

  .case-study-card__facts {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .case-study-card__story p {
    max-width: 32rem;
    margin-right: auto;
    margin-left: auto;
  }

  .skill-group {
    text-align: center;
  }

  .skill-group__heading {
    justify-content: center;
  }

  .skill-item {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: .7rem;
    padding: .9rem 0;
  }

  .skill-item > div {
    align-items: center;
  }

  .skill-window__footer {
    align-items: center;
    flex-direction: column;
    gap: .55rem;
    text-align: center;
  }

  .code-window__toolbar {
    grid-template-columns: 1fr auto;
  }

  .code-window__toolbar > span {
    display: none;
  }

  .skill-window__toolbar {
    grid-template-columns: 1fr auto;
  }

  .skill-window__toolbar > span:not(.skill-window__status) {
    display: none;
  }

  .skill-group {
    padding: 1.25rem;
  }

  .skill-group__heading small {
    display: none;
  }

  .skill-item {
    min-height: 4.3rem;
  }

  .skill-item small {
    max-width: 11rem;
  }

  .skill-signal i {
    width: .7rem;
  }

  .closing {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .closing h2 {
    font-size: 3.7rem;
  }

  .page-hero {
    min-height: 62svh;
    padding: 4.25rem 1rem 3rem;
  }

  .page-hero__index {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }

  .page-hero__index span {
    font-size: 1.25rem;
  }

  .gallery-section {
    padding-top: 3rem;
  }

  .motion-portfolio,
  .code-portfolio {
    padding-top: 3rem;
  }

  .gallery-toolbar {
    position: static;
    padding: .5rem;
    border-radius: .8rem;
  }

  .filter-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .filter-button {
    padding: .65rem .5rem;
  }

  .portfolio-grid {
    gap: .5rem;
  }

  .motion-toolbar {
    gap: .55rem;
    padding: .85rem;
    border-radius: .8rem;
    text-align: left;
  }

  .motion-toolbar span:last-child {
    line-height: 1.55;
  }

  .motion-grid {
    gap: .5rem;
  }

  .motion-card {
    border-radius: .7rem;
  }

  .motion-card__play {
    width: 3rem;
    height: 3rem;
  }

  .motion-card__meta {
    right: .7rem;
    bottom: .65rem;
    left: .7rem;
  }

  .motion-card__meta strong {
    font-size: 1rem;
  }

  .motion-card__meta time {
    font-size: .4rem;
  }

  .motion-card--portrait .motion-card__meta small,
  .motion-card--portrait .motion-card__meta time {
    display: none;
  }

  .repo-grid {
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .repo-toolbar {
    padding: .5rem;
    border-radius: .8rem;
  }

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

  .repo-filter {
    padding: .7rem .45rem;
  }

  .repo-toolbar > a {
    display: none;
  }

  .repo-card {
    min-height: 15.5rem;
    padding: 1.35rem;
    text-align: left;
  }

  .pagination {
    gap: .25rem;
    margin-top: 1.8rem;
  }

  .pagination__button {
    width: 2rem;
    height: 2rem;
    border-radius: .55rem;
    font-size: .5rem;
  }

  .pagination__button--arrow {
    border-radius: 50%;
  }

  .pagination__ellipsis {
    width: .7rem;
  }

  .portfolio-card {
    border-radius: .55rem;
  }

  .portfolio-card__meta {
    display: none;
  }

  .lightbox {
    grid-template-columns: 3rem 1fr 3rem;
  }

  .lightbox__figure {
    max-width: calc(100vw - 1.5rem);
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .lightbox__nav {
    z-index: 4;
    width: 2.5rem;
    height: 2.5rem;
    grid-row: 1;
    background: rgba(5, 5, 5, .75);
  }

  .lightbox__nav--prev {
    grid-column: 1;
  }

  .lightbox__nav--next {
    grid-column: 3;
  }

  .lightbox__close {
    top: .8rem;
    right: .8rem;
    width: 2.6rem;
    height: 2.6rem;
  }

  .lightbox__caption {
    grid-template-columns: 1fr auto;
    gap: .55rem;
    padding-inline: .25rem;
  }

  .lightbox__share {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .video-lightbox {
    padding: .55rem;
  }

  .video-player {
    max-height: calc(100svh - 1.1rem);
    border-radius: .85rem;
  }

  .video-player__stage {
    min-height: 10rem;
  }

  .video-player__media {
    max-height: 66svh;
  }

  .video-player__controls {
    grid-template-columns: 2.1rem auto minmax(0, 1fr) 2.1rem 4.5rem 2.1rem;
    grid-template-areas:
      "current progress progress progress progress duration"
      "play . . mute volume fullscreen";
    gap: .55rem;
    padding: .8rem;
  }

  .video-control--play {
    grid-area: play;
  }

  .video-player__current {
    grid-area: current;
  }

  .video-range--progress {
    width: 100%;
    grid-area: progress;
  }

  .video-player__duration {
    grid-area: duration;
  }

  .video-control--mute {
    grid-area: mute;
  }

  .video-range--volume {
    width: 100%;
    grid-area: volume;
  }

  .video-control--fullscreen {
    grid-area: fullscreen;
  }

  .video-player__caption {
    padding: .75rem .85rem .85rem;
  }

  .video-player__caption strong {
    font-size: 1.2rem;
  }

  .video-player__center-play {
    width: 3.8rem;
    height: 3.8rem;
  }

  .video-player__nav {
    top: auto;
    bottom: .8rem;
    width: 2.8rem;
    height: 2.8rem;
    transform: none;
  }

  .video-player__nav--prev {
    left: .8rem;
  }

  .video-player__nav--next {
    right: .8rem;
  }

  .video-player__nav:hover,
  .video-player__nav:focus-visible {
    transform: scale(1.05);
  }

  .video-player__caption-actions {
    gap: .65rem;
  }

  .video-player__share {
    padding: .45rem .58rem;
  }

  .video-lightbox__close {
    top: .8rem;
    right: .8rem;
    width: 2.6rem;
    height: 2.6rem;
  }

  .contact-aside,
  .contact-form {
    padding: 1.4rem;
    border-radius: 1rem;
  }

  .contact-aside {
    text-align: center;
  }

  .contact-aside > p {
    margin-right: auto;
    margin-left: auto;
  }

  .contact-channel {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: .4rem;
    text-align: center;
  }

  .contact-channel strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-channel i {
    display: none;
  }

  .availability-card {
    align-items: center;
    text-align: center;
  }

  .form-heading small {
    display: none;
  }

  .form-field {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: .75rem;
    text-align: center;
  }

  .form-field input,
  .form-field textarea {
    text-align: center;
  }

  .custom-select__trigger {
    justify-content: center;
    text-align: center;
  }

  .custom-select__trigger i {
    position: absolute;
    right: .25rem;
  }

  .footer {
    padding: 4rem 1rem 7rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 1rem;
    padding-bottom: 3.5rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    align-items: center;
    flex-direction: column;
    gap: .8rem;
    text-align: center;
  }
}

/* Resources archive */
.resources-hero {
  min-height: 78svh;
}

.status-dot--archived,
.system-status--archived i {
  background: #f0a95a;
  box-shadow: 0 0 12px rgba(240, 169, 90, .65);
}

.resources-section {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 3rem), 82rem);
  margin: 0 auto;
  padding: 2rem 0 9rem;
}

.resources-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.2rem;
  margin-bottom: 7rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(240, 169, 90, .2);
  border-radius: 1rem;
  background:
    linear-gradient(110deg, rgba(240, 169, 90, .08), transparent 48%),
    rgba(8, 8, 9, .8);
}

.resources-notice > span,
.resource-status {
  align-self: start;
  padding: .45rem .62rem;
  border: 1px solid rgba(240, 169, 90, .3);
  border-radius: 999px;
  background: rgba(240, 169, 90, .08);
  color: #f4bd7d;
  font-family: var(--mono);
  font-size: .44rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.resources-notice strong {
  display: block;
  margin-bottom: .35rem;
  color: #f1f1f3;
  font-size: .88rem;
  font-weight: 500;
}

.resources-notice p {
  max-width: 60rem;
  color: #898992;
  font-size: .72rem;
  line-height: 1.7;
}

.section-heading--resources {
  margin-bottom: 3rem;
}

.resource-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.resource-tool-grid + .section-heading--resources {
  margin-top: 7rem;
}

.resource-card--tool {
  min-height: 29rem;
  border: 1px solid rgba(34, 211, 238, .12);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 92% 4%, rgba(34, 211, 238, .11), transparent 35%),
    radial-gradient(circle at 10% 100%, rgba(139, 92, 246, .08), transparent 38%),
    rgba(6, 7, 9, .82);
}

.resource-card--tool:hover {
  background:
    radial-gradient(circle at 92% 4%, rgba(34, 211, 238, .17), transparent 40%),
    radial-gradient(circle at 10% 100%, rgba(139, 92, 246, .11), transparent 42%),
    rgba(7, 9, 11, .94);
}

.resource-status--active {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  border-color: rgba(16, 185, 129, .3);
  background: rgba(16, 185, 129, .08);
  color: #61dfb5;
}

.resource-status--active i {
  width: .32rem;
  height: .32rem;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, .8);
}

.resource-tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: auto;
  padding: 2rem 0 1.25rem;
}

.resource-tool-meta span {
  padding: .42rem .58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #85858e;
  font-family: var(--mono);
  font-size: .42rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.resource-use-icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  color: var(--cyan-light);
  transition: transform .3s var(--ease);
}

.resource-card > a:hover .resource-use-icon {
  transform: translate(.18rem, -.18rem);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.resource-card {
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 95% 0%, rgba(139, 92, 246, .065), transparent 32%),
    rgba(5, 5, 6, .72);
  transition: background .45s var(--ease), transform .45s var(--ease);
}

.resource-card:hover {
  background:
    radial-gradient(circle at 95% 0%, rgba(139, 92, 246, .12), transparent 38%),
    rgba(8, 8, 10, .9);
}

.resource-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3.4rem;
}

.resource-number,
.resource-card__category {
  color: #65656d;
  font-family: var(--mono);
  font-size: .48rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.resource-card h2 {
  margin-top: .6rem;
  color: #f3f3f5;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: .94;
}

.resource-card > p {
  max-width: 32rem;
  margin-top: 1rem;
  color: #8b8b94;
  font-size: .72rem;
  line-height: 1.75;
}

.resource-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: auto;
  padding: 2rem 0 1.25rem;
}

.resource-card dl div {
  display: grid;
  gap: .35rem;
  align-content: start;
}

.resource-card dt {
  color: #5d5d65;
  font-family: var(--mono);
  font-size: .42rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.resource-card dd {
  min-width: 0;
  min-height: 1.5rem;
  display: flex;
  align-items: center;
  margin: 0;
  color: #b8b8c0;
  font-size: .62rem;
}

.resource-rating {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  white-space: nowrap;
}

.resource-rating__stars {
  --rating: 0%;
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, .14);
  font-size: .72rem;
  line-height: 1;
  letter-spacing: .05em;
}

.resource-rating__stars::before {
  content: "★★★★★";
}

.resource-rating__stars::after {
  position: absolute;
  inset: 0;
  width: var(--rating);
  overflow: hidden;
  content: "★★★★★";
  color: #f0a95a;
  white-space: nowrap;
  filter: drop-shadow(0 0 5px rgba(240, 169, 90, .25));
}

.resource-rating small {
  color: #9d9da5;
  font-family: var(--mono);
  font-size: .43rem;
  line-height: 1;
}

.resource-rating--empty small {
  color: #686870;
}

.resource-card > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: #d4d4d9;
  font-size: .65rem;
  font-weight: 500;
  transition: color .3s var(--ease);
}

.resource-download-icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  color: var(--cyan-light);
  transition: transform .3s var(--ease);
}

.resource-card > a:hover {
  color: #fff;
}

.resource-card > a:hover .resource-download-icon {
  transform: translateY(.2rem);
}

.resources-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: #686870;
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.resources-source a {
  color: #b9b9c0;
}

.resources-source b {
  color: var(--cyan-light);
}

/* Detailed case studies */
.case-page {
  position: relative;
  z-index: 2;
}

.case-hero,
.case-overview,
.case-story,
.case-gallery-section,
.case-next {
  width: min(calc(100% - 3rem), 82rem);
  margin-inline: auto;
}

.case-hero {
  padding: 10rem 0 3rem;
}

.case-back {
  display: inline-flex;
  margin-bottom: 5rem;
  color: #787880;
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .3s var(--ease);
}

.case-back:hover {
  color: #fff;
}

.case-hero__heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}

.case-hero h1 {
  margin-top: .8rem;
  color: #f4f4f6;
  font-family: var(--serif);
  font-size: clamp(5rem, 11vw, 10.5rem);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.055em;
}

.case-hero__year {
  padding-bottom: .5rem;
  color: #676770;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .1em;
}

.case-hero__summary {
  max-width: 52rem;
  margin: 3rem 0 4rem auto;
  color: #a0a0a8;
  font-size: clamp(.9rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.case-hero__media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: #080809;
}

.case-hero__media img {
  width: 100%;
  max-height: 76svh;
  display: block;
  object-fit: contain;
  background: #030303;
}

.case-hero__media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  border-top: 1px solid var(--line);
  color: #66666e;
  font-family: var(--mono);
  font-size: .45rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-overview {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 6rem;
  padding: 9rem 0;
  border-bottom: 1px solid var(--line);
}

.case-overview h2,
.case-gallery-section .section-heading h2 {
  margin-top: 1rem;
  color: #f0f0f2;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6vw, 6rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.04em;
}

.case-overview h2 em,
.case-gallery-section .section-heading h2 em {
  color: var(--violet-light);
  font-weight: 400;
}

.case-facts {
  border-top: 1px solid var(--line);
}

.case-facts div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.case-facts dt {
  color: #62626a;
  font-family: var(--mono);
  font-size: .45rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-facts dd {
  color: #bdbdc4;
  font-size: .7rem;
  line-height: 1.6;
}

.case-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.case-story article,
.case-deliverables {
  min-height: 24rem;
  padding: 2.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-story article > span {
  color: #606068;
  font-family: var(--mono);
  font-size: .45rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.case-story article h2 {
  margin: 4rem 0 1rem;
  color: #ededf0;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
}

.case-story article p {
  max-width: 33rem;
  color: #85858e;
  font-size: .75rem;
  line-height: 1.85;
}

.case-story article:nth-child(3),
.case-deliverables {
  grid-column: span 1;
}

.case-deliverables {
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, .1), transparent 42%),
    rgba(7, 7, 8, .65);
}

.case-deliverables ol {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.case-deliverables li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.case-deliverables li span {
  color: var(--violet-light);
  font-family: var(--mono);
  font-size: .44rem;
}

.case-deliverables li strong {
  color: #bdbdc5;
  font-size: .68rem;
  font-weight: 400;
}

.case-gallery-section {
  padding: 9rem 0;
}

.case-gallery-section .section-heading {
  margin-bottom: 4rem;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}

.case-gallery__item {
  position: relative;
  min-height: 20rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .8rem;
  opacity: 0;
  transform: translateY(1rem);
  background: #080809;
  animation: case-gallery-in .65s var(--ease) var(--gallery-delay, 0ms) forwards;
}

@keyframes case-gallery-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-gallery__item:first-child {
  grid-column: 1 / -1;
}

.case-gallery__item img {
  width: 100%;
  height: 100%;
  max-height: 56rem;
  display: block;
  object-fit: contain;
  transition: transform .7s var(--ease), filter .7s var(--ease);
}

.case-gallery__item:hover img {
  transform: scale(1.018);
  filter: brightness(.8);
}

.case-next {
  padding: 0 0 9rem;
}

.case-next > span {
  display: block;
  margin-bottom: 1rem;
  color: #5e5e66;
  font-family: var(--mono);
  font-size: .46rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.case-next a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #f0f0f2;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 1;
  transition: color .35s var(--ease);
}

.case-next a small {
  align-self: start;
  color: #6f6f77;
  font-family: var(--mono);
  font-size: .45rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-next a b {
  color: var(--cyan-light);
  font-family: var(--sans);
  font-size: 1.2rem;
  transition: transform .35s var(--ease);
}

.case-next a:hover {
  color: var(--violet-light);
}

.case-next a:hover b {
  transform: translateX(.4rem);
}

.case-lightbox {
  position: fixed;
  z-index: 540;
  inset: 0;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) 4rem;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  visibility: hidden;
  opacity: 0;
  background: rgba(2, 2, 3, .96);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  transition: visibility 0s .45s, opacity .45s var(--ease);
}

.case-lightbox.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.case-lightbox figure {
  min-width: 0;
  max-height: calc(100svh - 4rem);
  display: grid;
  margin: 0;
}

.case-lightbox figure img {
  max-width: 100%;
  max-height: calc(100svh - 8rem);
  justify-self: center;
  object-fit: contain;
  opacity: 1;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.case-lightbox figure img.is-next {
  opacity: 0;
  transform: translateX(-1rem);
}

.case-lightbox figure img.is-prev {
  opacity: 0;
  transform: translateX(1rem);
}

.case-lightbox figcaption {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding-top: .75rem;
  color: #73737b;
  font-family: var(--mono);
  font-size: .47rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.case-lightbox__share {
  padding: .5rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: #92929a;
  font-family: var(--mono);
  font-size: .44rem;
  text-transform: uppercase;
}

.case-lightbox__nav,
.case-lightbox__close {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 8, 9, .72);
  color: #a9a9b0;
}

.case-lightbox__nav {
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.case-lightbox__nav:hover {
  border-color: rgba(139, 92, 246, .5);
  transform: scale(1.06);
}

.case-lightbox__close {
  position: absolute;
  z-index: 3;
  top: 1.2rem;
  right: 1.2rem;
}

.case-lightbox__close span {
  position: absolute;
  width: 1rem;
  height: 1px;
  transform: rotate(45deg);
  background: #fff;
}

.case-lightbox__close span:last-child {
  transform: rotate(-45deg);
}

.case-lightbox__watermark {
  position: absolute;
  z-index: 2;
  top: 1.5rem;
  left: 1.5rem;
  pointer-events: none;
}

.viewer-brand-tag {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  overflow: hidden;
  padding: .62rem .82rem .62rem .65rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .78rem;
  opacity: 0;
  transform: translate3d(-.8rem, .2rem, 0) scale(.98);
  background:
    radial-gradient(circle at 0 0, rgba(139, 92, 246, .2), transparent 48%),
    linear-gradient(135deg, rgba(12, 12, 16, .88), rgba(5, 7, 10, .72));
  color: rgba(255, 255, 255, .9);
  box-shadow:
    0 .85rem 2.5rem rgba(0, 0, 0, .34),
    inset 0 1px rgba(255, 255, 255, .035);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
  will-change: opacity, transform;
}

.viewer-brand-tag i {
  width: .16rem;
  height: 2.15rem;
  flex: 0 0 auto;
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--violet-light), var(--cyan-light));
  box-shadow:
    0 0 .8rem rgba(139, 92, 246, .5),
    0 0 1rem rgba(6, 182, 212, .2);
  transform: scaleY(.25);
  transform-origin: center;
}

.viewer-brand-tag span {
  display: grid;
  gap: .24rem;
  color: #fff;
  line-height: 1;
}

.viewer-brand-tag b {
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -.025em;
}

.viewer-brand-tag small {
  color: rgba(255, 255, 255, .52);
  font-family: var(--mono);
  font-size: clamp(.36rem, .5vw, .45rem);
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.viewer-brand-tag.is-branding {
  animation: viewer-brand-reveal 1s cubic-bezier(.16, 1, .3, 1) both;
}

.viewer-brand-tag.is-branding i {
  animation: viewer-brand-bar 1.05s .08s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes viewer-brand-reveal {
  0% {
    opacity: 0;
    transform: translate3d(-.8rem, .2rem, 0) scale(.98);
  }
  58% {
    opacity: .86;
    transform: translate3d(.08rem, 0, 0) scale(1);
  }
  100% {
    opacity: .76;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes viewer-brand-bar {
  0% {
    opacity: 0;
    transform: scaleY(.25);
  }
  65%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Consent-based analytics */
.analytics-consent {
  position: fixed;
  z-index: 700;
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(calc(100% - 2.5rem), 30rem);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.25rem;
  padding: 1.15rem;
  border: 1px solid rgba(139, 92, 246, .28);
  border-radius: 1rem;
  opacity: 0;
  transform: translateY(1rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, .16), transparent 40%),
    rgba(7, 7, 9, .94);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

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

.analytics-consent span {
  color: var(--violet-light);
  font-family: var(--mono);
  font-size: .44rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.analytics-consent p {
  margin-top: .5rem;
  color: #96969f;
  font-size: .64rem;
  line-height: 1.6;
}

.analytics-consent > div:last-child {
  display: flex;
  gap: .45rem;
}

.analytics-consent button {
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: #aaaab2;
  font-size: .55rem;
  white-space: nowrap;
}

.analytics-consent button.is-primary {
  border-color: rgba(139, 92, 246, .36);
  background: rgba(139, 92, 246, .14);
  color: #fff;
}

@media (max-width: 760px) {
  .resources-section,
  .case-hero,
  .case-overview,
  .case-story,
  .case-gallery-section,
  .case-next {
    width: min(calc(100% - 2rem), 82rem);
  }

  .resources-section {
    padding-bottom: 7rem;
  }

  .resources-notice {
    grid-template-columns: 1fr;
    margin-bottom: 5rem;
    text-align: left;
  }

  .resources-notice > span {
    justify-self: start;
  }

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

  .resource-tool-grid {
    grid-template-columns: 1fr;
  }

  .resource-tool-grid + .section-heading--resources {
    margin-top: 5rem;
  }

  .resource-card {
    min-height: 25rem;
    padding: 1.4rem;
  }

  .resource-card dl {
    gap: .35rem;
  }

  .resources-source {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-hero {
    padding-top: 5rem;
  }

  .case-back {
    margin-bottom: 3rem;
  }

  .case-hero__heading {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .case-hero h1 {
    font-size: clamp(4.2rem, 20vw, 7rem);
  }

  .case-hero__summary {
    margin: 2rem auto 3rem;
    text-align: center;
  }

  .case-hero__year {
    justify-self: center;
  }

  .case-overview {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 6rem 0;
    text-align: center;
  }

  .case-facts {
    text-align: left;
  }

  .case-story {
    grid-template-columns: 1fr;
  }

  .case-story article,
  .case-deliverables {
    min-height: 21rem;
    grid-column: 1;
    padding: 1.5rem;
  }

  .case-story article h2 {
    margin-top: 3rem;
  }

  .case-gallery-section {
    padding: 6rem 0;
  }

  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-gallery__item:first-child {
    grid-column: 1;
  }

  .case-gallery__item {
    min-height: 10rem;
  }

  .case-next a {
    grid-template-columns: 1fr auto;
  }

  .case-next a small {
    grid-column: 1 / -1;
  }

  .case-lightbox {
    grid-template-columns: 2.6rem minmax(0, 1fr) 2.6rem;
    gap: .35rem;
    padding: .6rem;
  }

  .case-lightbox__nav {
    width: 2.5rem;
    height: 2.5rem;
  }

  .case-lightbox figcaption {
    grid-template-columns: 1fr auto;
  }

  .case-lightbox__share {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .analytics-consent {
    right: 1rem;
    bottom: 6.4rem;
    width: calc(100% - 2rem);
    grid-template-columns: 1fr;
  }

  .analytics-consent > div:last-child {
    justify-content: stretch;
  }

  .analytics-consent button {
    flex: 1;
  }
}

@media (max-width: 1024px) {
  .testimonial-card {
    width: calc((100vw - 5rem) / 2);
  }
}

@media (max-width: 760px) {
  .testimonial-heading__aside {
    width: 100%;
    justify-items: center;
    text-align: center;
  }

  .testimonial-heading__aside p {
    margin-inline: auto;
  }

  .testimonial-add {
    justify-self: center;
  }

  .testimonial-card {
    width: min(78vw, 24rem);
    min-width: min(78vw, 24rem);
  }

  .testimonial-dialog {
    border-radius: 1.1rem;
  }
}

@media (max-width: 540px) {
  .lightbox__watermark,
  .case-lightbox__watermark {
    top: .75rem;
    left: .75rem;
  }

  .video-player__watermark {
    top: .65rem;
    left: .65rem;
  }

  .viewer-brand-tag {
    min-height: 2.8rem;
    gap: .58rem;
    padding: .52rem .65rem .52rem .55rem;
    border-radius: .65rem;
  }

  .viewer-brand-tag i {
    height: 1.8rem;
  }

  .testimonial-viewport {
    margin-right: -1rem;
    margin-left: -1rem;
  }

  .testimonial-card {
    width: 84vw;
    min-width: 84vw;
    min-height: 18rem;
  }

  .testimonial-modal {
    align-items: end;
    padding: .75rem;
  }

  .testimonial-dialog {
    width: 100%;
    max-height: calc(100svh - 1.5rem);
    padding: 1.4rem;
  }

  .testimonial-rating {
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .portfolio-card::before {
    opacity: .35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

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