/* ---------------------------------------------------------------
   A warm, editorial personal site
   --------------------------------------------------------------- */

:root {
  --paper: #f2ece0;
  --paper-deep: #e7dccb;
  --paper-light: #f8f3e9;
  --ink: #20231d;
  --ink-soft: #33372e;
  --muted: #6d6a5f;
  --line: rgba(32, 35, 29, 0.16);
  --line-strong: rgba(32, 35, 29, 0.34);
  --accent: #b14f34;
  --accent-soft: #e2c1b4;
  --accent-contrast: #f8f3e9;
  --olive: #3b4a3e;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Noto Serif SC", "Songti SC", "STSong", SimSun, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --gutter: clamp(22px, 4.5vw, 68px);
  --max-width: 1320px;
  --header-height: 82px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-accent="olive"] {
  --accent: #65704f;
  --accent-soft: #ced2bb;
}

[data-accent="indigo"] {
  --accent: #4b5579;
  --accent-soft: #c5c9d9;
}

[data-accent="ochre"] {
  --accent: #a06b2a;
  --accent-soft: #e4cca4;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  background: var(--paper);
}

html[data-mode="landing"] {
  background: #10140f;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

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

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

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

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.32;
  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='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

/* ------------------------------ header ------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  transition: background 0.35s ease, border-color 0.35s ease, height 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  height: 70px;
  background: rgba(242, 236, 224, 0.9);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  max-width: 240px;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wordmark-dot {
  color: var(--accent);
  margin-left: 2px;
}

.profile-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: clamp(12px, 2.5vw, 30px);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(248, 243, 233, 0.3);
  backdrop-filter: blur(14px) saturate(1.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 150px;
  padding: 3px 10px 3px 3px;
  border-radius: 100px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease;
}

.profile-chip:hover {
  color: var(--ink);
  background: rgba(32, 35, 29, 0.06);
}

.profile-chip.is-active {
  background: var(--ink);
  color: var(--paper);
}

.profile-avatar {
  flex: none;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.72rem;
  line-height: 1;
}

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

.profile-chip.is-active .profile-avatar {
  background: var(--accent);
  color: var(--paper);
}

.profile-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: clamp(16px, 2vw, 30px);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 15px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.28s ease;
}

body.nav-open .menu-toggle span:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

body.nav-open .menu-toggle span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

/* ------------------------------- hero ------------------------------- */

.hero {
  width: 100%;
  max-width: var(--max-width);
  min-height: min(100svh, 1040px);
  margin: 0 auto;
  padding: calc(var(--header-height) + 54px) var(--gutter) 0;
  display: flex;
  flex-direction: column;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-meta-line {
  width: 56px;
  height: 1px;
  background: var(--line-strong);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.68fr);
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  flex: 1;
  padding: clamp(48px, 7vh, 92px) 0 clamp(42px, 6vh, 74px);
}

.eyebrow {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

.hero-name {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero-name-cn {
  display: block;
  font-size: clamp(5.2rem, 11.5vw, 10.6rem);
  line-height: 0.84;
}

.hero-name-latin {
  display: block;
  margin-top: clamp(22px, 3vw, 34px);
  color: var(--accent);
  font-family: var(--sans);
  font-size: clamp(0.68rem, 0.95vw, 0.86rem);
  font-weight: 500;
  letter-spacing: 0.44em;
  line-height: 1.4;
  text-indent: 0.44em;
}

.hero-tagline {
  max-width: 24em;
  margin-top: clamp(30px, 4vh, 46px);
  font-family: var(--serif);
  font-size: clamp(1.22rem, 1.9vw, 1.62rem);
  line-height: 1.72;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.tagline-tail {
  display: inline;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: clamp(34px, 5vh, 52px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.button svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

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

.button-primary:hover svg {
  transform: translateX(3px);
}

.text-link {
  position: relative;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding-bottom: 4px;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

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

.portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 430px);
  padding-top: 10px;
}

.portrait::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18px -14px 14px 14px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  transform: rotate(-1.2deg);
  opacity: 0.55;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid rgba(32, 35, 29, 0.18);
  border-radius: 3px;
  box-shadow:
    0 32px 72px -46px rgba(38, 35, 28, 0.62),
    0 0 0 6px rgba(248, 243, 233, 0.36);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.01);
}

.portrait-frame img[hidden] {
  display: none;
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.38), transparent 44%),
    linear-gradient(145deg, var(--accent-soft), var(--accent));
  color: var(--accent-contrast);
}

.portrait-fallback.is-visible {
  display: grid;
}

.portrait-fallback span {
  font-family: var(--serif);
  font-size: clamp(6rem, 14vw, 11rem);
  line-height: 1;
  opacity: 0.9;
}

.portrait-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.portrait-stamp {
  position: absolute;
  left: -42px;
  bottom: 54px;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 10px 30px -16px rgba(32, 35, 29, 0.5);
  animation: stamp-spin 28s linear infinite;
}

.portrait-stamp svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.portrait-stamp text {
  fill: var(--ink);
  font-family: var(--sans);
  font-size: 7.2px;
  letter-spacing: 2.3px;
}

.portrait-stamp path {
  fill: var(--accent);
}

@keyframes stamp-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.scroll-cue i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: cue-pulse 2.4s ease-in-out infinite;
}

@keyframes cue-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.7);
    opacity: 0.4;
  }
}

/* ------------------------------ sections ------------------------------ */

.section {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(88px, 11vw, 150px) var(--gutter) 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 24px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.section-index {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-en {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

/* ------------------------------- about ------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.58fr);
  gap: clamp(42px, 7vw, 104px);
  margin-top: clamp(48px, 7vw, 82px);
  align-items: start;
}

.about-copy {
  position: relative;
  padding-left: clamp(20px, 3vw, 36px);
}

.about-copy::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 4px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--line) 40%, transparent);
}

.about-copy::after {
  content: "";
  position: absolute;
  top: 1px;
  left: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 13%, transparent);
}

.about-copy p {
  max-width: 17em;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.5rem, 2.8vw, 2.45rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.04em;
  white-space: pre-line;
}

.about-copy p + p {
  max-width: 36em;
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: clamp(0.9rem, 1.08vw, 0.99rem);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0;
}

.fact-sheet {
  position: relative;
  isolation: isolate;
  align-self: start;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 30px);
  display: grid;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.1) 58%, rgba(255, 255, 255, 0.24));
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    0 28px 64px -42px rgba(38, 35, 28, 0.38);
}

.fact-sheet::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -94px;
  right: -72px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(42px);
  opacity: 0.62;
}

.fact-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
}

.fact-head i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.fact {
  display: grid;
  gap: 6px;
}

.fact-key {
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fact-value {
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.65;
}

.fact-link {
  width: fit-content;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fact-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.fact-socials,
.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.fact-socials a {
  position: relative;
  font-size: 0.86rem;
}

.fact-socials a::after {
  content: "↗";
  margin-left: 3px;
  color: var(--accent);
  font-size: 0.7em;
}

.fact-socials a:hover {
  color: var(--accent);
}

/* ----------------------------- interests ----------------------------- */

.section-intro {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(40px, 6vw, 64px);
}

.section-intro p {
  max-width: 14em;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.35;
  text-align: right;
  letter-spacing: 0.01em;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--line);
}

.interest-card {
  position: relative;
  display: block;
  min-height: 220px;
  padding: clamp(28px, 3.2vw, 42px) clamp(18px, 2.2vw, 30px);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease;
}

.interest-card:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.interest-card:hover {
  background: rgba(255, 255, 255, 0.28);
}

.interest-media {
  position: relative;
  width: clamp(86px, 8vw, 108px);
  aspect-ratio: 1;
  margin-bottom: 22px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--paper-deep);
}

.interest-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.4s ease;
}

.interest-card:hover .interest-media img {
  transform: scale(1.06);
  filter: saturate(1.04);
}

.interest-media.is-empty {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.4), transparent 44%),
    linear-gradient(145deg, var(--accent-soft), var(--paper-deep));
}

.interest-placeholder {
  color: rgba(32, 35, 29, 0.4);
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
}

.interest-body {
  display: flex;
  gap: clamp(16px, 2vw, 26px);
}

.interest-index {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.78rem;
  font-style: italic;
  padding-top: 4px;
}

.interest-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.interest-main h3 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.9vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.interest-main p {
  max-width: 31em;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.85;
}

.empty-note {
  grid-column: 1 / -1;
  padding: 54px 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.2rem;
}

/* ------------------------------ updates ------------------------------ */

.updates-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(34px, 4vw, 48px) 0 2px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

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

.update {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) minmax(240px, 300px);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
  padding: clamp(32px, 4.2vw, 50px) 0;
  border-top: 1px solid var(--line);
}

.update-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.update-date time {
  font-variant-numeric: tabular-nums;
}

.update-tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.update-copy h3 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.update-copy p {
  max-width: 40em;
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.9;
  white-space: pre-line;
}

.update-image {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--paper-deep);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
}

button.update-image {
  display: block;
  width: 100%;
  text-align: left;
  cursor: zoom-in;
}

.update-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.4s ease;
}

.update-image:hover img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.update.no-image {
  grid-template-columns: 138px minmax(0, 1fr);
}

.update.no-image .update-copy p {
  max-width: 48em;
}

/* ------------------------------ contact ------------------------------ */

.contact {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(88px, 11vw, 150px) var(--gutter) 0;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6.5vw, 92px);
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
  isolation: isolate;
}

.contact-panel > *:not(.contact-orbit) {
  position: relative;
  z-index: 2;
}

.contact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(42px, 6vw, 68px);
}

.contact .section-index {
  color: var(--accent-soft);
}

.contact .section-en {
  color: rgba(242, 236, 224, 0.48);
}

.contact h2 {
  max-width: 9em;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.6vw, 6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.contact-dot {
  color: var(--accent-soft);
}

.contact-copy {
  max-width: 29em;
  margin-top: 26px;
  color: rgba(242, 236, 224, 0.6);
  font-size: 0.92rem;
  line-height: 1.85;
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  margin-top: clamp(34px, 5vw, 56px);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(242, 236, 224, 0.35);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3.7vw, 3.2rem);
  line-height: 1.2;
  word-break: break-word;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-email:hover {
  color: var(--accent-soft);
  border-color: var(--accent-soft);
}

.contact-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: clamp(54px, 8vw, 96px);
  padding-top: 24px;
  border-top: 1px solid rgba(242, 236, 224, 0.16);
}

.contact-socials {
  gap: 14px 26px;
}

.contact-socials a {
  color: rgba(242, 236, 224, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.contact-socials a::after {
  content: " ↗";
  color: var(--accent-soft);
}

.contact-socials a:hover {
  color: var(--paper);
}

.contact-note {
  color: rgba(242, 236, 224, 0.4);
  font-family: var(--serif);
  font-size: 0.92rem;
  text-align: right;
}

.contact-orbit {
  position: absolute;
  z-index: 1;
  top: -170px;
  right: -170px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(242, 236, 224, 0.17);
  border-radius: 50%;
  pointer-events: none;
}

.contact-orbit::before,
.contact-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(242, 236, 224, 0.11);
}

.contact-orbit::before {
  inset: 62px;
}

.contact-orbit::after {
  inset: 132px;
  background: var(--accent);
  border: 0;
  opacity: 0.9;
}

/* ------------------------------- footer ------------------------------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px var(--gutter) 34px;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
}

.footer-mid {
  color: rgba(32, 35, 29, 0.38);
}

.footer-visits {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.footer-visits b {
  font-weight: 600;
}

/* ------------------------------ lightbox ------------------------------ */

.lightbox {
  width: min(1040px, 92vw);
  max-height: 92vh;
  padding: 18px;
  border: 0;
  border-radius: 3px;
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}

.lightbox::backdrop {
  background: rgba(20, 22, 18, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox img {
  width: 100%;
  max-height: calc(92vh - 110px);
  object-fit: contain;
  background: var(--paper-deep);
}

.lightbox p {
  padding: 12px 4px 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(32, 35, 29, 0.82);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 18px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.55);
}

.toast[hidden] {
  display: none;
}

.noscript-note {
  margin: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

/* ------------------------------- 404 page ------------------------------- */

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.error-panel {
  width: min(720px, 100%);
  padding: clamp(34px, 7vw, 80px);
  border: 1px solid var(--line);
  background: rgba(248, 243, 233, 0.5);
}

.error-code {
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}

.error-panel h1 {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.error-copy {
  max-width: 30em;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.9;
}

.error-panel .button {
  margin-top: 36px;
}


/* ---------------------------- entrance page ---------------------------- */

body.mode-landing {
  background: #10140f;
  color: var(--paper);
}

body.mode-landing .site-header,
body.mode-landing #main,
body.mode-landing .site-footer,
body.mode-landing .skip-link {
  display: none;
}

body.mode-landing .page-grain {
  opacity: 0.2;
  mix-blend-mode: screen;
}

.entrance {
  position: relative;
  display: none;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 38%, rgba(64, 78, 57, 0.28), transparent 45%),
    linear-gradient(145deg, #121710 0%, #171d15 52%, #0d110c 100%);
  color: #f1e8d8;
  isolation: isolate;
}

body.mode-landing .entrance {
  display: block;
}

.entrance-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.liquid-blob {
  position: absolute;
  display: block;
  border-radius: 46% 54% 63% 37% / 42% 38% 62% 58%;
  filter: blur(72px);
  opacity: 0.48;
  mix-blend-mode: screen;
  animation: blob-drift 18s ease-in-out infinite alternate;
  will-change: transform, border-radius;
}

.blob-sand {
  top: -18%;
  left: -15%;
  width: 52vw;
  height: 46vw;
  background: #b35939;
}

.blob-sage {
  top: 16%;
  right: -18%;
  width: 48vw;
  height: 52vw;
  background: #617052;
  animation-delay: -6s;
  animation-duration: 23s;
}

.blob-dusk {
  bottom: -32%;
  left: 22%;
  width: 56vw;
  height: 46vw;
  background: #485378;
  opacity: 0.34;
  animation-delay: -12s;
  animation-duration: 27s;
}

.liquid-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 42%),
    rgba(255, 244, 220, 0.11),
    transparent 64%
  );
  transition: opacity 0.4s ease;
}

@keyframes blob-drift {
  0% {
    transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1);
    border-radius: 46% 54% 63% 37% / 42% 38% 62% 58%;
  }
  50% {
    transform: translate3d(4%, 5%, 0) rotate(8deg) scale(1.08);
    border-radius: 58% 42% 38% 62% / 54% 62% 38% 46%;
  }
  100% {
    transform: translate3d(-4%, 8%, 0) rotate(-6deg) scale(0.96);
    border-radius: 38% 62% 55% 45% / 62% 42% 58% 38%;
  }
}

.entrance-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 38px) clamp(22px, 4.5vw, 68px) 22px;
  display: flex;
  flex-direction: column;
}

.entrance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.entrance-brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.entrance-brand i {
  margin-left: 2px;
  color: #d58a62;
  font-style: normal;
}

.entrance-meta {
  color: rgba(241, 232, 216, 0.4);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}

.entrance-heading {
  margin-top: clamp(34px, 6.5vh, 74px);
}

.entrance-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(241, 232, 216, 0.42);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}

.entrance-eyebrow span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(241, 232, 216, 0.25);
  border-radius: 50%;
  color: #e4a17d;
  font-family: var(--serif);
  font-size: 0.6rem;
  font-style: italic;
}

.entrance-heading h1 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7.2vw, 6.8rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #f5edde;
  text-wrap: balance;
}

.entrance-heading h1 span {
  color: #d98259;
}

.entrance-sub {
  max-width: 28em;
  margin-top: 20px;
  color: rgba(241, 232, 216, 0.48);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.entrance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  margin-top: clamp(30px, 4.6vh, 48px);
  perspective: 1400px;
}

.entrance-loading {
  grid-column: 1 / -1;
  padding: 60px 0;
  color: rgba(241, 232, 216, 0.42);
  font-family: var(--serif);
  font-size: 1.1rem;
  text-align: center;
}

.entrance-card {
  --tint-a: #bd6747;
  --tint-b: #d6a977;
  --glass-tint: rgba(189, 103, 71, 0.2);
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  --gx: 50%;
  --gy: 40%;
  position: relative;
  display: block;
  height: clamp(360px, 45vh, 500px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 27px;
  background: #1a2017;
  box-shadow:
    0 35px 80px -34px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform 0.22s ease-out, box-shadow 0.45s ease, border-color 0.3s ease;
  will-change: transform;
  animation: card-arrive 0.85s var(--ease) backwards;
}

.entrance-card:nth-child(2) {
  animation-delay: 0.1s;
}

.entrance-card:hover {
  --lift: -6px;
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 44px 95px -28px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.entrance-card.style-sand {
  --tint-a: #c06a49;
  --tint-b: #d6a977;
  --glass-tint: rgba(187, 101, 70, 0.2);
}

.entrance-card.style-sage {
  --tint-a: #637052;
  --tint-b: #a6b08a;
  --glass-tint: rgba(102, 118, 88, 0.2);
}

.entrance-card.style-dusk {
  --tint-a: #4d587c;
  --tint-b: #8d93b2;
  --glass-tint: rgba(74, 84, 121, 0.2);
}

.entrance-card.style-rose {
  --tint-a: #9f5861;
  --tint-b: #d2a0a0;
  --glass-tint: rgba(159, 88, 97, 0.2);
}

.entrance-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 20%, var(--tint-b), transparent 48%),
    linear-gradient(155deg, var(--tint-a), #222a20 78%);
}

.entrance-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(145deg, var(--tint-a), transparent 58%);
  mix-blend-mode: color;
  opacity: 0.2;
  pointer-events: none;
}

.entrance-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10, 13, 9, 0.04) 24%, rgba(10, 13, 9, 0.16) 58%, rgba(10, 13, 9, 0.58) 100%),
    linear-gradient(110deg, var(--glass-tint), transparent 42%);
  pointer-events: none;
}

.entrance-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
  transition: transform 1.1s var(--ease), filter 0.6s ease;
}

.entrance-card:hover .entrance-card-media img {
  transform: scale(1.045);
  filter: saturate(1.02) contrast(1.02);
}

.entrance-card-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--serif);
  font-size: clamp(8rem, 20vw, 15rem);
  line-height: 1;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.2);
}

.entrance-card-index {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  color: #fff6e8;
  font-family: var(--serif);
  font-size: 0.72rem;
  font-style: italic;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.entrance-card-role {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.32);
}

.entrance-card-name {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff8ea;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.28);
}

.entrance-card-tagline {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  line-height: 1.7;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.entrance-card-glass {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 15px;
  z-index: 2;
  padding: 20px 22px 19px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 19px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.015) 54%, rgba(255, 255, 255, 0.07));
  backdrop-filter: blur(11px) saturate(1.65) brightness(1.05);
  -webkit-backdrop-filter: blur(11px) saturate(1.65) brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 18px 44px rgba(0, 0, 0, 0.18);
  transform: translateZ(22px);
}

.entrance-card-glass::before {
  content: "";
  position: absolute;
  inset: 1px auto auto 12%;
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  opacity: 0.55;
}

.entrance-card-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(116deg, transparent 22%, rgba(255, 255, 255, 0.1) 43%, transparent 62%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.entrance-card-glass > * {
  position: relative;
  z-index: 1;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .entrance-card-glass {
    background: rgba(18, 23, 16, 0.82);
  }
}

.entrance-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.entrance-card-cta i {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s var(--ease);
}

.entrance-card-cta i::before,
.entrance-card-cta i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.entrance-card-cta i::before {
  width: 10px;
  height: 1px;
}

.entrance-card-cta i::after {
  width: 5px;
  height: 5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  background: transparent;
  transform: translate(-65%, -50%) rotate(45deg);
}

.entrance-card:hover .entrance-card-cta i {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(3px);
}

.entrance-sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    320px circle at var(--gx) var(--gy),
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.04) 38%,
    transparent 66%
  );
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
}

.entrance-card:hover .entrance-sheen {
  opacity: 1;
}

.entrance-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 22px;
  color: rgba(241, 232, 216, 0.32);
  font-size: 0.56rem;
  letter-spacing: 0.13em;
}

@keyframes card-arrive {
  from {
    opacity: 0;
    transform: perspective(1200px) translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: perspective(1200px) translateY(0) scale(1);
  }
}

/* ------------------------- pointer / transitions ------------------------- */

.site-loading {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #11150f;
  color: #f1e8d8;
  transition: opacity 0.55s var(--ease), visibility 0.55s ease;
}

body:not(.is-loading) .site-loading {
  opacity: 0;
  visibility: hidden;
}

.site-loading > span {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
}

.site-loading i {
  display: block;
  width: 90px;
  height: 1px;
  overflow: hidden;
  background: rgba(241, 232, 216, 0.15);
}

.site-loading i::after {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  background: #d58a62;
  animation: loading-sweep 1.2s ease-in-out infinite;
}

@keyframes loading-sweep {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(240%);
  }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9600;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
}

.cursor-dot.is-visible,
.cursor-ring.is-visible {
  opacity: 1;
}

.cursor-ring {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: #fff;
  mix-blend-mode: difference;
  transition:
    width 0.3s var(--ease),
    height 0.3s var(--ease),
    background 0.3s ease,
    border-color 0.3s ease,
    opacity 0.25s ease;
}

.cursor-ring span {
  opacity: 0;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  transition: opacity 0.2s ease;
}

.cursor-ring.is-active {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cursor-ring.is-active span {
  opacity: 1;
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #171c15;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.72s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

.page-transition.is-active {
  clip-path: circle(150% at 50% 50%);
}

.page-transition span {
  position: relative;
  z-index: 2;
  color: #f5edde;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease 0.18s, transform 0.5s var(--ease) 0.18s;
}

.page-transition.is-active span {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------- mobile entrance ----------------------------- */

@media (max-width: 860px) {
  .entrance-shell {
    padding: calc(18px + env(safe-area-inset-top)) 20px calc(16px + env(safe-area-inset-bottom));
  }

  .entrance-heading {
    margin-top: 30px;
  }

  .entrance-heading h1 {
    font-size: clamp(2.7rem, 12vw, 4.1rem);
  }

  .entrance-sub {
    margin-top: 14px;
    font-size: 0.78rem;
  }

  .entrance-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 26px;
    perspective: none;
  }

  .entrance-card {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    height: 214px;
    border-radius: 22px;
    transform: none;
    will-change: auto;
  }

  .entrance-card:hover {
    --lift: 0px;
    transform: none;
  }

  .entrance-card-media {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    height: 100%;
  }

  .entrance-card-media::after {
    background: linear-gradient(180deg, rgba(10, 13, 9, 0.02), rgba(10, 13, 9, 0.22));
  }

  .entrance-card-fallback {
    font-size: 7rem;
  }

  .entrance-card-glass {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    margin: 9px;
    padding: 15px 15px 14px;
    border-radius: 15px;
    transform: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .entrance-card-name {
    font-size: 1.48rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .entrance-card-role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .entrance-card-tagline {
    margin-top: 6px;
    font-size: 0.7rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .entrance-card-cta {
    margin-top: auto;
    padding-top: 10px;
    font-size: 0.56rem;
  }

  .entrance-card-cta i {
    width: 25px;
    height: 25px;
  }

  .entrance-card-index {
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    font-size: 0.6rem;
  }

  .entrance-card-role {
    font-size: 0.5rem;
  }

  .entrance-footer {
    padding-top: 16px;
    font-size: 0.5rem;
  }

  .blob-sand {
    width: 90vw;
    height: 80vw;
  }

  .blob-sage {
    width: 95vw;
    height: 90vw;
  }

  .blob-dusk {
    width: 100vw;
    height: 80vw;
  }

  .liquid-blob {
    filter: blur(48px);
    opacity: 0.4;
  }
}

@media (max-width: 380px) {
  .entrance-card {
    height: 196px;
    grid-template-columns: 39% minmax(0, 1fr);
  }

  .entrance-card-glass {
    margin: 7px;
    padding: 12px;
  }

  .entrance-card-name {
    font-size: 1.3rem;
  }

  .entrance-card-tagline {
    -webkit-line-clamp: 2;
    font-size: 0.66rem;
  }
}

@media (hover: none) {
  .entrance-card:active {
    transform: scale(0.985);
    transition-duration: 0.12s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .liquid-blob,
  .site-loading i::after {
    animation: none;
  }

  .entrance-card {
    animation: none;
  }
}


.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.interest-card.reveal:nth-child(2),
.update.reveal:nth-child(2) {
  transition-delay: 0.07s;
}

.interest-card.reveal:nth-child(3),
.update.reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.interest-card.reveal:nth-child(4) {
  transition-delay: 0.17s;
}

/* ----------------------------- responsive ----------------------------- */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
    gap: 48px;
  }

  .portrait-stamp {
    left: -26px;
    width: 92px;
    height: 92px;
  }

  .about-grid {
    gap: 58px;
  }

  .update {
    grid-template-columns: 112px minmax(0, 1fr) minmax(210px, 260px);
    gap: 30px;
  }

  .update.no-image {
    grid-template-columns: 112px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 72px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 18px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px -30px rgba(32, 35, 29, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s;
  }

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

  .site-nav a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: calc(var(--header-height) + 36px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 54px;
    padding-top: 54px;
  }

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

  .portrait {
    justify-self: start;
    width: min(76vw, 390px);
    margin-left: 2vw;
  }

  .hero-foot {
    margin-top: 10px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .fact-sheet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 18px;
  }

  .interest-card {
    min-height: 0;
  }

  .update {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 24px 30px;
  }

  .update-image {
    grid-column: 2;
    width: min(100%, 460px);
    margin-top: 2px;
  }

  .update.no-image {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .contact-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-note {
    text-align: left;
  }

  .contact-orbit {
    width: 390px;
    height: 390px;
    top: -160px;
    right: -150px;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 9px;
  }

  .header-tools {
    margin-left: auto;
  }

  .profile-switch {
    margin-left: 4px;
    padding: 2px;
  }

  .profile-chip {
    gap: 5px;
    max-width: 88px;
    padding: 3px 6px 3px 3px;
    font-size: 0.64rem;
  }

  .profile-avatar {
    width: 23px;
    height: 23px;
    font-size: 0.66rem;
  }

  .wordmark {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-name-cn {
    font-size: clamp(4.6rem, 23vw, 7rem);
  }

  .hero-name-latin {
    letter-spacing: 0.32em;
    text-indent: 0.32em;
  }

  .hero-meta {
    gap: 10px;
    font-size: 0.57rem;
  }

  .hero-meta-line {
    width: 24px;
  }

  .hero-actions {
    gap: 20px;
  }

  .button {
    padding: 0 20px;
  }

  .portrait {
    width: min(82vw, 360px);
  }

  .portrait-stamp {
    left: auto;
    right: -14px;
    bottom: 44px;
    width: 84px;
    height: 84px;
  }

  .section-head {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .section-rule {
    display: none;
  }

  .section-en {
    margin-left: auto;
  }

  .section-intro {
    justify-content: flex-start;
  }

  .section-intro p {
    font-size: clamp(1.7rem, 7vw, 2.5rem);
    text-align: left;
  }

  .tagline-tail {
    display: block;
  }

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

  .interest-card:nth-child(odd) {
    border-right: 0;
  }

  .interest-card {
    min-height: 0;
    padding: 28px 4px;
  }

  .interest-body {
    padding: 0;
  }

  .interest-media {
    width: 84px;
    margin-bottom: 18px;
  }

  .update,
  .update.no-image {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .update-date {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .update-image {
    grid-column: 1;
  }

  .updates-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .contact-panel {
    padding: 34px 24px;
  }

  .contact h2 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-bottom: 28px;
  }

  .footer-mid {
    order: 3;
    width: 100%;
  }

  .fact-sheet {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .about-copy {
    padding-left: 20px;
  }

  .about-copy p {
    font-size: 1.42rem;
  }
}

@media (max-width: 360px) {
  .profile-chip {
    padding: 3px;
    max-width: none;
  }

  .profile-chip-name {
    display: none;
  }

  .wordmark {
    max-width: 76px;
    font-size: 1.2rem;
  }
}

@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;
  }

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