@font-face {
  font-family: "Sifty";
  src: url("./assets/fonts/Sifty-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Brand Accent";
  src: url("./assets/fonts/Brand-2.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif";
  src: url("./assets/fonts/SourceHanSerif-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif";
  src: url("./assets/fonts/SourceHanSerif-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans";
  src: url("./assets/fonts/SourceHanSans-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Bahn";
  src: url("./assets/fonts/Bahnschrift.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --black: #080808;
  --black-soft: #10100f;
  --white: #f3f1eb;
  --muted: #96938b;
  --line: rgb(243 241 235 / 0.16);
  --line-strong: rgb(243 241 235 / 0.34);
  --accent: #f3f1eb;
  --glass: rgb(255 255 255 / 0.075);
  --glass-base: rgb(10 10 10 / 0.52);
  --glass-a: rgb(255 255 255 / 0.12);
  --glass-b: rgb(255 255 255 / 0.03);
  --surface: #171715;
  --surface-low: #10100f;
  --image-bg: #131311;
  --header-overlay: rgb(10 10 9 / 0.78);
  --overlay: rgb(0 0 0 / 0.82);
  --shadow: rgb(0 0 0 / 0.38);
  --font-display: "Sifty", Georgia, serif;
  --font-cn-display: "Source Serif", "Songti SC", serif;
  --font-body: "Source Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-label: "Bahn", Arial, sans-serif;
  --font-accent: "Brand Accent", Georgia, serif;
  --gutter: clamp(20px, 4.2vw, 68px);
  --max-width: 1600px;
  --radius: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);
}

html[data-theme="light"] {
  --black: #fff;
  --black-soft: #fff;
  --white: #000;
  --muted: #686868;
  --line: rgb(0 0 0 / 0.15);
  --line-strong: rgb(0 0 0 / 0.28);
  --accent: #000;
  --glass: rgb(255 255 255 / 0.62);
  --glass-base: rgb(255 255 255 / 0.82);
  --glass-a: rgb(255 255 255 / 0.92);
  --glass-b: rgb(255 255 255 / 0.58);
  --surface: #fff;
  --surface-low: #fff;
  --image-bg: #fff;
  --header-overlay: rgb(255 255 255 / 0.84);
  --overlay: rgb(255 255 255 / 0.94);
  --shadow: rgb(0 0 0 / 0.12);
}

@property --rim-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
  overflow-anchor: none;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 6%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 24%),
    var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition:
    color 350ms ease,
    background-color 350ms ease;
}

body.case-open {
  overflow: hidden;
}

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

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

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

button {
  color: inherit;
  font: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-label);
  font-size: 11px;
  transform: translateY(-180%);
}

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

.glass {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, var(--glass-a), var(--glass-b)),
    var(--glass-base);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--white) 17%, transparent),
    0 24px 80px var(--shadow);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}

.preloader {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 20px;
  background: var(--black);
  animation: preloaderOut 700ms var(--ease-soft) 1.1s forwards;
  pointer-events: none;
}

.preloader__mark {
  font-family: var(--font-accent);
  font-size: clamp(52px, 8vw, 116px);
  line-height: 0.8;
  letter-spacing: -0.045em;
}

.preloader__line {
  width: min(58vw, 420px);
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.preloader__line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: loadLine 1s var(--ease-soft) both;
}

.preloader p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  right: var(--gutter);
  left: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  padding: 0 8px 0 14px;
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.wordmark__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 26px;
  justify-content: center;
}

.site-nav a {
  transition: color 240ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.header-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;
  color: var(--muted);
}

.header-tools a {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--black);
  font-weight: 600;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 9px;
  cursor: pointer;
}

.theme-toggle__icon {
  width: 13px;
  height: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: conic-gradient(from 90deg, var(--black) 0 50%, var(--white) 50% 100%);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.availability i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.1);
}

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  padding: 112px var(--gutter) 30px;
  border-bottom: 1px solid var(--line);
}

.fluid-canvas,
.hero-noise,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fluid-canvas {
  opacity: 0.7;
  filter: blur(14px) saturate(125%);
}

.hero-noise {
  opacity: 0.2;
  pointer-events: none;
  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='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-grid {
  opacity: 0.23;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%, 100% 118px;
  mask-image: linear-gradient(to bottom, transparent 4%, #000 32%, #000 85%, transparent);
}

.hero-top,
.hero-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.hero-top p,
.hero-bottom span {
  margin: 0;
}

.hero-top {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  gap: clamp(24px, 4vw, 76px);
  min-height: calc(100dvh - 208px);
  padding: clamp(44px, 7vh, 88px) 0 36px;
}

.hero-copy {
  align-self: center;
  max-width: 700px;
  padding-bottom: 3vh;
}

.hero-readable {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: var(--font-cn-display);
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.hero-readable em {
  font-style: normal;
}

.hero h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  margin: 0;
}

.hero-name {
  font-family: var(--font-cn-display);
  font-size: clamp(88px, 11.5vw, 174px);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.045em;
  animation: titleReveal 1.1s var(--ease-out) 1.15s both;
}

.folio-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: clamp(26px, 5vw, 70px);
  padding: 7px 16px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--white);
  font-family: var(--font-accent);
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1;
  letter-spacing: -0.02em;
  animation: fadeRise 800ms var(--ease-out) 1.35s both;
}

.hero-intro {
  max-width: 560px;
  margin: 34px 0 0;
  color: #c6c2b9;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.75;
  animation: fadeRise 800ms var(--ease-out) 1.45s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  animation: fadeRise 800ms var(--ease-out) 1.55s both;
}

.primary-action,
.glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.primary-action {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--black);
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: transparent;
  color: var(--accent);
}

.glass-button {
  border: 1px solid var(--line-strong);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    border-color 220ms ease,
    background-color 220ms ease;
}

.glass-button:hover,
.glass-button:focus-visible {
  border-color: var(--accent);
  background: rgb(255 255 255 / 0.08);
}

.hero-stage {
  position: relative;
  min-height: 620px;
  transform-style: preserve-3d;
}

.fluid-glint {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 48% 52% 62% 38% / 42% 38% 62% 58%;
  background:
    radial-gradient(circle at 34% 34%, rgb(255 255 255 / 0.8), transparent 7%),
    radial-gradient(circle at 45% 42%, rgb(255 255 255 / 0.55), rgba(255 255 255 / 0.045) 32%, transparent 68%);
  filter: blur(28px);
  opacity: 0.62;
  transform: translate(-50%, -50%) rotate(-12deg);
  animation: blobMorph 9s ease-in-out infinite alternate;
}

.hero-sheet {
  position: absolute;
  width: 60%;
  margin: 0;
  padding: 8px 8px 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.025)),
    rgb(18 18 17 / 0.72);
  box-shadow: 0 36px 100px rgb(0 0 0 / 0.44);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform-style: preserve-3d;
}

.hero-sheet img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

.hero-sheet__tab {
  position: absolute;
  top: -28px;
  left: 14px;
  min-width: 140px;
  padding: 7px 12px 8px;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: rgb(24 24 22 / 0.9);
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.hero-sheet--back {
  top: 4%;
  right: 3%;
  transform: rotate(7deg) translateZ(-40px);
  animation: sheetBack 1s var(--ease-out) 1.25s both;
}

.hero-sheet--middle {
  top: 30%;
  left: 0;
  transform: rotate(-7deg) translateZ(10px);
  animation: sheetMiddle 1s var(--ease-out) 1.35s both;
}

.hero-sheet--front {
  right: 8%;
  bottom: 5%;
  z-index: 3;
  width: 64%;
  transform: rotate(2.5deg) translateZ(40px);
  animation: sheetFront 1s var(--ease-out) 1.45s both;
}

.glass-note {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: min(270px, 54%);
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.035)),
    rgb(15 15 14 / 0.64);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    0 24px 60px rgb(0 0 0 / 0.34);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
}

.glass-note__label {
  display: block;
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.glass-note strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 300;
}

.material-switch {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.material-switch button {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  cursor: pointer;
}

.material-switch button.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.hero[data-material="glass"] .fluid-canvas {
  opacity: 0.18;
}

.hero[data-material="glass"] .hero-sheet {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.28), rgb(255 255 255 / 0.06)),
    rgb(15 15 14 / 0.35);
  backdrop-filter: blur(34px) saturate(155%);
  -webkit-backdrop-filter: blur(34px) saturate(155%);
}

.hero[data-material="glass"] .hero-sheet--back {
  transform: rotate(0) translate(-10%, -2%) translateZ(-30px) scale(0.9);
}

.hero[data-material="glass"] .hero-sheet--middle {
  transform: rotate(0) translate(12%, 14%) translateZ(5px) scale(0.93);
}

.hero[data-material="glass"] .hero-sheet--front {
  right: 17%;
  bottom: 12%;
  transform: rotate(0) translateZ(40px) scale(1.02);
}

.hero[data-material="folder"] .hero-sheet {
  padding-top: 0;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  background: #171715;
}

.hero[data-material="folder"] .hero-sheet__tab {
  top: -29px;
  left: -1px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--accent);
  color: var(--black);
}

.hero[data-material="folder"] .hero-sheet--back {
  transform: rotate(3deg) translate(6%, 0);
}

.hero[data-material="folder"] .hero-sheet--middle {
  transform: rotate(-2deg) translate(-1%, 17%);
}

.hero[data-material="folder"] .hero-sheet--front {
  right: 4%;
  bottom: 1%;
  transform: rotate(1deg);
}

.hero-stage {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 26px;
  min-height: 620px;
}

.hero-view {
  position: relative;
  z-index: 2;
  width: min(92%, 700px);
  margin: 0;
  padding: 10px 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, var(--glass-a), var(--glass-b)),
    var(--glass-base);
  box-shadow: 0 34px 90px var(--shadow);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  transform: rotate(-1.2deg);
  transition:
    transform 600ms var(--ease-out),
    background-color 350ms ease,
    border-radius 450ms var(--ease-out);
  animation: heroViewIn 1s var(--ease-out) 1.25s both;
}

.hero-view__tab {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 10px;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.hero-view > img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  background: var(--image-bg);
}

.hero-view__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: 14px 4px 2px;
}

.hero-view__meta div {
  display: grid;
  gap: 2px;
}

.hero-view__meta strong {
  font-family: var(--font-cn-display);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.2;
}

.hero-view__meta span {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.hero-project-switch {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.hero-project-switch button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    color 220ms ease,
    border-color 220ms ease;
}

.hero-project-switch button.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.glass-note {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 3;
  width: min(92%, 430px);
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--glass-a), var(--glass-b)),
    var(--glass-base);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--white) 16%, transparent),
    0 18px 50px var(--shadow);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
}

.hero[data-material="glass"] .hero-view {
  transform: rotate(0);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--white) 24%, transparent), var(--glass-b)),
    var(--glass-base);
}

.hero[data-material="folder"] .hero-view {
  padding-top: 0;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  background: var(--surface);
  transform: rotate(0.5deg);
}

.hero[data-material="folder"] .hero-view__tab {
  width: max-content;
  min-width: 180px;
  margin: 0 0 10px -1px;
  padding: 7px 13px 8px;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  background: var(--accent);
  color: var(--black);
}

.hero[data-material="folder"] .hero-view > img {
  border-radius: 0 0 11px 11px;
}

html[data-theme="light"] .fluid-canvas {
  opacity: 0.28;
}

html[data-theme="light"] .fluid-glint {
  background:
    radial-gradient(circle at 34% 34%, rgb(255 255 255 / 0.65), transparent 7%),
    radial-gradient(circle at 45% 42%, rgb(16 16 15 / 0.22), rgba(16 16 15 / 0.025) 32%, transparent 68%);
}

html[data-theme="light"] body {
  background: #fff;
}

.hero-scroll {
  position: relative;
  height: 185dvh;
}

.folder-sentinel {
  position: absolute;
  top: 48dvh;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.folder-sentinel {
  position: absolute;
  top: 48dvh;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.hero {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  padding: 102px var(--gutter) 28px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-haze {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--white) 12%, transparent), transparent 30%),
    linear-gradient(to bottom, transparent 58%, var(--black) 96%);
}

html[data-theme="light"] .hero-haze {
  background: linear-gradient(to bottom, transparent 58%, #fff 96%);
}

html[data-theme="light"] .fluid-canvas {
  display: none;
}

.folder-stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 0;
  perspective: 1700px;
  perspective-origin: 50% 88%;
}

.folder-shell {
  position: relative;
  width: min(82vw, 1120px);
  aspect-ratio: 1.9;
  transform-style: preserve-3d;
  animation: folderStageIn 1s var(--ease-out) 1.15s both;
}

.folder-tab {
  position: absolute;
  z-index: 6;
  top: -37px;
  left: 42px;
  display: grid;
  place-items: center;
  width: 160px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(180deg, var(--glass-a), var(--glass-b)),
    var(--glass-base);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  color: color-mix(in srgb, var(--white) 46%, transparent);
  font-family: var(--font-accent);
  font-size: 19px;
  letter-spacing: -0.02em;
}

.folder-back {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, var(--glass-a), var(--glass-b)),
    var(--glass-base);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--white) 26%, transparent),
    0 45px 120px var(--shadow);
  backdrop-filter: blur(34px) saturate(165%);
  -webkit-backdrop-filter: blur(34px) saturate(165%);
}

.folder-inside {
  position: absolute;
  z-index: 1;
  inset: 14px 14px 14px 18px;
  display: grid;
  display: grid;
  place-items: center;
  padding: clamp(8px, 1.2vw, 15px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(32px) saturate(145%);
  -webkit-backdrop-filter: blur(32px) saturate(145%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--black) 20%, transparent);
  opacity: 1;
  filter: none;
  transform: none;
}

.folder-profile-sheet {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
  box-shadow: 0 12px 32px var(--shadow);
  opacity: 0.2;
  transform: translateY(44%) scale(0.97);
  transition:
    opacity 800ms var(--ease-out),
    transform 900ms var(--ease-out);
}

.folder-inside__head,
.folder-inside__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.profile-page {
  display: grid;
  grid-template-columns: minmax(130px, 0.31fr) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 48px);
  min-height: 0;
}

.profile-page__portrait {
  align-self: stretch;
  margin: 0;
  overflow: hidden;
  border-radius: 9px;
  background: var(--image-bg);
}

.profile-page__portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  filter: grayscale(1) contrast(1.05);
}

.profile-page__content {
  align-self: center;
  min-width: 0;
}

.profile-page__role {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.profile-page__content h2 {
  margin: 0;
  font-family: var(--font-cn-display);
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.08em;
}

.profile-page__intro {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--font-cn-display);
  font-size: clamp(13px, 1.35vw, 18px);
  line-height: 1.8;
}

.profile-page__experience {
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}

.profile-page__experience div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.profile-page__experience dt {
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.profile-page__experience dd {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.profile-page__link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.folder-cover {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 58px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(118deg, rgb(255 255 255 / 0.18), transparent 28% 62%, rgb(255 255 255 / 0.08)),
    linear-gradient(160deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.018)),
    color-mix(in srgb, var(--surface) 22%, transparent);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.42),
    inset 1px 0 0 rgb(255 255 255 / 0.13),
    inset 0 -1px 0 rgb(255 255 255 / 0.16),
    0 55px 140px var(--shadow);
  backdrop-filter: blur(44px) saturate(185%) contrast(1.02);
  -webkit-backdrop-filter: blur(44px) saturate(185%) contrast(1.02);
  transform-origin: top center;
  backface-visibility: hidden;
  transform: rotateX(0deg) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 1000ms var(--ease-soft);
}

.folder-cover::before,
.folder-cover::after,
.folder-cover__light {
  position: absolute;
  pointer-events: none;
  content: "";
}

.folder-cover::before {
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background:
    linear-gradient(115deg, rgb(255 255 255 / 0.3), transparent 18% 64%, rgb(255 255 255 / 0.11)),
    radial-gradient(circle at 76% 16%, rgb(255 255 255 / 0.25), transparent 28%);
  opacity: 0.82;
  mix-blend-mode: screen;
}

.folder-cover::after {
  right: -18%;
  bottom: -42%;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 48% 52% 38% 62% / 58% 34% 66% 42%;
  background:
    radial-gradient(circle at 42% 40%, rgb(143 230 255 / 0.15), transparent 52%),
    radial-gradient(circle at 68% 56%, rgb(255 154 203 / 0.11), transparent 62%);
  filter: blur(26px);
  animation: glassDrift 8s ease-in-out infinite alternate;
}

.folder-cover__light {
  z-index: 0;
  top: -35%;
  left: 48%;
  width: 34%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.2), transparent);
  filter: blur(22px);
  transform: rotate(18deg);
  animation: glassSheen 9s ease-in-out infinite;
}

.folder-cover__rim {
  position: absolute;
  z-index: 4;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--rim-angle),
    rgb(255 255 255 / 0.05),
    rgb(122 221 255 / 0.52),
    rgb(255 157 214 / 0.42),
    rgb(207 190 255 / 0.48),
    rgb(255 219 162 / 0.32),
    rgb(255 255 255 / 0.05)
  );
  opacity: 0.72;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: rimTurn 13s linear infinite;
  transition: opacity 400ms ease;
}

.folder-cover__rim {
  filter: saturate(1.08) brightness(1.03);
}

.folder-cover:hover .folder-cover__rim {
  opacity: 1;
}

.folder-cover__edition,
.folder-cover__foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgb(255 255 255 / 0.46);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.folder-cover__edition {
  align-self: flex-end;
}

.engraved-name {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 8px;
  place-items: center;
  width: 80%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.engraved-name h1,
.engraved-name p {
  margin: 0;
  color: color-mix(in srgb, var(--white) 24%, transparent);
  text-shadow:
    0 1px 1px color-mix(in srgb, var(--white) 24%, transparent),
    0 -1px 1px color-mix(in srgb, var(--black) 70%, transparent);
}

.engraved-name h1 {
  font-family: var(--font-cn-display);
  font-size: clamp(32px, 4.4vw, 62px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.22em;
}

.engraved-name p {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.25vw, 18px);
  font-weight: 300;
  letter-spacing: 0.26em;
}

.folder-cover__foot {
  align-self: flex-start;
}

.hero-scroll.is-open .folder-cover {
  transform: rotateX(108deg) translateZ(18px);
}

.hero-scroll.is-open .folder-inside {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.hero-scroll.is-open .folder-profile-sheet {
  opacity: 1;
  transform: translateY(0) scale(1);
}

html[data-theme="light"] .engraved-name h1,
html[data-theme="light"] .engraved-name p {
  color: rgb(0 0 0 / 0.18);
  text-shadow:
    0 1px 1px rgb(255 255 255 / 0.92),
    0 -1px 1px rgb(0 0 0 / 0.32);
}

html[data-theme="light"] .folder-cover::before {
  background:
    linear-gradient(115deg, rgb(255 255 255 / 0.76), transparent 24% 62%, rgb(255 255 255 / 0.34)),
    radial-gradient(circle at 76% 16%, rgb(255 255 255 / 0.5), transparent 30%);
}

html[data-theme="light"] .folder-cover {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.9),
    inset 0 -1px 0 rgb(255 255 255 / 0.55),
    0 40px 100px rgb(0 0 0 / 0.12);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.hero-bottom a,
.hero-bottom button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.hero-bottom a {
  justify-self: start;
}

.hero-bottom button {
  justify-self: center;
  cursor: pointer;
}

.archive-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 58px;
  padding: 0 26px;
  border: 1px solid var(--accent) !important;
  border-radius: 999px;
  background: var(--accent) !important;
  color: var(--black) !important;
  font-family: var(--font-label);
  font-size: 12px !important;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition:
    transform 220ms var(--ease-out),
    background-color 220ms ease,
    color 220ms ease;
}

.archive-button:hover,
.archive-button:focus-visible {
  background: transparent !important;
  color: var(--accent) !important;
}

.archive-button:active {
  transform: scale(0.985);
}

.archive-button--large {
  min-height: 68px;
  padding-inline: 34px;
  gap: 42px;
  font-size: 14px !important;
}

.hero-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section-shell {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
  scroll-margin-top: 92px;
}

.work {
  padding-top: clamp(105px, 13vw, 210px);
  padding-bottom: clamp(100px, 13vw, 210px);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.35fr);
  gap: 38px 6vw;
  align-items: end;
  padding-bottom: clamp(58px, 8vw, 110px);
}

.eyebrow {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.section-intro h2,
.about-heading h2 {
  margin: 0;
  font-family: var(--font-cn-display);
  font-size: clamp(48px, 6.8vw, 108px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.section-intro > p:last-child {
  max-width: 340px;
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.9;
}

.project-carousel {
  position: relative;
  margin-top: 12px;
  --rail-card-width: min(60vw, 800px);
}

.carousel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.carousel-toolbar p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.carousel-arrows {
  display: flex;
  gap: 8px;
}

.carousel-toggle {
  position: absolute;
  z-index: 7;
  bottom: 6px;
  left: max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--glass-edge-soft);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.02)),
    var(--glass-base);
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  transition:
    color 220ms ease,
    border-color 220ms ease,
    transform 220ms var(--ease-out);
}

.carousel-toggle::before {
  width: 15px;
  height: 1px;
  margin-right: 9px;
  background: currentColor;
  box-shadow: 0 -3px 0 color-mix(in srgb, currentColor 55%, transparent);
  content: "";
}

.carousel-toggle:hover,
.carousel-toggle:focus-visible {
  border-color: var(--line-strong);
  color: var(--white);
}

.carousel-toggle:active {
  transform: scale(0.98);
}

html[data-theme="light"] .carousel-toggle {
  border-color: rgb(0 0 0 / 0.12);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.42)),
    rgb(255 255 255 / 0.5);
  color: rgb(0 0 0 / 0.56);
}

@media (max-width: 600px) {
  .carousel-toggle {
    bottom: 11px;
    left: var(--gutter);
    min-height: 44px;
    padding-inline: 15px;
    font-size: 10px;
  }
}

.carousel-arrows button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--glass);
  cursor: pointer;
  transition:
    color 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.carousel-arrows button:hover,
.carousel-arrows button:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--black);
}

.project-rail {
  display: flex;
  gap: clamp(20px, 3vw, 46px);
  padding: 58px 0 30px;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-behavior: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.project-rail::-webkit-scrollbar {
  display: none;
}

.project-folder {
  --i: 0;
  position: relative;
  flex: 0 0 var(--rail-card-width);
  margin-left: calc(var(--rail-card-width) * -0.76);
  padding-top: 36px;
  scroll-snap-align: start;
  opacity: calc(1 - var(--i) * 0.035);
  transform: translateY(calc(var(--i) * 11px)) rotate(calc((var(--i) - 2) * 0.45deg));
  transform-origin: center top;
  transition:
    margin-left 900ms var(--ease-out),
    transform 900ms var(--ease-out),
    opacity 700ms var(--ease-out);
  z-index: calc(10 - var(--i));
}

.project-folder:first-child {
  margin-left: 0;
}

.project-carousel.is-expanded .project-rail {
  overflow-x: auto;
}

.project-carousel.is-expanded .project-folder {
  margin-left: 0;
  opacity: 1;
  transform: translateY(0) rotate(0);
  z-index: 1;
}

.project-folder::before {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: min(72%, 500px);
  height: 38px;
  content: "";
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(180deg, var(--glass-a), var(--glass-b)),
    var(--glass-base);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.24);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.project-folder button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.project-folder__tab {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 18px;
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.project-folder__tab b {
  color: var(--accent);
  font-weight: 500;
}

.project-folder__window {
  position: relative;
  z-index: 1;
  display: block;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  background:
    linear-gradient(145deg, var(--glass-a), var(--glass-b)),
    var(--glass-base);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.24),
    0 30px 80px var(--shadow);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  transition:
    border-color 260ms ease,
    transform 500ms var(--ease-out);
}

.project-folder__window img {
  width: 100%;
  height: auto;
  border-radius: 9px;
  object-fit: contain;
  background: var(--image-bg);
}

.project-folder button:hover .project-folder__window,
.project-folder button:focus-visible .project-folder__window {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.project-folder__meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  padding: 14px 2px 0;
  border-top: 1px solid var(--line);
}

.project-folder__meta strong {
  font-family: var(--font-cn-display);
  font-size: clamp(22px, 2.3vw, 36px);
  font-weight: 300;
  line-height: 1.2;
}

.project-folder__meta span {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.05em;
}

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

.rail-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 14%;
  background: var(--accent);
  transition: width 120ms linear;
}

.work-browser {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr);
  gap: clamp(32px, 7vw, 120px);
  align-items: start;
}

.work-list {
  border-top: 1px solid var(--line);
}

.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 34px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 18px 14px 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  scroll-margin-top: 110px;
  transition:
    color 280ms var(--ease-out),
    padding-left 280ms var(--ease-out);
}

.work-row::before {
  position: absolute;
  inset: 8px 0;
  content: "";
  border-radius: 10px;
  background: linear-gradient(90deg, rgb(255 255 255 / 0.07), transparent 72%);
  opacity: 0;
  transition: opacity 280ms var(--ease-out);
}

.work-row:hover,
.work-row:focus-visible,
.work-row.is-active {
  padding-left: 14px;
}

.work-row:hover::before,
.work-row:focus-visible::before,
.work-row.is-active::before {
  opacity: 1;
}

.work-row.is-active {
  color: var(--accent);
}

.work-row__index,
.work-row__count,
.work-row__meta {
  position: relative;
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.work-row__meta {
  color: var(--muted);
  text-align: right;
}

.work-row__title {
  position: relative;
  font-family: var(--font-cn-display);
  font-size: clamp(19px, 1.85vw, 29px);
  font-weight: 400;
  line-height: 1.15;
}

.folder-preview {
  position: sticky;
  top: 96px;
  padding: 16px 16px 18px;
  border-radius: var(--radius);
}

.folder-preview__tab {
  position: absolute;
  top: -31px;
  left: -1px;
  display: flex;
  justify-content: space-between;
  width: min(74%, 480px);
  padding: 8px 15px 9px;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.folder-preview__window {
  overflow: hidden;
  border-radius: 12px;
  background: var(--image-bg);
  box-shadow: inset 0 0 0 1px var(--line);
}

.folder-preview__window img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.folder-preview__info {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding-top: 18px;
}

.folder-preview__info h3 {
  margin: 0 0 3px;
  font-family: var(--font-cn-display);
  font-size: clamp(22px, 2.2vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.folder-preview__info p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.folder-preview__open {
  flex: none;
  padding: 10px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 9px;
  cursor: pointer;
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

.folder-preview__open:hover,
.folder-preview__open:focus-visible {
  background: var(--accent);
  color: var(--black);
}

.archive-strip {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 48px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.archive-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.archive-strip button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.about {
  padding-top: clamp(110px, 13vw, 210px);
  padding-bottom: clamp(110px, 13vw, 210px);
  border-top: 1px solid var(--line);
}

.about-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.35fr);
  gap: 26px;
  align-items: end;
}

.about-heading .eyebrow {
  grid-column: 1 / -1;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(42px, 10vw, 170px);
  align-items: start;
  margin-top: clamp(62px, 9vw, 130px);
}

.folder-panel {
  position: relative;
  padding: 12px 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, var(--glass-a), var(--glass-b)),
    var(--glass-base);
  box-shadow: 0 30px 90px var(--shadow);
}

.folder-panel__tab {
  position: absolute;
  top: -30px;
  left: -1px;
  min-width: 180px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--surface);
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.about-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  filter: grayscale(0.72) contrast(1.04);
}

.about-card__caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 13px;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.07em;
}

.about-copy {
  padding-top: clamp(0px, 5vw, 80px);
}

.about-copy > p {
  max-width: 720px;
  margin: 0 0 1.15em;
  color: #c7c4bc;
  font-family: var(--font-cn-display);
  font-size: clamp(18px, 1.85vw, 27px);
  line-height: 1.8;
}

.about-copy .about-lead {
  color: var(--white);
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 400;
  line-height: 1.55;
}

.practice-list {
  margin: 42px 0 0;
  border-top: 1px solid var(--line);
}

.practice-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.practice-list dt {
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.practice-list dd {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  padding-top: clamp(105px, 13vw, 210px);
  padding-bottom: clamp(105px, 13vw, 210px);
  border-top: 1px solid var(--line);
}

.contact-meta {
  align-self: start;
}

.contact-meta p:last-child {
  max-width: 200px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.contact h2 {
  margin: 0;
  font-family: var(--font-cn-display);
  font-size: clamp(52px, 7.2vw, 112px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.contact h2 span {
  color: var(--accent);
}

.contact-links {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.contact-links a {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.4vw, 36px);
  font-weight: 300;
  letter-spacing: 0.015em;
}

.contact-links p {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 10px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

.case-overlay[hidden] {
  display: none;
}

.case-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
}

.case-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeIn 280ms ease-out both;
}

.case-overlay__panel {
  position: absolute;
  inset: 18px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--black-soft);
  animation: caseIn 600ms var(--ease-out) both;
  overscroll-behavior: contain;
}

.case-header {
  position: sticky;
  z-index: 4;
  top: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(280px, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 92px;
  padding: 16px clamp(18px, 3.6vw, 54px);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--header-overlay);
}

.case-index {
  display: block;
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.case-header h2 {
  margin: 4px 0 0;
  font-family: var(--font-cn-display);
  font-size: clamp(24px, 2.5vw, 42px);
  font-weight: 400;
  line-height: 1.15;
}

.case-summary {
  max-width: 720px;
  margin: 0;
  color: #c7c4bc;
  font-size: 13px;
  line-height: 1.75;
}

.case-close {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--glass);
  cursor: pointer;
}

.case-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: var(--white);
}

.case-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

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

.case-content {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(26px, 4vw, 60px) clamp(18px, 4vw, 60px) clamp(64px, 8vw, 120px);
}

.case-nav {
  position: sticky;
  top: 120px;
  align-self: start;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.case-nav > p,
.case-page-total {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.case-nav nav {
  display: grid;
  gap: 9px;
  margin: 20px 0 28px;
}

.case-nav a {
  color: var(--muted);
  font-family: var(--font-cn-display);
  font-size: 14px;
  line-height: 1.4;
  transition: color 200ms ease;
}

.case-nav a:hover,
.case-nav a:focus-visible {
  color: var(--accent);
}

.case-gallery {
  display: grid;
  gap: clamp(48px, 7vw, 100px);
}

.case-chapter {
  scroll-margin-top: 120px;
}

.case-chapter__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.case-chapter__head h3 {
  margin: 0;
  font-family: var(--font-cn-display);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.2;
}

.case-chapter__head span {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.case-pages {
  display: grid;
  gap: 14px;
}

.case-page {
  margin: 0;
}

.case-page img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--image-bg);
}

.case-page figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 7px;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.07em;
}

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

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

@keyframes loadLine {
  from {
    transform: scaleX(0);
  }
}

@keyframes preloaderOut {
  0% {
    clip-path: inset(0);
  }
  100% {
    clip-path: inset(0 0 100% 0);
  }
}

@keyframes titleReveal {
  from {
    clip-path: inset(100% 0 0);
    transform: translateY(36px);
  }
  to {
    clip-path: inset(-12% 0 0);
    transform: translateY(0);
  }
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sheetBack {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(13deg) scale(0.94);
  }
}

@keyframes sheetMiddle {
  from {
    opacity: 0;
    transform: translate(-30px, 34px) rotate(-12deg) scale(0.94);
  }
}

@keyframes sheetFront {
  from {
    opacity: 0;
    transform: translate(34px, 46px) rotate(8deg) scale(0.94);
  }
}

@keyframes blobMorph {
  0% {
    border-radius: 48% 52% 62% 38% / 42% 38% 62% 58%;
    transform: translate(-50%, -50%) rotate(-12deg) scale(0.94);
  }
  50% {
    border-radius: 62% 38% 42% 58% / 54% 66% 34% 46%;
    transform: translate(-48%, -53%) rotate(8deg) scale(1.05);
  }
  100% {
    border-radius: 38% 62% 54% 46% / 62% 42% 58% 38%;
    transform: translate(-52%, -47%) rotate(-5deg) scale(0.98);
  }
}

@keyframes folderStageIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes openFolder {
  0% {
    transform: rotateX(0deg) translateZ(0);
  }
  100% {
    transform: rotateX(108deg) translateZ(18px);
  }
}

@keyframes revealFolderPage {
  0% {
    opacity: 0.2;
    filter: blur(8px);
    transform: translateY(44%) scale(0.97);
  }
  70%,
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes liftFolder {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-2.5vh) scale(1.015);
  }
}

@keyframes glassSheen {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-120%) rotate(18deg);
  }
  45% {
    opacity: 0.75;
  }
  70% {
    opacity: 0.2;
    transform: translateX(160%) rotate(18deg);
  }
}

@keyframes glassDrift {
  from {
    transform: translate3d(-4%, 1%, 0) scale(0.92);
  }
  to {
    transform: translate3d(6%, -5%, 0) scale(1.08);
  }
}

@keyframes rimTurn {
  to {
    --rim-angle: 360deg;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

@keyframes caseIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.982);
  }
}

@media (max-width: 1180px) {
  .hero-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .hero-stage {
    min-height: 540px;
  }

  .work-browser {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 44px;
  }

  .work-row {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
  }

  .work-row__meta {
    display: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 12px;
    grid-template-columns: 1fr auto auto;
  }

  .availability {
    display: none;
  }

  .hero {
    padding-top: 94px;
  }

  .hero-layout {
    display: block;
    min-height: auto;
    padding-top: 58px;
  }

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

  .hero-name {
    font-size: clamp(84px, 17vw, 144px);
  }

  .folio-badge {
    margin-bottom: 30px;
  }

  .hero-stage {
    min-height: 500px;
    margin-top: 58px;
  }

  .hero-bottom {
    flex-wrap: wrap;
  }

  .section-intro,
  .work-browser,
  .about-heading,
  .about-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .folder-preview {
    position: relative;
    top: auto;
    order: -1;
    margin-top: 22px;
  }

  .contact-links {
    grid-column: 1;
  }

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

  .case-summary {
    grid-column: 1 / -1;
    grid-row: 2;
  }

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

  .case-nav {
    position: relative;
    top: auto;
    padding: 0 0 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .case-page-total {
    display: none;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 18px;
    --radius: 16px;
  }

  .site-header {
    right: 12px;
    left: 12px;
    min-height: 54px;
    padding-left: 10px;
  }

  .wordmark > span:last-child {
    display: none;
  }

  .header-tools {
    display: flex;
  }

  .site-nav {
    gap: 14px;
    font-size: 9px;
  }

  .header-tools > a,
  .header-tools .availability {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 86px;
    padding-bottom: 22px;
  }

  .hero-top {
    display: grid;
    gap: 5px;
  }

  .hero-top p:last-child {
    text-align: left;
  }

  .hero-layout {
    padding-top: 42px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-readable {
    margin-bottom: 16px;
    font-size: 16px;
  }

  .hero-name {
    font-size: clamp(72px, 20vw, 104px);
  }

  .hero h1 {
    gap: 10px;
  }

  .folio-badge {
    min-height: 29px;
    margin-bottom: 22px;
    padding: 5px 11px 6px;
    font-size: 17px;
  }

  .hero-intro {
    margin-top: 26px;
    font-size: 15px;
  }

  .hero-actions {
    flex-wrap: wrap;
    margin-top: 26px;
  }

  .hero-stage {
    min-height: 380px;
    margin-top: 64px;
  }

  .hero-sheet {
    width: 66%;
    padding: 5px 5px 0;
  }

  .hero-sheet__tab {
    top: -23px;
    min-width: 106px;
    padding: 5px 8px 6px;
    font-size: 7px;
  }

  .hero-sheet--back {
    top: 0;
    right: 0;
  }

  .hero-sheet--middle {
    top: 33%;
    left: 0;
  }

  .hero-sheet--front {
    right: 0;
    bottom: 0;
    width: 72%;
  }

  .glass-note {
    right: 0;
    bottom: 6%;
    width: 52%;
    padding: 13px;
  }

  .glass-note strong {
    font-size: 16px;
  }

  .material-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 12px;
  }

  .hero-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .section-intro h2,
  .about-heading h2,
  .contact h2 {
    font-size: clamp(40px, 12.2vw, 66px);
  }

  .work-row {
    min-height: 70px;
    padding-right: 4px;
  }

  .work-row__title {
    font-size: 21px;
  }

  .folder-preview {
    padding: 10px 10px 14px;
  }

  .folder-preview__tab {
    top: -27px;
    width: 82%;
    font-size: 7px;
  }

  .folder-preview__info {
    display: block;
  }

  .folder-preview__open {
    margin-top: 14px;
  }

  .archive-strip,
  .contact-links,
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .about-layout {
    gap: 48px;
  }

  .about-card {
    width: min(84vw, 410px);
  }

  .practice-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .case-overlay__panel {
    inset: 0;
    border: 0;
    border-radius: 0;
  }

  .case-header {
    padding: 14px 16px;
  }

  .case-summary {
    font-size: 12px;
  }

  .case-content {
    padding: 24px 16px 70px;
  }

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

  .case-chapter__head {
    display: block;
  }

  .case-chapter__head span {
    display: block;
    margin-top: 7px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass,
  .glass-button,
  .glass-note,
  .hero-sheet,
  .hero-view {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 860px) {
  .hero-scroll {
    height: 175dvh;
  }

  .hero {
    position: sticky;
    min-height: 100dvh;
  }

  .folder-shell {
    width: min(88vw, 720px);
  }

  .project-folder {
    flex-basis: 84vw;
  }
}

@media (max-width: 600px) {
  .hero-scroll {
    height: 170dvh;
  }

  .hero {
    min-height: 100dvh;
    padding-top: 82px;
    padding-bottom: 18px;
  }

  .folder-stage {
    padding-block: 32px;
  }

  .folder-shell {
    width: 94vw;
    aspect-ratio: 1.28;
  }

  .folder-tab {
    top: -27px;
    left: 22px;
    width: 110px;
    height: 29px;
    border-radius: 10px 10px 0 0;
    font-size: 14px;
  }

  .folder-cover {
    padding: 22px;
  }

  .folder-cover__edition,
  .folder-cover__foot {
    font-size: 7px;
  }

  .folder-cover__foot span:first-child {
    display: none;
  }

  .engraved-name h1 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .engraved-name p {
    font-size: 10px;
  }

  .folder-inside {
    inset: 9px 9px 9px 12px;
    gap: 9px;
    padding: 10px;
  }

  .folder-inside__head,
  .folder-inside__foot {
    font-size: 6px;
  }

  .profile-page {
    grid-template-columns: minmax(82px, 0.34fr) minmax(0, 1fr);
    gap: 12px;
  }

  .profile-page__content h2 {
    font-size: 31px;
  }

  .profile-page__intro {
    margin-top: 10px;
    font-size: 10px;
    line-height: 1.55;
  }

  .profile-page__experience {
    margin-top: 10px;
  }

  .profile-page__experience div {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 5px 0;
  }

  .profile-page__experience dt,
  .profile-page__experience dd {
    font-size: 7px;
  }

  .profile-page__link {
    margin-top: 9px;
    font-size: 8px;
  }

  .hero-bottom {
    grid-template-columns: 1fr auto;
  }

  .hero-bottom button {
    justify-self: end;
  }

  .project-folder {
    flex-basis: 87vw;
  }

  .project-rail {
    gap: 16px;
    padding-top: 38px;
    padding-bottom: 22px;
  }

  .project-folder__meta {
    display: grid;
    gap: 4px;
  }

  .project-folder__meta strong {
    font-size: 24px;
  }

  .archive-strip .archive-button {
    width: 100%;
  }
}

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

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

  .preloader {
    display: none;
  }

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

  .fluid-canvas {
    display: none;
  }

  .folder-shell {
    animation: none !important;
    transform: none !important;
  }

  .folder-cover {
    animation: none !important;
    transform: rotateX(108deg) !important;
  }

  .folder-inside {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

/* 2026 portfolio refinement: liquid folder reveal and unfolding project deck */
:root {
  --folder-progress: 0;
  --folder-cover-opacity: 1;
  --profile-reveal: 0;
  --light-x: 52%;
  --light-y: 34%;
  --glass-edge: rgb(255 255 255 / 0.48);
  --glass-edge-soft: rgb(255 255 255 / 0.18);
  --glass-shadow: rgb(0 0 0 / 0.28);
}

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

html[data-theme="light"] {
  --black: #fff;
  --black-soft: #fff;
  --white: #000;
  --line: rgb(0 0 0 / 0.12);
  --line-strong: rgb(0 0 0 / 0.24);
  --glass: rgb(255 255 255 / 0.58);
  --glass-base: rgb(255 255 255 / 0.66);
  --glass-a: rgb(255 255 255 / 0.88);
  --glass-b: rgb(255 255 255 / 0.34);
  --surface: #fff;
  --surface-low: #fff;
  --image-bg: #fff;
  --header-overlay: rgb(255 255 255 / 0.78);
  --overlay: rgb(255 255 255 / 0.94);
  --glass-edge: rgb(255 255 255 / 0.92);
  --glass-edge-soft: rgb(255 255 255 / 0.52);
  --glass-shadow: rgb(70 82 106 / 0.13);
}

html[data-theme="light"],
html[data-theme="light"] body {
  background: #fff;
}

.hero-scroll {
  height: 235dvh;
  background: var(--black);
}

.hero {
  isolation: isolate;
  background: var(--black);
}

html[data-theme="light"] .hero {
  background: #fff;
}

.fluid-canvas {
  z-index: 0;
  opacity: 0.78;
  filter: blur(34px) saturate(145%);
}

html[data-theme="light"] .fluid-canvas {
  display: block;
  opacity: 0.72;
  filter: blur(38px) saturate(125%);
}

.hero-noise {
  z-index: 1;
  opacity: 0.12;
}

.hero-haze {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 42%, rgb(255 255 255 / 0.08), transparent 36%),
    linear-gradient(to bottom, transparent 64%, var(--black) 98%);
}

html[data-theme="light"] .hero-haze {
  background:
    radial-gradient(circle at 50% 44%, rgb(255 255 255 / 0.44), transparent 42%),
    linear-gradient(to bottom, transparent 68%, #fff 98%);
}

.hero-top {
  z-index: 7;
}

.profile-reveal {
  position: absolute;
  z-index: 2;
  top: clamp(118px, 13vh, 158px);
  left: 50%;
  width: min(90vw, 1320px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.36);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 28px 80px rgb(0 0 0 / 0.35),
    0 0 0 1px rgb(0 0 0 / 0.06);
  opacity: var(--profile-reveal);
  filter: blur(calc((1 - var(--profile-reveal)) * 9px));
  transform:
    translate3d(-50%, calc((1 - var(--profile-reveal)) * 28vh), 0)
    scale(calc(0.86 + var(--profile-reveal) * 0.14));
  transform-origin: 50% 100%;
  will-change: transform, opacity, filter;
}

.profile-reveal img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

html[data-theme="light"] .profile-reveal {
  border-color: rgb(255 255 255 / 0.92);
  box-shadow:
    0 30px 90px rgb(44 56 77 / 0.14),
    0 0 0 1px rgb(0 0 0 / 0.05);
}

.folder-stage {
  z-index: 4;
  align-self: stretch;
  padding-block: clamp(34px, 6vh, 74px);
}

.folder-shell {
  width: min(90vw, 1320px);
  aspect-ratio: 1.9;
  transform: scale(calc(1 + var(--folder-progress) * 0.2)) translateY(calc(var(--folder-progress) * -3.5vh));
  transform-origin: 50% 52%;
  animation: folderStageIn 1s var(--ease-out) 1.15s both;
  will-change: transform;
}

.folder-tab {
  z-index: 7;
  top: -38px;
  left: 44px;
  width: 154px;
  height: 40px;
  border-color: var(--glass-edge);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.24), rgb(255 255 255 / 0.055)),
    rgb(255 255 255 / 0.035);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.6),
    0 -12px 32px rgb(255 255 255 / 0.06);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: rgb(255 255 255 / 0.52);
  opacity: calc(1 - var(--folder-progress) * 1.3);
}

html[data-theme="light"] .folder-tab {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.88), rgb(255 255 255 / 0.46)),
    rgb(255 255 255 / 0.3);
  color: rgb(0 0 0 / 0.34);
}

.folder-back {
  border-color: var(--glass-edge-soft);
  background:
    radial-gradient(circle at var(--light-x) var(--light-y), rgb(255 255 255 / 0.055), transparent 32%),
    linear-gradient(145deg, rgb(255 255 255 / 0.025), rgb(255 255 255 / 0.004));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.34),
    inset 0 -1px 0 rgb(255 255 255 / 0.1),
    0 44px 110px var(--glass-shadow);
  opacity: calc(1 - var(--folder-progress));
  backdrop-filter: blur(26px) saturate(155%);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
}

html[data-theme="light"] .folder-back {
  background:
    radial-gradient(circle at var(--light-x) var(--light-y), rgb(255 255 255 / 0.58), transparent 34%),
    linear-gradient(145deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0.08));
}

.folder-cover {
  z-index: 6;
  padding: clamp(30px, 4vw, 58px);
  border-color: var(--glass-edge);
  background:
    radial-gradient(ellipse 38% 58% at 8% 86%, rgb(112 226 255 / 0.1), transparent 72%),
    radial-gradient(ellipse 34% 56% at 94% 72%, rgb(255 140 205 / 0.08), transparent 74%),
    linear-gradient(
      118deg,
      rgb(194 246 255 / 0.075),
      rgb(255 255 255 / 0.008) 42% 69%,
      rgb(255 204 235 / 0.06)
    ),
    linear-gradient(158deg, rgb(255 255 255 / 0.028), rgb(255 255 255 / 0.002));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.64),
    inset 1px 0 0 rgb(255 255 255 / 0.18),
    inset 0 -1px 0 rgb(255 255 255 / 0.16),
    inset 0 0 54px rgb(131 229 255 / 0.085),
    inset 0 -34px 54px rgb(255 157 212 / 0.045),
    0 0 38px rgb(120 222 255 / 0.045),
    0 48px 120px var(--glass-shadow);
  backdrop-filter: blur(13px) saturate(185%) contrast(1.025);
  -webkit-backdrop-filter: blur(13px) saturate(185%) contrast(1.025);
  transform-origin: 50% 0;
  transform:
    rotateX(calc(var(--folder-progress) * -108deg))
    translateY(calc(var(--folder-progress) * -5vh))
    scale(calc(1 + var(--folder-progress) * 0.035));
  opacity: var(--folder-cover-opacity);
  transition: none;
  will-change: transform, opacity;
}

.folder-cover::before {
  inset: 1px;
  z-index: 1;
  border-radius: calc(var(--radius) - 1px);
  background:
    radial-gradient(ellipse 12% 7% at var(--light-x) var(--light-y), rgb(255 255 255 / 0.32), transparent),
    linear-gradient(120deg, rgb(255 255 255 / 0.23), transparent 18% 61%, rgb(255 255 255 / 0.1) 76%, transparent);
  opacity: 0.62;
  mix-blend-mode: screen;
}

.folder-cover::after {
  z-index: 0;
  right: -12%;
  bottom: -34%;
  width: 68%;
  border-radius: 51% 49% 57% 43% / 48% 56% 44% 52%;
  background:
    radial-gradient(circle at 35% 42%, rgb(104 227 255 / 0.22), transparent 46%),
    radial-gradient(circle at 66% 45%, rgb(255 133 207 / 0.18), transparent 54%),
    radial-gradient(circle at 48% 73%, rgb(255 224 166 / 0.16), transparent 58%);
  filter: blur(32px);
  opacity: 0.9;
  mix-blend-mode: screen;
}

html[data-theme="light"] .folder-cover {
  background:
    radial-gradient(ellipse 42% 64% at 8% 88%, rgb(123 224 255 / 0.19), transparent 72%),
    radial-gradient(ellipse 38% 62% at 94% 70%, rgb(255 149 201 / 0.16), transparent 74%),
    radial-gradient(ellipse 18% 12% at var(--light-x) var(--light-y), rgb(255 255 255 / 0.92), transparent),
    linear-gradient(118deg, rgb(255 255 255 / 0.72), rgb(255 255 255 / 0.18) 42% 67%, rgb(255 255 255 / 0.56));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 1),
    inset 1px 0 0 rgb(255 255 255 / 0.8),
    inset 0 -1px 0 rgb(255 255 255 / 0.75),
    inset 0 0 66px rgb(104 216 255 / 0.095),
    inset 0 -42px 66px rgb(255 155 209 / 0.065),
    0 0 42px rgb(115 218 255 / 0.1),
    0 32px 86px rgb(71 82 109 / 0.18);
}

html[data-theme="light"] .folder-cover::before {
  background:
    radial-gradient(ellipse 13% 8% at var(--light-x) var(--light-y), rgb(255 255 255 / 0.92), transparent),
    linear-gradient(120deg, rgb(255 255 255 / 0.86), transparent 20% 62%, rgb(255 255 255 / 0.54));
  mix-blend-mode: normal;
}

html[data-theme="light"] .folder-cover::after {
  background:
    radial-gradient(circle at 34% 43%, rgb(123 226 255 / 0.18), transparent 48%),
    radial-gradient(circle at 65% 44%, rgb(255 150 207 / 0.15), transparent 54%),
    radial-gradient(circle at 48% 72%, rgb(255 218 166 / 0.12), transparent 58%);
  mix-blend-mode: multiply;
}

.folder-cover__light {
  z-index: 0;
  top: -38%;
  left: 46%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.22), transparent);
  filter: blur(20px);
}

.folder-cover__rim {
  padding: 1.5px;
  z-index: 5;
  background: conic-gradient(
    from var(--rim-angle),
    rgb(143 236 255 / 0.34),
    rgb(96 216 255 / 0.6),
    rgb(255 143 203 / 0.42),
    rgb(197 174 255 / 0.55),
    rgb(255 221 154 / 0.38),
    rgb(129 238 219 / 0.44),
    rgb(143 236 255 / 0.34)
  );
  opacity: 0.86;
  filter: saturate(1.28) brightness(1.06);
}

html[data-theme="light"] .folder-cover__rim {
  background: conic-gradient(
    from var(--rim-angle),
    rgb(255 255 255 / 0.72),
    rgb(83 213 255 / 0.7),
    rgb(255 135 199 / 0.56),
    rgb(187 166 255 / 0.62),
    rgb(255 214 146 / 0.48),
    rgb(255 255 255 / 0.72)
  );
  opacity: 1;
}

.folder-cover__caustic {
  position: absolute;
  z-index: 1;
  right: 7%;
  bottom: -18%;
  width: 48%;
  height: 42%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 45% 44%, rgb(113 229 255 / 0.23), transparent 48%),
    radial-gradient(ellipse at 62% 52%, rgb(255 142 208 / 0.18), transparent 55%);
  filter: blur(28px);
  opacity: 0.82;
  pointer-events: none;
  animation: causticFlow 9s ease-in-out infinite alternate;
}

html[data-theme="light"] .folder-cover__caustic {
  opacity: 0.72;
  mix-blend-mode: multiply;
}

.folder-cover__edition,
.folder-cover__foot {
  color: rgb(255 255 255 / 0.48);
}

html[data-theme="light"] .folder-cover__edition,
html[data-theme="light"] .folder-cover__foot {
  color: rgb(0 0 0 / 0.4);
}

.engraved-name {
  gap: 7px;
}

.engraved-name h1,
.engraved-name p {
  color: rgb(255 255 255 / 0.24);
  text-shadow:
    0 1px 0 rgb(255 255 255 / 0.24),
    0 -1px 1px rgb(0 0 0 / 0.6);
}

.engraved-name h1 {
  font-size: clamp(25px, 2.7vw, 39px);
  font-weight: 300;
  letter-spacing: 0.26em;
}

.engraved-name p {
  font-size: clamp(11px, 1vw, 15px);
  letter-spacing: 0.3em;
}

html[data-theme="light"] .engraved-name h1,
html[data-theme="light"] .engraved-name p {
  color: rgb(0 0 0 / 0.24);
  text-shadow:
    0 1px 0 rgb(255 255 255 / 0.95),
    0 -1px 1px rgb(0 0 0 / 0.34);
}

.folder-cue {
  position: absolute;
  z-index: 8;
  bottom: 6px;
  left: 50%;
  width: 1px;
  height: 42px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.12);
  opacity: calc(1 - var(--folder-progress) * 3);
  transform: translateX(-50%);
}

.folder-cue span {
  display: block;
  width: 1px;
  height: 18px;
  background: rgb(255 255 255 / 0.74);
  animation: cueTravel 1.8s ease-in-out infinite;
}

html[data-theme="light"] .folder-cue {
  background: rgb(0 0 0 / 0.1);
}

html[data-theme="light"] .folder-cue span {
  background: rgb(0 0 0 / 0.56);
}

.work {
  display: grid;
  align-items: center;
  min-height: 100dvh;
  padding-top: clamp(82px, 8vw, 136px);
  padding-bottom: clamp(58px, 7vw, 104px);
}

.project-carousel {
  display: grid;
  align-content: center;
  min-height: min(72dvh, 740px);
  margin-top: 0;
  padding-bottom: 66px;
  --stack-card-width: min(47vw, 660px);
  --rail-card-width: min(58vw, 820px);
}

.project-rail {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0;
  min-height: min(55dvh, 520px);
  padding: clamp(48px, 5.6vw, 78px) 0 18px;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
}

.project-folder {
  flex: 0 0 var(--stack-card-width);
  margin-right: calc(var(--stack-card-width) * -0.84);
  margin-left: 0;
  padding-top: 38px;
  opacity: calc(1 - var(--i) * 0.018);
  transform: translateY(calc(var(--i) * 8px)) rotate(calc((3 - var(--i)) * 0.48deg));
  transform-origin: 82% 50%;
  z-index: calc(20 - var(--i));
  will-change: margin, transform, opacity;
  transition:
    flex-basis 900ms var(--ease-out),
    margin-right 1100ms var(--ease-out),
    margin-left 1100ms var(--ease-out),
    transform 1100ms var(--ease-out),
    opacity 650ms var(--ease-out);
}

.project-folder::before {
  width: min(66%, 470px);
  height: 40px;
  border-color: var(--glass-edge-soft);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.035)),
    rgb(255 255 255 / 0.025);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

html[data-theme="light"] .project-folder::before {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.94), rgb(255 255 255 / 0.42)),
    rgb(255 255 255 / 0.36);
}

.project-folder__window {
  display: grid;
  height: clamp(248px, 31vw, 438px);
  padding: 9px;
  place-items: center;
  border-color: var(--glass-edge-soft);
  background:
    radial-gradient(circle at 78% 8%, rgb(115 225 255 / 0.08), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0.025)),
    rgb(255 255 255 / 0.03);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.38),
    inset 0 -1px 0 rgb(255 255 255 / 0.08),
    0 28px 70px var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(175%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
}

html[data-theme="light"] .project-folder__window {
  background:
    radial-gradient(circle at 78% 8%, rgb(111 224 255 / 0.08), transparent 30%),
    linear-gradient(145deg, rgb(255 255 255 / 0.88), rgb(255 255 255 / 0.36)),
    rgb(255 255 255 / 0.48);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.98),
    0 26px 64px rgb(68 80 104 / 0.12);
}

.project-folder__window img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.project-folder__meta {
  padding-top: 13px;
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 450ms var(--ease-out) 360ms,
    transform 650ms var(--ease-out) 300ms;
}

.project-folder__meta strong {
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: 0.015em;
}

.project-carousel.is-expanded .project-rail {
  flex-direction: row;
  justify-content: flex-start;
  gap: clamp(24px, 4vw, 64px);
  padding-inline:
    max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)))
    max(var(--gutter), 9vw);
  overflow-x: auto;
  scroll-padding-inline:
    max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)))
    max(var(--gutter), 9vw);
}

.project-carousel.is-flipping .project-folder {
  transition: none !important;
}

.project-carousel.is-expanded .project-folder {
  flex-basis: var(--rail-card-width);
  margin-right: 0;
  margin-left: 0;
  opacity: 1;
  transform: translateY(0) rotate(0);
  z-index: 1;
}

.project-carousel.is-expanded .project-folder__meta {
  opacity: 1;
  transform: translateY(0);
}

.carousel-arrows {
  position: absolute;
  z-index: 6;
  right: max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)));
  bottom: 4px;
  gap: 9px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 350ms ease,
    transform 500ms var(--ease-out);
}

.project-carousel.is-expanded .carousel-arrows {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.carousel-arrows button {
  width: 46px;
  height: 46px;
  border-color: var(--glass-edge-soft);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.15), rgb(255 255 255 / 0.035)),
    var(--glass-base);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.42),
    0 12px 32px var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.rail-progress {
  width: min(100%, 640px);
  margin: 10px auto 0;
  opacity: 0;
  transition: opacity 300ms ease;
}

.project-carousel.is-expanded .rail-progress {
  opacity: 1;
}

.case-summary {
  color: var(--muted);
}

html[data-theme="light"] .case-overlay__panel,
html[data-theme="light"] .case-header {
  background: #fff;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .folder-cover,
  .folder-back,
  .folder-tab,
  .project-folder::before,
  .project-folder__window,
  .carousel-arrows button {
    background-color: rgb(31 31 31 / 0.9);
    border-color: rgb(255 255 255 / 0.32);
  }

  html[data-theme="light"] .folder-cover,
  html[data-theme="light"] .folder-back,
  html[data-theme="light"] .folder-tab,
  html[data-theme="light"] .project-folder::before,
  html[data-theme="light"] .project-folder__window,
  html[data-theme="light"] .carousel-arrows button {
    background-color: rgb(255 255 255 / 0.92);
    border-color: rgb(0 0 0 / 0.16);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .folder-cover,
  .folder-back,
  .folder-tab,
  .project-folder::before,
  .project-folder__window,
  .carousel-arrows button {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .folder-cover,
  .folder-back,
  .folder-tab {
    background: rgb(24 24 24 / 0.96);
  }

  html[data-theme="light"] .folder-cover,
  html[data-theme="light"] .folder-back,
  html[data-theme="light"] .folder-tab {
    background: #fff;
  }
}

@keyframes causticFlow {
  0% {
    transform: translate3d(-5%, 4%, 0) scale(0.92);
  }
  100% {
    transform: translate3d(8%, -6%, 0) scale(1.1);
  }
}

@keyframes cueTravel {
  0% {
    transform: translateY(-20px);
  }
  55%,
  100% {
    transform: translateY(48px);
  }
}

@media (max-width: 860px) {
  .hero-scroll {
    height: 215dvh;
  }

  .folder-shell {
    width: 92vw;
  }

  .profile-reveal {
    top: 108px;
    width: 93vw;
  }

  .project-carousel {
    --stack-card-width: min(62vw, 560px);
    --rail-card-width: min(78vw, 680px);
  }

  .project-rail {
    min-height: 58dvh;
  }

  .project-folder__window {
    height: clamp(230px, 46vw, 420px);
  }

  .carousel-arrows {
    right: var(--gutter);
    bottom: 20px;
  }
}

@media (max-width: 600px) {
  .hero-scroll {
    height: 205dvh;
  }

  .folder-shell {
    width: 94vw;
    aspect-ratio: 1.34;
  }

  .profile-reveal {
    top: 96px;
    width: 94vw;
    border-radius: 5px;
  }

  .engraved-name h1 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .engraved-name p {
    font-size: 9px;
  }

  .folder-cover__foot span:first-child {
    display: none;
  }

  .project-carousel {
    min-height: 74dvh;
    --stack-card-width: 68vw;
    --rail-card-width: 82vw;
  }

  .project-rail {
    min-height: 58dvh;
    padding-top: 64px;
    justify-content: flex-start;
    transform: translateX(calc(var(--stack-card-width) * -0.85));
  }

  .project-carousel.is-expanded .project-rail {
    transform: none;
  }

  .project-folder__window {
    height: 47vw;
    min-height: 210px;
  }

  .project-folder__meta {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .folder-shell {
    transform: none !important;
  }

  .folder-cover {
    display: none;
  }

  .folder-back {
    opacity: 0.3;
  }

  .profile-reveal {
    opacity: 1;
    filter: none;
    transform: translate3d(-50%, 0, 0);
  }

  .project-folder {
    transition: none;
  }

  .folder-cue,
  .folder-cover__caustic,
  .folder-cover__light,
  .folder-cover__rim {
    animation: none !important;
  }
}

/* Final material pass: restrained monochrome glass with real SVG refraction */
:root {
  --light-x: 30%;
  --light-y: 8%;
  --profile-ink: rgb(255 255 255 / 0.92);
  --profile-muted: rgb(255 255 255 / 0.48);
  --profile-paper: #111;
  --profile-line: rgb(255 255 255 / 0.14);
}

html[data-theme="light"] {
  --profile-ink: #111;
  --profile-muted: rgb(0 0 0 / 0.48);
  --profile-paper: #fff;
  --profile-line: rgb(0 0 0 / 0.13);
}

.fluid-canvas {
  opacity: 0.52;
  filter: blur(36px) saturate(0);
}

html[data-theme="light"] .fluid-canvas {
  opacity: 0.28;
  filter: blur(42px) saturate(0);
}

.folder-tab {
  border-color: rgb(255 255 255 / 0.2);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.025)),
    rgb(255 255 255 / 0.02);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.42),
    0 -12px 30px rgb(255 255 255 / 0.03);
  color: rgb(255 255 255 / 0.4);
}

html[data-theme="light"] .folder-tab {
  border-color: rgb(0 0 0 / 0.1);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.86), rgb(255 255 255 / 0.38)),
    rgb(255 255 255 / 0.42);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 1);
  color: rgb(0 0 0 / 0.28);
}

.folder-back {
  background: linear-gradient(145deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0.004));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.16),
    0 34px 90px rgb(0 0 0 / 0.24);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}

.folder-cover {
  background:
    linear-gradient(
      120deg,
      rgb(255 255 255 / 0.11),
      rgb(255 255 255 / 0.018) 36%,
      rgb(255 255 255 / 0.04) 64%,
      rgb(255 255 255 / 0.012)
    ),
    rgb(255 255 255 / 0.012);
  box-shadow:
    var(--hyalite-edge, inset 0 0 0 transparent),
    inset 0 1px 0 rgb(255 255 255 / 0.38),
    inset 1px 0 0 rgb(255 255 255 / 0.1),
    inset 0 -1px 0 rgb(255 255 255 / 0.08),
    0 36px 100px rgb(0 0 0 / 0.3);
  backdrop-filter: var(--hyalite, blur(12px) saturate(116%) brightness(1.025));
  -webkit-backdrop-filter: var(--hyalite, blur(12px) saturate(116%) brightness(1.025));
}

.folder-cover::before {
  background:
    radial-gradient(ellipse 10% 7% at var(--light-x) var(--light-y), rgb(255 255 255 / 0.2), transparent),
    linear-gradient(120deg, rgb(255 255 255 / 0.14), transparent 18% 68%, rgb(255 255 255 / 0.045));
  opacity: 0.42;
  mix-blend-mode: soft-light;
}

.folder-cover::after {
  display: none;
}

.folder-cover__light {
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.06), transparent);
  filter: blur(28px);
  opacity: 0.5;
}

.folder-cover__rim {
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgb(255 255 255 / 0.4),
    rgb(255 255 255 / 0.06) 34%,
    rgb(255 255 255 / 0.14) 58%,
    rgb(255 255 255 / 0.035)
  );
  opacity: 0.34;
  filter: none;
  animation: none;
}

.folder-cover:hover .folder-cover__rim {
  opacity: 0.44;
}

html[data-theme="light"] .folder-cover {
  background:
    linear-gradient(
      120deg,
      rgb(255 255 255 / 0.76),
      rgb(244 247 250 / 0.22) 36%,
      rgb(255 255 255 / 0.5) 66%,
      rgb(248 250 252 / 0.18)
    ),
    rgb(255 255 255 / 0.42);
  box-shadow:
    var(--hyalite-edge, inset 0 0 0 transparent),
    inset 0 1px 0 rgb(255 255 255 / 0.92),
    inset 1px 0 0 rgb(255 255 255 / 0.7),
    inset 0 -1px 0 rgb(255 255 255 / 0.68),
    0 26px 72px rgb(45 55 72 / 0.11);
  backdrop-filter: var(--hyalite, blur(12px) saturate(108%) brightness(1.01));
  -webkit-backdrop-filter: var(--hyalite, blur(12px) saturate(108%) brightness(1.01));
}

html[data-theme="light"] .folder-cover::before {
  background:
    radial-gradient(ellipse 12% 8% at var(--light-x) var(--light-y), rgb(255 255 255 / 0.34), transparent),
    linear-gradient(120deg, rgb(255 255 255 / 0.55), transparent 21% 68%, rgb(255 255 255 / 0.24));
  opacity: 0.5;
  mix-blend-mode: normal;
}

html[data-theme="light"] .folder-cover__rim {
  background: linear-gradient(
    145deg,
    rgb(255 255 255 / 0.94),
    rgb(119 141 160 / 0.16) 34%,
    rgb(255 255 255 / 0.72) 58%,
    rgb(118 137 153 / 0.12)
  );
  opacity: 0.7;
}

.folder-cover__caustic {
  right: 12%;
  bottom: -7%;
  width: 42%;
  height: 30%;
  background: radial-gradient(ellipse at 50% 50%, rgb(255 255 255 / 0.11), transparent 66%);
  filter: blur(30px);
  opacity: 0.42;
  animation: none;
  mix-blend-mode: soft-light;
}

html[data-theme="light"] .folder-cover__caustic {
  background: radial-gradient(ellipse at 50% 50%, rgb(38 50 65 / 0.08), transparent 68%);
  opacity: 0.28;
}

.engraved-name h1 {
  font-size: clamp(24px, 2.5vw, 36px);
  letter-spacing: 0.28em;
}

.engraved-name p {
  font-size: clamp(10px, 0.95vw, 14px);
  letter-spacing: 0.31em;
}

.folder-name {
  position: absolute;
  z-index: 3;
  top: clamp(54px, 7.4vw, 104px);
  left: clamp(30px, 3.8vw, 58px);
  display: grid;
  justify-items: start;
  gap: 0;
  margin: 0;
  color: rgb(255 255 255 / 0.42);
  font-weight: 300;
  text-align: left;
  text-shadow:
    0 1px 0 rgb(255 255 255 / 0.18),
    0 -1px 1px rgb(0 0 0 / 0.5);
}

.hero h1.folder-name {
  display: grid;
  align-items: initial;
  flex-wrap: nowrap;
  gap: 0;
}

.folder-name__en {
  font-family: var(--font-display);
  font-size: clamp(54px, 7.1vw, 104px);
  font-weight: 300;
  line-height: 0.82;
  letter-spacing: -0.045em;
}

.folder-name__cn {
  margin-top: clamp(14px, 1.7vw, 24px);
  font-family: var(--font-cn-display);
  font-size: clamp(24px, 2.65vw, 40px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.2em;
}

.folder-name__role {
  margin-top: 13px;
  color: rgb(255 255 255 / 0.32);
  font-family: var(--font-label);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.17em;
}

html[data-theme="light"] .folder-name {
  color: rgb(0 0 0 / 0.38);
  text-shadow:
    0 1px 0 rgb(255 255 255 / 0.95),
    0 -1px 1px rgb(0 0 0 / 0.2);
}

html[data-theme="light"] .folder-name__role {
  color: rgb(0 0 0 / 0.32);
}

.profile-reveal {
  top: clamp(112px, 12.5vh, 148px);
  width: min(90vw, 1320px);
  padding: clamp(24px, 3.5vw, 48px);
  border: 1px solid var(--profile-line);
  border-radius: 10px;
  background: var(--profile-paper);
  color: var(--profile-ink);
  box-shadow:
    0 32px 86px rgb(0 0 0 / 0.28),
    0 0 0 1px rgb(255 255 255 / 0.04);
}

.folder-graphic {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 120vw;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(110px, 18vw, 300px);
  font-weight: 300;
  line-height: 0.78;
  letter-spacing: -0.075em;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgb(255 255 255 / 0.085);
  opacity: calc(1 - var(--folder-progress) * 1.15);
  transform: translate(-50%, -50%) rotate(-4deg);
  pointer-events: none;
}

html[data-theme="light"] .folder-graphic {
  -webkit-text-stroke-color: rgb(0 0 0 / 0.08);
}

html[data-theme="light"] .profile-reveal {
  border-color: rgb(0 0 0 / 0.08);
  box-shadow:
    0 28px 76px rgb(45 55 72 / 0.12),
    0 0 0 1px rgb(255 255 255 / 0.82);
}

.profile-reveal img {
  width: auto;
  height: auto;
}

.profile-sheet__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--profile-line);
  color: var(--profile-muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.86fr) minmax(190px, 0.62fr) minmax(400px, 1.42fr);
  gap: clamp(24px, 3.2vw, 48px);
  padding: clamp(24px, 3.5vw, 46px) 0 clamp(20px, 2.4vw, 32px);
}

.profile-eyebrow {
  margin: 0 0 15px;
  color: var(--profile-muted);
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.profile-identity h2 {
  display: grid;
  gap: 9px;
  margin: 0;
  font-family: var(--font-cn-display);
  font-weight: 300;
  line-height: 1;
}

.profile-identity h2 span {
  font-size: clamp(36px, 3.6vw, 54px);
  letter-spacing: 0.12em;
}

.profile-identity h2 small {
  color: var(--profile-muted);
  font-family: var(--font-display);
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 300;
  letter-spacing: 0.28em;
}

.profile-statement {
  max-width: 30ch;
  margin: clamp(22px, 3vw, 40px) 0 0;
  color: var(--profile-ink);
  font-family: var(--font-cn-display);
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.035em;
}

.profile-facts {
  margin: clamp(24px, 3vw, 40px) 0 0;
  border-top: 1px solid var(--profile-line);
}

.profile-facts div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--profile-line);
}

.profile-facts dt,
.profile-facts dd {
  margin: 0;
}

.profile-facts dt,
.profile-section-head > span,
.profile-section-head > p,
.profile-capabilities > span,
.profile-capabilities li {
  color: var(--profile-muted);
  font-family: var(--font-label);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.profile-facts dd {
  color: var(--profile-ink);
  font-family: var(--font-body);
  font-size: clamp(11px, 0.9vw, 13px);
  line-height: 1.55;
}

.profile-portrait {
  align-self: stretch;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--profile-line);
  background: #101010;
}

.profile-portrait img {
  width: 100%;
  height: calc(100% - 25px);
  object-fit: cover;
  object-position: 50% 42%;
  filter: grayscale(1) contrast(1.04);
}

.profile-portrait figcaption {
  display: flex;
  align-items: center;
  height: 25px;
  padding: 0 9px;
  border-top: 1px solid var(--profile-line);
  color: var(--profile-muted);
  font-family: var(--font-label);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.profile-experience {
  min-width: 0;
}

.profile-section-head {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--profile-line);
}

.profile-section-head h3 {
  margin: 0;
  font-family: var(--font-cn-display);
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.profile-section-head > p {
  margin: 0;
}

.profile-experience-grid {
  display: grid;
  gap: 0;
}

.profile-experience-grid article {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--profile-line);
}

.profile-experience-grid h4,
.profile-experience-grid p {
  margin: 0;
}

.profile-experience-grid h4 {
  color: var(--profile-ink);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.profile-experience-grid p {
  color: var(--profile-muted);
  font-family: var(--font-body);
  font-size: clamp(10px, 0.92vw, 13px);
  line-height: 1.75;
}

.profile-capabilities {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--profile-line);
}

.profile-capabilities p {
  max-width: 600px;
  margin: 0;
  color: var(--profile-muted);
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.6;
}

.profile-capabilities ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-capabilities li {
  padding: 5px 8px;
  border: 1px solid var(--profile-line);
  border-radius: 999px;
}

.project-rail {
  flex-direction: row;
  justify-content: center;
  padding-inline: var(--gutter);
  touch-action: pan-y;
  user-select: none;
}

.project-folder {
  margin-right: 0;
  margin-left: calc(var(--stack-card-width) * -0.84);
  transform: translateY(calc(var(--i) * 6px)) rotate(calc((var(--i) - 2) * 0.34deg));
  transform-origin: 18% 0;
  cursor: pointer;
}

.project-folder:first-child {
  margin-left: 0;
  transform: translateY(0) rotate(-0.28deg);
}

.project-folder::before {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.015)),
    rgb(255 255 255 / 0.012);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.24);
}

html[data-theme="light"] .project-folder::before {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.36)),
    rgb(255 255 255 / 0.34);
}

.project-folder__window {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.075), rgb(255 255 255 / 0.012)),
    rgb(255 255 255 / 0.012);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    0 24px 64px rgb(0 0 0 / 0.25);
  transition:
    border-color 300ms ease,
    transform 650ms var(--ease-out),
    opacity 450ms ease;
}

html[data-theme="light"] .project-folder__window {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.82), rgb(255 255 255 / 0.28)),
    rgb(255 255 255 / 0.4);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.98),
    0 22px 58px rgb(45 55 72 / 0.1);
}

.project-folder button:hover .project-folder__window,
.project-folder button:focus-visible .project-folder__window {
  transform: translateY(-2px) scale(1.004);
}

.project-carousel.is-expanded .project-rail {
  flex-direction: row;
  justify-content: flex-start;
  cursor: grab;
  scroll-snap-type: none;
}

.project-carousel.is-expanded .project-rail.is-dragging {
  cursor: grabbing;
}

.project-carousel.is-expanded .project-folder {
  margin-left: 0;
  transform: translateY(0) rotate(0);
  z-index: calc(20 - var(--i));
}

.carousel-arrows button {
  border-color: rgb(255 255 255 / 0.18);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.02)),
    rgb(12 12 12 / 0.56);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.22),
    0 10px 28px rgb(0 0 0 / 0.2);
}

html[data-theme="light"] .carousel-arrows button {
  border-color: rgb(0 0 0 / 0.1);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.86), rgb(255 255 255 / 0.32)),
    rgb(255 255 255 / 0.46);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    0 10px 24px rgb(45 55 72 / 0.09);
}

@media (max-width: 860px) {
  .profile-reveal {
    padding: 22px;
  }

  .profile-grid {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.56fr);
    gap: 24px;
  }

  .profile-experience {
    grid-column: 1 / -1;
  }

  .profile-capabilities {
    grid-template-columns: 60px 1fr;
  }

  .profile-capabilities ul {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .profile-reveal {
    top: 84px;
    width: 94vw;
    max-height: calc(100dvh - 102px);
    padding: 17px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .profile-sheet__top {
    padding-bottom: 10px;
    font-size: 6px;
  }

  .profile-grid {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 0.44fr);
    gap: 16px 14px;
    padding: 18px 0;
  }

  .profile-eyebrow {
    margin-bottom: 10px;
    font-size: 6px;
  }

  .profile-identity h2 span {
    font-size: 30px;
  }

  .profile-identity h2 small {
    font-size: 8px;
  }

  .profile-statement {
    margin-top: 16px;
    font-size: 11px;
    line-height: 1.7;
  }

  .profile-facts {
    margin-top: 16px;
  }

  .profile-facts div {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 0;
  }

  .profile-facts dt,
  .profile-facts dd {
    font-size: 8px;
  }

  .profile-portrait {
    min-height: 178px;
  }

  .profile-portrait figcaption {
    font-size: 5px;
  }

  .profile-section-head {
    grid-template-columns: 17px minmax(0, 1fr);
    gap: 8px;
  }

  .profile-section-head h3 {
    font-size: 19px;
  }

  .profile-section-head > p {
    display: none;
  }

  .profile-experience-grid article {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 9px;
    padding: 11px 0;
  }

  .profile-experience-grid h4 {
    font-size: 9px;
  }

  .profile-experience-grid p {
    font-size: 8px;
    line-height: 1.65;
  }

  .profile-capabilities {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 9px;
    padding-top: 11px;
  }

  .profile-capabilities p {
    font-size: 8px;
  }

  .profile-capabilities ul {
    gap: 5px;
  }

  .profile-capabilities li {
    font-size: 6px;
  }

  .project-rail {
    justify-content: flex-start;
    transform: none;
  }

  .folder-tab {
    border-color: rgb(255 255 255 / 0.16);
  }

  .folder-name {
    top: 42px;
    left: 24px;
  }

  .folder-name__en {
    font-size: clamp(40px, 13vw, 54px);
  }

  .folder-name__cn {
    margin-top: 9px;
    font-size: 20px;
  }

  .folder-name__role {
    margin-top: 8px;
    font-size: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .folder-cover {
    display: block;
  }

  .folder-back,
  .folder-cover {
    opacity: 0;
  }

  .profile-reveal {
    opacity: 1;
    filter: none;
    transform: translate3d(-50%, 0, 0);
  }

  .project-folder {
    transition: none;
  }
}

/* Scroll hold, reversible project stack, and restrained prismatic edges */
.hero-scroll {
  --open-hold: clamp(220px, 32vh, 360px);
  --profile-hold: clamp(180px, 26vh, 300px);
  --previous-open-hold: clamp(72px, 10vh, 112px);
  /* Extend the sticky section so the two rests do not shorten the opening. */
  height: calc(255dvh + var(--open-hold) - var(--previous-open-hold) + var(--profile-hold));
}

.folder-graphic {
  -webkit-text-stroke-color: rgb(255 255 255 / 0.12);
}

html[data-theme="light"] .folder-graphic {
  -webkit-text-stroke-color: rgb(0 0 0 / 0.075);
}

.folder-cover__prism {
  position: absolute;
  z-index: 2;
  right: 1.4%;
  bottom: 1.2%;
  width: clamp(110px, 15vw, 210px);
  height: clamp(70px, 9vw, 128px);
  border-radius: 60% 0 22% 0;
  background: conic-gradient(
    from 214deg,
    rgb(255 255 255 / 0.2),
    rgb(255 136 190 / 0.22),
    rgb(255 198 126 / 0.14),
    rgb(255 245 162 / 0.1),
    rgb(118 231 198 / 0.1),
    rgb(99 209 255 / 0.17),
    rgb(164 142 255 / 0.16),
    rgb(255 255 255 / 0.2)
  );
  filter: blur(11px) saturate(0.74);
  opacity: 0.28;
  pointer-events: none;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at 100% 100%, #000 0 13%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 100% 100%, #000 0 13%, transparent 72%);
}

.folder-cover::after {
  position: absolute;
  z-index: 2;
  top: 1%;
  left: 1%;
  display: block;
  width: clamp(76px, 9vw, 132px);
  height: clamp(58px, 7vw, 104px);
  border-radius: 18% 0 64% 0;
  background: conic-gradient(
    from 34deg,
    rgb(255 255 255 / 0.18),
    rgb(111 216 255 / 0.13),
    rgb(183 154 255 / 0.11),
    rgb(255 139 194 / 0.1),
    rgb(255 255 255 / 0.18)
  );
  filter: blur(13px) saturate(0.68);
  opacity: 0.2;
  content: "";
  pointer-events: none;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at 0 0, #000 0 12%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 0 0, #000 0 12%, transparent 72%);
}

html[data-theme="light"] .folder-cover__prism {
  opacity: 0.2;
  mix-blend-mode: normal;
}

html[data-theme="light"] .folder-cover::after {
  opacity: 0.16;
  mix-blend-mode: normal;
}

.profile-workflow {
  max-width: 31ch;
  margin: 12px 0 0;
  color: var(--profile-muted);
  font-family: var(--font-body);
  font-size: clamp(10px, 0.86vw, 12px);
  line-height: 1.75;
}

.profile-workflow span {
  display: block;
}

.project-carousel {
  --stack-card-width: var(--rail-card-width);
}

.project-rail {
  justify-content: flex-start;
  overflow-anchor: none;
  scroll-snap-type: none;
  padding-inline:
    max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)))
    max(var(--gutter), 8vw);
  transition: gap 1280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-folder {
  flex-basis: var(--rail-card-width);
  margin-right: 0;
  margin-left: var(--stack-overlap, -47.56vw);
  transform: translateY(calc(var(--i) * 5px)) rotate(calc((var(--i) - 1.8) * 0.22deg));
  transform-origin: 16% 0;
  transition:
    margin-left 1280ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1180ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 620ms var(--ease-out);
  transition-delay: calc(var(--i) * 32ms);
}

.project-folder:first-child {
  margin-left: 0;
  transform: translateY(0) rotate(-0.18deg);
  z-index: 20;
}

.project-folder:nth-child(2) {
  z-index: 19;
}

.project-folder:nth-child(3) {
  z-index: 18;
}

.project-folder:nth-child(4) {
  z-index: 17;
}

.project-folder:nth-child(5) {
  z-index: 16;
}

.project-folder:nth-child(6) {
  z-index: 15;
}

.project-folder:nth-child(7) {
  z-index: 14;
}

.project-carousel.is-expanded .project-folder {
  flex-basis: var(--rail-card-width);
  margin-left: 0;
  transform: translateY(0) rotate(0);
}

.project-folder__meta {
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.project-carousel.is-expanded .project-folder__meta {
  transition:
    opacity 420ms var(--ease-out) 620ms,
    transform 520ms var(--ease-out) 580ms;
}

@media (max-width: 860px) {
  .hero-scroll {
    height: calc(240dvh + var(--open-hold) - var(--previous-open-hold) + var(--profile-hold));
  }
}

@media (min-width: 1414px) {
  .project-folder {
    margin-left: var(--stack-overlap, -672.4px);
  }
}

@media (max-width: 600px) {
  .hero-scroll {
    --open-hold: clamp(160px, 26vh, 240px);
    --profile-hold: clamp(140px, 22vh, 220px);
    height: calc(225dvh + var(--open-hold) - var(--previous-open-hold) + var(--profile-hold));
  }

  .folder-cover__prism {
    width: 108px;
    height: 72px;
    opacity: 0.24;
  }

  .project-carousel {
    --rail-card-width: 82vw;
    --stack-card-width: 82vw;
  }

  .project-rail {
    justify-content: flex-start;
    padding-inline: var(--gutter);
    transform: none;
  }

  .project-folder {
    margin-left: var(--stack-overlap, -68.88vw);
  }

  .project-folder:first-child {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-folder {
    transition: none;
  }
}

/* Firefox-safe card geometry: values are resolved in JS instead of nested calc(). */
.project-folder {
  opacity: var(--stack-opacity, 1);
  transform: translateY(var(--stack-y, 0)) rotate(var(--stack-angle, 0deg));
  transition-delay: var(--stack-delay, 0ms);
}

.project-folder:first-child {
  transform: translateY(0) rotate(-0.18deg);
}

.project-carousel.is-expanded .project-folder {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.scroll-breath {
  height: clamp(180px, 34dvh, 420px);
  background: var(--black);
}

@media (max-width: 600px) {
  .scroll-breath {
    height: clamp(120px, 24dvh, 220px);
  }
}

/* One optical surface. The cover and rear sheet must not frost it a second time. */
.folder-cover,
html[data-theme="light"] .folder-cover {
  --radius: 30px;
  border-radius: var(--radius);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform-style: flat;
}

.folder-shell {
  transform-style: flat;
}

/* The same scene exists behind and inside the lens, so its contour bends
   continuous background detail instead of distorting the engraved name. */
.folder-world {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.folder-world {
  opacity: clamp(0, calc(1 - var(--folder-progress) * 14), 1);
}

.folder-cover__refraction {
  opacity: clamp(0, calc(1 - var(--folder-progress) * 4), 1);
}

.folder-world__content {
  position: absolute;
  inset: 0;
  color: rgb(255 255 255 / 0.14);
  pointer-events: none;
}

html[data-theme="light"] .folder-world__content {
  color: rgb(0 0 0 / 0.15);
}

.folder-cover__refraction .folder-world__content {
  background: var(--black);
}

.folder-world__type {
  position: absolute;
  top: 53%;
  left: -3.5%;
  color: transparent;
  font-family: var(--font-display);
  font-size: 230px;
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-text-stroke: 1px currentColor;
  -webkit-text-stroke-color: rgb(255 255 255 / 0.14);
  transform: rotate(-5deg);
  transform-origin: 0 50%;
}

html[data-theme="light"] .folder-world__type {
  -webkit-text-stroke-color: rgb(0 0 0 / 0.15);
}

.folder-world__rule {
  position: absolute;
  top: 83%;
  left: -5%;
  width: 111%;
  height: 1px;
  background: currentColor;
  transform: rotate(-5deg);
}

.folder-world__cross {
  position: absolute;
  top: -7%;
  right: 15%;
  width: 1px;
  height: 116%;
  background: currentColor;
  opacity: 0.5;
  transform: rotate(5deg);
}

.fluid-canvas,
html[data-theme="light"] .fluid-canvas,
.hero-haze,
.hero-noise {
  display: none;
}

.folder-back,
html[data-theme="light"] .folder-back {
  border-radius: 30px;
  z-index: 0;
  border: 1px solid rgb(170 170 170 / 0.12);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 14px 36px rgb(0 0 0 / 0.055);
  transform: translate(5px, 7px) scale(0.997);
}

.folder-cover__glass {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: inherit;
  background:
    linear-gradient(128deg, rgb(255 255 255 / 0.025), transparent 20% 82%, rgb(255 255 255 / 0.012));
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 0.18),
    inset 1px 0 2px rgb(255 255 255 / 0.08),
    inset 0 -1px 2px rgb(255 255 255 / 0.09),
    inset 0 0 3px rgb(255 255 255 / 0.025);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}

html[data-theme="light"] .folder-cover__glass {
  border-color: rgb(170 174 180 / 0.16);
  background:
    linear-gradient(128deg, rgb(255 255 255 / 0.09), transparent 20% 82%, rgb(255 255 255 / 0.025));
  box-shadow:
    inset 0 1px 2px rgb(255 255 255 / 0.95),
    inset 1px 0 3px rgb(255 255 255 / 0.8),
    inset 0 -1px 2px rgb(255 255 255 / 0.95),
    inset 0 0 2px 1px rgb(164 174 185 / 0.09),
    inset 0 0 7px rgb(164 174 185 / 0.055);
}

/* Broad, low-energy reflections; the narrow lip carries the glass thickness. */
.folder-cover::before,
html[data-theme="light"] .folder-cover::before {
  z-index: 2;
  background: linear-gradient(118deg, rgb(255 255 255 / 0.055), transparent 22% 78%, rgb(255 255 255 / 0.015));
  mix-blend-mode: normal;
  opacity: 0.3;
}

.folder-cover__rim,
html[data-theme="light"] .folder-cover__rim {
  inset: 2px;
  padding: 1.5px;
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(135deg,
    rgb(255 255 255 / 0.52),
    rgb(255 255 255 / 0.025) 24% 43%,
    rgb(255 255 255 / 0.22) 64%,
    rgb(255 255 255 / 0.025) 78%,
    rgb(255 255 255 / 0.34));
  opacity: 0.3;
  filter: blur(0.35px);
}

.folder-cover:hover .folder-cover__rim {
  opacity: 0.3;
}

.folder-cover__light {
  z-index: 2;
  top: -70%;
  left: 28%;
  width: 46%;
  height: 230%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.045), transparent);
  opacity: 0.45;
  animation: none;
  filter: blur(12px);
}

.folder-cover__caustic,
html[data-theme="light"] .folder-cover__caustic {
  right: 2%;
  bottom: 1px;
  width: 56%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.6), transparent);
  filter: blur(2px);
  mix-blend-mode: normal;
  opacity: 0.32;
}

.folder-cover__prism,
html[data-theme="light"] .folder-cover__prism {
  right: 1px;
  bottom: 1px;
  width: 90px;
  height: 64px;
  padding: 3px;
  border-radius: 0 0 var(--radius) 0;
  background: linear-gradient(133deg,
    rgb(189 209 233 / 0.12), rgb(222 181 208 / 0.38),
    rgb(241 218 181 / 0.28), rgb(188 219 221 / 0.28), rgb(182 195 225 / 0.38));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: blur(1px);
  opacity: 0.4;
  mix-blend-mode: normal;
}

.folder-cover::after,
html[data-theme="light"] .folder-cover::after {
  display: none;
}

.folder-tab,
html[data-theme="light"] .folder-tab {
  background: linear-gradient(130deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.02));
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.26);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.folder-graphic {
  top: 64%;
  left: 54%;
  font-size: clamp(120px, 23vw, 370px);
  -webkit-text-stroke-color: rgb(255 255 255 / 0.11);
}

html[data-theme="light"] .folder-graphic {
  -webkit-text-stroke-color: rgb(0 0 0 / 0.11);
}

.folder-graphic {
  display: none;
}

.folder-cover__refraction {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.folder-cover__prism,
html[data-theme="light"] .folder-cover__prism {
  width: 62px;
  height: 42px;
  padding: 1.5px;
  filter: blur(0.45px);
  opacity: 0.22;
}

@media (max-width: 1100px) {
  .folder-world__type {
    font-size: 160px;
  }
}

@media (max-width: 600px) {
  .folder-world__type {
    top: 66%;
    font-size: 72px;
  }

  .folder-world__rule {
    top: 88%;
  }

  .folder-world__cross {
    right: 10%;
  }
}

html[data-theme="light"] .site-nav a {
  color: #555;
}

/* Keep cover images outside backdrop-filter render surfaces. Firefox can cull
   opaque foreground cards when overlapping filtered layers are recomposited. */
.project-folder,
.project-carousel.is-expanded .project-folder {
  isolation: isolate;
  opacity: 1;
  will-change: auto;
}

.project-folder::before,
.project-folder__window {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.project-folder__window {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.project-folder__window img {
  position: relative;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
}

.project-folder:first-child {
  transform: none;
}

.project-carousel:not(.is-expanded) .project-folder:first-child .project-folder__meta {
  opacity: 1;
  transform: none;
}

.project-carousel {
  padding-bottom: 130px;
}

.carousel-actions {
  position: absolute;
  z-index: 7;
  bottom: 6px;
  left: max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.carousel-actions .carousel-toggle {
  position: static;
}

.portfolio-open {
  min-width: 196px;
  min-height: 50px;
  padding: 12px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0;
  cursor: pointer;
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}

.portfolio-open:hover {
  opacity: 0.82;
}

.portfolio-open:active {
  transform: scale(0.98);
}

.portfolio-open:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.project-carousel .carousel-arrows {
  bottom: 68px;
}

@media (max-width: 600px) {
  .carousel-actions {
    bottom: 11px;
    left: var(--gutter);
  }

  .portfolio-open {
    min-width: 188px;
  }

  .project-carousel .carousel-arrows {
    bottom: 73px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .folder-world,
  .folder-cover__refraction {
    display: none;
  }

  .folder-cover__glass {
    background: rgb(19 19 19 / 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html[data-theme="light"] .folder-cover__glass {
    background: #fff;
  }
}

/* Compact mobile rhythm: keep the intentional narrative holds, but remove
   viewport-sized dead space between the profile, projects and contact. */
@media (max-width: 600px) {
  .section-shell {
    scroll-margin-top: 74px;
  }

  .scroll-breath {
    height: clamp(84px, 16dvh, 140px);
  }

  .work {
    display: block;
    min-height: 0;
    padding-top: 44px;
    padding-bottom: 38px;
  }

  .project-carousel {
    min-height: 0;
    align-content: start;
    padding-bottom: 116px;
  }

  .project-rail {
    min-height: 0;
    padding-top: 54px;
    padding-bottom: 8px;
  }

  .project-folder__window {
    height: clamp(190px, 49vw, 220px);
  }

  .project-folder__meta {
    padding-top: 10px;
  }

  .carousel-actions {
    bottom: 8px;
  }

  .contact {
    gap: 18px;
    padding-top: 64px;
    padding-bottom: 58px;
  }

  .contact-meta p:last-child {
    margin-top: 12px;
  }

  .contact-links {
    gap: 12px;
    padding-top: 22px;
  }

  .site-footer {
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 18px;
  }
}
