/* ───────────────────────────────────────────────────────────
   店員介紹 — 1920×1080 一屏顯示 (over 1080 wraps gracefully)
   ───────────────────────────────────────────────────────── */

.page-staff {
  background: var(--bg);
  min-height: 100vh;
}

.staff-page {
  display: flex;
  flex-direction: column;
}

/* ── HERO ────────────────────────────────────────── */
.staff-hero {
  position: relative;
  min-height: 90vh;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
}

.staff-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.04);
}

.staff-watercolor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  transform: translateZ(0);
  isolation: isolate;
}
.staff-watercolor .wash-a {
  --wash-rotate: -6deg;
  top: -15%;
  height: 140%;
}
.staff-watercolor .wash-b {
  --wash-rotate: 4deg;
  left: -2%;
  top: 0%;
  height: 110%;
}

.staff-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 60% at 20% 50%, rgba(250, 246, 237, 0.25), transparent 70%),
    linear-gradient(180deg, rgba(250, 246, 237, 0.15) 0%, transparent 30%, transparent 88%, rgba(246, 239, 228, 0.75) 96%, rgba(246, 239, 228, 1) 100%);
}

/* ── HEAD BAND (content overlay inside hero) ─────── */
.staff-head {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto 0 max(0px, calc((100vw - 1320px) / 2 - var(--fs-hero)));
  padding: 0 var(--gutter) calc(2 * var(--fs-hero));
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
}

.staff-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--moss);
  text-transform: uppercase;
}
.staff-eyebrow .eyebrow-rule {
  width: 48px;
  height: 1px;
  background: var(--moss);
  opacity: 0.6;
}

.staff-title {
  position: relative;
  margin: 0;
  line-height: 0.95;
  display: inline-block;
}
.staff-title-text {
  position: relative;
  z-index: 2;
  font-family: var(--serif-zh);
  font-weight: 500;
  font-size: var(--fs-hero);
  letter-spacing: 0.22em;
  color: var(--ink);
}
/* Real brush stroke PNG behind the title characters */
.staff-title-brush {
  position: absolute;
  z-index: 1;
  left: -24px;
  right: -48px;
  top: 6%;
  height: 96%;
  background: url('images/title-brush.webp') center/100% 100% no-repeat;
  pointer-events: none;
}

/* ── HEAD INTRO ──────────────────────────────────── */
.staff-intro-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 56ch;
}
.staff-intro-lead {
  margin: 0 0 6px;
  font-family: var(--serif-zh);
  font-weight: 500;
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: 0.08em;
  color: var(--ink);
}
.staff-intro-body {
  margin: 0;
  font-family: var(--sans-zh);
  font-weight: 400;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.95;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.staff-intro-sign {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--serif-zh);
  font-size: clamp(13px, 0.95vw, 15px);
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}
.staff-intro-sign em {
  font-style: normal;
  color: var(--moss);
  letter-spacing: 0.2em;
}

/* ── STAFF ROW (2×2 grid of horizontal cards) ────── */
.staff-row {
  max-width: 1760px;
  margin: 0 auto;
  width: 100%;
  padding: clamp(36px, 4vh, 56px) var(--gutter) clamp(40px, 5vh, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 1.6vw, 28px);
}

/* horizontal card: photo on left, text on right, in a glassy frame */
.staff-card {
  display: grid;
  grid-template-columns: clamp(180px, 14vw, 240px) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(20px, 1.8vw, 32px);
  row-gap: 14px;
  align-items: stretch;
  padding: clamp(18px, 1.6vw, 26px);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  backdrop-filter: blur(8px) saturate(110%);
  border: 1px solid color-mix(in oklab, var(--paper) 70%, transparent);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 24px 50px -28px rgba(46, 33, 23, 0.35),
    0 8px 18px -10px rgba(46, 33, 23, 0.18);
  min-width: 0;
  min-height: 0;
  transition: transform .35s ease, box-shadow .35s ease;
}
.staff-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 32px 60px -28px rgba(46, 33, 23, 0.4),
    0 10px 20px -10px rgba(46, 33, 23, 0.22);
}

/* photo wrapper sets aspect ratio; image-slot fills it. Span both rows. */
.staff-photo {
  position: relative;
  grid-row: 1 / span 3;
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 12px 24px -12px rgba(46, 33, 23, 0.35);
}
.staff-photo image-slot {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border-radius: 6px;
}

.staff-num {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 10px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink);
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 2px;
}

/* ── NAMES / ROLE ────────────────────────────────── */
.staff-meta {
  grid-column: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  align-self: start;
}
.staff-names {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.staff-name {
  font-family: var(--serif-zh);
  font-weight: 600;
  font-size: clamp(22px, 1.8vw, 28px);
  letter-spacing: 0.14em;
  color: var(--ink);
  white-space: nowrap;
}
.staff-alias {
  font-family: var(--serif-zh);
  font-size: clamp(13px, 0.95vw, 15px);
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  opacity: 0.5;
}
.staff-role {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  flex-shrink: 0;
}
.role-zh {
  font-family: var(--serif-zh);
  font-weight: 500;
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: 0.3em;
  color: var(--moss);
}
.role-en {
  margin-top: 2px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* ── BIO ─────────────────────────────────────────── */
.staff-bio {
  grid-column: 2;
  margin: 0;
  align-self: start;
  font-family: var(--sans-zh);
  font-weight: 400;
  font-size: clamp(13px, 0.95vw, 15.5px);
  line-height: 1.95;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.staff-bio em {
  font-style: normal;
  color: var(--moss);
  font-weight: 500;
  border-bottom: 1px dotted color-mix(in oklab, var(--moss) 50%, transparent);
  padding-bottom: 1px;
}

/* ── QUOTE ───────────────────────────────────────── */
.staff-quote {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed color-mix(in oklab, var(--moss) 35%, transparent);
  font-family: var(--serif-zh);
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.75;
  letter-spacing: 0.12em;
  color: var(--moss);
}
.staff-quote::before { content: '「 '; opacity: 0.6; }
.staff-quote::after  { content: ' 」'; opacity: 0.6; }

/* ── FOOTER (compact for staff page) ─────────────── */
.foot-staff {
  padding: clamp(28px, 4vh, 44px) var(--gutter);
}
.foot-staff .foot-row { margin-bottom: 6px; }
.foot-staff .foot-zh { font-size: 18px; }
.foot-staff .foot-en { font-size: 14px; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1100px) {
  .staff-intro-vertical { max-height: clamp(120px, 22vh, 200px); }
}

@media (max-width: 768px) {
  /* 手機：水墨換成半透明遮罩，內容置中 */
  .staff-watercolor .wash { display: none; }
  .staff-watercolor { background: linear-gradient(to bottom, transparent 70%, rgba(246, 239, 228, 1) 100%), url('images/mobile-wash-overlay.webp') center/cover no-repeat; }
  .staff-head {
    margin: 0;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(16px, 2.5vh, 28px);
    padding: 0 var(--gutter) calc(2 * var(--fs-hero));
  }
  .staff-intro-vertical { padding-left: 5vw; }
  /* 眉標：深色，左對齊 */
  .staff-eyebrow { color: #111; }
  .staff-eyebrow .eyebrow-rule { background: #111; }
  /* 大標題置中 */
  .staff-title { align-self: center; text-align: center; }
  .staff-title-text { font-size: clamp(28px, 16vw, 72px); }
  /* 其他文字 */
  .staff-intro-lead { color: #111; }
  .staff-intro-body { color: #111; }
  .staff-intro-sign { color: var(--moss); }
  .staff-intro-sign em { color: var(--moss); }
  .staff-intro-vertical {
    max-height: none;
    width: min(100%, 70vw);
    max-width: 70vw;
    overflow: hidden;
  }
  .staff-intro-lead { font-size: clamp(16px, 3.5vw, 22px); }
  .staff-intro-body {
    font-size: 14px;
    overflow-wrap: anywhere;
    word-break: break-all;
    white-space: normal;
  }
  .staff-intro-sign {
    font-size: 12px;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
    word-break: break-all;
    white-space: normal;
  }
  .staff-intro-sign em { letter-spacing: 0.04em; }
  .staff-row { grid-template-columns: 1fr; }
  .staff-card { grid-template-columns: 140px 1fr; }
}

@media (max-width: 480px) {
  .staff-title-text { font-size: clamp(28px, 16vw, 52px); }
  .staff-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }
  .staff-photo {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 4 / 5;
  }
  .staff-meta {
    grid-column: 1;
    grid-row: 2;
  }
  .staff-bio {
    grid-column: 1;
    grid-row: 3;
  }
  .staff-quote {
    grid-column: 1;
    grid-row: 4;
  }
}
