:root {
  --bg: #07080b;
  --bg-soft: rgba(255, 255, 255, 0.04);
  --panel: rgba(13, 16, 22, 0.9);
  --panel-strong: rgba(12, 14, 20, 0.96);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.26);
  --text: #eef3f8;
  --muted: rgba(238, 243, 248, 0.74);
  --muted-soft: rgba(238, 243, 248, 0.48);
  --accent: #35a6ff;
  --accent-2: #aaf46f;
  --accent-soft: rgba(53, 166, 255, 0.16);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --display-font: "Inter", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body-font: "Inter", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --radius-xl: 2rem;
  --radius-lg: 1.5rem;
  --header-height: 4.75rem;
  --content-width: min(1200px, calc(100vw - 2.5rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at 12% 14%, rgba(53, 166, 255, 0.18), transparent 0 24rem),
    radial-gradient(circle at 82% 12%, rgba(170, 244, 111, 0.12), transparent 0 28rem),
    radial-gradient(circle at 60% 82%, rgba(255, 255, 255, 0.05), transparent 0 26rem),
    var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  text-rendering: optimizeLegibility;
}

html,
body {
  overscroll-behavior-x: none;
}

html.intro-pending,
html.intro-pending body {
  overflow: hidden;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

a,
button {
  color: inherit;
}

button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
}

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

main {
  position: relative;
  z-index: 1;
}

.page-shell {
  --pull-offset: 0px;
  min-height: 100vh;
  transition:
    opacity 1s var(--ease),
    transform 1.15s var(--ease),
    filter 1.15s var(--ease);
}

html.intro-pending .page-shell {
  opacity: 0;
  transform: scale(0.975);
  filter: blur(1.25rem);
  pointer-events: none;
}

html.intro-exit .page-shell {
  opacity: 1;
  transform: none;
  filter: none;
}

body.pull-refresh-active .page-shell,
body.pull-refresh-loading .page-shell {
  transform: translate3d(0, var(--pull-offset), 0);
}

.intro-loader {
  --intro-shift: -9vw;
  --intro-scale: 7.4;
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.42s var(--ease),
    visibility 0.42s var(--ease);
}

html.intro-pending .intro-loader {
  opacity: 1;
  visibility: visible;
}

.intro-loader.is-fading {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.pull-refresh {
  --pull-translate: -5rem;
  --pull-scale: 0.78;
  --pull-rotate: -90deg;
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 95;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, var(--pull-translate), 0);
  transition:
    opacity 0.22s ease,
    transform 0.3s var(--ease);
}

.pull-refresh__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-top: 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 15, 20, 0.86);
  box-shadow:
    0 1rem 2.5rem rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: scale(var(--pull-scale)) rotate(var(--pull-rotate));
  transition:
    transform 0.22s var(--ease),
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.pull-refresh__glyph {
  display: inline-block;
  font-size: 1.4rem;
  line-height: 1;
  color: rgba(238, 243, 248, 0.95);
  transform: translateY(-0.03rem);
}

body.pull-refresh-active .pull-refresh {
  opacity: 1;
}

body.pull-refresh-ready .pull-refresh__icon {
  border-color: rgba(170, 244, 111, 0.42);
  background: rgba(16, 22, 18, 0.92);
  box-shadow:
    0 1rem 2.5rem rgba(0, 0, 0, 0.28),
    0 0 0 0.35rem rgba(170, 244, 111, 0.08);
}

body.pull-refresh-dragging .page-shell,
body.pull-refresh-dragging .pull-refresh,
body.pull-refresh-dragging .pull-refresh__icon {
  transition: none;
}

body.pull-refresh-loading .pull-refresh {
  opacity: 1;
}

body.pull-refresh-loading .pull-refresh__icon {
  animation: pull-refresh-spin 0.75s linear infinite;
  border-color: rgba(170, 244, 111, 0.42);
  background: rgba(16, 22, 18, 0.94);
}

.intro-loader__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(53, 166, 255, 0.18), transparent 0 18rem),
    radial-gradient(circle at 83% 18%, rgba(170, 244, 111, 0.14), transparent 0 24rem),
    radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.07), transparent 0 24rem),
    var(--bg);
  transition: opacity 0.55s var(--ease);
}

html.intro-exit .intro-loader__veil {
  opacity: 0;
}

.intro-loader__word {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #f5fbff;
  font-family: "Bebas Neue", var(--display-font);
  font-size: clamp(4.8rem, 16vw, 16rem);
  line-height: 0.86;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 2.5rem rgba(53, 166, 255, 0.18);
  transform-origin: center center;
  transition:
    transform 1.28s cubic-bezier(0.2, 0.86, 0.2, 1),
    letter-spacing 1.28s cubic-bezier(0.2, 0.86, 0.2, 1),
    opacity 0.4s ease;
}

html.intro-exit .intro-loader__word {
  transform: translate3d(var(--intro-shift), 0, 0) scale(var(--intro-scale));
  letter-spacing: 0.18em;
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0 0.06rem, transparent 0.08rem),
    radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.1) 0 0.04rem, transparent 0.06rem),
    radial-gradient(circle at 45% 80%, rgba(255, 255, 255, 0.08) 0 0.05rem, transparent 0.08rem);
  background-size: 14rem 14rem, 12rem 12rem, 10rem 10rem;
  mix-blend-mode: soft-light;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  width: var(--content-width);
  height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.78), rgba(7, 8, 11, 0.14));
  z-index: -1;
}

.brand,
.menu-toggle,
.menu-close,
.modal__close,
.contact-link,
.menu-contact a,
.menu-link,
.button,
.work-card__button {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  line-height: 1;
  text-decoration: none;
}

.brand,
.menu-toggle,
.menu-close,
.modal__close {
  font-weight: 700;
}

.site-header__meta {
  margin: 0;
  justify-self: center;
  color: var(--muted-soft);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 35;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.42s var(--ease),
    visibility 0.42s var(--ease);
}

.menu-panel.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-panel__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(53, 166, 255, 0.15), transparent 24rem),
    radial-gradient(circle at 80% 10%, rgba(170, 244, 111, 0.09), transparent 26rem),
    rgba(6, 7, 10, 0.92);
  backdrop-filter: blur(22px);
}

.menu-panel__inner {
  position: relative;
  width: var(--content-width);
  height: 100%;
  margin: 0 auto;
  padding: 1.3rem 0 3rem;
  transform: translateY(2rem);
  transition: transform 0.42s var(--ease);
}

.menu-panel.is-open .menu-panel__inner {
  transform: translateY(0);
}

.menu-close {
  position: absolute;
  top: 1.65rem;
  right: 0;
  cursor: pointer;
}

.menu-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(19rem, 0.8fr);
  gap: 2rem;
  min-height: 100%;
  align-items: center;
}

.menu-panel__intro,
.menu-panel__card {
  padding-top: 2rem;
}

.menu-panel__title {
  max-width: 11ch;
  margin: 0.7rem 0 1rem;
  font-family: var(--display-font);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.menu-panel__copy,
.menu-preview__copy p,
.contact__copy,
.hero__body,
.section-copy,
.statement__aside p,
.about__paragraph,
.process-card p,
.project-modal__summary,
.channel-modal__content p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.menu-panel__nav {
  display: grid;
  gap: 1rem;
}

.menu-link {
  width: fit-content;
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.menu-panel__label,
.project-modal__label {
  margin: 0 0 0.85rem;
  color: var(--muted-soft);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-preview {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.menu-preview__art {
  min-height: 17rem;
  border-radius: calc(var(--radius-lg) - 0.5rem);
  background:
    linear-gradient(180deg, rgba(6, 7, 10, 0.24), rgba(6, 7, 10, 0.58)),
    url("./assets/images/lake-view.jpeg") center/cover;
  position: relative;
  overflow: hidden;
}

.menu-preview__art::after {
  content: "";
  position: absolute;
  inset: auto 1.5rem 1.5rem;
  height: 2.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(16px);
}

.menu-preview__copy {
  padding-top: 1rem;
}

.menu-preview__title {
  margin: 0 0 0.4rem;
  font-family: var(--display-font);
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

.menu-contact {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.menu-contact a {
  width: fit-content;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 10, 0.78);
  backdrop-filter: blur(18px);
}

.modal__panel {
  position: relative;
  width: min(1080px, calc(100vw - 2rem));
  margin: 6rem auto 2rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-xl) + 0.4rem);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.modal__close {
  display: inline-flex;
  margin-left: auto;
  justify-content: flex-end;
  cursor: pointer;
}

.channel-modal__grid,
.project-modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 1.2rem;
  padding-top: 0.8rem;
}

.channel-modal__visual,
.project-modal__visual {
  position: relative;
  min-height: 34rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.channel-modal__visual {
  background:
    radial-gradient(circle at 20% 20%, rgba(53, 166, 255, 0.16), transparent 0 12rem),
    linear-gradient(145deg, #141821, #0b0d12 55%, #12161f);
}

.channel-modal__visual img,
.project-modal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-modal__visual::after,
.project-modal__visual::after {
  content: "";
  position: absolute;
  inset: auto 1.5rem 1.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(18px);
}

.channel-modal__content h3,
.project-modal__content h3 {
  margin: 0.8rem 0 1rem;
  font-family: var(--display-font);
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.channel-modal__list,
.project-modal__tags,
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.channel-modal__list span,
.project-modal__tags span,
.work-card__badges span,
.about-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.channel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.project-modal__visual {
  background: linear-gradient(145deg, #161922, #0d0f16 55%, #101923);
}

.project-modal__visual::before {
  content: "";
  position: absolute;
  width: 16rem;
  height: 16rem;
  top: 2rem;
  right: -2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 166, 255, 0.35), transparent 70%);
  filter: blur(8px);
}

.project-modal__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.project-modal__meta p:last-child {
  margin: 0;
  color: var(--text);
}

.section {
  width: var(--content-width);
  margin: 0 auto;
  padding: 7rem 0;
}

.section--dense {
  padding: 2rem 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 0.95fr);
  gap: 2rem;
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 4rem);
  align-items: center;
}

.eyebrow {
  margin: 0;
  color: var(--muted-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.hero__eyebrow-stack {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.hero__small {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.55rem);
}

.hero__title,
.contact__title {
  display: grid;
  margin: 1rem 0 1.5rem;
  font-family: var(--display-font);
  font-size: clamp(4rem, 10vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.hero__line {
  display: block;
  line-height: 0.88;
}

.hero__line--accent {
  color: var(--accent);
}

.hero__body {
  max-width: 34rem;
  margin: 0 0 1.6rem;
}

.hero__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.button,
.contact-link,
.work-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}

.button--ghost,
.work-card__button {
  background: rgba(255, 255, 255, 0.06);
}

.button--link {
  background: transparent;
}

.hero__stage {
  position: relative;
  min-height: 44rem;
  isolation: isolate;
  overflow: visible;
  contain: layout;
}

.hero-card,
.work-card__surface {
  box-shadow: var(--shadow);
}

.hero-card {
  --hover-shift-x: 0px;
  --hover-shift-y: 0px;
  --hover-rotate-x: 0deg;
  --hover-rotate-y: 0deg;
  position: absolute;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  will-change: transform, box-shadow, border-color;
  backface-visibility: hidden;
  transform: perspective(1400px) translate3d(var(--hover-shift-x), var(--hover-shift-y), 0)
    rotateX(var(--hover-rotate-x)) rotateY(var(--hover-rotate-y));
  transform-style: preserve-3d;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.35s ease,
    background-color 0.35s ease;
}

.hero-card--portrait {
  top: 0;
  left: 2rem;
  width: min(26rem, 46%);
  min-height: 34rem;
}

.hero-card--wide {
  right: 0;
  bottom: 2.5rem;
  width: min(31rem, 60%);
}

.hero-card--stat {
  top: 18rem;
  right: 13rem;
  width: 12rem;
  min-height: 12rem;
  padding: 1.4rem;
  display: grid;
  align-content: space-between;
  background: rgba(12, 14, 20, 0.92);
}

.hero-card__surface {
  min-height: inherit;
  position: relative;
  transition:
    transform 0.55s var(--ease),
    filter 0.55s var(--ease);
  transform-origin: center;
}

.hero-card__surface--portrait {
  min-height: 31rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(53, 166, 255, 0.08), transparent 0 8rem),
    linear-gradient(155deg, #12161f, #0f1015 52%, #11141d);
}

.hero-card--portrait .hero-card__surface {
  min-height: 34rem;
}

.hero-card--portrait .hero-card__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.04), rgba(7, 8, 11, 0.08) 55%, rgba(7, 8, 11, 0.72));
  pointer-events: none;
}

.hero-card__surface--portrait::after {
  content: "";
  position: absolute;
  inset: auto 1.5rem 1.2rem;
  height: 2.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(18px);
}

.hero-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition:
    transform 0.65s var(--ease),
    filter 0.65s var(--ease);
}

.hero-card--portrait > .hero-card__label {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.1rem;
  z-index: 2;
  max-width: 16rem;
  pointer-events: none;
}

.hero-card__surface--wide {
  min-height: 16rem;
  background:
    radial-gradient(circle at 70% 30%, rgba(53, 166, 255, 0.24), transparent 0 10rem),
    linear-gradient(145deg, #12151d, #0b0c10 55%, #0e1917);
}

.hero-card__surface--wide::before {
  content: "";
  position: absolute;
  inset: 2rem 2rem auto;
  height: 2.3rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent);
}

.hero-card__surface--wide::after {
  content: "";
  position: absolute;
  width: 6.4rem;
  height: 6.4rem;
  right: 1.6rem;
  bottom: 1.8rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-card__copy {
  padding: 1.1rem 1.3rem 1.3rem;
}

.hero-card__label,
.work-card__index,
.work-card__role,
.work-card__metric,
.process-card__step {
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-card__title {
  margin: 0.55rem 0 0;
  max-width: 19rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-card__stat {
  margin: 0;
  font-family: var(--display-font);
  font-size: 4.4rem;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
  will-change: transform;
  transform: translateZ(0);
}

.hero-orb--one {
  top: 5rem;
  right: 6rem;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(53, 166, 255, 0.45), transparent 70%);
}

.hero-orb--two {
  bottom: 1rem;
  left: 0;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, rgba(170, 244, 111, 0.28), transparent 70%);
}

.statement__grid,
.section-heading,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.65fr);
  gap: 2rem;
  align-items: end;
}

.statement__lead {
  margin: 0;
  max-width: 15ch;
  font-family: var(--display-font);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

.statement__aside {
  padding-bottom: 0.4rem;
}

.section-title {
  max-width: 12ch;
  margin: 0.7rem 0 0;
  font-family: var(--display-font);
  font-size: clamp(2.7rem, 5.4vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.section-copy {
  max-width: 32rem;
  margin: 0;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.work-card {
  --card-offset-y: 0px;
  --hover-shift-x: 0px;
  --hover-shift-y: 0px;
  --hover-rotate-x: 0deg;
  --hover-rotate-y: 0deg;
  display: grid;
  gap: 1rem;
  min-height: 31rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-xl) + 0.2rem);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
  will-change: transform, box-shadow, border-color;
  transform: perspective(1400px)
    translate3d(var(--hover-shift-x), calc(var(--card-offset-y) + var(--hover-shift-y)), 0)
    rotateX(var(--hover-rotate-x)) rotateY(var(--hover-rotate-y));
  transform-style: preserve-3d;
  transition:
    opacity 0.9s var(--ease),
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.35s ease,
    background-color 0.35s ease;
}

.work-card:nth-child(3n + 1) {
  --card-offset-y: 1.5rem;
}

.work-card__surface {
  position: relative;
  min-height: 19rem;
  border-radius: calc(var(--radius-xl) - 0.4rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition:
    transform 0.55s var(--ease),
    filter 0.55s var(--ease),
    border-color 0.35s ease;
  transform-origin: center;
}

.work-card__surface::before {
  content: "";
  position: absolute;
  inset: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.4rem;
}

.work-card__surface::after {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  right: -1.5rem;
  top: -1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 166, 255, 0.28), transparent 70%);
}

.work-card__glow {
  position: absolute;
  inset: auto 2rem 1.5rem;
  height: 2.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(18px);
}

.work-card__badges {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.work-card__topline,
.work-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.work-card__title {
  margin: 0.35rem 0 0.4rem;
  max-width: 14ch;
  font-family: var(--display-font);
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.05em;
  transition:
    transform 0.45s var(--ease),
    color 0.35s ease;
}

.work-card__summary {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.7;
}

.marquee {
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: marquee-left 30s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.marquee__track--reverse {
  animation-direction: reverse;
}

.marquee-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.stack-section {
  width: min(1520px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 7rem 0 5rem;
  min-height: 100vh;
}

.stack-section__inner {
  display: grid;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.stack-section__meta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--muted-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

.stack-section__number,
.stack-section__label {
  font-weight: 600;
}

.stack-section__rule {
  width: 2.6rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.stack-section__dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 1.2rem rgba(255, 255, 255, 0.18);
  animation: stack-dot-pulse 2.8s ease-in-out infinite;
}

.stack-section__title {
  margin: 0;
  font-family: "Bebas Neue", var(--display-font);
  font-size: clamp(5.8rem, 16vw, 12.6rem);
  line-height: 0.82;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 241, 233, 0.98);
}

.stack-wall {
  position: relative;
  min-height: clamp(21rem, 42vw, 33rem);
  padding: clamp(1.1rem, 2vw, 1.6rem) 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.01);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stack-wall::before,
.stack-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.stack-wall::before {
  background:
    linear-gradient(90deg, rgba(7, 8, 11, 0.96), transparent 9%, transparent 91%, rgba(7, 8, 11, 0.96)),
    linear-gradient(180deg, rgba(7, 8, 11, 0.48), transparent 14%, transparent 86%, rgba(7, 8, 11, 0.48));
}

.stack-row {
  position: relative;
  display: flex;
  overflow: hidden;
}

.stack-wall__layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: inherit;
  overflow: hidden;
}

.stack-wall__layer--blur {
  filter: blur(12px) brightness(0.9) saturate(0.9);
  transform: scale(1.012);
  opacity: 0.9;
}

.stack-wall__layer--focus {
  --radius: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
  mask-image: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(0, 0, 0, 1) 0,
    rgba(0, 0, 0, 1) calc(var(--radius, 0) * 1px),
    rgba(0, 0, 0, 0.7) calc(var(--radius, 0) * 1px + 16px),
    rgba(0, 0, 0, 0) calc(var(--radius, 0) * 1px + 58px)
  );
  mask-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(0, 0, 0, 1) 0,
    rgba(0, 0, 0, 1) calc(var(--radius, 0) * 1px),
    rgba(0, 0, 0, 0.7) calc(var(--radius, 0) * 1px + 16px),
    rgba(0, 0, 0, 0) calc(var(--radius, 0) * 1px + 58px)
  );
  -webkit-mask-repeat: no-repeat;
}

.stack-wall.is-focused .stack-wall__layer--focus {
  opacity: 1;
}

.stack-row__track {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: clamp(1rem, 3vw, 4rem);
  padding-right: clamp(1rem, 3vw, 4rem);
  animation: marquee-left var(--duration, 32s) linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.stack-row[data-direction="reverse"] .stack-row__track {
  animation-name: marquee-right;
}

.stack-word {
  font-family: "Bebas Neue", var(--display-font);
  font-size: clamp(3.4rem, 8.4vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(238, 243, 248, 0.22);
  text-shadow:
    0 0 0.14em rgba(255, 255, 255, 0.07),
    0 0 0.42em rgba(255, 255, 255, 0.05);
  user-select: none;
  white-space: nowrap;
}

.stack-word.is-strong {
  color: rgba(238, 243, 248, 0.88);
  text-shadow:
    0 0 0.14em rgba(255, 255, 255, 0.18),
    0 0 0.52em rgba(255, 255, 255, 0.14);
}

.stack-word.is-muted {
  color: rgba(238, 243, 248, 0.1);
}

.stack-wall__layer--focus .stack-word {
  color: rgba(238, 243, 248, 0.38);
  text-shadow:
    0 0 0.16em rgba(255, 255, 255, 0.12),
    0 0 0.7em rgba(255, 255, 255, 0.1);
}

.stack-wall__layer--focus .stack-word.is-strong {
  color: rgba(238, 243, 248, 0.96);
  text-shadow:
    0 0 0.16em rgba(255, 255, 255, 0.22),
    0 0 0.7em rgba(255, 255, 255, 0.18);
}

.stack-wall__layer--focus .stack-word.is-muted {
  color: rgba(238, 243, 248, 0.12);
}

.about {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.about__sticky {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.about__metrics {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.metric-card,
.process-card {
  --hover-shift-x: 0px;
  --hover-shift-y: 0px;
  --hover-rotate-x: 0deg;
  --hover-rotate-y: 0deg;
  padding: 1.2rem 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.16);
  will-change: transform, box-shadow, border-color;
  transform: perspective(1400px) translate3d(var(--hover-shift-x), var(--hover-shift-y), 0)
    rotateX(var(--hover-rotate-x)) rotateY(var(--hover-rotate-y));
  transform-style: preserve-3d;
  transition:
    opacity 0.9s var(--ease),
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.35s ease,
    background-color 0.35s ease;
}

.metric-card__media {
  margin: -1.2rem -1.2rem 1rem;
  height: 10.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.metric-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.65s var(--ease),
    filter 0.65s var(--ease);
}

.metric-card__value {
  margin: 0;
  font-family: var(--display-font);
  font-size: 2.4rem;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--accent);
  transition:
    transform 0.45s var(--ease),
    color 0.35s ease;
}

.metric-card__label {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.about__flow {
  display: grid;
  gap: 1.4rem;
  padding-top: 4rem;
}

.about__paragraph {
  margin: 0;
  max-width: 40rem;
}

.about__paragraph:first-child {
  max-width: 15ch;
  font-family: var(--display-font);
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: var(--text);
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

.about-gallery {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.about-gallery__item {
  --hover-shift-x: 0px;
  --hover-shift-y: 0px;
  --hover-rotate-x: 0deg;
  --hover-rotate-y: 0deg;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  will-change: transform, box-shadow, border-color;
  transform: perspective(1400px) translate3d(var(--hover-shift-x), var(--hover-shift-y), 0)
    rotateX(var(--hover-rotate-x)) rotateY(var(--hover-rotate-y));
  transform-style: preserve-3d;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.35s ease,
    background-color 0.35s ease;
}

.about-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.65s var(--ease),
    filter 0.65s var(--ease);
}

.about-gallery__item--portrait {
  min-height: 32rem;
}

.about-gallery__item--landscape {
  min-height: 20rem;
  align-self: end;
}

.skills {
  position: relative;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.process-card h3 {
  margin: 0.8rem 0 0.6rem;
  font-family: var(--display-font);
  font-size: 2rem;
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.04em;
  transition:
    transform 0.45s var(--ease),
    color 0.35s ease;
}

.process-card p:last-child {
  margin: 0;
}

.hero-card.is-hovered,
.work-card.is-hovered,
.metric-card.is-hovered,
.process-card.is-hovered,
.about-gallery__item.is-hovered {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.42);
}

.hero-card.is-hovered {
  background: rgba(255, 255, 255, 0.05);
}

.work-card.is-hovered,
.metric-card.is-hovered,
.process-card.is-hovered,
.about-gallery__item.is-hovered {
  background: rgba(255, 255, 255, 0.042);
}

.hero-card.is-hovered .hero-card__surface,
.work-card.is-hovered .work-card__surface {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.02);
}

.hero-card.is-hovered .hero-card__image,
.metric-card.is-hovered .metric-card__media img,
.about-gallery__item.is-hovered img {
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.03);
}

.work-card.is-hovered .work-card__title,
.metric-card.is-hovered .metric-card__value,
.process-card.is-hovered h3 {
  transform: translateY(-0.12rem);
}

.contact {
  align-items: center;
  min-height: 70vh;
}

.contact__title {
  margin-bottom: 1rem;
}

.contact__intro {
  max-width: 48rem;
}

.contact__actions {
  justify-content: flex-start;
  align-self: end;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: difference;
  transition: opacity 0.2s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translate3d(-6rem, -6rem, 0);
  filter:
    drop-shadow(0 0 0.22rem rgba(255, 255, 255, 0.22))
    drop-shadow(0 0 0.16rem rgba(0, 0, 0, 0.28));
}

.cursor--dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cursor--ring {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 0.3rem rgba(255, 255, 255, 0.08);
}

[data-reveal]:not(.work-card):not(.metric-card):not(.process-card),
.js-split,
.js-highlight {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  will-change: transform, opacity;
}

[data-reveal]:not(.work-card):not(.metric-card):not(.process-card).is-visible,
.js-split.is-visible,
.js-highlight.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.work-card[data-reveal],
.metric-card[data-reveal],
.process-card[data-reveal] {
  opacity: 0;
}

.work-card[data-reveal].is-visible,
.metric-card[data-reveal].is-visible,
.process-card[data-reveal].is-visible {
  opacity: 1;
}

[data-reveal="slide-down"] {
  transform: translateY(-1rem);
}

.js-split .char {
  will-change: transform, opacity;
}

.js-shuffle {
  position: relative;
}

.js-shuffle::after,
.menu-link::after,
.brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.38rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.js-shuffle:hover::after,
.menu-link:hover::after,
.brand:hover::after {
  transform: scaleX(1);
}

.interactive:hover,
.interactive:focus-visible,
.button:hover,
.button:focus-visible,
.menu-link:hover,
.menu-link:focus-visible,
.brand:hover,
.brand:focus-visible {
  transform: translateY(-0.12rem);
  border-color: var(--line-strong);
  outline: none;
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes stack-dot-pulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.55;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pull-refresh-spin {
  from {
    transform: scale(var(--pull-scale)) rotate(0deg);
  }

  to {
    transform: scale(var(--pull-scale)) rotate(360deg);
  }
}

@media (max-width: 1080px) {
  :root {
    --content-width: min(100vw - 1.5rem, 1000px);
  }

  .hero,
  .statement__grid,
  .section-heading,
  .contact,
  .about,
  .channel-modal__grid,
  .project-modal__grid,
  .menu-panel__grid {
    grid-template-columns: 1fr;
  }

  .site-header__meta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 2rem);
  }

  .hero__stage {
    min-height: 38rem;
    margin-top: 1.5rem;
  }

  .hero-card--portrait {
    left: 0;
  }

  .hero-card--wide {
    right: 0;
    width: min(31rem, 72%);
  }

  .hero-card--stat {
    right: 8rem;
  }

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

  .stack-section {
    width: var(--content-width);
    min-height: auto;
    padding: 6rem 0 4rem;
  }

  .work-card:nth-child(3n + 1) {
    --card-offset-y: 0px;
  }

  .about__sticky {
    position: static;
  }

  .about__flow {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 4.2rem;
    --content-width: calc(100vw - 1.25rem);
  }

  .site-header {
    gap: 0.5rem;
  }

  .site-header::before {
    inset: 0 -0.5rem;
  }

  .hero__title,
  .contact__title {
    font-size: clamp(3.2rem, 17vw, 5.2rem);
  }

  .hero__small {
    font-size: 1rem;
  }

  .stack-section {
    padding: 5.5rem 0 3.5rem;
  }

  .stack-section__meta {
    gap: 0.55rem;
    font-size: 0.72rem;
  }

  .stack-section__rule {
    width: 1.8rem;
  }

  .stack-section__title {
    font-size: clamp(4.9rem, 24vw, 8rem);
  }

  .stack-wall {
    min-height: 18rem;
  }

  .stack-word {
    font-size: clamp(2.4rem, 13vw, 5rem);
  }

  .hero__stage {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1rem;
  }

  .hero-card,
  .hero-orb {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: auto;
  }

  .hero-card--stat {
    width: min(70%, 14rem);
  }

  .hero-card__surface--portrait {
    min-height: 23rem;
  }

  .hero-card--portrait {
    min-height: 23rem;
  }

  .hero-card--portrait .hero-card__surface {
    min-height: 23rem;
  }

  .hero-card__surface--wide {
    min-height: 13rem;
  }

  .section {
    padding: 5.5rem 0;
  }

  .works__grid,
  .process__grid,
  .about-gallery {
    grid-template-columns: 1fr;
  }

  .work-card,
  .project-modal__visual,
  .channel-modal__visual {
    min-height: auto;
  }

  .work-card__surface {
    min-height: 16rem;
  }

  .menu-panel__inner {
    padding-top: 1rem;
  }

  .menu-close {
    top: 1.35rem;
  }

  .menu-panel__title {
    max-width: 10ch;
  }

  .menu-link {
    font-size: 2.2rem;
  }

  .modal__panel {
    margin-top: 5rem;
    padding: 1rem;
  }

  .project-modal__meta {
    grid-template-columns: 1fr;
  }

  .statement__lead,
  .about__paragraph:first-child {
    max-width: none;
  }

  .about-gallery__item--portrait,
  .about-gallery__item--landscape {
    min-height: 18rem;
  }
}

@media (hover: none), (pointer: coarse) {
  html,
  body {
    overscroll-behavior-y: contain;
  }

  .cursor {
    display: none;
  }

  body {
    cursor: auto;
  }
}

@media (hover: hover) and (pointer: fine) {
  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}

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

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

  [data-reveal],
  .js-split,
  .js-highlight,
  .js-split .char {
    opacity: 1 !important;
    transform: none !important;
  }

  .stack-row__track {
    animation: none !important;
  }

  .stack-wall__layer--focus {
    display: none;
  }

  .pull-refresh__icon {
    animation: none !important;
  }
}
