/* ============================================================
   陈超 · 个人作品集
   纸感底色 + 宋体标题 + 朱红点缀
   ============================================================ */

:root {
  --paper: #f3f0e9;
  --paper-2: #eae4d8;
  --paper-3: #e0d9ca;
  --ink: #191815;
  --muted: #6b655a;
  --line: rgba(25, 24, 21, 0.16);
  --line-soft: rgba(25, 24, 21, 0.08);
  --accent: #c8452b;
  --white: #fcfbf7;
  --deep: #161513;
  --deep-2: #201e1a;
  --deep-text: #f1ece2;
  --deep-muted: rgba(241, 236, 226, 0.62);
  --deep-line: rgba(241, 236, 226, 0.16);

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --head-h: 76px;
  --pad: clamp(20px, 4.5vw, 72px);
  --maxw: 1560px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --paper: #141311;
  --paper-2: #1d1c19;
  --paper-3: #27251f;
  --ink: #ede8dd;
  --muted: #a39c90;
  --line: rgba(237, 232, 221, 0.18);
  --line-soft: rgba(237, 232, 221, 0.08);
  --accent: #e06043;
  --white: #f7f3ea;
  --deep: #0b0a09;
  --deep-2: #15130f;
  --deep-text: #f1ece2;
  --deep-muted: rgba(241, 236, 226, 0.6);
  --deep-line: rgba(241, 236, 226, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body.lock {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

[data-theme="dark"] .grain {
  opacity: 0.075;
  mix-blend-mode: screen;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 110;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ==================== Header ==================== */

.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 var(--pad);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-head.is-scrolled {
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.site-head.is-hidden {
  transform: translateY(-101%);
}

body.menu-open .site-head {
  background: var(--paper);
  border-bottom-color: transparent;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand-cn {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-en {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: var(--muted);
  transform: translateY(-1px);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 42px);
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.68;
  transition: opacity 0.25s;
}

.nav a sup {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--accent);
  margin-left: 2px;
  vertical-align: super;
  opacity: 0.9;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  opacity: 1;
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.resume-link .arrow {
  color: var(--accent);
  transition: transform 0.25s;
}

.resume-link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.resume-link:hover .arrow {
  color: var(--paper);
  transform: translateY(2px);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.icon-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: block;
}

.menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-btn span {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-btn span:first-child {
  top: 15px;
}

.menu-btn span:last-child {
  top: 20px;
}

.menu-btn[aria-expanded="true"] span:first-child {
  top: 18px;
  transform: rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  top: 18px;
  transform: rotate(-45deg);
}

/* ==================== Mobile menu ==================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--paper);
  padding: calc(var(--head-h) + 18px) var(--pad) 32px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.32s var(--ease);
  overflow-y: auto;
}

.mobile-menu:focus {
  outline: none;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu.is-open {
  opacity: 1;
}

.mobile-menu-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0 0 20px;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(38px, 11vw, 58px);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.mobile-menu nav a span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.mobile-menu-foot {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.mobile-menu-foot a {
  text-decoration: none;
  color: var(--muted);
}

.mobile-menu-foot a:first-child {
  color: var(--ink);
  font-size: 17px;
}

/* ==================== Hero ==================== */

.hero {
  position: relative;
  padding: calc(var(--head-h) + clamp(24px, 5vh, 56px)) var(--pad) 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  animation: fadeUp 0.9s var(--ease) 0.05s both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-loc {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.14em;
  text-align: right;
  color: var(--muted);
}

.hero-loc span {
  color: var(--accent);
}

.hero-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(190px, 32vh, 330px);
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
  padding: clamp(24px, 5vh, 64px) 0 clamp(30px, 5vh, 56px);
}

.hero-title {
  min-width: 0;
}

.hero-name {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.015em;
  font-family: var(--serif);
  font-size: clamp(96px, 17.5vw, 264px);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-name span {
  display: block;
  animation: heroName 1.15s var(--ease) both;
}

.hero-name span:last-child {
  animation-delay: 0.08s;
}

.hero-en {
  margin: clamp(20px, 3.4vh, 34px) 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
  animation: fadeUp 0.9s var(--ease) 0.45s both;
}

.hero-portrait {
  position: relative;
  margin: 0;
  animation: portraitIn 1.2s var(--ease) 0.2s both;
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 18%;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.seal {
  position: absolute;
  left: -18px;
  bottom: 44px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff9f2;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  transform: rotate(-4deg);
  box-shadow: 0 0 0 4px var(--paper);
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: clamp(24px, 3.5vw, 56px);
  padding: 24px 0 clamp(30px, 5vh, 46px);
  border-top: 1px solid var(--line);
  animation: fadeUp 0.9s var(--ease) 0.5s both;
}

.hero-lead {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.hero-lead em {
  font-style: normal;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.05em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn span {
  font-size: 13px;
  line-height: 1;
}

.hero-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 2;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: right;
}

.hero-side {
  position: absolute;
  right: 16px;
  top: 46%;
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--muted);
  opacity: 0.8;
}

@keyframes heroName {
  from {
    opacity: 0;
    transform: translateY(0.22em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes portraitIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==================== Marquee ==================== */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 13px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-group span {
  padding: 0 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-group i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ==================== Section basics ==================== */

.section {
  padding: clamp(72px, 11vh, 132px) var(--pad) 0;
}

.section-head,
.filter-bar,
.work-grid,
.about-grid,
.about-facts,
.exp-grid {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: clamp(26px, 4vh, 40px);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-kicker span {
  color: var(--accent);
  margin-right: 8px;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 60px);
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-intro {
  max-width: 350px;
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--muted);
}

/* ==================== Filters ==================== */

.filter-bar {
  position: sticky;
  top: var(--head-h);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  padding: 15px 0;
  margin-top: 0;
  margin-bottom: 28px;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  transition: top 0.35s var(--ease);
}

body.head-hidden .filter-bar {
  top: 0;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter {
  position: relative;
  flex-shrink: 0;
  padding: 5px 0;
  border: 0;
  background: none;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s;
}

.filter span {
  font-family: var(--mono);
  font-size: 10px;
  vertical-align: super;
  margin-left: 2px;
}

.filter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}

.filter:hover,
.filter.is-active {
  color: var(--ink);
}

.filter.is-active::after {
  transform: scaleX(1);
}

.filter-count {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.filter-count b {
  color: var(--accent);
  font-weight: 500;
}

/* ==================== Work grid ==================== */

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(26px, 3.6vw, 52px) clamp(14px, 2vw, 28px);
}

.work {
  position: relative;
  grid-column: span 6;
  min-width: 0;
}

.work.span-3 {
  grid-column: span 3;
}

.work.span-4 {
  grid-column: span 4;
}

.work.span-12 {
  grid-column: span 12;
}

.work.is-hidden {
  display: none;
}

.work-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ar, 3 / 4);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.work-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}

.work:hover .work-media img {
  transform: scale(1.028);
}

.work--logo .work-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: clamp(18px, 3vw, 40px);
}

.work--logo .work-media img {
  object-fit: contain;
  height: auto;
  max-height: 100%;
  transform: none;
}

.work--logo:hover .work-media img {
  transform: scale(1.02);
}

.work-media--triptych {
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: var(--line);
  border: 0;
}

.work-media--triptych img {
  aspect-ratio: 3 / 4;
  height: auto;
}

.work-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.work-view {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.work-view span {
  font-size: 11px;
  color: var(--accent);
}

.work:hover .work-view,
.work:focus-within .work-view {
  opacity: 1;
  transform: none;
}

.work-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.work:focus-within .work-media {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.work-caption {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding-top: 12px;
}

.work-index {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

.work-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.work.span-12 .work-title {
  font-size: clamp(21px, 2vw, 30px);
}

.work-cat {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.work.span-3 .work-caption {
  grid-template-columns: 24px minmax(0, 1fr);
}

.work.span-3 .work-cat {
  grid-column: 2;
  margin-top: -1px;
}

/* reveal */

.will-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.will-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==================== About ==================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 110px);
  padding-top: clamp(36px, 6vh, 64px);
}

.about-quote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 60px);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -0.015em;
}

.quote-mark {
  color: var(--accent);
  font-size: 0.95em;
  line-height: 0;
  margin-right: 0.04em;
}

.about-current {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: clamp(30px, 5vh, 48px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.about-copy p {
  margin: 0 0 1.25em;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink);
  opacity: 0.86;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(48px, 8vh, 84px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.fact {
  padding: 0 34px;
  border-left: 1px solid var(--line);
}

.fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.fact h3 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact li {
  font-size: 13px;
  line-height: 2.15;
}

.fact li::before {
  content: "—";
  margin-right: 8px;
  color: var(--accent);
}

/* ==================== Experience ==================== */

.exp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  padding-top: clamp(36px, 6vh, 56px);
}

.col-label {
  margin: 0 0 8px;
  padding-bottom: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}

.timeline time {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: 4px;
}

.timeline h4 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.timeline p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.timeline .timeline-note {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  opacity: 0.84;
}

.award-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.award-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.7;
}

.award-no {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
  padding-top: 4px;
}

.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.cert-row span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ==================== Contact ==================== */

.contact {
  margin-top: clamp(72px, 12vh, 140px);
  background:
    radial-gradient(90% 70% at 82% 0%, var(--deep-2) 0%, var(--deep) 58%),
    var(--deep);
  color: var(--deep-text);
}

.contact-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 11vh, 120px) var(--pad) 26px;
}

.contact-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(28px, 5vh, 50px);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--deep-muted);
}

.contact-kicker span {
  color: var(--accent);
}

.contact-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
}

.contact-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 6.6vw, 96px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.contact-copy {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--deep-muted);
}

.contact-mail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(40px, 7vh, 64px);
  padding: 26px 0;
  border-top: 1px solid var(--deep-line);
  border-bottom: 1px solid var(--deep-line);
}

.contact-mail {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: clamp(26px, 4.7vw, 66px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-decoration: none;
  color: var(--deep-text);
  transition: color 0.3s;
}

.contact-mail .at {
  color: var(--accent);
}

.contact-mail svg {
  margin-left: 16px;
  align-self: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.contact-mail:hover {
  color: var(--accent);
}

.contact-mail:hover svg {
  transform: translate(4px, -4px);
}

.copy-btn {
  flex-shrink: 0;
  padding: 10px 17px;
  border: 1px solid var(--deep-line);
  border-radius: 999px;
  background: transparent;
  color: var(--deep-text);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.copy-btn:hover {
  background: var(--deep-text);
  color: var(--deep);
  border-color: var(--deep-text);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 30px 0 0;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-muted);
}

.contact-item a,
.contact-item p {
  margin: 0;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.6;
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-item--action {
  align-items: flex-end;
  justify-content: flex-end;
}

.btn-light {
  border-color: var(--deep-line);
  color: var(--deep-text);
}

.btn-light:hover {
  background: var(--deep-text);
  color: var(--deep);
  border-color: var(--deep-text);
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: clamp(56px, 9vh, 96px);
  padding-top: 20px;
  border-top: 1px solid var(--deep-line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--deep-muted);
}

.site-foot p {
  margin: 0;
}

.foot-time {
  color: var(--deep-muted);
}

.foot-top {
  margin-left: auto;
  text-decoration: none;
  color: var(--deep-text);
  transition: color 0.25s;
}

.foot-top:hover {
  color: var(--accent);
}

/* ==================== Lightbox ==================== */

.lightbox {
  width: min(1480px, 94vw);
  height: min(920px, 92vh);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.lightbox:focus {
  outline: none;
}

.lightbox::backdrop {
  background: rgba(10, 9, 7, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lb-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
}

.lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.lb-counter {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.lb-close {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px;
  border: 0;
  background: none;
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lb-close span {
  color: var(--accent);
  font-size: 13px;
}

.lb-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  min-height: 0;
}

.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 62px 84px;
  background: var(--paper-2);
  min-height: 0;
  overflow: hidden;
}

.lb-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  transition: background-color 0.3s;
}

.lb-image-wrap.is-contain {
  background: #fff;
  padding: clamp(20px, 3vw, 48px);
}

.lb-image {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 210px);
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.lb-image.is-loaded {
  opacity: 1;
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, opacity 0.25s;
}

.lb-arrow:hover {
  background: var(--ink);
  color: var(--paper);
}

.lb-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.lb-prev {
  left: 14px;
}

.lb-next {
  right: 14px;
}

.lb-thumbs {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  padding: 4px;
}

.lb-thumb {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.25s, border-color 0.25s;
}

.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lb-thumb.is-contain img {
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.lb-thumb:hover {
  opacity: 1;
}

.lb-thumb.is-active {
  opacity: 1;
  border-color: var(--accent);
}

.lb-thumbs:empty {
  display: none;
}

.lb-info {
  min-height: 0;
  padding: clamp(24px, 3vw, 38px) clamp(22px, 2.6vw, 34px) 26px;
  border-left: 1px solid var(--line);
  overflow-y: auto;
}

.lb-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.lb-meta span:first-child {
  color: var(--accent);
}

.lb-title {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.lb-sub {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.lb-desc {
  margin: 0 0 30px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink);
  opacity: 0.86;
}

.lb-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.lb-facts div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.lb-facts dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

.lb-facts dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.lb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.lb-tags span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--muted);
}

.lb-link {
  margin-top: 26px;
  width: 100%;
}

.lb-original {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}

.lb-original:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lb-hint {
  margin: 24px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ==================== Toast / to top ==================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  transform: translate(-50%, 16px);
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--ink);
  color: var(--paper);
}

.noscript {
  max-width: var(--maxw);
  margin: 30px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  font-size: 13px;
}

/* ==================== Responsive ==================== */

@media (max-width: 1280px) {
  .section-head {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .hero-side {
    display: none;
  }
}

@media (max-width: 1100px) {
  .work.span-3 {
    grid-column: span 6;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .about-quote {
    max-width: 560px;
  }

  .exp-grid {
    gap: 56px;
  }

  .contact-top {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 960px) {
  :root {
    --head-h: 68px;
  }

  .nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .section-kicker {
    margin-top: 0;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .section-intro {
    max-width: 460px;
    margin-bottom: 0;
  }

  .exp-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .contact-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .contact-copy {
    max-width: 480px;
    margin-bottom: 0;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .contact-item--action {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .lb-body {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .brand-en {
    display: none;
  }

  .resume-link {
    padding: 8px 12px;
  }

  .hero {
    padding-top: calc(var(--head-h) + 22px);
    min-height: auto;
  }

  .hero-main {
    grid-template-columns: minmax(0, 1fr) minmax(130px, 40vw);
    gap: 18px;
    padding: 32px 0 26px;
  }

  .hero-name {
    font-size: clamp(82px, 23vw, 140px);
  }

  .hero-portrait img {
    aspect-ratio: 3 / 4;
  }

  .hero-en {
    font-size: 9.5px;
    letter-spacing: 0.18em;
    margin-top: 16px;
  }

  .seal {
    width: 38px;
    height: 38px;
    left: -8px;
    bottom: 28px;
    font-size: 19px;
    box-shadow: 0 0 0 3px var(--paper);
  }

  .hero-foot {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 22px 0 32px;
  }

  .hero-lead {
    font-size: 26px;
  }

  .hero-note {
    display: none;
  }

  .hero-loc {
    font-size: 10.5px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .section {
    padding-top: 64px;
  }

  .section-title {
    font-size: clamp(38px, 11vw, 52px);
  }

  .section-intro {
    font-size: 13px;
  }

  .filter-bar {
    top: var(--head-h);
    gap: 18px;
    padding: 12px 0;
    margin-bottom: 22px;
  }

  .filter {
    font-size: 13px;
    padding: 9px 0;
  }

  .filter-count {
    display: none;
  }

  .work-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .work,
  .work.span-3,
  .work.span-4,
  .work.span-6,
  .work.span-12 {
    grid-column: span 1;
  }

  .work.span-12 .work-title {
    font-size: 21px;
  }

  .work-caption {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
  }

  .work-cat {
    grid-column: 2;
    margin-top: -1px;
  }

  .work-view {
    display: none;
  }

  .work--logo .work-media {
    padding: 28px;
  }

  .work-media--triptych {
    gap: 4px;
  }

  .about-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .fact:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .timeline li {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
  }

  .contact-mail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .contact-mail {
    font-size: clamp(21px, 5.3vw, 40px);
  }

  .contact-mail svg {
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-item--action {
    padding-top: 6px;
  }

  .site-foot {
    gap: 12px 20px;
  }

  .foot-note {
    display: none;
  }

  .foot-top {
    margin-left: 0;
  }

  .lightbox {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
  }

  .lb-shell {
    border: 0;
  }

  .lb-head {
    padding: 12px 16px;
  }

  .lb-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 46vh) minmax(0, 1fr);
  }

  .lb-stage {
    padding: 14px 44px 64px;
  }

  .lb-image {
    max-height: 34vh;
  }

  .lb-image-wrap.is-contain {
    padding: 18px;
  }

  .lb-thumbs {
    bottom: 10px;
  }

  .lb-thumb {
    width: 38px;
    height: 38px;
  }

  .lb-arrow {
    width: 34px;
    height: 34px;
  }

  .lb-prev {
    left: 6px;
  }

  .lb-next {
    right: 6px;
  }

  .lb-info {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 20px 28px;
  }

  .lb-title {
    font-size: 27px;
  }

  .lb-desc {
    font-size: 13px;
    margin-bottom: 22px;
  }

  .lb-hint {
    margin-top: 20px;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 420px) {
  .head-actions {
    gap: 8px;
  }

  .resume-link {
    font-size: 11px;
    padding: 7px 10px;
  }

  .hero-main {
    grid-template-columns: minmax(0, 1fr) minmax(110px, 36vw);
  }

  .hero-name {
    font-size: 25vw;
  }

  .hero-portrait figcaption span:last-child {
    display: none;
  }

  .contact-mail {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .will-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

