:root {
  --black: #030303;
  --ink: #f6f6f3;
  --soft: rgba(246, 246, 243, 0.68);
  --quiet: rgba(246, 246, 243, 0.42);
  --line: rgba(246, 246, 243, 0.16);
  --accent: #0a84ff;
  --surface: rgba(15, 15, 15, 0.42);
  --control-border: rgba(255, 255, 255, 0.22);
  --control-active: #fff;
  --control-active-text: #111;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --linear-ease: linear(
    0,
    0.068,
    0.19 2.7%,
    0.804 8.1%,
    1.037,
    1.199 13.2%,
    1.245,
    1.27 15.8%,
    1.274,
    1.272 17.4%,
    1.249 19.1%,
    0.996 28%,
    0.949,
    0.928 33.3%,
    0.926,
    0.933 36.8%,
    1.001 45.6%,
    1.013,
    1.019 50.8%,
    1.018 54.4%,
    1 63.1%,
    0.995 68%,
    1.001 85%,
    1
  );
  --gooey-color-1: #fff;
  --gooey-color-2: #f2f2f2;
  --gooey-color-3: #d9d9d9;
  --gooey-color-4: #ffffff;
}

@font-face {
  font-family: "Amsterdam Signature Local";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/amsterdam-signature.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--black);
  font-family: Switzer, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.theme-light {
  --black: #F9F9F9;
  --ink: #111111;
  --soft: rgba(17, 17, 17, 0.68);
  --quiet: rgba(17, 17, 17, 0.46);
  --line: rgba(17, 17, 17, 0.14);
  --surface: rgba(255, 255, 255, 0.5);
  --control-border: rgba(17, 17, 17, 0.2);
  --control-active: #111;
  --control-active-text: #fff;
  --gooey-color-1: #111;
  --gooey-color-2: #2c2c2c;
  --gooey-color-3: #555;
  --gooey-color-4: #000;
}

body.case-open .site-header {
  opacity: 0;
  pointer-events: none;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  padding: 18px clamp(18px, 3vw, 36px);
  color: var(--ink);
  pointer-events: none;
  transition: opacity 160ms ease;
}

.avatar-mark {
  width: 42px;
  height: 42px;
  display: block;
  overflow: hidden;
  border: 1px solid var(--control-border);
  border-radius: 50%;
  pointer-events: auto;
}

.avatar-mark img,
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-pill {
  justify-self: center;
  position: relative;
  width: min(330px, 62vw);
  padding: 5px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  transform: translate3d(0, 0, 0.01px);
}

.nav-pill ul {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(58px, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-pill li {
  position: relative;
  min-height: 32px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--soft);
  transition:
    color 300ms ease,
    box-shadow 300ms ease;
  box-shadow: 0 0 0.5px 1.5px transparent;
}

.nav-pill li::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--control-active);
  opacity: 0;
  transform: scale(0);
  transition: all 300ms ease;
}

.nav-pill li.active {
  color: var(--control-active-text);
  text-shadow: none;
}

.nav-pill li.active::after {
  opacity: 1;
  transform: scale(1);
}

.nav-pill li:focus-within {
  box-shadow: 0 0 0.5px 1.5px var(--control-active);
}

.nav-pill a {
  position: relative;
  z-index: 3;
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: inherit;
  font-size: 13px;
  text-transform: lowercase;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  transition: transform 220ms var(--motion-ease);
}

.nav-pill li:not(.active):hover {
  color: var(--ink);
}

.gooey-effect {
  position: absolute;
  z-index: 1;
  left: 5px;
  top: 5px;
  width: 0;
  height: 32px;
  pointer-events: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  opacity: 1;
  transition:
    left 600ms var(--linear-ease),
    top 600ms var(--linear-ease),
    width 600ms var(--linear-ease),
    height 600ms var(--linear-ease);
}

.gooey-filter {
  filter: none;
  mix-blend-mode: normal;
  overflow: visible;
}

.gooey-filter::before {
  content: "";
  position: absolute;
  inset: -75px;
  z-index: -2;
  background: transparent;
}

.gooey-filter::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--control-active);
  transform: scale(0.82);
  opacity: 0;
}

.gooey-filter.is-active::after {
  animation: gooey-pill 300ms ease both;
}

.gooey-text {
  z-index: 2;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-transform: lowercase;
  opacity: 1;
  transition: color 300ms ease;
}

.gooey-text.is-active {
  color: var(--control-active-text);
}

.gooey-particle,
.gooey-point {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  transform-origin: center;
}

.gooey-particle {
  position: absolute;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  animation: gooey-particle var(--time) ease 1 -350ms;
}

.gooey-point {
  background: var(--color);
  animation: gooey-point var(--time) ease 1 -350ms;
}

.nav-pill a:active,
.outline-link:active,
.case-back:active,
.icon-button:active,
.footer-badge:active {
  transform: scale(0.97);
}

.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.icon-button,
.language-select select {
  height: 38px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.icon-button {
  width: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.theme-icon {
  position: relative;
  width: 17px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  overflow: hidden;
}

.theme-icon::after {
  content: "";
  position: absolute;
  inset: -1px -1px -1px 50%;
  background: currentColor;
}

body.theme-light .theme-icon::after {
  inset: -1px 50% -1px -1px;
}

.language-select {
  display: block;
}

.language-select select {
  min-width: 72px;
  padding: 0 28px 0 14px;
  font: inherit;
  font-size: 12px;
  text-transform: uppercase;
  appearance: none;
  cursor: pointer;
}

.language-select {
  position: relative;
}

.language-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

@keyframes gooey-pill {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gooey-text-pop {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }

  55% {
    opacity: 1;
    transform: scale(1.04);
  }

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

@keyframes gooey-particle {
  0% {
    opacity: 1;
    transform: rotate(0deg) translate(var(--start-x), var(--start-y));
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }

  70% {
    opacity: 1;
    transform: rotate(calc(var(--rotate) * 0.5)) translate(calc(var(--end-x) * 1.2), calc(var(--end-y) * 1.2));
    animation-timing-function: ease;
  }

  85% {
    opacity: 1;
    transform: rotate(calc(var(--rotate) * 0.66)) translate(var(--end-x), var(--end-y));
  }

  100% {
    opacity: 1;
    transform: rotate(calc(var(--rotate) * 1.2)) translate(calc(var(--end-x) * 0.5), calc(var(--end-y) * 0.5));
  }
}

@keyframes gooey-point {
  0% {
    opacity: 0;
    transform: scale(0);
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }

  38%,
  85% {
    opacity: 1;
  }

  65%,
  85% {
    transform: scale(var(--scale));
  }

  100% {
    opacity: 0;
    transform: scale(0);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.section {
  min-height: 100vh;
  scroll-margin-top: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 0 clamp(22px, 5vw, 78px) clamp(30px, 6vh, 70px);
  display: grid;
  align-items: end;
  color: #f6f6f3;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.45) contrast(1.08);
  transform: scale(1.03);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.7)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.05) 55%);
}

.hero-cats {
  position: absolute;
  top: 42%;
  left: clamp(22px, 8vw, 110px);
  right: clamp(22px, 5vw, 78px);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  color: rgba(255, 255, 255, 0.48);
  font-size: clamp(10px, 1vw, 13px);
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(31px, 4vw, 52px);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.blur-text {
  display: flex;
  flex-wrap: wrap;
}

.blur-text-segment {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(-50px);
  transition:
    filter 520ms var(--motion-ease),
    opacity 520ms var(--motion-ease),
    transform 520ms var(--motion-ease);
  transition-delay: calc(var(--blur-index) * 110ms);
  will-change: transform, filter, opacity;
}

.blur-text.is-blur-visible .blur-text-segment {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.blur-text:not(.is-blur-visible) .blur-text-segment:nth-child(2n) {
  transform: translateY(-42px);
}

.blur-text.is-blur-complete .blur-text-segment {
  will-change: auto;
}

.outline-link,
.case-back {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  font-size: 12px;
  text-transform: uppercase;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms var(--motion-ease);
}

.outline-link:hover,
.case-back:hover {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.scroll-note {
  position: absolute;
  right: clamp(22px, 5vw, 78px);
  bottom: clamp(30px, 6vh, 70px);
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-transform: uppercase;
}

.work {
  padding: clamp(72px, 9vw, 126px) clamp(20px, 5vw, 78px);
  background: var(--black);
}

.work-group + .work-group {
  margin-top: clamp(82px, 10vw, 140px);
}

.work h2 {
  margin: 0 0 clamp(42px, 6vw, 76px);
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 620;
}

.work-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  --reveal-y: 44px;
}

.work-heading span {
  margin-bottom: clamp(48px, 6.2vw, 82px);
  color: var(--quiet);
  font-size: 12px;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(62px, 8vw, 112px) clamp(18px, 2vw, 28px);
}

.project-card {
  position: relative;
  display: block;
  perspective: 900px;
  transform-style: preserve-3d;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-scale: 1;
  --caption-x: 50%;
  --caption-y: 50%;
  transition: transform 420ms var(--motion-ease);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 18px;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(var(--tilt-scale)) translateZ(0);
  transform-origin: center;
  transform-style: preserve-3d;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    transform 260ms var(--motion-ease),
    filter 260ms ease,
    box-shadow 260ms ease;
  will-change: transform;
}

.project-card:hover img {
  filter: brightness(1.08);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.project-card::before,
.project-card::after {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease, transform 260ms var(--motion-ease);
}

.project-card::before {
  content: "";
  inset: 0 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  z-index: 1;
  background:
    radial-gradient(circle at var(--caption-x) var(--caption-y), rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 38%);
  mix-blend-mode: screen;
}

.project-card::after {
  content: attr(aria-label);
  left: var(--caption-x);
  top: var(--caption-y);
  z-index: 2;
  max-width: min(240px, 70%);
  padding: 5px 10px;
  border-radius: 999px;
  color: #111;
  background: #fff;
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  transform: translate(12px, 12px) rotate(-2deg);
}

.project-card:hover::before,
.project-card:hover::after {
  opacity: 1;
}

.project-title,
.project-type {
  display: block;
  transition: color 220ms ease, transform 260ms var(--motion-ease);
}

.project-card:hover .project-title {
  transform: translateX(4px);
}

.project-card:hover .project-type,
.project-card:hover .project-count {
  color: var(--ink);
}

.project-title {
  margin-bottom: 4px;
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.15;
}

.project-type {
  color: var(--soft);
  font-size: clamp(12px, 1vw, 15px);
}

.project-count {
  display: block;
  margin-top: 8px;
  color: var(--quiet);
  font-size: 12px;
  text-transform: uppercase;
}

.about {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  align-items: start;
  justify-content: space-between;
  gap: clamp(36px, 5vw, 76px);
  padding: clamp(72px, 8vw, 110px) clamp(20px, 5vw, 78px);
  background: var(--black);
}

.about-profile {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
}

.about-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(246, 246, 243, 0.04);
}

.about-photo img {
  object-position: center top;
}

.about-meta {
  order: -1;
  margin-bottom: 28px;
}

.about-meta h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 600;
  line-height: 0.95;
}

.about-meta dl {
  margin: 0;
  display: grid;
  gap: 16px;
}

.about-meta dl div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  transition: border-color 260ms ease, transform 320ms var(--motion-ease);
}

.about-meta dl div:hover {
  border-color: rgba(246, 246, 243, 0.34);
  transform: translateX(6px);
}

.about-meta dt,
.about-block h3,
.experience-list > li > span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.about-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.section-label {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--quiet);
  font-size: 13px;
  text-transform: uppercase;
}

.about-kicker {
  margin: 0 0 20px;
  color: var(--soft);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.35;
}

.about-copy h2 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.02;
  text-wrap: balance;
}

.about-copy p {
  max-width: 740px;
  margin: 28px 0 0;
  color: var(--soft);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.75;
}

.about-block {
  margin-top: clamp(44px, 6vw, 76px);
}

.about-block h3 {
  margin: 0 0 20px;
}

.about-block > p {
  margin-top: 0;
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.28;
  color: var(--ink);
}

.experience-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.experience-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(20px, 4vw, 64px);
  padding: 24px 0;
  border-top: 1px solid var(--line);
  transition: border-color 260ms ease, transform 360ms var(--motion-ease);
}

.experience-list li:hover {
  border-color: rgba(246, 246, 243, 0.34);
  transform: translateX(8px);
}

.experience-list li:hover h4 {
  color: #fff;
}

.experience-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.experience-list h4 {
  margin: 0;
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 600;
  line-height: 1.18;
}

.experience-list p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
}

.site-footer {
  position: relative;
  min-height: clamp(520px, 58vh, 620px);
  display: grid;
  grid-template-columns: minmax(420px, 0.72fr) minmax(0, 1.28fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: clamp(44px, 5vw, 78px) clamp(36px, 4vw, 60px);
  padding: clamp(48px, 5vw, 72px) clamp(20px, 3vw, 44px) 58px;
  overflow: hidden;
  color: #f6f6f3;
  background: #000;
}

body.case-open .site-footer {
  display: none;
}

.footer-left,
.footer-right {
  position: relative;
  z-index: 1;
}

.footer-left {
  display: grid;
  grid-template-columns: minmax(160px, 230px) minmax(220px, 1fr);
  align-items: start;
  column-gap: clamp(28px, 3vw, 48px);
}

.footer-right {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-items: start;
  min-width: 0;
}

.footer-intro {
  position: relative;
  display: contents;
}

.footer-intro img {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(1) contrast(1.02);
}

.footer-signature {
  position: absolute;
  top: clamp(174px, 12.8vw, 214px);
  left: clamp(56px, 6vw, 98px);
  z-index: 2;
  color: #ff6b13;
  font-family: "Amsterdam Signature Local", "Alex Brush", cursive;
  font-size: clamp(64px, 6vw, 104px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
  white-space: nowrap;
  transform: rotate(-7deg);
  transform-origin: left center;
  pointer-events: none;
}

.footer-intro p,
.footer-contact {
  margin: 0;
  color: rgba(246, 246, 243, 0.82);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.footer-intro p {
  grid-column: 2;
  grid-row: 1;
  max-width: 250px;
}

.footer-contact {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: clamp(150px, 11vw, 178px);
  padding-top: 22px;
  max-width: 280px;
  border-top: 1px solid rgba(246, 246, 243, 0.16);
}

.footer-contact span {
  color: rgba(246, 246, 243, 0.46);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-contact strong {
  font-size: clamp(24px, 1.7vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.footer-name {
  position: absolute;
  left: 0;
  bottom: -270px;
  z-index: 0;
  color: rgba(246, 246, 243, 0.07);
  font-size: clamp(120px, 16vw, 250px);
  font-weight: 700;
  line-height: 0.72;
  letter-spacing: 0;
  pointer-events: none;
}

.footer-badge {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(86px, 8.8vw, 126px);
  padding: 18px clamp(28px, 5vw, 68px);
  border-radius: 999px;
  color: #fff;
  background: #181818;
  transition: color 220ms ease, background 220ms ease, transform 360ms var(--motion-ease);
}

.footer-badge:hover {
  color: #fff;
  background: #202020;
  transform: translateY(-2px);
}

.footer-badge span {
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.footer-at {
  color: #ff6b13;
}

.footer-links {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(360px, 1.5fr) minmax(190px, 0.82fr) minmax(100px, 0.48fr);
  align-items: start;
  gap: clamp(24px, 3vw, 44px);
  margin-top: clamp(34px, 3.8vw, 56px);
  padding-top: clamp(2px, 0.5vw, 8px);
}

.footer-link-group:first-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  column-gap: clamp(20px, 2.4vw, 36px);
  align-content: start;
}

.footer-link-group:first-child h3 {
  grid-column: 1 / -1;
}

.footer-link-group:first-child a:nth-of-type(1) {
  grid-column: 1;
  grid-row: 2;
}

.footer-link-group:first-child a:nth-of-type(2) {
  grid-column: 1;
  grid-row: 3;
}

.footer-link-group:first-child a:nth-of-type(3) {
  grid-column: 1;
  grid-row: 4;
}

.footer-link-group:first-child a:nth-of-type(4) {
  grid-column: 2;
  grid-row: 2;
}

.footer-link-group:first-child a:nth-of-type(5) {
  grid-column: 2;
  grid-row: 3;
}

.footer-link-group:first-child a:nth-of-type(6) {
  grid-column: 2;
  grid-row: 4;
}

.footer-link-group h3 {
  margin: 0 0 20px;
  color: rgba(246, 246, 243, 0.42);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-link-group a {
  display: block;
  width: fit-content;
  margin: 0 0 14px;
  color: rgba(246, 246, 243, 0.9);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  transition: color 220ms ease, transform 280ms var(--motion-ease);
}

.footer-link-group a:hover {
  color: #ff6b13;
  transform: translateX(5px);
}

.footer-bottom {
  position: absolute;
  right: clamp(20px, 3vw, 44px);
  bottom: 14px;
  left: clamp(20px, 3vw, 44px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(246, 246, 243, 0.4);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-right {
    grid-column: 1;
    grid-row: auto;
  }
}

.case-page {
  display: none;
  min-height: 100vh;
  padding: 24px clamp(20px, 4.6vw, 64px) 80px;
  background: var(--black);
}

body.case-open .hero,
body.case-open .work,
body.case-open .about,
body.case-open .site-footer {
  display: none;
}

body.case-open .case-page {
  display: block;
}

.case-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(96px, 12vw, 170px);
}

.case-avatar {
  width: 46px;
  height: 46px;
  display: block;
  overflow: hidden;
  border: 1px solid var(--control-border);
  border-radius: 50%;
}

.case-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-back {
  border-color: var(--control-border);
}

.case-hero h1 {
  margin: 0 0 clamp(62px, 8vw, 98px);
  font-size: clamp(38px, 4.8vw, 72px);
  font-weight: 560;
  line-height: 1.04;
  overflow-wrap: break-word;
  text-wrap: balance;
  --reveal-y: 46px;
}

.case-hero img,
.case-gallery img {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: filter 320ms ease, transform 480ms var(--motion-ease);
}

.case-hero img:hover,
.case-gallery img:hover {
  filter: brightness(1.04);
  transform: translateY(-3px);
}

.case-intro {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 760px);
  gap: clamp(36px, 7vw, 120px);
  padding: clamp(56px, 6vw, 84px) 0;
  --reveal-y: 44px;
}

.case-intro dl {
  margin: 0;
  display: grid;
  gap: 24px;
}

.case-intro dt,
.case-note span {
  margin-bottom: 8px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
}

.case-intro dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.case-intro p {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.case-gallery {
  display: grid;
  gap: clamp(38px, 6vw, 72px);
}

.case-gallery img {
  background: rgba(128, 128, 128, 0.1);
}

.case-gallery .case-note:first-child {
  order: 2;
}

.case-note {
  display: grid;
  grid-template-columns: minmax(140px, 0.34fr) minmax(0, 0.66fr);
  gap: 32px;
  padding: 14px 0 16px;
  --reveal-y: 42px;
}

.case-note p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.18;
}

.reveal {
  opacity: 0;
  transform: translate3d(var(--reveal-x, 0), var(--reveal-y, 72px), 0) scale(var(--reveal-scale, 1));
  transition:
    opacity var(--reveal-duration, 820ms) var(--motion-ease) var(--reveal-delay, 0ms),
    transform var(--reveal-duration, 820ms) var(--motion-ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

.hero-cats.reveal {
  --reveal-y: 28px;
  --reveal-duration: 700ms;
}

.hero-copy.reveal {
  --reveal-y: 18px;
  --reveal-duration: 540ms;
}

.work-heading.reveal,
.about-meta dl div.reveal,
.about-block.reveal,
.experience-list li.reveal,
.footer-link-group.reveal,
.case-intro.reveal,
.case-note.reveal {
  --reveal-y: 44px;
  --reveal-duration: 760ms;
  transition:
    opacity var(--reveal-duration, 760ms) var(--motion-ease) var(--reveal-delay, 0ms),
    transform var(--reveal-duration, 760ms) var(--motion-ease) var(--reveal-delay, 0ms),
    border-color 260ms ease;
}

.about-meta dl div.reveal:nth-child(2n),
.experience-list li.reveal:nth-child(2n),
.footer-link-group.reveal:nth-child(2) {
  --reveal-delay: 90ms;
}

.experience-list li.reveal:nth-child(3n),
.footer-link-group.reveal:nth-child(3) {
  --reveal-delay: 160ms;
}

.about-photo.reveal,
.footer-intro.reveal {
  --reveal-y: 56px;
  --reveal-scale: 0.98;
}

.footer-badge.reveal,
.case-hero img.reveal {
  --reveal-y: 50px;
  --reveal-scale: 0.985;
  transition:
    opacity var(--reveal-duration, 820ms) var(--motion-ease) var(--reveal-delay, 0ms),
    transform var(--reveal-duration, 820ms) var(--motion-ease) var(--reveal-delay, 0ms),
    filter 320ms ease;
}

.project-card:nth-child(2n) {
  --reveal-delay: 80ms;
}

.project-card:nth-child(3n) {
  --reveal-delay: 140ms;
}

.case-gallery img.reveal:nth-of-type(2n) {
  --reveal-delay: 70ms;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

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

  .project-card img {
    transform: none;
  }

  .gooey-filter,
  .gooey-text,
  .gooey-particle,
  .gooey-point {
    animation: none !important;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 44px 1fr;
    padding: 14px;
    row-gap: 10px;
  }

  .avatar-mark {
    width: 42px;
    height: 42px;
  }

  .nav-pill {
    width: min(270px, calc(100vw - 84px));
  }

  .header-tools {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .hero {
    padding: 0 18px 34px;
  }

  .hero-cats {
    top: 28%;
    left: 18px;
    right: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .scroll-note {
    right: 18px;
    bottom: 34px;
  }

  .work,
  .about,
  .case-page,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .project-grid,
  .about,
  .case-intro,
  .case-note,
  .site-footer,
  .footer-intro,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .project-grid {
    gap: 48px;
  }

  .project-card::before,
  .project-card::after {
    display: none;
  }

  .about-profile {
    position: static;
  }

  .about-copy h2 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .about-meta dl div,
  .experience-list li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .experience-list li {
    padding: 22px 0;
  }

  .case-topbar {
    margin-bottom: 78px;
  }

  .site-footer {
    min-height: auto;
    gap: 42px;
    padding-top: 32px;
    padding-bottom: 96px;
  }

  .footer-left,
  .footer-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-intro img,
  .footer-intro p,
  .footer-contact {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-contact {
    position: static;
    margin-top: 26px;
    padding-top: 18px;
  }

  .footer-signature {
    top: clamp(158px, 62vw, 240px);
    left: clamp(54px, 20vw, 96px);
    font-size: clamp(70px, 22vw, 100px);
  }

  .footer-name {
    position: relative;
    bottom: auto;
    margin-top: 34px;
    font-size: clamp(86px, 28vw, 150px);
  }

  .footer-badge {
    justify-content: start;
    min-height: 78px;
    padding: 16px 22px;
  }

  .footer-badge span {
    font-size: clamp(34px, 12vw, 54px);
  }

  .footer-links {
    margin-top: 34px;
    gap: 34px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
