:root {
  --page-bg: #030303;
  --section-bg: #030303;
  --section-alt: #070707;
  --header-bg: #080808;
  --panel-bg: color-mix(in srgb, var(--header-bg) 94%, transparent);
  --tile-bg: #101010;
  --media-bg: #0c0c0c;
  --hero-base: #030303;
  --quote-bg: #030303;
  --black: #030303;
  --paper: #eee9df;
  --paper-rgb: 238, 233, 223;
  --accent-rgb: 10, 110, 189;
  --accent: rgb(var(--accent-rgb));
  --header: #080808;
  --surface: #101010;
  --hero-left: rgba(4, 15, 28, 0.86);
  --hero-mid: rgba(8, 74, 126, 0.18);
  --hero-right: rgba(3, 3, 3, 0.52);
  --hero-wash: rgba(10, 110, 189, 0.34);
  --page-wash: rgba(10, 110, 189, 0.08);
  --quote-wash: rgba(10, 110, 189, 0.2);
  --body-texture: linear-gradient(transparent, transparent);
  --section-texture: linear-gradient(transparent, transparent);
  --header-texture: linear-gradient(transparent, transparent);
  --hero-overlay:
    linear-gradient(90deg, var(--hero-left), var(--hero-mid) 56%, var(--hero-right)),
    linear-gradient(0deg, color-mix(in srgb, var(--black) 78%, transparent), color-mix(in srgb, var(--black) 8%, transparent) 58%),
    linear-gradient(0deg, var(--hero-wash), var(--hero-wash));
  --hero-image-opacity: 1;
  --hero-image-blend: normal;
  --hero-title-color: rgba(var(--paper-rgb), 0.46);
  --hero-subtitle-color: rgba(var(--paper-rgb), 0.54);
  --quote-overlay:
    linear-gradient(0deg, color-mix(in srgb, var(--black) 90%, transparent), color-mix(in srgb, var(--black) 24%, transparent)),
    linear-gradient(0deg, var(--quote-wash), var(--quote-wash));
  --quote-image-opacity: 1;
  --quote-image-blend: normal;
  --image-filter: grayscale(0.68) sepia(0.08) saturate(0.82) contrast(1.02) brightness(0.8);
  --image-hover-filter: grayscale(0.28) sepia(0.06) saturate(0.9) contrast(1.02) brightness(0.9);
  --hero-filter: grayscale(0.35) saturate(1.28) contrast(1.08) brightness(0.75);
  --muted: rgba(var(--paper-rgb), 0.58);
  --soft: rgba(var(--paper-rgb), 0.72);
  --line: rgba(var(--paper-rgb), 0.16);
  --font-ui: "Aptos", "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei UI", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Aptos", "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Yu Mincho", "Hiragino Mincho ProN", "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "Noto Serif SC", serif;
  --type-scale: 1;
  --display-scale: 1;
  --ui-scale: 1;
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-deep: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-soft: 0.5rem;
  --radius-tight: 0.35rem;
  --hairline: rgba(var(--paper-rgb), 0.14);
  --panel-shadow: 0 1.6rem 4.8rem rgba(0, 0, 0, 0.34);
  --media-shadow: 0 1.15rem 3.1rem rgba(0, 0, 0, 0.28);
}

body[data-theme="stone"] {
  --black: #080806;
  --paper: #e9e2d4;
  --paper-rgb: 233, 226, 212;
  --accent-rgb: 155, 146, 127;
  --header: #10100d;
  --surface: #15140f;
  --hero-left: rgba(15, 14, 10, 0.82);
  --hero-mid: rgba(118, 111, 94, 0.2);
  --hero-right: rgba(6, 6, 5, 0.56);
  --hero-wash: rgba(155, 146, 127, 0.26);
  --page-wash: rgba(155, 146, 127, 0.08);
  --quote-wash: rgba(155, 146, 127, 0.2);
  --image-filter: grayscale(0.58) sepia(0.14) saturate(0.82) contrast(1.04) brightness(0.84);
  --image-hover-filter: grayscale(0.16) sepia(0.16) saturate(0.92) contrast(1.02) brightness(0.95);
  --hero-filter: grayscale(0.4) sepia(0.16) saturate(0.86) contrast(1.06) brightness(0.76);
}

body[data-theme="indigo"] {
  --black: #020711;
  --paper: #e9edf0;
  --paper-rgb: 233, 237, 240;
  --accent-rgb: 79, 127, 167;
  --header: #030812;
  --surface: #07101c;
  --hero-left: rgba(3, 8, 18, 0.82);
  --hero-mid: rgba(32, 80, 122, 0.22);
  --hero-right: rgba(2, 7, 17, 0.5);
  --hero-wash: rgba(79, 127, 167, 0.32);
  --page-wash: rgba(79, 127, 167, 0.1);
  --quote-wash: rgba(79, 127, 167, 0.22);
  --image-filter: grayscale(0.34) sepia(0.08) saturate(1.14) hue-rotate(176deg) contrast(1.04) brightness(0.84);
  --image-hover-filter: grayscale(0.08) sepia(0.06) saturate(1.1) hue-rotate(176deg) contrast(1.03) brightness(0.96);
  --hero-filter: grayscale(0.24) sepia(0.08) saturate(1.2) hue-rotate(176deg) contrast(1.07) brightness(0.78);
}

body[data-theme="umber"] {
  --black: #080504;
  --paper: #f0e6d8;
  --paper-rgb: 240, 230, 216;
  --accent-rgb: 167, 102, 69;
  --header: #0d0806;
  --surface: #160d09;
  --hero-left: rgba(18, 9, 5, 0.84);
  --hero-mid: rgba(132, 71, 45, 0.18);
  --hero-right: rgba(8, 5, 4, 0.56);
  --hero-wash: rgba(167, 102, 69, 0.28);
  --page-wash: rgba(167, 102, 69, 0.09);
  --quote-wash: rgba(167, 102, 69, 0.22);
  --image-filter: grayscale(0.42) sepia(0.28) saturate(1.06) hue-rotate(-12deg) contrast(1.04) brightness(0.82);
  --image-hover-filter: grayscale(0.1) sepia(0.22) saturate(1.08) hue-rotate(-12deg) contrast(1.02) brightness(0.96);
  --hero-filter: grayscale(0.26) sepia(0.25) saturate(1.12) hue-rotate(-12deg) contrast(1.08) brightness(0.76);
}

body[data-theme="moss"] {
  --black: #050705;
  --paper: #e7eadf;
  --paper-rgb: 231, 234, 223;
  --accent-rgb: 102, 125, 97;
  --header: #070a07;
  --surface: #0d120d;
  --hero-left: rgba(5, 10, 7, 0.84);
  --hero-mid: rgba(62, 86, 58, 0.2);
  --hero-right: rgba(5, 7, 5, 0.56);
  --hero-wash: rgba(102, 125, 97, 0.3);
  --page-wash: rgba(102, 125, 97, 0.09);
  --quote-wash: rgba(102, 125, 97, 0.24);
  --image-filter: grayscale(0.48) sepia(0.22) saturate(0.92) hue-rotate(42deg) contrast(1.05) brightness(0.82);
  --image-hover-filter: grayscale(0.12) sepia(0.18) saturate(0.98) hue-rotate(42deg) contrast(1.02) brightness(0.95);
  --hero-filter: grayscale(0.32) sepia(0.22) saturate(0.96) hue-rotate(42deg) contrast(1.08) brightness(0.76);
}

body[data-theme="garnet"] {
  --black: #090405;
  --paper: #f0e3df;
  --paper-rgb: 240, 227, 223;
  --accent-rgb: 143, 56, 64;
  --header: #0d0607;
  --surface: #180b0d;
  --hero-left: rgba(24, 6, 9, 0.84);
  --hero-mid: rgba(120, 35, 46, 0.2);
  --hero-right: rgba(9, 4, 5, 0.56);
  --hero-wash: rgba(143, 56, 64, 0.3);
  --page-wash: rgba(143, 56, 64, 0.09);
  --quote-wash: rgba(143, 56, 64, 0.22);
  --image-filter: grayscale(0.38) sepia(0.22) saturate(1.05) hue-rotate(-26deg) contrast(1.04) brightness(0.82);
  --image-hover-filter: grayscale(0.1) sepia(0.18) saturate(1.1) hue-rotate(-24deg) contrast(1.02) brightness(0.96);
  --hero-filter: grayscale(0.24) sepia(0.2) saturate(1.14) hue-rotate(-24deg) contrast(1.08) brightness(0.75);
}

body[data-theme="plum"] {
  --black: #070509;
  --paper: #ece5ee;
  --paper-rgb: 236, 229, 238;
  --accent-rgb: 118, 88, 126;
  --header: #0d0810;
  --surface: #150d18;
  --hero-left: rgba(14, 8, 18, 0.84);
  --hero-mid: rgba(88, 61, 100, 0.2);
  --hero-right: rgba(7, 5, 9, 0.56);
  --hero-wash: rgba(118, 88, 126, 0.3);
  --page-wash: rgba(118, 88, 126, 0.09);
  --quote-wash: rgba(118, 88, 126, 0.22);
  --image-filter: grayscale(0.4) sepia(0.16) saturate(1.02) hue-rotate(210deg) contrast(1.05) brightness(0.82);
  --image-hover-filter: grayscale(0.12) sepia(0.12) saturate(1.06) hue-rotate(210deg) contrast(1.02) brightness(0.95);
  --hero-filter: grayscale(0.28) sepia(0.15) saturate(1.1) hue-rotate(210deg) contrast(1.08) brightness(0.75);
}

body[data-theme="bronze"] {
  --black: #080604;
  --paper: #efe6d2;
  --paper-rgb: 239, 230, 210;
  --accent-rgb: 156, 122, 69;
  --header: #0d0a05;
  --surface: #171107;
  --hero-left: rgba(18, 12, 5, 0.84);
  --hero-mid: rgba(126, 93, 44, 0.18);
  --hero-right: rgba(8, 6, 4, 0.56);
  --hero-wash: rgba(156, 122, 69, 0.28);
  --page-wash: rgba(156, 122, 69, 0.09);
  --quote-wash: rgba(156, 122, 69, 0.23);
  --image-filter: grayscale(0.46) sepia(0.28) saturate(1.04) hue-rotate(8deg) contrast(1.04) brightness(0.82);
  --image-hover-filter: grayscale(0.12) sepia(0.22) saturate(1.08) hue-rotate(8deg) contrast(1.02) brightness(0.95);
  --hero-filter: grayscale(0.3) sepia(0.24) saturate(1.08) hue-rotate(8deg) contrast(1.08) brightness(0.75);
}

body[data-theme="teal"] {
  --black: #030808;
  --paper: #e3eeeb;
  --paper-rgb: 227, 238, 235;
  --accent-rgb: 63, 132, 130;
  --header: #050d0d;
  --surface: #081817;
  --hero-left: rgba(4, 16, 16, 0.84);
  --hero-mid: rgba(35, 106, 103, 0.2);
  --hero-right: rgba(3, 8, 8, 0.56);
  --hero-wash: rgba(63, 132, 130, 0.3);
  --page-wash: rgba(63, 132, 130, 0.1);
  --quote-wash: rgba(63, 132, 130, 0.22);
  --image-filter: grayscale(0.36) sepia(0.12) saturate(1.04) hue-rotate(124deg) contrast(1.04) brightness(0.82);
  --image-hover-filter: grayscale(0.08) sepia(0.1) saturate(1.08) hue-rotate(124deg) contrast(1.02) brightness(0.96);
  --hero-filter: grayscale(0.24) sepia(0.12) saturate(1.12) hue-rotate(124deg) contrast(1.08) brightness(0.76);
}

body[data-theme="slate"] {
  --black: #050608;
  --paper: #e8eaeb;
  --paper-rgb: 232, 234, 235;
  --accent-rgb: 111, 123, 134;
  --header: #080a0d;
  --surface: #101419;
  --hero-left: rgba(7, 9, 12, 0.84);
  --hero-mid: rgba(82, 95, 107, 0.2);
  --hero-right: rgba(5, 6, 8, 0.56);
  --hero-wash: rgba(111, 123, 134, 0.26);
  --page-wash: rgba(111, 123, 134, 0.08);
  --quote-wash: rgba(111, 123, 134, 0.2);
  --image-filter: grayscale(0.62) sepia(0.04) saturate(0.84) hue-rotate(170deg) contrast(1.05) brightness(0.84);
  --image-hover-filter: grayscale(0.22) sepia(0.03) saturate(0.92) hue-rotate(170deg) contrast(1.02) brightness(0.95);
  --hero-filter: grayscale(0.48) sepia(0.04) saturate(0.9) hue-rotate(170deg) contrast(1.07) brightness(0.76);
}

body[data-theme="jade"] {
  --black: #050806;
  --paper: #e6eadf;
  --paper-rgb: 230, 234, 223;
  --accent-rgb: 109, 140, 119;
  --header: #070c08;
  --surface: #0c160f;
  --hero-left: rgba(5, 13, 8, 0.84);
  --hero-mid: rgba(71, 105, 82, 0.2);
  --hero-right: rgba(5, 8, 6, 0.56);
  --hero-wash: rgba(109, 140, 119, 0.28);
  --page-wash: rgba(109, 140, 119, 0.09);
  --quote-wash: rgba(109, 140, 119, 0.22);
  --image-filter: grayscale(0.45) sepia(0.2) saturate(0.92) hue-rotate(68deg) contrast(1.04) brightness(0.83);
  --image-hover-filter: grayscale(0.12) sepia(0.16) saturate(0.98) hue-rotate(68deg) contrast(1.02) brightness(0.96);
  --hero-filter: grayscale(0.3) sepia(0.18) saturate(1) hue-rotate(68deg) contrast(1.08) brightness(0.76);
}

body[data-theme="rosewood"] {
  --black: #080504;
  --paper: #efe2dc;
  --paper-rgb: 239, 226, 220;
  --accent-rgb: 138, 80, 71;
  --header: #0d0807;
  --surface: #170d0b;
  --hero-left: rgba(17, 8, 6, 0.84);
  --hero-mid: rgba(110, 61, 53, 0.2);
  --hero-right: rgba(8, 5, 4, 0.56);
  --hero-wash: rgba(138, 80, 71, 0.28);
  --page-wash: rgba(138, 80, 71, 0.09);
  --quote-wash: rgba(138, 80, 71, 0.22);
  --image-filter: grayscale(0.42) sepia(0.25) saturate(1.02) hue-rotate(-8deg) contrast(1.04) brightness(0.82);
  --image-hover-filter: grayscale(0.1) sepia(0.2) saturate(1.06) hue-rotate(-8deg) contrast(1.02) brightness(0.96);
  --hero-filter: grayscale(0.26) sepia(0.22) saturate(1.1) hue-rotate(-8deg) contrast(1.08) brightness(0.75);
}

body[data-theme="noir"] {
  --black: #030303;
  --paper: #e8e3d8;
  --paper-rgb: 232, 227, 216;
  --accent-rgb: 216, 209, 195;
  --header: #070707;
  --surface: #111111;
  --hero-left: rgba(3, 3, 3, 0.86);
  --hero-mid: rgba(90, 86, 80, 0.12);
  --hero-right: rgba(3, 3, 3, 0.58);
  --hero-wash: rgba(216, 209, 195, 0.08);
  --page-wash: rgba(216, 209, 195, 0.05);
  --quote-wash: rgba(216, 209, 195, 0.1);
  --image-filter: grayscale(1) contrast(1.08) brightness(0.82);
  --image-hover-filter: grayscale(0.72) contrast(1.06) brightness(0.94);
  --hero-filter: grayscale(1) contrast(1.1) brightness(0.75);
}

body[data-theme="noir"][data-bg="obsidian"] {
  --hero-left: rgba(3, 3, 3, 0.9);
  --hero-mid: rgba(3, 3, 3, 0.28);
  --hero-right: rgba(3, 3, 3, 0.68);
  --hero-wash: rgba(3, 3, 3, 0.1);
  --quote-wash: rgba(216, 209, 195, 0.08);
  --hero-overlay:
    linear-gradient(90deg, var(--hero-left), var(--hero-mid) 56%, var(--hero-right)),
    linear-gradient(0deg, rgba(3, 3, 3, 0.78), rgba(3, 3, 3, 0.12) 58%);
  --quote-overlay:
    linear-gradient(0deg, rgba(3, 3, 3, 0.92), rgba(3, 3, 3, 0.26));
  --hero-filter: grayscale(1) saturate(0) contrast(1.16) brightness(0.62);
  --image-filter: grayscale(1) saturate(0) contrast(1.08) brightness(0.82);
  --image-hover-filter: grayscale(0.72) saturate(0) contrast(1.06) brightness(0.94);
}

body[data-theme="pearl"] {
  --black: #0b0a08;
  --paper: #f0eadf;
  --paper-rgb: 240, 234, 223;
  --accent-rgb: 207, 200, 181;
  --header: #11100d;
  --surface: #171510;
  --hero-left: rgba(12, 11, 8, 0.84);
  --hero-mid: rgba(160, 150, 126, 0.18);
  --hero-right: rgba(11, 10, 8, 0.54);
  --hero-wash: rgba(207, 200, 181, 0.2);
  --page-wash: rgba(207, 200, 181, 0.08);
  --quote-wash: rgba(207, 200, 181, 0.18);
  --image-filter: grayscale(0.64) sepia(0.18) saturate(0.86) contrast(1.04) brightness(0.84);
  --image-hover-filter: grayscale(0.2) sepia(0.16) saturate(0.95) contrast(1.02) brightness(0.96);
  --hero-filter: grayscale(0.48) sepia(0.16) saturate(0.9) contrast(1.07) brightness(0.76);
}

body[data-font="sans"] {
  --font-body: var(--font-ui);
  --font-display: var(--font-ui);
}

body[data-font="song"] {
  --font-body: "Noto Serif SC", "Songti SC", SimSun, Georgia, serif;
  --font-display: "Noto Serif SC", "Songti SC", SimSun, Georgia, serif;
}

body[data-font="kai"] {
  --font-body: KaiTi, STKaiti, "Kaiti SC", serif;
  --font-display: KaiTi, STKaiti, "Kaiti SC", serif;
}

body[data-font="editorial"] {
  --font-body: Georgia, "Times New Roman", "Noto Serif SC", SimSun, serif;
  --font-display: Georgia, "Times New Roman", "Noto Serif SC", SimSun, serif;
}

body[data-font="rounded"] {
  --font-body: "Microsoft YaHei UI", var(--font-ui);
  --font-display: "Microsoft YaHei UI", var(--font-ui);
}

body[data-font="mono"] {
  --font-body: "Noto Sans Mono CJK SC", "Microsoft YaHei UI", Consolas, monospace;
  --font-display: "Noto Sans Mono CJK SC", "Microsoft YaHei UI", Consolas, monospace;
}

body[data-font="thin"] {
  --font-body: DengXian, "Microsoft YaHei UI", var(--font-ui);
  --font-display: "DengXian Light", DengXian, "Microsoft YaHei UI Light", var(--font-ui);
}

body[data-font="fangsong"] {
  --font-body: FangSong, STFangsong, "FangSong_GB2312", "Noto Serif SC", SimSun, serif;
  --font-display: FangSong, STFangsong, "FangSong_GB2312", "Noto Serif SC", SimSun, serif;
}

body[data-font="zhongsong"] {
  --font-body: "Noto Serif SC", STZhongsong, SimSun, "Songti SC", Georgia, serif;
  --font-display: STZhongsong, "Noto Serif SC", SimSun, "Songti SC", Georgia, serif;
}

body[data-font="classic"] {
  --font-body: Georgia, "Times New Roman", "Noto Serif SC", SimSun, serif;
  --font-display: Georgia, "Times New Roman", "Noto Serif SC", SimSun, serif;
}

body[data-font="narrow"] {
  --font-body: "Aptos Narrow", "Avenir Next Condensed", var(--font-ui);
  --font-display: "Aptos Narrow", "Avenir Next Condensed", var(--font-ui);
}

body[data-font="humanist"] {
  --font-body: "Aptos", Candara, var(--font-ui);
  --font-display: "Aptos Display", "Aptos", Candara, var(--font-ui);
}

body[data-font="calligraphy"] {
  --font-body: KaiTi, STKaiti, "Kaiti SC", "Noto Serif SC", SimSun, serif;
  --font-display: STXingkai, "Xingkai SC", KaiTi, STKaiti, "Kaiti SC", serif;
}

body[data-font="mincho"] {
  --font-body: "Aptos", "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Yu Mincho", "MS Mincho", "Noto Serif CJK SC", "Noto Serif SC", SimSun, serif;
}

body[data-size="compact"] {
  --type-scale: 0.88;
  --display-scale: 0.9;
  --ui-scale: 0.94;
}

body[data-size="small"] {
  --type-scale: 0.94;
  --display-scale: 0.95;
  --ui-scale: 0.98;
}

body[data-size="standard"] {
  --type-scale: 1;
  --display-scale: 1;
  --ui-scale: 1;
}

body[data-size="relaxed"] {
  --type-scale: 1.08;
  --display-scale: 1.06;
  --ui-scale: 1.02;
}

body[data-size="large"] {
  --type-scale: 1.16;
  --display-scale: 1.12;
  --ui-scale: 1.04;
}

body[data-size="stage"] {
  --type-scale: 1.28;
  --display-scale: 1.18;
  --ui-scale: 1.06;
}

body[data-text="warm"] {
  --paper: #eee9df;
  --paper-rgb: 238, 233, 223;
}

body[data-text="cool"] {
  --paper: #e9edf0;
  --paper-rgb: 233, 237, 240;
}

body[data-text="ivory"] {
  --paper: #f5eddb;
  --paper-rgb: 245, 237, 219;
}

body[data-text="mist"] {
  --paper: #dfe7e3;
  --paper-rgb: 223, 231, 227;
}

body[data-text="gold"] {
  --paper: #e4c88f;
  --paper-rgb: 228, 200, 143;
}

body[data-text="rose"] {
  --paper: #ead8d4;
  --paper-rgb: 234, 216, 212;
}

body[data-text="blue"] {
  --paper: #dce8f2;
  --paper-rgb: 220, 232, 242;
}

body[data-text="green"] {
  --paper: #e2ead9;
  --paper-rgb: 226, 234, 217;
}

body[data-text="ink"] {
  --paper: #171717;
  --paper-rgb: 23, 23, 23;
}

body[data-text="graphite"] {
  --paper: #2d3034;
  --paper-rgb: 45, 48, 52;
}

body[data-text="tea"] {
  --paper: #40352a;
  --paper-rgb: 64, 53, 42;
}

body[data-text="deepteal"] {
  --paper: #1d3e3c;
  --paper-rgb: 29, 62, 60;
}

body[data-bg="obsidian"] {
  --page-bg: #030303;
  --section-bg: #030303;
  --section-alt: #070707;
  --header-bg: #080808;
  --panel-bg: color-mix(in srgb, #080808 94%, transparent);
  --tile-bg: #101010;
  --media-bg: #0c0c0c;
  --hero-base: #030303;
  --quote-bg: #030303;
  --black: var(--section-bg);
  --header: var(--header-bg);
  --surface: var(--tile-bg);
  --body-texture:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 12rem);
  --section-texture: linear-gradient(transparent, transparent);
  --header-texture: linear-gradient(transparent, transparent);
  --hero-left: rgba(3, 3, 3, 0.72);
  --hero-right: rgba(3, 3, 3, 0.46);
  --hero-image-opacity: 1;
  --hero-image-blend: normal;
  --quote-image-opacity: 1;
  --quote-image-blend: normal;
}

body[data-bg="carbon"] {
  --page-bg: #0f0f0e;
  --section-bg: #141412;
  --section-alt: #1b1a17;
  --header-bg: #11110f;
  --panel-bg: color-mix(in srgb, #11110f 94%, transparent);
  --tile-bg: #20201d;
  --media-bg: #181816;
  --hero-base: #11110f;
  --quote-bg: #141412;
  --black: var(--section-bg);
  --header: var(--header-bg);
  --surface: var(--tile-bg);
  --body-texture:
    radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.045), transparent 16rem),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 8px);
  --section-texture:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 7rem);
  --hero-left: rgba(15, 15, 14, 0.7);
  --hero-right: rgba(15, 15, 14, 0.48);
  --hero-image-opacity: 0.94;
  --hero-image-blend: luminosity;
  --quote-image-opacity: 0.86;
  --quote-image-blend: luminosity;
}

body[data-bg="midnight"] {
  --page-bg: #020711;
  --section-bg: #050b17;
  --section-alt: #081221;
  --header-bg: #030812;
  --panel-bg: color-mix(in srgb, #030812 94%, transparent);
  --tile-bg: #07101c;
  --media-bg: #050b15;
  --hero-base: #020711;
  --quote-bg: #050b17;
  --black: var(--section-bg);
  --header: var(--header-bg);
  --surface: var(--tile-bg);
  --body-texture:
    radial-gradient(circle at 82% 8%, rgba(79, 127, 167, 0.16), transparent 26rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 42%);
  --section-texture:
    linear-gradient(90deg, rgba(255, 255, 255, 0.026), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 5rem);
  --hero-left: rgba(2, 7, 17, 0.68);
  --hero-right: rgba(2, 7, 17, 0.42);
  --hero-image-opacity: 0.96;
  --hero-image-blend: normal;
  --quote-image-opacity: 0.92;
  --quote-image-blend: normal;
}

body[data-bg="theater"] {
  --page-bg: #120507;
  --section-bg: #18080b;
  --section-alt: #221014;
  --header-bg: #0f0507;
  --panel-bg: color-mix(in srgb, #0f0507 94%, transparent);
  --tile-bg: #251015;
  --media-bg: #1c0c10;
  --hero-base: #120507;
  --quote-bg: #18080b;
  --black: var(--section-bg);
  --header: var(--header-bg);
  --surface: var(--tile-bg);
  --body-texture:
    radial-gradient(circle at 50% 0%, rgba(143, 56, 64, 0.24), transparent 31rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018), transparent 28%, rgba(0, 0, 0, 0.18));
  --section-texture:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 9rem);
  --hero-left: rgba(18, 5, 7, 0.66);
  --hero-right: rgba(18, 5, 7, 0.42);
  --hero-image-opacity: 0.96;
  --hero-image-blend: multiply;
  --quote-image-opacity: 0.88;
  --quote-image-blend: multiply;
}

body[data-bg="clay"] {
  --page-bg: #2b1d15;
  --section-bg: #342319;
  --section-alt: #412d21;
  --header-bg: #21150f;
  --panel-bg: color-mix(in srgb, #21150f 94%, transparent);
  --tile-bg: #4a3325;
  --media-bg: #39271d;
  --hero-base: #2b1d15;
  --quote-bg: #342319;
  --black: var(--section-bg);
  --header: var(--header-bg);
  --surface: var(--tile-bg);
  --body-texture:
    radial-gradient(circle at 18% 20%, rgba(224, 164, 103, 0.16), transparent 20rem),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 12px);
  --section-texture:
    linear-gradient(120deg, rgba(255, 255, 255, 0.032), transparent 50%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 6rem);
  --hero-left: rgba(43, 29, 21, 0.62);
  --hero-right: rgba(43, 29, 21, 0.38);
  --hero-image-opacity: 0.92;
  --hero-image-blend: multiply;
  --quote-image-opacity: 0.86;
  --quote-image-blend: multiply;
}

body[data-bg="mineral"] {
  --page-bg: #10201f;
  --section-bg: #142927;
  --section-alt: #1c3330;
  --header-bg: #0b1716;
  --panel-bg: color-mix(in srgb, #0b1716 94%, transparent);
  --tile-bg: #213d39;
  --media-bg: #19302d;
  --hero-base: #10201f;
  --quote-bg: #142927;
  --black: var(--section-bg);
  --header: var(--header-bg);
  --surface: var(--tile-bg);
  --body-texture:
    radial-gradient(circle at 78% 18%, rgba(104, 167, 154, 0.18), transparent 25rem),
    linear-gradient(150deg, rgba(255, 255, 255, 0.036), transparent 40%);
  --section-texture:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 11px);
  --hero-left: rgba(16, 32, 31, 0.62);
  --hero-right: rgba(16, 32, 31, 0.38);
  --hero-image-opacity: 0.9;
  --hero-image-blend: luminosity;
  --quote-image-opacity: 0.82;
  --quote-image-blend: luminosity;
}

body[data-bg="slatewall"] {
  --page-bg: #202326;
  --section-bg: #292d30;
  --section-alt: #33383b;
  --header-bg: #191c1e;
  --panel-bg: color-mix(in srgb, #191c1e 94%, transparent);
  --tile-bg: #383e41;
  --media-bg: #2f3437;
  --hero-base: #202326;
  --quote-bg: #292d30;
  --black: var(--section-bg);
  --header: var(--header-bg);
  --surface: var(--tile-bg);
  --body-texture:
    linear-gradient(120deg, rgba(255, 255, 255, 0.042), transparent 35%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 9px);
  --section-texture:
    linear-gradient(90deg, rgba(255, 255, 255, 0.036), transparent 35%);
  --hero-left: rgba(32, 35, 38, 0.6);
  --hero-right: rgba(32, 35, 38, 0.34);
  --hero-image-opacity: 0.86;
  --hero-image-blend: luminosity;
  --quote-image-opacity: 0.8;
  --quote-image-blend: luminosity;
}

body[data-bg="ashwall"] {
  --page-bg: #c7c3ba;
  --section-bg: #d3cec3;
  --section-alt: #bdb8ae;
  --header-bg: #b9b4ab;
  --panel-bg: color-mix(in srgb, #d3cec3 92%, #111 8%);
  --tile-bg: #e0dbd0;
  --media-bg: #c4beb3;
  --hero-base: #c7c3ba;
  --quote-bg: #bdb8ae;
  --black: var(--section-bg);
  --header: var(--header-bg);
  --surface: var(--tile-bg);
  --body-texture:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.38), transparent 22rem),
    repeating-linear-gradient(90deg, rgba(20, 20, 20, 0.035) 0 1px, transparent 1px 7px);
  --section-texture:
    repeating-linear-gradient(0deg, rgba(20, 20, 20, 0.025) 0 1px, transparent 1px 10px);
  --header-texture:
    linear-gradient(90deg, rgba(255, 255, 255, 0.15), transparent 42%);
  --hero-left: rgba(214, 210, 201, 0.94);
  --hero-mid: rgba(226, 223, 216, 0.62);
  --hero-right: rgba(199, 195, 186, 0.28);
  --hero-wash: rgba(214, 210, 201, 0.3);
  --hero-image-opacity: 0.28;
  --hero-image-blend: normal;
  --quote-image-opacity: 0.5;
  --quote-image-blend: multiply;
  --image-filter: grayscale(0.58) sepia(0.1) saturate(0.7) contrast(0.96) brightness(1.04);
  --image-hover-filter: grayscale(0.16) sepia(0.08) saturate(0.84) contrast(0.98) brightness(1.05);
  --hero-filter: grayscale(0.56) sepia(0.12) saturate(0.78) contrast(0.95) brightness(1.1);
}

body[data-bg="gallery"] {
  --page-bg: #f1f0eb;
  --section-bg: #f7f5ef;
  --section-alt: #e7e3da;
  --header-bg: #ece9df;
  --panel-bg: color-mix(in srgb, #f7f5ef 94%, #111 6%);
  --tile-bg: #ffffff;
  --media-bg: #e9e5dc;
  --hero-base: #f1f0eb;
  --quote-bg: #e7e3da;
  --black: var(--section-bg);
  --header: var(--header-bg);
  --surface: var(--tile-bg);
  --body-texture:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 46rem),
    repeating-linear-gradient(90deg, rgba(30, 30, 30, 0.018) 0 1px, transparent 1px 8rem);
  --section-texture: linear-gradient(transparent, transparent);
  --hero-left: rgba(247, 245, 239, 0.96);
  --hero-mid: rgba(255, 255, 255, 0.64);
  --hero-right: rgba(247, 245, 239, 0.28);
  --hero-wash: rgba(247, 245, 239, 0.34);
  --hero-image-opacity: 0.25;
  --hero-image-blend: normal;
  --quote-image-opacity: 0.42;
  --quote-image-blend: multiply;
  --image-filter: grayscale(0.78) sepia(0.08) saturate(0.66) contrast(0.94) brightness(1.08);
  --image-hover-filter: grayscale(0.18) sepia(0.06) saturate(0.82) contrast(0.98) brightness(1.06);
  --hero-filter: grayscale(0.72) sepia(0.08) saturate(0.66) contrast(0.92) brightness(1.12);
}

body[data-bg="ricepaper"] {
  --page-bg: #efe6d3;
  --section-bg: #f5ead5;
  --section-alt: #e3d6be;
  --header-bg: #e8dcc7;
  --panel-bg: color-mix(in srgb, #f5ead5 93%, #111 7%);
  --tile-bg: #fff2dc;
  --media-bg: #e7d8be;
  --hero-base: #efe6d3;
  --quote-bg: #e3d6be;
  --black: var(--section-bg);
  --header: var(--header-bg);
  --surface: var(--tile-bg);
  --body-texture:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.52), transparent 20rem),
    repeating-linear-gradient(0deg, rgba(70, 45, 20, 0.028) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(90deg, rgba(70, 45, 20, 0.018) 0 1px, transparent 1px 17px);
  --section-texture:
    repeating-linear-gradient(90deg, rgba(70, 45, 20, 0.022) 0 1px, transparent 1px 13px);
  --hero-left: rgba(245, 234, 213, 0.96);
  --hero-mid: rgba(255, 247, 232, 0.64);
  --hero-right: rgba(245, 234, 213, 0.3);
  --hero-wash: rgba(245, 234, 213, 0.32);
  --hero-image-opacity: 0.26;
  --hero-image-blend: normal;
  --quote-image-opacity: 0.38;
  --quote-image-blend: multiply;
  --image-filter: grayscale(0.66) sepia(0.24) saturate(0.72) contrast(0.96) brightness(1.08);
  --image-hover-filter: grayscale(0.18) sepia(0.18) saturate(0.86) contrast(0.98) brightness(1.06);
  --hero-filter: grayscale(0.64) sepia(0.22) saturate(0.72) contrast(0.92) brightness(1.12);
}

body[data-bg="bone"] {
  --page-bg: #e4ded2;
  --section-bg: #eee8db;
  --section-alt: #d7d0c3;
  --header-bg: #dcd5c8;
  --panel-bg: color-mix(in srgb, #eee8db 92%, #111 8%);
  --tile-bg: #f8f1e3;
  --media-bg: #ddd4c4;
  --hero-base: #e4ded2;
  --quote-bg: #d7d0c3;
  --black: var(--section-bg);
  --header: var(--header-bg);
  --surface: var(--tile-bg);
  --body-texture:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 32%),
    repeating-linear-gradient(45deg, rgba(55, 44, 33, 0.02) 0 1px, transparent 1px 10px);
  --section-texture:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 36%);
  --hero-left: rgba(238, 232, 219, 0.94);
  --hero-mid: rgba(255, 250, 239, 0.62);
  --hero-right: rgba(228, 222, 210, 0.28);
  --hero-wash: rgba(238, 232, 219, 0.3);
  --hero-image-opacity: 0.28;
  --hero-image-blend: normal;
  --quote-image-opacity: 0.42;
  --quote-image-blend: multiply;
  --image-filter: grayscale(0.6) sepia(0.12) saturate(0.7) contrast(0.96) brightness(1.06);
  --image-hover-filter: grayscale(0.16) sepia(0.1) saturate(0.86) contrast(0.98) brightness(1.05);
  --hero-filter: grayscale(0.6) sepia(0.14) saturate(0.7) contrast(0.92) brightness(1.1);
}

body[data-bg="vellum"] {
  --page-bg: #cbb89d;
  --section-bg: #d8c5a8;
  --section-alt: #b9a489;
  --header-bg: #b9a68d;
  --panel-bg: color-mix(in srgb, #d8c5a8 91%, #111 9%);
  --tile-bg: #e6d1b2;
  --media-bg: #c2ad91;
  --hero-base: #cbb89d;
  --quote-bg: #b9a489;
  --black: var(--section-bg);
  --header: var(--header-bg);
  --surface: var(--tile-bg);
  --body-texture:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.32), transparent 18rem),
    repeating-linear-gradient(0deg, rgba(70, 48, 25, 0.035) 0 1px, transparent 1px 8px);
  --section-texture:
    repeating-linear-gradient(90deg, rgba(70, 48, 25, 0.03) 0 1px, transparent 1px 10px);
  --hero-left: rgba(216, 197, 168, 0.9);
  --hero-mid: rgba(236, 219, 191, 0.6);
  --hero-right: rgba(203, 184, 157, 0.3);
  --hero-wash: rgba(216, 197, 168, 0.28);
  --hero-image-opacity: 0.3;
  --hero-image-blend: normal;
  --quote-image-opacity: 0.42;
  --quote-image-blend: multiply;
  --image-filter: grayscale(0.56) sepia(0.24) saturate(0.78) contrast(0.96) brightness(1.03);
  --image-hover-filter: grayscale(0.14) sepia(0.18) saturate(0.9) contrast(0.98) brightness(1.03);
  --hero-filter: grayscale(0.58) sepia(0.26) saturate(0.78) contrast(0.92) brightness(1.06);
}

body[data-text] {
  --hero-title-color: rgba(var(--paper-rgb), 0.68);
  --hero-subtitle-color: rgba(var(--paper-rgb), 0.62);
}

body.is-theme-shifting {
  animation: theme-pulse 520ms var(--ease-soft);
}

@keyframes theme-pulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 rgba(var(--accent-rgb), 0);
  }

  42% {
    box-shadow: inset 0 0 0 9999px rgba(var(--accent-rgb), 0.045);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background-color: var(--page-bg);
  background-image:
    var(--body-texture),
    radial-gradient(circle at 18% 0%, var(--page-wash), transparent 34rem),
    linear-gradient(180deg, var(--page-bg), var(--section-bg));
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: calc(1rem * var(--type-scale));
  letter-spacing: 0;
  line-height: 1.68;
  transition: background 320ms var(--ease-soft), color 320ms var(--ease-soft);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

section[id],
article[id] {
  scroll-margin-top: 5.5rem;
}

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

img,
video {
  display: block;
  width: 100%;
}

button {
  font: inherit;
}

:where(a, button, [role="button"], input, select, textarea, summary):focus-visible {
  outline: 1.5px solid rgba(var(--accent-rgb), 0.82);
  outline-offset: 0.24rem;
  box-shadow: 0 0 0 0.34rem rgba(var(--accent-rgb), 0.14);
}

:where(.menu-button, .language-option, .theme-toggle, .lightbox button):focus-visible {
  border-radius: 999px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-150%);
  padding: 0.45rem 0.65rem;
  background: var(--paper);
  color: var(--black);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0.8rem;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(1180px, calc(100% - 1.8rem));
  min-height: 4.7rem;
  margin: 0.8rem auto -0.2rem;
  padding: 0.72rem 1.1rem 0.72rem 1.4rem;
  background-color: color-mix(in srgb, var(--header-bg) 84%, transparent);
  background-image:
    linear-gradient(135deg, rgba(var(--paper-rgb), 0.08), transparent 34%),
    var(--header-texture);
  color: var(--paper);
  border: 1px solid rgba(var(--paper-rgb), 0.13);
  border-radius: 999px;
  box-shadow: 0 1.3rem 3rem rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: background 320ms var(--ease-soft), border-color 320ms var(--ease-soft), box-shadow 320ms var(--ease-soft), transform 320ms var(--ease-soft);
}

.site-header.is-scrolled {
  border-color: rgba(var(--paper-rgb), 0.2);
  background-color: color-mix(in srgb, var(--header-bg) 76%, transparent);
  box-shadow: 0 1.6rem 4.2rem rgba(0, 0, 0, 0.34);
}

.site-name {
  display: inline-block;
  position: relative;
  z-index: 70;
  padding: 0;
  color: rgba(var(--paper-rgb), 0.9);
  font-family: var(--font-display);
  font-size: calc(clamp(1.55rem, 2.7vw, 2.2rem) * var(--display-scale));
  font-weight: 700;
  line-height: 0.95;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
  color: rgba(var(--paper-rgb), 0.92);
  font-family: var(--font-ui);
  font-size: calc(0.74rem * var(--ui-scale));
  text-transform: uppercase;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.08rem 0.12rem;
  white-space: nowrap;
  transition: color 220ms var(--ease-soft), text-shadow 220ms var(--ease-soft), transform 220ms var(--ease-soft);
}

.main-nav a:hover,
.main-nav a.is-active,
.main-nav a[aria-current="page"] {
  color: var(--paper);
  text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.32);
  transform: translateY(-1px);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  min-height: 2.18rem;
  padding: 0.2rem;
  border: 1px solid rgba(var(--paper-rgb), 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(var(--paper-rgb), 0.08), rgba(var(--paper-rgb), 0.025)),
    rgba(var(--paper-rgb), 0.038);
  color: rgba(var(--paper-rgb), 0.68);
  text-transform: none;
  white-space: nowrap;
}

.language-switch__label {
  display: inline-flex;
  align-items: center;
  min-height: 1.68rem;
  margin-right: 0.08rem;
  padding: 0 0.58rem 0 0.66rem;
  border-right: 1px solid rgba(var(--paper-rgb), 0.11);
  color: rgba(var(--paper-rgb), 0.5);
  font-size: calc(0.64rem * var(--ui-scale));
  line-height: 1;
}

.language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.35rem;
  min-height: 1.68rem;
  padding: 0.16rem 0.68rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(var(--paper-rgb), 0.66);
  font-size: calc(0.69rem * var(--ui-scale));
  line-height: 1;
  text-transform: none;
  transition: background 220ms var(--ease-soft), border-color 220ms var(--ease-soft), color 220ms var(--ease-soft), transform 220ms var(--ease-soft);
}

.main-nav .language-option:hover,
.main-nav .language-option.is-current {
  border-color: rgba(var(--paper-rgb), 0.08);
  background:
    linear-gradient(180deg, rgba(var(--paper-rgb), 0.18), rgba(var(--paper-rgb), 0.09)),
    rgba(var(--paper-rgb), 0.1);
  color: var(--paper);
  box-shadow: inset 0 1px 0 rgba(var(--paper-rgb), 0.11);
  text-shadow: none;
}

.theme-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.theme-menu[hidden] {
  display: none !important;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(var(--paper-rgb), 0.16);
  border-radius: 999px;
  padding: 0.3rem 0.64rem;
  background: rgba(var(--paper-rgb), 0.04);
  color: rgba(var(--paper-rgb), 0.72);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: calc(0.72rem * var(--ui-scale));
  text-transform: none;
  transition: border-color 220ms var(--ease-soft), background 220ms var(--ease-soft), color 220ms var(--ease-soft);
}

.theme-toggle:hover,
.theme-menu.is-open .theme-toggle {
  border-color: rgba(var(--accent-rgb), 0.44);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--paper);
}

.theme-toggle strong {
  color: var(--paper);
  font-size: calc(0.72rem * var(--ui-scale));
  font-weight: 400;
}

.theme-panel {
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  z-index: 60;
  width: min(30rem, calc(100vw - 2rem));
  display: grid;
  gap: 0.72rem;
  max-height: min(78vh, 44rem);
  overflow: auto;
  padding: 0.9rem;
  border: 1px solid rgba(var(--paper-rgb), 0.14);
  background: var(--panel-bg);
  box-shadow: 0 1.2rem 3.5rem rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.25rem);
  transition: opacity 220ms var(--ease-soft), transform 220ms var(--ease-soft);
}

.theme-menu.is-open .theme-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.appearance-section {
  display: grid;
  gap: 0.5rem;
}

.appearance-section + .appearance-section {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(var(--paper-rgb), 0.1);
}

.appearance-section h4 {
  margin: 0;
  color: rgba(var(--paper-rgb), 0.58);
  font-family: var(--font-ui);
  font-size: calc(0.64rem * var(--ui-scale));
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

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

.appearance-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  min-height: 2.1rem;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0.42rem 0.52rem;
  background: transparent;
  color: rgba(var(--paper-rgb), 0.62);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: calc(0.68rem * var(--ui-scale));
  text-transform: none;
  transition: color 220ms var(--ease-soft), border-color 220ms var(--ease-soft), background 220ms var(--ease-soft);
}

.appearance-choice:hover,
.appearance-choice[aria-pressed="true"] {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--paper);
}

.theme-swatch {
  flex: 0 0 auto;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(var(--paper-rgb), 0.18);
}

.font-preview {
  flex: 0 0 auto;
  width: 1.12rem;
  color: var(--paper);
  font-size: calc(0.74rem * var(--ui-scale));
  line-height: 1;
}

.font-song {
  font-family: "Noto Serif SC", "Songti SC", SimSun, Georgia, serif;
}

.font-kai {
  font-family: KaiTi, STKaiti, "Kaiti SC", serif;
}

.font-editorial {
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
}

.font-rounded {
  font-family: var(--font-ui);
}

.font-mono {
  font-family: "Noto Sans Mono CJK SC", Consolas, monospace;
}

.font-thin {
  font-family: DengXian, "Microsoft YaHei UI", var(--font-ui);
  font-weight: 300;
}

.font-fangsong {
  font-family: FangSong, STFangsong, SimSun, serif;
}

.font-zhongsong {
  font-family: STZhongsong, "Noto Serif SC", SimSun, serif;
}

.font-classic {
  font-family: Georgia, "Times New Roman", serif;
}

.font-narrow {
  font-family: "Aptos Narrow", "Avenir Next Condensed", var(--font-ui);
}

.font-humanist {
  font-family: "Aptos", Candara, var(--font-ui);
}

.font-calligraphy {
  font-family: STXingkai, KaiTi, STKaiti, serif;
}

.font-mincho {
  font-family: "Yu Mincho", "MS Mincho", SimSun, serif;
}

.size-control {
  display: grid;
  gap: 0.7rem;
}

.size-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(var(--paper-rgb), 0.62);
  font-family: var(--font-ui);
  font-size: calc(0.68rem * var(--ui-scale));
}

.size-readout strong {
  color: var(--paper);
  font-weight: 400;
}

.type-size-range {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

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

.size-presets .appearance-choice {
  justify-content: center;
  min-height: 1.9rem;
}

.theme-cycle-area {
  cursor: default;
}

.theme-cycle-area :is(a, button, video, input, select, textarea, summary, [role="button"]) {
  cursor: auto;
}

.menu-button {
  display: none;
  flex: 0 0 auto;
  position: relative;
  z-index: 70;
  margin-left: auto;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(var(--paper-rgb), 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(var(--paper-rgb), 0.09), rgba(var(--paper-rgb), 0.02)),
    rgba(var(--accent-rgb), 0.1);
  color: var(--paper);
  box-shadow: inset 0 1px 0 rgba(var(--paper-rgb), 0.16);
  transition: transform 220ms var(--ease-soft), border-color 220ms var(--ease-soft), background 220ms var(--ease-soft);
}

.menu-button:active {
  transform: scale(0.96);
}

.menu-button span {
  display: block;
  width: 1rem;
  height: 1px;
  margin: 0.32rem auto;
  background: currentColor;
  transition: transform 320ms var(--ease-soft), opacity 320ms var(--ease-soft);
}

.menu-button.is-open span:first-child {
  transform: translateY(0.16rem) rotate(42deg);
}

.menu-button.is-open span:last-child {
  transform: translateY(-0.16rem) rotate(-42deg);
}

.home {
  position: relative;
  min-height: 80dvh;
  display: grid;
  align-items: end;
  padding: 7.4rem 6.5vw 5.2rem;
  overflow: hidden;
  background: var(--hero-base);
}

.home-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  background: var(--hero-base);
}

.home-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay);
  mix-blend-mode: normal;
  pointer-events: none;
}

.home-image img {
  position: relative;
  z-index: 0;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
  opacity: var(--hero-image-opacity);
  filter: var(--hero-filter);
  mix-blend-mode: var(--hero-image-blend);
  transition: filter 320ms var(--ease-soft), opacity 320ms var(--ease-soft);
}

.home-image figcaption {
  position: absolute;
  right: 2.2rem;
  bottom: 2.1rem;
  z-index: 1;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: calc(0.72rem * var(--ui-scale));
  text-transform: uppercase;
}

.home-title-block {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  color: var(--hero-title-color);
  text-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.5);
  transform: translateZ(0);
}

.home h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(clamp(3.5rem, 8vw, 7.6rem) * var(--display-scale));
  font-weight: 700;
  line-height: 0.95;
}

.home p {
  width: min(620px, 100%);
  margin: 1.05rem 0 0;
  color: var(--hero-subtitle-color);
  font-size: calc(clamp(1.15rem, 2vw, 1.75rem) * var(--type-scale));
  font-style: italic;
}

body[data-reference-header="true"] {
  --opening-header-height: 7.2rem;
}

body[data-reference-header="true"] .site-header {
  top: 0;
  justify-content: center;
  width: 100%;
  min-height: var(--opening-header-height);
  margin: 0;
  padding: 0 2rem;
  background: #f7f7f5;
  color: #171717;
  border: 0;
  border-top: 2px solid #1e5fae;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-reference-header="true"] .site-header.is-scrolled {
  background: #f7f7f5;
  border-color: #1e5fae;
  box-shadow: 0 0.2rem 0.9rem rgba(0, 0, 0, 0.08);
}

body[data-reference-header="true"] .main-nav {
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(1.45rem, 2.8vw, 3.2rem);
  color: #8f8f8f;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 1.28rem;
  font-style: italic;
  text-transform: none;
}

body[data-reference-header="true"] .main-nav > a {
  position: relative;
  justify-content: center;
  min-width: 5.45rem;
  min-height: 4.75rem;
  padding: 0.05rem 0.15rem;
  color: #8f8f8f;
}

body[data-reference-header="true"] .main-nav > a::before,
body[data-reference-header="true"] .main-nav > a::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #d6d6d6;
  transform: translateX(-50%);
  transition: background 220ms var(--ease-soft), width 220ms var(--ease-soft);
}

body[data-reference-header="true"] .main-nav > a::before {
  top: 0.72rem;
}

body[data-reference-header="true"] .main-nav > a::after {
  bottom: 0.72rem;
}

body[data-reference-header="true"] .main-nav > a:hover,
body[data-reference-header="true"] .main-nav > a.is-active,
body[data-reference-header="true"] .main-nav > a[aria-current="page"] {
  color: #171717;
  text-shadow: none;
}

body[data-reference-header="true"] .main-nav > a:hover::before,
body[data-reference-header="true"] .main-nav > a:hover::after,
body[data-reference-header="true"] .main-nav > a.is-active::before,
body[data-reference-header="true"] .main-nav > a.is-active::after,
body[data-reference-header="true"] .main-nav > a[aria-current="page"]::before,
body[data-reference-header="true"] .main-nav > a[aria-current="page"]::after {
  width: 100%;
  background: #242424;
}

body[data-reference-header="true"] .language-switch {
  position: absolute;
  top: 50%;
  right: clamp(0.65rem, 1.4vw, 1.25rem);
  min-height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: translateY(-50%);
}

body[data-reference-header="true"] .language-switch__label,
body[data-reference-header="true"] .language-option.is-current {
  display: none;
}

body[data-reference-header="true"] .language-option {
  min-width: 2.4rem;
  min-height: 2rem;
  padding: 0.2rem 0.35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7d7d7d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-style: italic;
}

body[data-reference-header="true"] .main-nav .language-option:hover {
  background: transparent;
  color: #171717;
  box-shadow: none;
  text-shadow: none;
}

.home--opening {
  min-height: calc(100dvh - 7.2rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 2rem clamp(5.4rem, 13dvh, 9rem);
  background: #030303;
}

.home--opening .home-image::after {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 214, 155, 0.1), transparent 30rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.2) 44%, rgba(0, 0, 0, 0.54) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.28));
}

.home-video {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: contrast(1.08) saturate(0.94) brightness(0.68);
}

.home--opening .home-title-block {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: min(64rem, 100%);
  color: #fff;
  text-align: center;
  text-shadow: 0 1.1rem 3.2rem rgba(0, 0, 0, 0.74);
}

.home--opening h1 {
  color: #fff;
  font-family: "Aptos Display", "Aptos", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 6.75rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
}

.home-subtitle {
  font-style: italic;
}

.home--opening .home-subtitle {
  display: inline-block;
  width: auto;
  margin: 1.05rem 0 0;
  padding: 0.12rem 0.55rem 0.2rem;
  background: rgba(135, 135, 135, 0.8);
  color: rgba(255, 255, 255, 0.96);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 1.75rem;
  line-height: 1;
  text-shadow: none;
}

.reviews {
  background-color: var(--section-alt);
}

.reviews .section-title,
.review-list {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.review-list {
  border-bottom: 1px solid var(--line);
}

.review-entry {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  grid-template-areas: "portrait copy";
  align-items: center;
  gap: clamp(2.75rem, 7vw, 6.5rem);
  padding: clamp(3.5rem, 7vw, 6.75rem) 0;
  border-top: 1px solid var(--line);
}

.review-entry:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  grid-template-areas: "copy portrait";
}

.review-portrait {
  grid-area: portrait;
  width: 100%;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--media-bg);
}

.review-entry:nth-child(even) .review-portrait {
  justify-self: end;
}

.review-entry[data-reviewer="xie-xin"] .review-portrait {
  width: min(100%, 20rem);
}

.review-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: var(--image-filter);
}

.review-entry[data-reviewer="he-xuntian"] .review-portrait img {
  object-position: 58% 50%;
}

.review-entry[data-reviewer="hu-xuehua"] .review-portrait img {
  object-position: 50% 15%;
}

.review-copy {
  grid-area: copy;
  width: 100%;
  max-width: 46rem;
}

.review-copy blockquote {
  margin: 0;
  color: rgba(var(--paper-rgb), 0.82);
  font-family: var(--font-display);
  font-size: calc(clamp(1.35rem, 1.8vw, 1.85rem) * var(--display-scale));
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  text-wrap: pretty;
}

.review-credit {
  display: grid;
  gap: 0.24rem;
  margin-top: clamp(1.6rem, 3vw, 2.5rem);
}

.review-credit p {
  margin: 0;
}

.review-name {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: calc(1rem * var(--type-scale));
  line-height: 1.45;
  letter-spacing: 0;
}

.review-role,
.review-source {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: calc(0.76rem * var(--ui-scale));
  line-height: 1.65;
  letter-spacing: 0;
}

.review-source {
  margin-top: 0.2rem;
}

body[data-bg="ashwall"] .home-image::after,
body[data-bg="gallery"] .home-image::after,
body[data-bg="ricepaper"] .home-image::after,
body[data-bg="bone"] .home-image::after,
body[data-bg="vellum"] .home-image::after {
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--section-bg) 92%, transparent),
      color-mix(in srgb, var(--section-bg) 48%, transparent) 55%,
      color-mix(in srgb, var(--section-bg) 18%, transparent)
    ),
    linear-gradient(
      0deg,
      color-mix(in srgb, var(--section-bg) 24%, transparent),
      color-mix(in srgb, var(--section-bg) 10%, transparent) 60%
    );
}

body[data-bg="ashwall"] .home-image img,
body[data-bg="gallery"] .home-image img,
body[data-bg="ricepaper"] .home-image img,
body[data-bg="bone"] .home-image img,
body[data-bg="vellum"] .home-image img {
  opacity: 0.24;
  mix-blend-mode: normal;
}

.text-section,
.media-section,
.contact {
  position: relative;
  padding: clamp(6rem, 9vw, 9.5rem) 3.2rem;
  background-color: var(--section-bg);
  background-image:
    var(--section-texture),
    radial-gradient(circle at 80% 0%, var(--page-wash), transparent 28rem);
  transition: background-color 320ms var(--ease-soft), background-image 320ms var(--ease-soft);
}

.narrow-copy,
.wide-copy,
.section-title,
.path-grid,
.path-note,
.image-archive,
.text-entry-grid,
.work-dossier,
.video-grid,
.contact-inner {
  width: min(1080px, 100%);
  margin-inline: auto;
}

.narrow-copy {
  width: min(720px, 100%);
}

.archive-prologue .narrow-copy {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(8rem, 0.32fr) minmax(0, 1fr);
  gap: clamp(2.4rem, 6vw, 6rem);
  align-items: start;
}

.archive-prologue h2 {
  margin: 0;
}

.archive-prologue p,
.archive-prologue blockquote {
  grid-column: 2;
}

.archive-prologue blockquote {
  margin-top: 1.6rem;
}

h2,
h3,
h4,
p,
blockquote {
  overflow-wrap: anywhere;
}

.text-section h1,
.media-section h1,
.contact h1,
h2 {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-size: calc(clamp(2.1rem, 4.6vw, 4rem) * var(--display-scale));
  font-weight: 700;
  line-height: 1.06;
}

.archive-prologue h1 {
  margin: 0;
}

h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(1.18rem * var(--type-scale));
  font-weight: 400;
  line-height: 1.25;
}

h4 {
  margin: 0 0 0.6rem;
  color: var(--paper);
  font-size: calc(0.92rem * var(--type-scale));
  font-weight: 400;
}

p {
  margin: 0 0 1.1rem;
  color: var(--soft);
}

blockquote {
  margin: 3rem 0 0;
  padding: 0;
  border: 0;
  color: var(--paper);
  font-size: calc(clamp(1.5rem, 3.2vw, 2.75rem) * var(--display-scale));
  line-height: 1.35;
}

.section-note,
.section-title p {
  max-width: 700px;
  color: var(--muted);
}

.jump-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 3rem;
  border: 0;
  background: transparent;
}

.jump-grid a {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 5.4rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(var(--paper-rgb), 0.12);
  border-radius: var(--radius-soft);
  background:
    linear-gradient(135deg, rgba(var(--paper-rgb), 0.06), transparent 38%),
    color-mix(in srgb, var(--section-bg) 88%, var(--surface));
  box-shadow: inset 0 1px 0 rgba(var(--paper-rgb), 0.055);
  font-size: calc(clamp(1.18rem, 2.1vw, 1.82rem) * var(--display-scale));
  transition: color 220ms var(--ease-soft), background 220ms var(--ease-soft), border-color 220ms var(--ease-soft), transform 220ms var(--ease-soft);
}

.jump-grid a:first-child {
  grid-column: 1 / -1;
  min-height: 6rem;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.13), transparent 44%),
    color-mix(in srgb, var(--section-bg) 84%, var(--surface));
}

.jump-grid--works a:first-child {
  grid-column: auto;
  min-height: 5.4rem;
  background:
    linear-gradient(135deg, rgba(var(--paper-rgb), 0.06), transparent 38%),
    color-mix(in srgb, var(--section-bg) 88%, var(--surface));
}

.jump-grid a:hover {
  color: var(--paper);
  border-color: rgba(var(--accent-rgb), 0.42);
  background: color-mix(in srgb, var(--surface) 84%, var(--section-bg));
  text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.24);
  transform: translateY(-2px);
}

.jump-grid span,
.dossier-heading span {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: calc(0.7rem * var(--ui-scale));
}

.quote-band {
  position: relative;
  min-height: 54svh;
  display: grid;
  align-items: end;
  padding: 5rem 2.2rem;
  overflow: hidden;
  background: var(--quote-bg);
}

.quote-band img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: var(--quote-image-opacity);
  filter: var(--image-filter) brightness(0.68);
  mix-blend-mode: var(--quote-image-blend);
  transition: filter 320ms var(--ease-soft), opacity 320ms var(--ease-soft);
}

.quote-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--quote-overlay);
}

.quote-band blockquote {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin: 0 auto;
  font-size: calc(clamp(2rem, 6vw, 5.2rem) * var(--display-scale));
  color: rgba(var(--paper-rgb), 0.8);
  line-height: 1;
}

.section-title {
  margin-bottom: 3.5rem;
}

.section-title h2 {
  margin-bottom: 0.35rem;
}

.creative-path,
.images,
.texts,
.videos,
.contact {
  border-top: 1px solid var(--line);
}

.path-grid {
  display: grid;
  gap: 3.8rem;
}

.path-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.6rem, 5.4vw, 5.8rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.2rem);
  border: 1px solid rgba(var(--paper-rgb), 0.11);
  border-radius: var(--radius-soft);
  background:
    linear-gradient(135deg, rgba(var(--paper-rgb), 0.052), transparent 34%),
    color-mix(in srgb, var(--section-bg) 91%, var(--surface));
  box-shadow: inset 0 1px 0 rgba(var(--paper-rgb), 0.05);
  overflow: hidden;
  transition: border-color 320ms var(--ease-soft), box-shadow 320ms var(--ease-soft), transform 320ms var(--ease-soft);
}

.path-card:hover {
  border-color: rgba(var(--paper-rgb), 0.19);
  box-shadow: var(--panel-shadow), inset 0 1px 0 rgba(var(--paper-rgb), 0.08);
  transform: translateY(-0.18rem);
}

.path-card:nth-child(even) .path-media {
  order: 2;
}

.path-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.4vw, 1.15rem);
  align-items: start;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.path-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
  display: block;
  object-fit: cover;
  background: var(--media-bg);
  filter: var(--image-filter);
  border-radius: var(--radius-tight);
  box-shadow: var(--media-shadow);
  transition: filter 420ms var(--ease-soft), transform 420ms var(--ease-soft), box-shadow 420ms var(--ease-soft);
}

.path-media img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
}

.path-media--xungen {
  align-items: stretch;
}

.path-media--xungen img:first-child {
  aspect-ratio: 16 / 9;
}

.path-media--xungen img:not(:first-child) {
  aspect-ratio: 4 / 3;
}

.path-card:hover .path-media img {
  filter: var(--image-hover-filter);
  transform: translateY(-0.16rem) scale(1.012);
}

.path-copy {
  display: grid;
  gap: 1rem;
  max-width: 680px;
}

.path-kicker {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: calc(0.7rem * var(--ui-scale));
  text-transform: uppercase;
}

.path-copy h3 {
  font-size: calc(clamp(1.9rem, 3.6vw, 3.3rem) * var(--display-scale));
}

.path-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: -0.2rem 0 0.55rem;
}

.path-meta div {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
}

.path-meta dt {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: calc(0.68rem * var(--ui-scale));
  text-transform: uppercase;
}

.path-meta dt::after {
  content: "/";
  padding-left: 0.35rem;
  color: rgba(var(--paper-rgb), 0.28);
}

.path-meta dd {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: calc(0.72rem * var(--ui-scale));
  line-height: 1.6;
}

.path-copy blockquote {
  margin: 0.35rem 0;
  padding-left: 1rem;
  border-left: 1px solid rgba(var(--paper-rgb), 0.28);
  color: var(--paper);
  font-size: calc(1.05rem * var(--type-scale));
  line-height: 1.8;
}

.path-copy p {
  margin: 0;
}

.path-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 0.4rem;
}

.path-links a,
.path-note figcaption {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: calc(0.76rem * var(--ui-scale));
}

.path-links a {
  color: var(--paper);
  min-height: 2.2rem;
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.78rem;
  border: 1px solid rgba(var(--paper-rgb), 0.16);
  border-radius: 999px;
  background: rgba(var(--paper-rgb), 0.035);
  transition: border-color 220ms var(--ease-soft), background 220ms var(--ease-soft), transform 220ms var(--ease-soft);
}

.path-links a:hover {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.12);
  transform: translateY(-1px);
}

.path-note {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  gap: 2rem;
  align-items: end;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.path-note img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: var(--image-filter);
  border-radius: var(--radius-tight);
  box-shadow: var(--media-shadow);
}

.path-note figcaption {
  margin: 0;
  line-height: 1.7;
}

.image-archive {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: start;
  gap: clamp(1.1rem, 1.8vw, 1.7rem);
}

.image-archive article {
  grid-column: span 3;
  display: grid;
  gap: 0.68rem;
  min-width: 0;
}

.image-archive article.is-wide {
  grid-column: span 4;
}

.image-archive article.is-feature {
  grid-column: span 5;
}

.image-archive article.is-large,
.image-archive article.is-panorama {
  grid-column: span 6;
}

.image-archive article.is-soft-offset {
  margin-top: clamp(1.4rem, 4vw, 4.6rem);
}

.image-archive button {
  display: block;
  aspect-ratio: 3 / 4;
  border: 0;
  padding: 0;
  background: var(--media-bg);
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-tight);
  box-shadow: var(--media-shadow);
}

.image-archive article.is-wide button {
  aspect-ratio: 3 / 2;
}

.image-archive article.is-feature button {
  aspect-ratio: 4 / 3;
}

.image-archive article.is-large button {
  aspect-ratio: 16 / 10;
}

.image-archive article.is-panorama button {
  aspect-ratio: 16 / 9;
}

.image-archive article.is-tall button {
  aspect-ratio: 2 / 3;
}

.image-archive img {
  height: 100%;
  object-fit: cover;
  filter: var(--image-filter);
  transition: filter 420ms var(--ease-soft), transform 420ms var(--ease-soft);
}

.image-archive h3 {
  padding-top: 0.1rem;
  color: rgba(var(--paper-rgb), 0.9);
  font-size: calc(0.98rem * var(--type-scale));
}

.media-caption {
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: calc(0.7rem * var(--ui-scale));
  line-height: 1.65;
}

.image-archive button:hover img {
  filter: var(--image-hover-filter);
  transform: scale(1.035);
}

.image-archive a,
.text-entry a,
.dossier-heading a,
.video-grid a,
.contact a {
  width: fit-content;
  color: var(--paper);
  border-bottom: 1px solid rgba(var(--paper-rgb), 0.38);
  font-family: var(--font-ui);
  font-size: calc(0.76rem * var(--ui-scale));
  transition: border-color 220ms var(--ease-soft), color 220ms var(--ease-soft), transform 220ms var(--ease-soft);
}

.image-archive a:hover,
.text-entry a:hover,
.dossier-heading a:hover,
.video-grid a:hover,
.contact a:hover {
  border-color: rgba(var(--accent-rgb), 0.66);
  color: var(--paper);
  transform: translateY(-1px);
}

.text-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  border: 0;
  background: transparent;
}

.text-entry {
  min-height: 15.5rem;
  display: grid;
  align-content: space-between;
  gap: 1.4rem;
  padding: 1.45rem;
  border: 1px solid rgba(var(--paper-rgb), 0.11);
  border-radius: var(--radius-soft);
  background:
    linear-gradient(135deg, rgba(var(--paper-rgb), 0.05), transparent 38%),
    color-mix(in srgb, var(--section-bg) 90%, var(--surface));
  box-shadow: inset 0 1px 0 rgba(var(--paper-rgb), 0.045);
  transition: background 220ms var(--ease-soft), border-color 220ms var(--ease-soft), transform 220ms var(--ease-soft), box-shadow 220ms var(--ease-soft);
}

.text-entry:hover {
  border-color: rgba(var(--paper-rgb), 0.19);
  background: color-mix(in srgb, var(--section-bg) 80%, var(--surface));
  box-shadow: var(--panel-shadow);
  transform: translateY(-0.16rem);
}

.text-entry span,
.work-page-kicker,
.work-page-section span {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: calc(0.7rem * var(--ui-scale));
  text-transform: uppercase;
}

.text-entry h3 {
  font-size: calc(clamp(1.25rem, 2vw, 1.8rem) * var(--display-scale));
}

.text-entry p {
  margin: 0;
  color: var(--soft);
}

.work-dossier {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 4rem;
  padding: 2.2rem;
  border: 1px solid rgba(var(--paper-rgb), 0.11);
  border-radius: var(--radius-soft);
  background:
    linear-gradient(135deg, rgba(var(--paper-rgb), 0.05), transparent 40%),
    color-mix(in srgb, var(--section-bg) 92%, var(--surface));
  box-shadow: inset 0 1px 0 rgba(var(--paper-rgb), 0.045);
}

.work-dossier:last-child {
  border-bottom: 1px solid rgba(var(--paper-rgb), 0.11);
}

.dossier-heading {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.dossier-heading h3 {
  font-size: calc(clamp(1.55rem, 3.2vw, 2.65rem) * var(--display-scale));
}

.dossier-heading nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.dossier-grid {
  display: grid;
  gap: 1.4rem;
}

.dossier-grid section {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.dossier-grid p {
  margin: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.8rem 1.4rem;
}

.video-grid article {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(var(--paper-rgb), 0.11);
  border-radius: var(--radius-soft);
  background: color-mix(in srgb, var(--section-bg) 92%, var(--surface));
  box-shadow: inset 0 1px 0 rgba(var(--paper-rgb), 0.045);
}

.video-grid article > a {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  border-bottom: 0;
}

.video-grid article > a:hover {
  transform: none;
}

.video-grid video,
.video-grid img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--media-bg);
  filter: var(--image-filter);
  border-radius: var(--radius-tight);
  transition: filter 320ms var(--ease-soft), transform 320ms var(--ease-soft);
}

.video-grid img {
  height: auto;
}

.video-grid article:hover video,
.video-grid article:hover img {
  filter: var(--image-hover-filter);
  transform: scale(1.01);
}

.video-grid p {
  margin: 0;
}

.jump-grid--works,
.text-entry-grid--works,
.video-grid--works {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jump-grid--single,
.text-entry-grid--single,
.video-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.video-page .video-grid {
  grid-template-columns: minmax(0, 1fr);
}

.video-page .video-grid article {
  width: min(980px, 100%);
  margin-inline: auto;
}

.contact {
  min-height: 52svh;
  display: grid;
  place-items: center;
  text-align: center;
}

.contact-inner {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(var(--paper-rgb), 0.11);
  border-radius: var(--radius-soft);
  background:
    linear-gradient(135deg, rgba(var(--paper-rgb), 0.06), transparent 38%),
    color-mix(in srgb, var(--section-bg) 90%, var(--surface));
  box-shadow: inset 0 1px 0 rgba(var(--paper-rgb), 0.055), var(--panel-shadow);
}

.contact h2 {
  margin-bottom: 0.65rem;
}

.contact a {
  display: inline-block;
  margin: 0.75rem 0.55rem 0;
}

.gallery-index-main {
  background:
    var(--section-texture),
    linear-gradient(180deg, color-mix(in srgb, var(--section-bg) 96%, #111), var(--section-bg));
}

.gallery-index-intro {
  width: min(1180px, calc(100% - 4.4rem));
  margin: 0 auto;
  padding: clamp(7.5rem, 14vw, 11rem) 0 clamp(5rem, 9vw, 7.5rem);
}

.gallery-index-intro > p,
.gallery-index-intro > div > span {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: calc(0.7rem * var(--ui-scale));
  text-transform: uppercase;
}

.gallery-index-intro h1 {
  max-width: 10ch;
  margin: 0.7rem 0 clamp(2.4rem, 5vw, 4.4rem);
  font-family: var(--font-display);
  font-size: calc(clamp(4.4rem, 11vw, 9.5rem) * var(--display-scale));
  font-weight: 700;
  line-height: 0.88;
}

.gallery-index-intro > div {
  display: grid;
  grid-template-columns: minmax(10rem, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(var(--paper-rgb), 0.18);
}

.gallery-index-intro > div p {
  max-width: 36rem;
  margin: 0;
  color: var(--soft);
  line-height: 1.9;
}

.gallery-chapter {
  width: 100%;
  padding: clamp(4.8rem, 9vw, 8rem) 0;
  border-top: 1px solid rgba(var(--paper-rgb), 0.15);
}

.gallery-chapter-heading,
.gallery-collection-grid {
  width: min(1180px, calc(100% - 4.4rem));
  margin-inline: auto;
}

.gallery-chapter-heading {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: start;
  margin-bottom: clamp(2.8rem, 6vw, 5rem);
}

.gallery-chapter-heading > span,
.gallery-collection-index {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: calc(0.7rem * var(--ui-scale));
}

.gallery-chapter-heading h2 {
  margin: 0;
  font-size: calc(clamp(2.6rem, 6vw, 5rem) * var(--display-scale));
  line-height: 1;
}

.gallery-chapter-heading p {
  max-width: 34rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.gallery-collection-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

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

.gallery-collection-grid--projects {
  grid-template-columns: minmax(0, 1fr);
}

.gallery-collection-grid--collaborations {
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.8fr));
}

.gallery-collection-item {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(var(--paper-rgb), 0.13);
  border-radius: var(--radius-soft);
  background: color-mix(in srgb, var(--section-bg) 91%, var(--surface));
  box-shadow: inset 0 1px 0 rgba(var(--paper-rgb), 0.045);
  transition:
    border-color 320ms var(--ease-soft),
    background 320ms var(--ease-soft),
    transform 320ms var(--ease-soft);
}

a.gallery-collection-item:hover,
a.gallery-collection-item:focus-visible {
  border-color: rgba(var(--paper-rgb), 0.28);
  background: color-mix(in srgb, var(--section-bg) 85%, var(--surface));
  transform: translateY(-0.18rem);
}

.gallery-collection-media {
  aspect-ratio: 3 / 2;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--media-bg);
}

.gallery-collection-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--image-filter);
  transition: filter 420ms var(--ease-soft), transform 520ms var(--ease-deep);
}

a.gallery-collection-item:hover .gallery-collection-media img,
a.gallery-collection-item:focus-visible .gallery-collection-media img {
  filter: var(--image-hover-filter);
  transform: scale(1.025);
}

.gallery-collection-filmstrip {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.22rem, 0.5vw, 0.45rem);
  overflow: hidden;
  padding: clamp(0.35rem, 0.65vw, 0.55rem);
  background: var(--media-bg);
}

.gallery-collection-filmstrip figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1500 / 1949;
  background: var(--section-bg);
}

.gallery-collection-filmstrip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--image-filter);
  transition: filter 420ms var(--ease-soft), transform 520ms var(--ease-deep);
}

a.gallery-collection-item:hover .gallery-collection-filmstrip img,
a.gallery-collection-item:focus-visible .gallery-collection-filmstrip img {
  filter: var(--image-hover-filter);
  transform: scale(1.025);
}

.gallery-collection-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  align-content: start;
  padding: clamp(1.25rem, 2.4vw, 1.8rem);
  overflow-wrap: anywhere;
}

.gallery-collection-copy h3,
.gallery-collection-copy p,
.gallery-collection-action {
  grid-column: 2;
}

.gallery-collection-copy h3 {
  margin: 0;
  font-size: calc(clamp(1.5rem, 3vw, 2.4rem) * var(--display-scale));
  line-height: 1.12;
}

.gallery-collection-copy p {
  max-width: 36rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.gallery-collection-action {
  justify-self: start;
  margin-top: 1.25rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(var(--paper-rgb), 0.3);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: calc(0.69rem * var(--ui-scale));
  text-transform: uppercase;
}

.gallery-collection-item--feature {
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.55fr);
  grid-template-rows: minmax(25rem, auto);
}

.gallery-collection-item--feature .gallery-collection-media {
  height: 100%;
  aspect-ratio: auto;
}

.gallery-collection-item--feature .gallery-collection-copy {
  align-content: end;
}

.gallery-collection-item--pending {
  min-height: 100%;
  grid-template-rows: 1fr;
  align-items: end;
  background: transparent;
  border-color: rgba(var(--paper-rgb), 0.1);
  box-shadow: none;
}

.gallery-collection-item--pending .gallery-collection-copy {
  width: 100%;
  min-height: 16rem;
  align-content: end;
}

.gallery-collection-item--pending h3 {
  font-family: var(--font-ui);
  font-size: calc(clamp(1.2rem, 2.2vw, 1.8rem) * var(--type-scale));
}

.gallery-collection-item--pending p {
  font-size: calc(0.78rem * var(--ui-scale));
}

.work-page .site-header {
  background: color-mix(in srgb, var(--section-bg) 92%, transparent);
}

.work-page-main {
  background: var(--section-bg);
}

.work-page-hero {
  min-height: 78dvh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: 4rem;
  padding: 7.2rem 5.6vw 4.8rem;
  border-bottom: 1px solid var(--line);
  background:
    var(--section-texture),
    radial-gradient(circle at 72% 18%, rgba(var(--accent-rgb), 0.13), transparent 32rem),
    var(--section-bg);
}

.work-page-hero img {
  width: 100%;
  height: clamp(24rem, 50svh, 36rem);
  min-height: 0;
  object-fit: cover;
  filter: var(--image-filter);
  border-radius: var(--radius-soft);
  box-shadow: var(--media-shadow);
}

.work-page-title {
  display: grid;
  gap: 1rem;
}

.work-page-title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(clamp(3rem, 7vw, 7rem) * var(--display-scale));
  line-height: 0.95;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.work-page-title h1 .mobile-title-line {
  display: inline;
}

.work-page-title p {
  max-width: 28rem;
  margin: 0;
  color: var(--soft);
  font-size: calc(1rem * var(--type-scale));
  line-height: 2;
}

.work-page-body,
.work-page-media {
  width: min(980px, calc(100% - 6.4rem));
  margin: 0 auto;
  padding: 7.5rem 0;
}

.work-page-body {
  display: grid;
  gap: 1rem;
}

.work-page-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0;
}

.work-page-media--fieldwork {
  width: min(1120px, calc(100% - 6.4rem));
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
}

.work-page-media figure {
  margin: 0;
}

.work-page-media--fieldwork figure:nth-child(1),
.work-page-media--fieldwork figure:nth-child(4) {
  grid-column: span 4;
}

.work-page-media--fieldwork figure:nth-child(2),
.work-page-media--fieldwork figure:nth-child(3) {
  grid-column: span 2;
}

.work-page-media--fieldwork figure:nth-child(5),
.work-page-media--fieldwork figure:nth-child(6) {
  grid-column: span 3;
}

.work-page-media--fieldwork figure:nth-child(n + 7) {
  grid-column: span 2;
}

.work-page-media--fieldwork figure:nth-child(7),
.work-page-media--fieldwork figure:nth-child(12),
.work-page-media--fieldwork figure:nth-child(15) {
  grid-column: span 4;
}

.work-page-media--fieldwork figure:nth-child(16),
.work-page-media--fieldwork figure:nth-child(17) {
  grid-column: span 3;
}

.work-page-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: var(--image-filter);
  border-radius: var(--radius-tight);
  box-shadow: var(--media-shadow);
}

.work-page-media--fieldwork img {
  aspect-ratio: 4 / 3;
  filter: grayscale(0.28) sepia(0.08) saturate(0.9) contrast(1.03) brightness(0.86);
}

.work-page-media--fieldwork figure:nth-child(1) img,
.work-page-media--fieldwork figure:nth-child(4) img,
.work-page-media--fieldwork figure:nth-child(7) img,
.work-page-media--fieldwork figure:nth-child(12) img,
.work-page-media--fieldwork figure:nth-child(15) img {
  aspect-ratio: 16 / 9;
}

.work-page-media--fieldwork figure:nth-child(3) img {
  aspect-ratio: 4 / 5;
}

.work-page-media figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: calc(0.72rem * var(--ui-scale));
  text-transform: uppercase;
}

.work-page-hero--editorial img {
  height: clamp(32rem, 66svh, 48rem);
  object-position: center 42%;
}

.work-page-media--editorial {
  width: min(1180px, calc(100% - 6.4rem));
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.7rem);
  padding: clamp(5rem, 9vw, 8rem) 0 2rem;
}

.work-page-media--editorial figure {
  grid-column: span 6;
}

.work-page-media--editorial figure:nth-child(1),
.work-page-media--editorial figure:nth-child(4) {
  grid-column: span 7;
}

.work-page-media--editorial figure:nth-child(2),
.work-page-media--editorial figure:nth-child(3) {
  grid-column: span 5;
}

.work-page-media--editorial figure:nth-child(7) {
  grid-column: span 8;
}

.work-page-media--editorial figure:nth-child(8) {
  grid-column: span 4;
}

.work-page-media--editorial button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-tight);
  background: var(--media-bg);
  box-shadow: var(--media-shadow);
  cursor: zoom-in;
}

.work-page-media--editorial img {
  height: auto;
  aspect-ratio: 1500 / 1949;
  box-shadow: none;
  transition: filter 420ms var(--ease-soft), transform 520ms var(--ease-deep);
}

.work-page-media--editorial button:hover img,
.work-page-media--editorial button:focus-visible img {
  filter: var(--image-hover-filter);
  transform: scale(1.018);
}

.work-page-section {
  display: grid;
  grid-template-columns: minmax(150px, 0.3fr) minmax(0, 1fr);
  gap: 3.4rem;
  padding: 2rem;
  border: 1px solid rgba(var(--paper-rgb), 0.11);
  border-radius: var(--radius-soft);
  background: color-mix(in srgb, var(--section-bg) 93%, var(--surface));
  box-shadow: inset 0 1px 0 rgba(var(--paper-rgb), 0.04);
}

.work-page-section > div {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.work-page-section:last-child {
  border-bottom: 1px solid rgba(var(--paper-rgb), 0.11);
}

.work-page-section h2 {
  margin: 0;
  font-size: calc(clamp(1.15rem, 2vw, 1.7rem) * var(--display-scale));
}

.work-page-section p {
  margin: 0;
  line-height: 2;
}

.work-page-actions {
  width: min(980px, calc(100% - 6.4rem));
  margin: 0 auto;
  padding: 0 0 7.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.work-page-actions a {
  color: var(--paper);
  border-bottom: 1px solid rgba(var(--paper-rgb), 0.38);
  font-family: var(--font-ui);
  font-size: calc(0.78rem * var(--ui-scale));
  transition: border-color 220ms var(--ease-soft), transform 220ms var(--ease-soft);
}

.work-page-actions a:hover {
  border-color: rgba(var(--accent-rgb), 0.66);
  transform: translateY(-1px);
}

.profile-page .profile-hero img {
  object-fit: contain;
  background: var(--media-bg);
}

.profile-page .profile-hero .work-page-title {
  justify-self: center;
  width: fit-content;
  max-width: min(34rem, 100%);
}

.profile-page .profile-hero .work-page-kicker,
.profile-page .profile-hero .work-page-title p {
  margin-left: clamp(0.9rem, 1.45vw, 1.35rem);
}

.profile-copy {
  display: grid;
  gap: 1rem;
}

.profile-copy h2 {
  margin: 0;
}

.profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin: 0.1rem 0 0.8rem;
}

.profile-facts article {
  display: inline-flex;
  gap: 0.45rem;
  align-items: baseline;
}

.profile-facts span {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: calc(0.68rem * var(--ui-scale));
  text-transform: uppercase;
}

.profile-facts strong {
  color: var(--soft);
  font-weight: 400;
  line-height: 1.7;
}

.profile-copy p {
  max-width: 920px;
  margin: 0;
  color: var(--soft);
  font-size: calc(1.02rem * var(--type-scale));
  line-height: 2;
}

.profile-resume-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.profile-resume-grid article {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-height: 10rem;
  padding: 1.15rem;
  border: 1px solid rgba(var(--paper-rgb), 0.1);
  border-radius: var(--radius-soft);
  background:
    linear-gradient(135deg, rgba(var(--paper-rgb), 0.045), transparent 42%),
    color-mix(in srgb, var(--section-bg) 93%, var(--surface));
}

.profile-resume-grid span {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: calc(0.7rem * var(--ui-scale));
}

.profile-resume-grid p {
  max-width: none;
  font-size: calc(0.9rem * var(--type-scale));
  line-height: 1.8;
}

.profile-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  border: 0;
  background: transparent;
}

.profile-timeline article {
  display: grid;
  gap: 1rem;
  min-height: 12rem;
  padding: 1.35rem;
  border: 1px solid rgba(var(--paper-rgb), 0.11);
  border-radius: var(--radius-soft);
  background:
    linear-gradient(135deg, rgba(var(--paper-rgb), 0.05), transparent 38%),
    color-mix(in srgb, var(--section-bg) 91%, var(--surface));
  box-shadow: inset 0 1px 0 rgba(var(--paper-rgb), 0.045);
}

.profile-timeline span {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: calc(0.72rem * var(--ui-scale));
}

.profile-timeline p {
  margin: 0;
  line-height: 1.9;
}

.profile-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.profile-gallery article {
  display: grid;
}

.profile-gallery button {
  display: block;
  border: 0;
  padding: 0;
  background: var(--media-bg);
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-tight);
  box-shadow: var(--media-shadow);
}

.profile-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: var(--image-filter);
  transition: filter 420ms var(--ease-soft), transform 420ms var(--ease-soft);
}

.profile-gallery button:hover img {
  filter: var(--image-hover-filter);
  transform: scale(1.035);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: calc(0.72rem * var(--ui-scale));
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: color-mix(in srgb, var(--page-bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease-soft);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1120px, 100%);
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-tight);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.56);
}

.lightbox button {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(var(--paper-rgb), 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(var(--paper-rgb), 0.1), rgba(var(--paper-rgb), 0.02)),
    rgba(var(--accent-rgb), 0.12);
  color: var(--paper);
  cursor: pointer;
  transition: transform 220ms var(--ease-soft), background 220ms var(--ease-soft);
}

.lightbox button:active {
  transform: scale(0.96);
}

.lightbox button::before,
.lightbox button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.05rem;
  height: 1px;
  background: currentColor;
}

.lightbox button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.reveal {
  opacity: 0;
  filter: blur(0.55rem);
  transform: translateY(2.2rem);
  transition:
    opacity 760ms var(--ease-deep) var(--reveal-delay, 0ms),
    filter 760ms var(--ease-deep) var(--reveal-delay, 0ms),
    transform 760ms var(--ease-deep) var(--reveal-delay, 0ms);
}

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

@media (max-width: 900px) {
  .site-header {
    top: 0.5rem;
    width: calc(100% - 1rem);
    min-height: 4.35rem;
    margin-top: 0.5rem;
    padding: 0.72rem 0.8rem 0.72rem 1rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header.is-scrolled {
    border-bottom-color: var(--line);
    backdrop-filter: none;
  }

  .site-name {
    font-size: calc(clamp(1.35rem, 6vw, 2rem) * var(--display-scale));
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 62;
    display: grid;
    place-content: center;
    gap: 1.1rem;
    justify-items: center;
    width: 100%;
    height: 100dvh;
    overflow: auto;
    background-color: color-mix(in srgb, var(--header-bg) 88%, transparent);
    background-image:
      linear-gradient(180deg, rgba(var(--paper-rgb), 0.07), transparent 42%),
      var(--header-texture);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    font-size: calc(1.1rem * var(--type-scale));
    opacity: 0;
    pointer-events: none;
    transition: opacity 360ms var(--ease-soft);
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav > a,
  .main-nav .language-switch {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 520ms var(--ease-deep), transform 520ms var(--ease-deep);
  }

  .main-nav.is-open > a,
  .main-nav.is-open .language-switch {
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav.is-open > a:nth-child(1) {
    transition-delay: 80ms;
  }

  .main-nav.is-open > a:nth-child(2) {
    transition-delay: 120ms;
  }

  .main-nav.is-open > a:nth-child(3) {
    transition-delay: 160ms;
  }

  .main-nav.is-open > a:nth-child(4) {
    transition-delay: 200ms;
  }

  .main-nav.is-open > a:nth-child(5) {
    transition-delay: 240ms;
  }

  .main-nav.is-open > a:nth-child(6) {
    transition-delay: 280ms;
  }

  .main-nav.is-open > a:nth-child(7),
  .main-nav.is-open .language-switch {
    transition-delay: 320ms;
  }

  .language-switch {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    width: min(18rem, calc(100vw - 2rem));
    margin-top: 0.65rem;
    padding: 0.42rem;
  }

  .language-switch__label {
    flex: 0 0 100%;
    padding: 0 0 0.12rem;
    border-right: 0;
    margin-right: 0;
    text-align: center;
  }

  .language-option {
    min-width: 5.4rem;
    min-height: 2.18rem;
  }

  .theme-menu {
    flex-direction: column;
    gap: 0.65rem;
    padding-left: 0;
  }

  .theme-panel {
    position: static;
    width: min(21rem, calc(100vw - 2rem));
    max-height: 62vh;
    overflow: auto;
    transform: none;
    background: var(--surface);
  }

  .theme-menu.is-open .theme-panel {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .appearance-choice {
    font-size: calc(0.76rem * var(--ui-scale));
  }

  .home,
  .text-section,
  .media-section,
  .quote-band,
  .contact {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home {
    min-height: 72dvh;
    padding-top: 4.4rem;
    padding-bottom: 3.8rem;
  }

  .archive-prologue .narrow-copy,
  .jump-grid {
    grid-template-columns: 1fr;
  }

  .archive-prologue p,
  .archive-prologue blockquote {
    grid-column: auto;
  }

  .image-archive {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .image-archive article,
  .image-archive article.is-wide,
  .image-archive article.is-tall {
    grid-column: span 3;
  }

  .image-archive article.is-feature,
  .image-archive article.is-large,
  .image-archive article.is-panorama {
    grid-column: span 6;
  }

  .image-archive article.is-soft-offset {
    margin-top: 1.4rem;
  }

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

  .review-entry,
  .review-entry:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "portrait"
      "copy";
    gap: clamp(1.8rem, 6vw, 3rem);
  }

  .review-entry:nth-child(even) .review-portrait {
    justify-self: start;
  }

  .review-portrait,
  .review-entry[data-reviewer="xie-xin"] .review-portrait {
    width: min(100%, 21.25rem);
  }

  .work-dossier,
  .path-card,
  .path-note,
  .dossier-grid section,
  .video-grid,
  .work-page-hero,
  .work-page-section {
    grid-template-columns: 1fr;
  }

  .jump-grid--works,
  .jump-grid--single,
  .text-entry-grid--works,
  .text-entry-grid--single,
  .video-grid--works,
  .video-grid--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-card {
    gap: 1.8rem;
    padding: 1.2rem;
  }

  .path-media img:first-child {
    aspect-ratio: 16 / 9;
  }

  .path-card:nth-child(even) .path-media {
    order: initial;
  }

  .work-dossier {
    gap: 1.8rem;
  }

  .dossier-grid section {
    gap: 0.35rem;
  }

  .work-page-hero {
    min-height: auto;
    padding: 5.7rem 1rem 4rem;
    gap: 2rem;
  }

  .profile-page .profile-hero .work-page-title {
    justify-self: stretch;
    width: auto;
    max-width: none;
  }

  .profile-page .profile-hero .work-page-kicker,
  .profile-page .profile-hero .work-page-title p {
    margin-left: 0;
  }

  .profile-page .profile-hero .work-page-title p {
    max-width: 28rem;
    line-height: 2;
  }

  .work-page-title h1 {
    font-size: calc(clamp(2.45rem, 9.5vw, 4.6rem) * var(--display-scale));
    line-height: 1;
  }

  .work-page-hero img {
    height: clamp(18rem, 46svh, 24rem);
    min-height: 0;
  }

  .work-page-body,
  .work-page-media,
  .work-page-actions {
    width: calc(100% - 2rem);
  }

  .work-page-body,
  .work-page-media {
    padding: 5.4rem 0;
  }

  .work-page-media {
    grid-template-columns: 1fr;
  }

  .work-page-media--fieldwork figure:nth-child(n) {
    grid-column: auto;
  }

  .work-page-media--fieldwork img,
  .work-page-media--fieldwork figure:nth-child(n) img {
    aspect-ratio: 4 / 3;
  }

  .work-page-section {
    gap: 1rem;
    padding: 1.25rem;
  }

  .profile-resume-grid,
  .profile-timeline,
  .profile-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home {
    min-height: 70svh;
    padding-top: 2.8rem;
    padding-bottom: 3rem;
  }

  .home-image figcaption {
    right: 1rem;
    bottom: 1rem;
  }

  .text-section,
  .media-section,
  .contact {
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
  }

  .image-archive {
    grid-template-columns: 1fr;
  }

  .image-archive article,
  .image-archive article.is-wide,
  .image-archive article.is-tall,
  .image-archive article.is-feature,
  .image-archive article.is-large,
  .image-archive article.is-panorama {
    grid-column: auto;
  }

  .review-entry {
    gap: 1.65rem;
    padding: 3rem 0;
  }

  .review-portrait,
  .review-entry[data-reviewer="xie-xin"] .review-portrait {
    width: min(100%, 19rem);
  }

  .review-copy blockquote {
    font-size: calc(clamp(1.28rem, 6vw, 1.55rem) * var(--display-scale));
  }

  .image-archive article.is-soft-offset {
    margin-top: 0;
  }

  .text-entry-grid {
    grid-template-columns: 1fr;
  }

  .text-entry {
    min-height: 14rem;
  }

  .path-media {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .path-media img:first-child {
    grid-row: auto;
  }

  .path-media img {
    min-height: 0;
  }

  .work-page-body,
  .work-page-media {
    padding: 4.6rem 0;
  }

  .work-page-hero img {
    height: clamp(16rem, 42svh, 22rem);
  }

  .work-page-title h1 {
    font-size: calc(clamp(2.05rem, 10vw, 3rem) * var(--display-scale));
    line-height: 1.04;
  }

  .work-page-title h1 .mobile-title-line {
    display: block;
  }

  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 900px) {
  body[data-reference-header="true"] {
    --opening-header-height: 5.8rem;
  }

  body[data-reference-header="true"] .site-header {
    width: 100%;
    min-height: var(--opening-header-height);
    margin: 0;
    padding: 0.6rem 1rem;
  }

  body[data-reference-header="true"] .menu-button {
    display: none;
  }

  body[data-reference-header="true"] .main-nav {
    position: static;
    inset: auto;
    z-index: auto;
    display: flex;
    place-content: normal;
    justify-items: normal;
    flex-wrap: nowrap;
    width: auto;
    height: auto;
    overflow: visible;
    background: transparent;
    background-image: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    gap: clamp(0.68rem, 1.6vw, 1.15rem);
    color: #8f8f8f;
    font-size: clamp(0.94rem, 2.08vw, 1.14rem);
    opacity: 1;
    pointer-events: auto;
  }

  body[data-reference-header="true"] .main-nav > a {
    opacity: 1;
    transform: none;
    transition: color 220ms var(--ease-soft), text-shadow 220ms var(--ease-soft), transform 220ms var(--ease-soft);
  }

  body[data-reference-header="true"] .main-nav > a {
    min-width: clamp(3.85rem, 9vw, 5.05rem);
    min-height: 4.45rem;
  }

  body[data-reference-header="true"] .main-nav > a::before {
    top: 0.62rem;
  }

  body[data-reference-header="true"] .main-nav > a::after {
    bottom: 0.62rem;
  }

  body[data-reference-header="true"] .main-nav .language-switch {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    width: auto;
    margin-top: 0;
    padding: 0;
    opacity: 1;
    transform: translateY(-50%);
  }

  .home--opening {
    min-height: calc(100dvh - 5.8rem);
    padding: 0 1.1rem clamp(4.5rem, 12dvh, 7rem);
  }

  .home--opening h1 {
    font-size: 4.45rem;
  }

  .home--opening .home-subtitle {
    font-size: 1.22rem;
  }
}

@media (max-width: 640px) {
  body[data-reference-header="true"] .menu-button {
    position: absolute;
    display: block;
    right: 1rem;
    color: #171717;
    border-color: #d7d7d7;
    background: rgba(255, 255, 255, 0.5);
  }

  body[data-reference-header="true"] .main-nav {
    position: fixed;
    inset: 0;
    z-index: 62;
    display: grid;
    place-content: center;
    justify-items: center;
    width: 100%;
    height: 100dvh;
    overflow: auto;
    background-color: rgba(247, 247, 245, 0.96);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(235, 235, 232, 0.92));
    color: #777;
    font-size: 1.34rem;
    opacity: 0;
    pointer-events: none;
  }

  body[data-reference-header="true"] .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  body[data-reference-header="true"] .main-nav > a {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 520ms var(--ease-deep), transform 520ms var(--ease-deep);
  }

  body[data-reference-header="true"] .main-nav.is-open > a {
    opacity: 1;
    transform: translateY(0);
  }

  body[data-reference-header="true"] .main-nav.is-open > a:nth-child(7) {
    transition-delay: 320ms;
  }

  body[data-reference-header="true"] .main-nav > a {
    min-width: min(15rem, calc(100vw - 3rem));
    min-height: 4.1rem;
  }

  body[data-reference-header="true"] .main-nav > a::before {
    top: 0.42rem;
  }

  body[data-reference-header="true"] .main-nav > a::after {
    bottom: 0.42rem;
  }

  body[data-reference-header="true"] .main-nav .language-switch {
    position: static;
    width: auto;
    margin-top: 0.4rem;
    opacity: 0;
    transform: translateY(1rem);
  }

  body[data-reference-header="true"] .main-nav.is-open .language-switch {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  body[data-reference-header="true"] {
    --opening-header-height: 5.25rem;
  }

  body[data-reference-header="true"] .site-header {
    min-height: var(--opening-header-height);
  }

  .home--opening {
    min-height: calc(100svh - 5.25rem);
    padding-bottom: clamp(3.8rem, 11svh, 5.4rem);
  }

  .home--opening h1 {
    font-size: 3.05rem;
  }

  .home--opening .home-subtitle {
    max-width: min(21rem, 100%);
    font-size: 1rem;
  }
}

@media screen and (max-width: 900px) {
  .gallery-index-intro,
  .gallery-chapter-heading,
  .gallery-collection-grid {
    width: calc(100% - 2rem);
  }

  .gallery-index-intro {
    padding: 5.8rem 0 4.5rem;
  }

  .gallery-index-intro > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .gallery-chapter {
    padding: 4.5rem 0;
  }

  .gallery-chapter-heading {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
  }

  .gallery-collection-grid--works,
  .gallery-collection-grid--projects,
  .gallery-collection-grid--collaborations {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-collection-item--feature {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .gallery-collection-item--feature .gallery-collection-media {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .gallery-collection-item--pending,
  .gallery-collection-item--pending .gallery-collection-copy {
    min-height: 12rem;
  }

  .work-page-media--editorial {
    width: calc(100% - 2rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-page-media--editorial figure:nth-child(n) {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .gallery-index-intro h1 {
    font-size: calc(clamp(3.7rem, 20vw, 5.6rem) * var(--display-scale));
  }

  .gallery-chapter-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-chapter-heading > span {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(var(--paper-rgb), 0.16);
  }

  .gallery-collection-copy {
    grid-template-columns: 2.15rem minmax(0, 1fr);
    padding: 1.1rem;
  }

  .gallery-collection-item--pending,
  .gallery-collection-item--pending .gallery-collection-copy {
    min-height: 10rem;
  }

  .work-page-media--editorial {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
