:root {
  --ink: #11130f;
  --ink-soft: #1b1e18;
  --paper: #eee9df;
  --paper-dim: #d5d0c5;
  --mist: #9c9f92;
  --line: rgba(238, 233, 223, 0.18);
  --line-dark: rgba(17, 19, 15, 0.2);
  --accent: #f25c3a;
  --accent-bright: #ff7354;
  --chartreuse: #c7ef77;
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: "Helvetica Neue", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  --page-pad: clamp(22px, 4.8vw, 78px);
  --header-height: 88px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--accent) var(--ink);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-grain {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  opacity: 0.065;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.cursor-light {
  position: fixed;
  z-index: 0;
  top: 0;
  left: 0;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.25;
  background: radial-gradient(circle, rgba(242, 92, 58, 0.25), transparent 67%);
  transform: translate3d(-50%, -50%, 0);
}

.section-shell {
  width: min(100%, 1500px);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  padding: 18px var(--page-pad);
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid transparent;
  transition:
    background 300ms ease,
    border-color 300ms ease,
    min-height 300ms ease;
}

.site-header.is-scrolled {
  min-height: 70px;
  background: rgba(17, 19, 15, 0.84);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 15px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(238, 233, 223, 0.48);
  font-family: var(--serif);
  font-size: 18px;
  transition:
    color 240ms ease,
    background 240ms ease;
}

.brand:hover .brand-mark {
  background: var(--paper);
  color: var(--ink);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.brand-copy small {
  color: var(--mist);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.2vw, 52px);
}

.main-nav a {
  position: relative;
  padding-block: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
}

.language-toggle {
  min-width: 92px;
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: rgba(238, 233, 223, 0.03);
  color: var(--mist);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.language-toggle[hidden] {
  display: none !important;
}

.language-toggle:hover {
  border-color: rgba(238, 233, 223, 0.5);
  background: rgba(238, 233, 223, 0.08);
  color: var(--paper);
}

.language-toggle [data-language-choice] {
  opacity: 0.48;
  transition: opacity 200ms ease;
}

.language-toggle [data-language-choice].is-active {
  color: var(--accent);
  opacity: 1;
}

.language-divider {
  opacity: 0.25 !important;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: calc(var(--header-height) + clamp(32px, 5vw, 76px)) var(--page-pad) 32px;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: clamp(24px, 2.5vw, 48px);
  row-gap: clamp(12px, 1.1vw, 18px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 78% 32%, rgba(102, 115, 73, 0.2), transparent 34%),
    radial-gradient(circle at 8% 85%, rgba(242, 92, 58, 0.1), transparent 27%),
    linear-gradient(135deg, #10120e 0%, #151812 50%, #0d0f0c 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 4%;
  bottom: 13%;
  width: min(30vw, 460px);
  aspect-ratio: 1;
  border: 1px solid rgba(199, 239, 119, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(199, 239, 119, 0.018),
    0 0 0 90px rgba(199, 239, 119, 0.012);
}

.hero-backdrop {
  position: absolute;
  z-index: -1;
  top: 13%;
  right: -0.06em;
  overflow: hidden;
  color: rgba(238, 233, 223, 0.025);
  font-family: var(--serif);
  font-size: clamp(200px, 32vw, 560px);
  font-weight: 700;
  line-height: 0.7;
  letter-spacing: -0.09em;
  pointer-events: none;
}

.hero-copy {
  max-width: 690px;
  padding-top: 2vh;
}

.eyebrow {
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  color: var(--paper-dim);
  font-size: clamp(9px, 0.75vw, 11px);
  letter-spacing: 0.14em;
}

.eyebrow span {
  position: relative;
}

.eyebrow span:not(:last-child)::after {
  content: "/";
  position: absolute;
  right: -13px;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(62px, 7vw, 116px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.hero h1 em {
  display: block;
  margin-left: clamp(18px, 3vw, 46px);
  color: var(--accent);
  font-weight: 400;
}

.hero-summary {
  max-width: 520px;
  margin: 34px 0 0;
  color: var(--paper-dim);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.8;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.button {
  display: inline-flex;
  min-height: clamp(52px, 4vw, 58px);
  padding: 0 clamp(22px, 1.8vw, 28px);
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  font-size: clamp(10.5px, 0.72vw, 12px);
  letter-spacing: 0.11em;
  transition:
    background 250ms ease,
    color 250ms ease,
    transform 250ms var(--ease);
}

.button-primary {
  background: var(--accent);
  color: #1b100d;
}

.button-primary:hover {
  background: var(--paper);
  transform: translateY(-3px);
}

.text-link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: clamp(12px, 0.78vw, 14px);
  letter-spacing: 0.04em;
}

.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 250ms var(--ease);
}

.text-link:hover::after {
  transform: scaleX(0);
}

.hero-feature {
  min-width: 0;
}

.hero-feature-heading {
  margin-bottom: 14px;
  padding-inline: 2px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: var(--paper-dim);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.hero-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.hero-counter b {
  color: var(--paper);
  font-weight: 500;
}

.hero-counter i {
  width: 24px;
  height: 1px;
  background: var(--line);
}

.hero-stage {
  position: relative;
  aspect-ratio: 1.56 / 1;
  overflow: hidden;
  background: #242720;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  transition:
    opacity 700ms var(--ease),
    visibility 700ms,
    transform 1.1s var(--ease);
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(10, 11, 9, 0.86));
  pointer-events: none;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.hero-slide.is-active img {
  transform: scale(1.04);
}

.hero-slide-poster {
  display: grid;
  place-items: start center;
  padding: clamp(10px, 0.8vw, 14px) clamp(16px, 2vw, 30px) 0;
  background: #0a0c09;
}

.hero-slide-poster img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.hero-slide-poster.is-active img {
  transform: none;
}

.hero-slide-caption {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: clamp(10px, 0.8vw, 14px);
  left: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-slide-caption p,
.hero-slide-caption span {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.hero-slide-caption p {
  margin-bottom: 8px;
  color: var(--paper-dim);
}

.hero-slide-caption h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 47px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero-slide-caption > span {
  align-self: flex-start;
}

.hero-slide-link {
  position: absolute;
  z-index: 3;
  inset: 0;
  cursor: pointer;
}

.hero-slide-link:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: -8px;
}

.carousel-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 233, 223, 0.32);
  border-radius: 50%;
  background: rgba(17, 19, 15, 0.24);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color 200ms ease,
    background 200ms ease;
}

.carousel-arrow:hover {
  background: var(--paper);
  color: var(--ink);
}

.carousel-arrow-prev {
  left: 18px;
}

.carousel-arrow-next {
  right: 18px;
}

.carousel-footer {
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.carousel-footer p {
  max-width: 520px;
  margin: 0;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.65;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.carousel-dots button {
  width: 22px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(238, 233, 223, 0.23);
  cursor: pointer;
  transition:
    width 260ms var(--ease),
    background 260ms ease;
}

.carousel-dots button.is-active {
  width: 46px;
  background: var(--accent);
}

.carousel-progress {
  position: relative;
  overflow: hidden;
  width: 52px;
  height: 1px;
  background: var(--line);
}

.carousel-progress i {
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform-origin: left;
  animation: carousel-timer 7s linear infinite;
}

.hero-footline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  color: var(--mist);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.hero-footline i {
  height: 1px;
  background: var(--line);
}

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--accent);
  color: #1d110e;
}

.marquee-track {
  width: max-content;
  padding-block: 16px;
  display: flex;
  align-items: center;
  gap: 32px;
  animation: marquee 28s linear infinite;
}

.marquee span {
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 38px);
  letter-spacing: -0.03em;
}

.marquee i {
  font-style: normal;
}

.section-kicker {
  margin: 0;
  color: var(--mist);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.about {
  position: relative;
  padding-top: clamp(56px, 6vw, 96px);
  padding-bottom: clamp(72px, 7vw, 112px);
}

.about-label {
  position: relative;
  width: max-content;
  min-height: 36px;
  padding: 0 22px 8px 48px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 500;
  letter-spacing: 0.2em;
}

.about-label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(238, 233, 223, 0.55);
  border-radius: 50%;
  transform: translateY(-58%);
}

.about-label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(242, 92, 58, 0.75);
  transform: translateY(-58%);
}

.about-grid {
  margin-top: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(205px, 0.7fr) minmax(340px, 1.3fr);
  height: clamp(580px, 48vw, 654px);
  gap: clamp(18px, 2vw, 30px);
  align-items: stretch;
}

.display-heading {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 7.3vw, 116px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.065em;
}

.display-heading em {
  color: var(--accent);
  font-weight: 400;
}

.about-portrait {
  position: relative;
  z-index: 1;
  grid-column: 1 / 5;
  grid-row: 1 / 3;
  min-height: 0;
  height: 100%;
  align-self: start;
  margin: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(238, 233, 223, 0.56);
}

.about-portrait::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: linear-gradient(180deg, transparent 74%, rgba(8, 10, 8, 0.64));
  pointer-events: none;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translateY(-9%) scale(1.24);
  transform-origin: center center;
}

.about-title {
  position: relative;
  z-index: 2;
  grid-column: 1 / 6;
  grid-row: 2;
  align-self: end;
  max-width: 980px;
  margin-bottom: clamp(54px, 4.5vw, 72px);
  padding-right: 2vw;
  font-size: clamp(50px, 4.8vw, 82px);
  line-height: 0.9;
  text-shadow:
    0 1px 0 rgba(255, 250, 239, 0.16),
    0 3px 0 rgba(5, 7, 5, 0.22),
    0 7px 14px rgba(5, 7, 5, 0.68),
    0 20px 42px rgba(5, 7, 5, 0.62);
  pointer-events: none;
}

.about-title > span,
.about-title > em {
  display: block;
  white-space: nowrap;
}

.about-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 3.3vw, 50px);
  border: 1px solid rgba(238, 233, 223, 0.5);
  background: rgba(17, 19, 15, 0.42);
}

.about-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 58px;
  height: 3px;
  background: var(--accent);
}

.about-card-title {
  grid-column: 6 / 13;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(26px, 2.8vw, 42px);
}

.about-card-label {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-size: clamp(12px, 0.9vw, 15px);
  font-weight: 500;
  letter-spacing: 0.2em;
}

.about-card-label::before {
  content: "";
  flex: 0 0 28px;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.about-card-label::after {
  content: "✦";
  color: var(--accent);
  font-size: 10px;
  line-height: 1;
}

.about-card-title h3 {
  max-width: 680px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 54px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.about-card-title h3 > span,
.about-card-title h3 > em {
  display: inline;
}

.about-card-title h3 em {
  color: var(--accent);
  font-weight: 400;
}

.about-card-copy {
  grid-column: 6 / 13;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(20px, 2vw, 28px);
}

.about-copy-topline {
  display: flex;
  align-items: center;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.7vw, 22px);
}

.profile-identity h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.profile-identity p {
  margin: 7px 0 0;
  color: var(--mist);
  font-size: clamp(12px, 0.9vw, 15px);
  letter-spacing: 0.025em;
}

.skills-heading {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  font-size: clamp(12px, 0.85vw, 14px);
  font-weight: 500;
  letter-spacing: 0.2em;
}

.skills-heading::after {
  content: "";
  flex: 1;
  border-bottom: 2px dotted rgba(238, 233, 223, 0.32);
}

.skill-row {
  padding: 10px 0;
  display: grid;
  grid-template-columns: minmax(145px, 0.34fr) 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.skill-label {
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.3;
}

.skill-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  color: var(--paper-dim);
  font-size: clamp(12px, 0.8vw, 14px);
  line-height: 1.55;
  list-style: none;
}

.skill-list li:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: var(--accent);
}

.work {
  position: relative;
  padding-top: clamp(40px, 3.4vw, 56px);
  padding-bottom: clamp(48px, 5vw, 80px);
}

.work::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.94%, rgba(238, 233, 223, 0.045) 50%, transparent 50.06%),
    linear-gradient(180deg, #0c0e0b 0%, #11130f 50%, #0c0e0b 100%);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 365px);
  align-items: end;
  gap: 50px;
}

.section-heading h2 {
  margin-top: 34px;
}

.work .section-heading h2 {
  margin-top: 0;
}

.work .section-heading {
  grid-template-columns: 1fr;
  text-align: center;
}

.work-heading-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.work-instruction {
  margin: 26px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--paper-dim);
  font-size: clamp(15px, 1vw, 17px);
  letter-spacing: 0.035em;
  line-height: 1.65;
  text-align: center;
}

.work-instruction::before {
  content: "";
  flex: 0 0 34px;
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.section-heading > p {
  margin: 0;
  padding-bottom: 9px;
  color: var(--mist);
  font-size: 12px;
  line-height: 1.8;
}

.project-list {
  margin-top: clamp(52px, 5.2vw, 84px);
  display: grid;
  gap: clamp(76px, 9vw, 138px);
}

.project {
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  background: var(--paper);
  color: var(--ink);
}

.project:nth-child(even) {
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
}

.project:nth-child(even) .project-meta {
  grid-column: 2;
  grid-row: 1;
}

.project:nth-child(even) .project-visual {
  grid-column: 1;
  grid-row: 1;
}

@media (min-width: 1181px) {
  .project {
    height: 460px;
  }
}

.project-meta {
  padding: clamp(20px, 1.6vw, 26px) clamp(26px, 2.8vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  color: #66695f;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.project-type {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 5.4vw, 86px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.project-description {
  max-width: 330px;
  margin: 20px 0 0;
  color: #55584f;
  font-size: 14px;
  line-height: 1.7;
}

.project-tags {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.project-tags li {
  padding: 4px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  color: #63665c;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-link {
  width: max-content;
  margin-top: 0;
  padding-bottom: 4px;
  display: inline-flex;
  gap: 16px;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.project-link span {
  transition: transform 200ms ease;
}

.project-link:hover span {
  transform: translate(3px, -3px);
}

.project-visual {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: #252821;
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.46));
  pointer-events: none;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.project-visual-poster {
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(6px, 0.55vw, 8px);
  background:
    radial-gradient(circle at 50% 50%, rgba(238, 233, 223, 0.05), transparent 55%),
    #0a0c09;
}

.project-visual-poster::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -24px;
  background-image:
    linear-gradient(rgba(7, 8, 6, 0.34), rgba(7, 8, 6, 0.34)),
    var(--project-poster-image);
  background-position: center;
  background-size: cover;
  filter: blur(24px) saturate(0.72) brightness(0.58);
  transform: scale(1.08);
  pointer-events: none;
}

.project-visual-poster img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  place-self: center;
  object-fit: contain;
}

.project-visual:hover img {
  transform: scale(1.035);
}

.project-visual-label {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  padding: 8px 12px;
  background: rgba(238, 233, 223, 0.9);
  color: var(--ink);
  font-size: 9px;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 250ms ease,
    transform 250ms var(--ease);
}

.project-visual:hover .project-visual-label {
  opacity: 1;
  transform: translateY(0);
}

.playground {
  padding-top: clamp(48px, 5vw, 80px);
  padding-bottom: clamp(110px, 13vw, 210px);
  background: var(--paper);
  color: var(--ink);
}

.playground .section-kicker {
  color: #65685f;
}

.playground .section-heading > p {
  color: #66695f;
}

.experiment-grid {
  margin-top: clamp(66px, 8vw, 112px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 34px);
}

.experiment-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border-top: 1px solid var(--line-dark);
}

.experiment-art {
  position: relative;
  aspect-ratio: 1.4 / 1;
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.experiment-art-image {
  background: #d8d3c8;
}

.experiment-art-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms var(--ease);
}

.experiment-art-game {
  display: block;
  color: var(--paper);
  text-decoration: none;
  background:
    radial-gradient(circle at 64% 42%, rgba(199, 239, 119, 0.18), transparent 22%),
    radial-gradient(circle at 22% 78%, rgba(242, 92, 58, 0.2), transparent 26%),
    #081d1c;
}

.experiment-art-game::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(199, 239, 119, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 239, 119, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
}

.game-hud,
.game-play {
  position: absolute;
  z-index: 2;
  top: 18px;
  color: var(--chartreuse);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.game-hud {
  left: 18px;
}

.game-play {
  right: 18px;
  color: var(--paper);
}

.game-target {
  position: absolute;
  z-index: 2;
  top: 42%;
  left: 64%;
  width: 26%;
  aspect-ratio: 1;
  border: 1px solid rgba(199, 239, 119, 0.86);
  border-radius: 50%;
  background: rgba(199, 239, 119, 0.12);
  box-shadow:
    0 0 0 15px rgba(199, 239, 119, 0.08),
    0 0 38px rgba(199, 239, 119, 0.38);
  transform: translate(-50%, -50%);
  transition: transform 350ms var(--ease);
}

.game-target::before,
.game-target::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: inherit;
  background: var(--chartreuse);
}

.game-target::after {
  inset: 43%;
  background: #10201a;
}

.experiment-art-game b {
  z-index: 2;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: var(--paper);
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 0.84;
}

.experiment-art-game:hover .game-target {
  transform: translate(-50%, -50%) scale(1.14);
}

.experiment-art:not(.experiment-art-game) > span {
  position: absolute;
  z-index: -1;
  top: 6%;
  right: 6%;
  font-family: var(--serif);
  font-size: 80px;
  color: rgba(238, 233, 223, 0.22);
}

.experiment-art:not(.experiment-art-game) > i {
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  transition: transform 700ms var(--ease);
}

.experiment-art:not(.experiment-art-game) > b {
  position: absolute;
  bottom: 8%;
  left: 7%;
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 64px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.experiment-art-one {
  background: #243c34;
  color: var(--paper);
}

.experiment-art-one i {
  border: 1px solid rgba(238, 233, 223, 0.55);
  background:
    linear-gradient(45deg, transparent 46%, rgba(238, 233, 223, 0.45) 47%, transparent 49%),
    linear-gradient(-45deg, transparent 46%, rgba(238, 233, 223, 0.45) 47%, transparent 49%),
    #b74733;
  box-shadow: 22px 22px 0 var(--chartreuse);
}

.experiment-art-two {
  background: #df5a38;
  color: #17140d;
}

.experiment-art-two i {
  border: 32px dotted #17140d;
  background: #f0b9a8;
}

.experiment-art-two b {
  mix-blend-mode: multiply;
}

.experiment-art-three {
  background: #cad3ba;
  color: #1e2a22;
}

.experiment-art-three i {
  border-radius: 0;
  background: #1e2a22;
  box-shadow:
    18px 18px 0 #f2a547,
    -18px -18px 0 #e9ece3;
  transform: rotate(19deg);
}

.experiment-card:hover .experiment-art i {
  transform: scale(1.11) rotate(8deg);
}

.experiment-card:hover .experiment-art-image img {
  transform: scale(1.035);
}

.experiment-card > div:last-child > p {
  margin: 0 0 8px;
  color: #6b6e65;
  font-size: 10px;
  letter-spacing: 0.13em;
}

.experiment-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.experiment-card > div:last-child > span {
  color: #66695f;
  font-size: 13px;
  line-height: 1.65;
}

.skills-showcase {
  margin-top: clamp(52px, 6vw, 90px);
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1.72fr);
  gap: clamp(28px, 4vw, 62px);
  align-items: start;
}

.skills-tablist {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.skills-tab {
  width: 100%;
  min-height: 92px;
  padding: 16px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-content: center;
  gap: 3px 10px;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    background 220ms ease,
    color 220ms ease;
}

.skills-tab:last-child {
  border-bottom: 0;
}

.skills-tab > span {
  grid-row: 1 / 3;
  color: #8a8d83;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.skills-tab strong {
  font-family: var(--serif);
  font-size: clamp(20px, 1.55vw, 26px);
  font-weight: 400;
  line-height: 1.1;
}

.skills-tab small {
  color: #73766c;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.skills-tab:hover,
.skills-tab.is-active {
  background: var(--ink);
  color: var(--paper);
}

.skills-tab:hover > span,
.skills-tab.is-active > span {
  color: var(--accent);
}

.skills-tab:hover small,
.skills-tab.is-active small {
  color: var(--paper-dim);
}

.skills-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.skills-panels {
  min-width: 0;
  border: 1px solid var(--line-dark);
}

.skills-panel {
  min-height: 500px;
  display: grid;
  grid-template-columns: 1fr;
  background: #ece7dc;
}

.skills-panel[hidden] {
  display: none;
}

.skills-placeholder {
  position: relative;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  border-bottom: 1px solid rgba(238, 233, 223, 0.16);
  background: #11150f;
  color: var(--paper);
  isolation: isolate;
}

.skills-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(238, 233, 223, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 233, 223, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.skills-placeholder-drawing {
  background:
    radial-gradient(circle at 72% 28%, rgba(242, 92, 58, 0.19), transparent 31%),
    #1c1b16;
}

.drawing-showcase {
  position: relative;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  border-bottom: 1px solid rgba(238, 233, 223, 0.16);
  background:
    radial-gradient(circle at 68% 26%, rgba(242, 92, 58, 0.13), transparent 30%),
    #151711;
  isolation: isolate;
}

.drawing-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(238, 233, 223, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 233, 223, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.drawing-carousel {
  position: absolute;
  inset: 7% 18% 15%;
  overflow: hidden;
}

.drawing-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.drawing-slide[hidden] {
  display: none;
}

.drawing-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.drawing-slide img {
  width: min(100%, 360px);
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: contain;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.35);
}

.drawing-slide figcaption {
  width: min(100%, 360px);
  padding: 10px 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--paper-dim);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.drawing-slide figcaption > span:first-child {
  color: var(--accent);
}

.drawing-slide figcaption > span:last-child {
  text-transform: none;
}

.skills-placeholder-modeling {
  background:
    radial-gradient(circle at 48% 48%, rgba(199, 239, 119, 0.16), transparent 38%),
    #101b16;
}

.modeling-showcase {
  position: relative;
  min-width: 0;
  min-height: 500px;
  padding: clamp(14px, 1.5vw, 22px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  border-bottom: 1px solid rgba(238, 233, 223, 0.16);
  background:
    radial-gradient(circle at 24% 18%, rgba(199, 239, 119, 0.08), transparent 28%),
    #10130e;
}

.modeling-carousel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(238, 233, 223, 0.14);
  background: #080a07;
}

.modeling-slide {
  position: absolute;
  inset: clamp(8px, 1.3vw, 18px);
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.modeling-slide[hidden] {
  display: none;
}

.modeling-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modeling-slide img {
  width: 100%;
  height: 100%;
  display: block;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modeling-slide figcaption {
  width: 100%;
  padding: 10px 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--paper-dim);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.modeling-slide figcaption > span:first-child {
  color: var(--chartreuse);
}

.card-design-panel .skills-panel-copy {
  padding: clamp(24px, 2.4vw, 38px);
  justify-content: flex-start;
}

.card-design-panel .skills-panel-copy > span {
  width: auto;
  max-width: 100%;
  margin-top: 18px;
  line-height: 1.5;
}

.card-design-stage {
  position: relative;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  border-bottom: 1px solid rgba(238, 233, 223, 0.16);
  background:
    radial-gradient(circle at 78% 20%, rgba(242, 92, 58, 0.16), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(199, 239, 119, 0.09), transparent 26%),
    #151612;
  isolation: isolate;
}

.card-design-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(238, 233, 223, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 233, 223, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.card-viewer {
  position: absolute;
  inset: 7% 17% 15%;
  display: grid;
  place-items: center;
}

.card-viewer-slide {
  position: absolute;
  width: min(58%, 290px);
  aspect-ratio: 570 / 880;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(238, 233, 223, 0.38);
  border-radius: 6px;
  background: #0b0c09;
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.44);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 360ms ease,
    transform 360ms var(--ease);
}

.card-viewer-slide[hidden] {
  display: none;
}

.card-viewer-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.card-viewer-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-viewer-slide figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(7, 8, 6, 0.86);
  color: var(--paper);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.card-viewer-slide figcaption > span:first-child {
  color: var(--chartreuse);
}

.card-viewer-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 233, 223, 0.3);
  border-radius: 50%;
  background: rgba(7, 8, 6, 0.72);
  color: var(--paper);
  font-size: 16px;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition:
    color 180ms ease,
    background 180ms ease;
}

.card-viewer-arrow:hover {
  background: var(--paper);
  color: var(--ink);
}

.card-viewer-prev {
  left: 3%;
}

.card-viewer-next {
  right: 3%;
}

.card-viewer-footer {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.card-viewer-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-viewer-dots button {
  width: 21px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(238, 233, 223, 0.24);
  cursor: pointer;
  transition:
    width 220ms var(--ease),
    background 220ms ease;
}

.card-viewer-dots button.is-active {
  width: 42px;
  background: var(--chartreuse);
}

.card-viewer-count {
  color: var(--paper-dim);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.skill-details-list {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  color: #5f6258;
  font-size: 12px;
  line-height: 1.6;
  list-style: none;
}

.skill-details-list li {
  position: relative;
  padding-left: 14px;
}

.skill-details-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.skills-panel-copy h3 + p {
  max-width: 760px;
}

.skill-details {
  width: 100%;
  margin-top: 20px;
  border-top: 1px solid rgba(17, 19, 15, 0.18);
}

.skill-details summary {
  padding: 14px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.skill-details summary::-webkit-details-marker {
  display: none;
}

.skill-details-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.skill-details-icon::before,
.skill-details-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
}

.skill-details-icon::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 180ms ease;
}

.skill-details[open] .skill-details-icon::after {
  transform: translateY(-50%) rotate(0deg);
}

.skill-details > p {
  max-width: 760px;
  margin: 6px 0 16px;
  color: #5f6258;
  font-size: 12px;
  line-height: 1.7;
}

.skills-placeholder svg {
  position: absolute;
  inset: 9%;
  width: 82%;
  height: 68%;
  fill: none;
  stroke: rgba(238, 233, 223, 0.72);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.skills-placeholder-modeling svg {
  stroke: rgba(199, 239, 119, 0.74);
}

.skills-placeholder-index {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 22px;
  color: rgba(238, 233, 223, 0.22);
  font-family: var(--serif);
  font-size: clamp(58px, 7vw, 104px);
  line-height: 0.8;
}

.skills-placeholder > strong {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 20px;
  left: 22px;
  color: var(--paper-dim);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skills-placeholder-game {
  padding: clamp(40px, 6vw, 88px);
  background:
    radial-gradient(circle at 64% 42%, rgba(199, 239, 119, 0.14), transparent 24%),
    #0d1612;
}

.game-placeholder-grid {
  position: relative;
  height: min(62%, 300px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
}

.game-placeholder-grid i {
  display: block;
  border: 1px solid rgba(238, 233, 223, 0.14);
  background: rgba(238, 233, 223, 0.025);
}

.game-placeholder-grid i::after {
  content: "";
  display: block;
  width: 18%;
  margin: auto;
  aspect-ratio: 1;
  border: 1px solid rgba(238, 233, 223, 0.18);
  border-radius: 50%;
  transform: translateY(170%);
}

.game-placeholder-grid > span {
  position: absolute;
  top: 42%;
  left: 68%;
  width: 16%;
  aspect-ratio: 1;
  border: 1px solid var(--chartreuse);
  border-radius: 50%;
  background: rgba(199, 239, 119, 0.2);
  box-shadow:
    0 0 0 12px rgba(199, 239, 119, 0.045),
    0 0 34px rgba(199, 239, 119, 0.36);
  transform: translate(-50%, -50%);
}

.game-showcase {
  min-width: 0;
  min-height: 500px;
  padding: clamp(14px, 1.5vw, 22px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  border-bottom: 1px solid rgba(238, 233, 223, 0.16);
  background:
    radial-gradient(circle at 72% 18%, rgba(199, 239, 119, 0.1), transparent 30%),
    #090b09;
}

.game-carousel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(238, 233, 223, 0.14);
  background: #070807;
}

.game-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.game-slide[hidden] {
  display: none;
}

.game-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.game-slide::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(180deg, transparent, rgba(3, 5, 3, 0.82));
  pointer-events: none;
}

.game-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #070807;
}

.game-slide figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--paper);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-slide figcaption > span:first-child {
  color: var(--chartreuse);
}

.game-carousel-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 233, 223, 0.26);
  border-radius: 50%;
  background: rgba(7, 8, 7, 0.7);
  color: var(--paper);
  font-size: 16px;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition:
    color 180ms ease,
    background 180ms ease;
}

.game-carousel-arrow:hover {
  background: var(--paper);
  color: var(--ink);
}

.game-carousel-prev {
  left: 14px;
}

.game-carousel-next {
  right: 14px;
}

.game-showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.game-carousel-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.game-carousel-dots button {
  width: 21px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(238, 233, 223, 0.24);
  cursor: pointer;
  transition:
    width 220ms var(--ease),
    background 220ms ease;
}

.game-carousel-dots button.is-active {
  width: 42px;
  background: var(--chartreuse);
}

.game-carousel-count {
  color: var(--paper-dim);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.skills-panel-copy {
  padding: clamp(28px, 3.2vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.skills-panel-copy > p:first-child {
  margin: 0;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.skills-panel-copy h3 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 3vw, 52px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.skills-panel-copy h3 + p {
  margin: 24px 0 0;
  color: #5f6258;
  font-size: 14px;
  line-height: 1.75;
}

.skills-panel-copy > span {
  width: max-content;
  margin-top: 30px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(17, 19, 15, 0.45);
  color: #6a6d64;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skill-game-link {
  width: max-content;
  margin-top: 28px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.skill-game-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.skill-game-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 800ms var(--ease),
    transform 800ms var(--ease);
}

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

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

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

@keyframes carousel-timer {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1180px) {
  :root {
    --header-height: 76px;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .main-nav {
    gap: 28px;
  }

  .header-actions {
    gap: 14px;
  }

  .hero {
    grid-template-columns: minmax(300px, 0.88fr) minmax(460px, 1.12fr);
  }

  .project-meta {
    padding: 32px;
  }

  .project {
    min-height: 500px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    min-height: 70px;
  }

  .site-header.is-scrolled {
    min-height: 62px;
    /* Avoid creating a containing block that traps the fixed mobile menu. */
    backdrop-filter: none;
  }

  .brand-copy strong {
    font-size: 12px;
  }

  .menu-toggle {
    position: relative;
    z-index: 60;
    width: 42px;
    height: 42px;
    padding: 0;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 16px;
    height: 1px;
    background: var(--paper);
    transition: transform 250ms var(--ease);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    z-index: 55;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    padding: 100px var(--page-pad) 50px;
    background: #11130f;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition:
      opacity 300ms ease,
      visibility 300ms,
      transform 300ms var(--ease);
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    font-family: var(--serif);
    font-size: clamp(42px, 9vw, 70px);
    letter-spacing: -0.04em;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 62px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero h1 {
    font-size: clamp(64px, 12vw, 102px);
  }

  .hero-feature {
    width: 100%;
  }

  .hero-footline {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    gap: 26px;
  }

  .about-portrait {
    grid-column: 1;
    grid-row: 1;
    height: 610px;
    min-height: 610px;
  }

  .about-title {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin-top: -130px;
    margin-bottom: 0;
    padding-inline: 18px;
    font-size: clamp(64px, 12vw, 102px);
  }

  .about-card-title {
    grid-column: 1;
    grid-row: 3;
    min-height: 210px;
  }

  .about-card-copy {
    grid-column: 1;
    grid-row: 4;
    min-height: 360px;
  }

  .about-copy-text {
    margin-left: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading > p {
    max-width: 480px;
  }

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

  .project:nth-child(even) .project-meta,
  .project:nth-child(even) .project-visual {
    grid-column: 1;
    grid-row: auto;
  }

  .project:nth-child(even) .project-meta {
    grid-row: 2;
  }

  .project:nth-child(even) .project-visual {
    grid-row: 1;
  }

  .project-meta {
    min-height: 420px;
  }

  .project-visual {
    min-height: 0;
    aspect-ratio: 1.72 / 1;
  }

  .project-visual-poster img {
    height: 100%;
    object-fit: contain;
  }

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

  .experiment-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 8px);
  }

  .skills-showcase {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .skills-tablist {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .skills-tab {
    min-height: 84px;
    border-right: 1px solid var(--line-dark);
    border-bottom: 0;
  }

  .skills-tab:last-child {
    border-right: 0;
  }

  .skills-panel {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .game-showcase {
    min-height: 420px;
    border-right: 0;
    border-bottom: 1px solid rgba(238, 233, 223, 0.16);
  }

  .modeling-showcase {
    min-height: 420px;
  }

  .drawing-showcase {
    min-height: 420px;
  }

  .card-design-stage {
    min-height: 420px;
    border-right: 0;
    border-bottom: 1px solid rgba(238, 233, 223, 0.16);
  }

  .skills-placeholder {
    min-height: 420px;
    border-right: 0;
    border-bottom: 1px solid rgba(238, 233, 223, 0.16);
  }

  .skills-panel-copy {
    min-height: 270px;
  }

}

@media (max-width: 620px) {
  :root {
    --page-pad: 18px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  body {
    font-size: 15px;
  }

  .brand-copy small {
    display: block;
    max-width: 156px;
    font-size: 7.5px;
    line-height: 1.35;
    letter-spacing: 0.06em;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    max-width: 156px;
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: 0.045em;
    white-space: normal;
  }

  .brand-mark {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .language-toggle {
    min-width: 82px;
    min-height: 38px;
    padding-inline: 11px;
    font-size: 10px;
  }

  .hero {
    padding-top: 104px;
    padding-bottom: 18px;
  }

  .eyebrow {
    margin-bottom: 23px;
    gap: 7px 14px;
    font-size: 9px;
  }

  .eyebrow span:not(:last-child)::after {
    right: -9px;
  }

  .hero h1 {
    font-size: clamp(56px, 17.5vw, 82px);
  }

  .hero h1 em {
    margin-left: 16px;
  }

  .hero-summary {
    margin-top: 26px;
    font-size: 14px;
  }

  .hero-actions {
    margin-top: 30px;
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .hero-feature-heading {
    margin-top: 8px;
  }

  .hero-stage {
    aspect-ratio: 1 / 1.08;
  }

  .hero-slide-caption {
    right: 18px;
    bottom: 12px;
    left: 18px;
  }

  .hero-slide-poster {
    padding: 12px;
  }

  .hero-slide-caption h2 {
    font-size: 31px;
  }

  .carousel-arrow {
    top: 43%;
    width: 38px;
    height: 38px;
  }

  .carousel-arrow-prev {
    left: 12px;
  }

  .carousel-arrow-next {
    right: 12px;
  }

  .carousel-footer {
    grid-template-columns: auto 1fr;
  }

  .carousel-footer p {
    max-width: none;
    font-size: 11.5px;
    line-height: 1.55;
  }

  .carousel-progress {
    display: none;
  }

  .about,
  .work,
  .playground {
    padding-block: 96px;
  }

  .work {
    padding-top: 68px;
  }

  .about {
    padding-top: 72px;
  }

  .display-heading {
    font-size: clamp(52px, 15.5vw, 76px);
  }

  .about-grid {
    margin-top: 24px;
  }

  .about-portrait {
    height: 460px;
    min-height: 460px;
    padding: 8px;
  }

  .about-portrait::after {
    inset: 8px;
  }

  .about-title {
    margin-top: -95px;
    padding-inline: 8px;
    font-size: clamp(42px, 11.8vw, 52px);
  }

  .about-card {
    padding: 24px 20px;
  }

  .about-card-title h3 {
    font-size: clamp(22px, 6.5vw, 28px);
  }

  .about-card-copy {
    min-height: 0;
    gap: 42px;
  }

  .about-copy-text {
    font-size: 14px;
    line-height: 1.8;
  }

  .section-heading {
    gap: 16px;
  }

  .work-heading-copy {
    justify-content: flex-start;
  }

  .work-instruction {
    align-items: flex-start;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.65;
  }

  .work-instruction::before {
    flex-basis: 24px;
    width: 24px;
    margin-top: 0.85em;
  }

  .section-kicker {
    font-size: 8px;
  }

  .about-label {
    min-height: 32px;
    padding: 0 16px 7px 41px;
    font-size: 13px;
    letter-spacing: 0.16em;
  }

  .about-label::before {
    width: 28px;
    height: 28px;
  }

  .about-label::after {
    left: 11px;
  }

  .project-list {
    margin-top: 52px;
    gap: 64px;
  }

  .project-meta {
    min-height: 0;
    padding: 22px 18px 26px;
    gap: 12px;
  }

  .project-type {
    margin-top: 22px;
  }

  .project h3 {
    font-size: clamp(46px, 14vw, 66px);
  }

  .project-description {
    margin-top: 20px;
  }

  .project-tags {
    margin-top: 0;
  }

  .project-link {
    margin-top: 0;
  }

  .project-visual {
    aspect-ratio: 1.65 / 1;
  }

  .project-visual-poster {
    padding: 8px;
  }

  .experiment-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .experiment-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .skills-tab {
    min-height: 72px;
    padding: 12px 10px;
    grid-template-columns: 24px 1fr;
  }

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

  .skills-tab:nth-child(even) {
    border-right: 0;
  }

  .skills-tab:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .skills-tab:nth-child(n + 3) {
    border-bottom: 0;
  }

  .skills-tab strong {
    font-size: 18px;
  }

  .skills-tab small {
    display: none;
  }

  .skills-placeholder {
    min-height: 290px;
  }

  .game-showcase {
    min-height: 310px;
    padding: 10px;
    gap: 10px;
  }

  .modeling-showcase {
    min-height: 310px;
    padding: 10px;
    gap: 10px;
  }

  .drawing-showcase {
    min-height: 420px;
  }

  .drawing-carousel {
    inset: 7% 12% 15%;
  }

  .card-design-stage {
    min-height: 420px;
  }

  .card-viewer {
    inset: 7% 11% 15%;
  }

  .card-viewer-slide {
    width: min(78%, 230px);
  }

  .card-viewer-arrow {
    width: 34px;
    height: 34px;
  }

  .card-viewer-prev {
    left: 1%;
  }

  .card-viewer-next {
    right: 1%;
  }

  .card-viewer-footer {
    right: 16px;
    bottom: 14px;
    left: 16px;
  }

  .game-carousel-arrow {
    width: 34px;
    height: 34px;
  }

  .game-carousel-prev {
    left: 9px;
  }

  .game-carousel-next {
    right: 9px;
  }

  .skills-panel-copy {
    min-height: 0;
    padding: 28px 22px 32px;
  }

}

@media (hover: none) {
  .cursor-light {
    display: none;
  }

  .project-visual-label {
    opacity: 1;
    transform: none;
  }
}

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

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

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