:root {
  --ink: #f7ead5;
  --ink-soft: #ddc8a9;
  --muted: #aa9270;
  --paper: #130f0c;
  --paper-2: #1d1712;
  --lacquer: #741819;
  --lacquer-dark: #3f0d0e;
  --indigo: #171833;
  --gold: #c8a15a;
  --gold-bright: #e3c177;
  --gold-soft: rgba(200, 161, 90, 0.24);
  --line: rgba(247, 234, 213, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Serif TC", "Yu Mincho", "Hiragino Mincho ProN", "PingFang TC", "Microsoft JhengHei", serif;
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at top left, rgba(116, 24, 25, 0.35), transparent 34rem),
    radial-gradient(circle at 84% 18%, rgba(23, 24, 51, 0.7), transparent 38rem),
    radial-gradient(circle at bottom right, rgba(200, 161, 90, 0.18), transparent 30rem),
    linear-gradient(145deg, #0f0b08 0%, #1a130e 52%, #08090e 100%);
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.13;
  background-image:
    radial-gradient(circle at 100% 150%, transparent 24%, rgba(247,234,213,.5) 25%, rgba(247,234,213,.5) 29%, transparent 30%, transparent 34%, rgba(247,234,213,.5) 35%, rgba(247,234,213,.5) 39%, transparent 40%),
    radial-gradient(circle at 0 150%, transparent 24%, rgba(247,234,213,.5) 25%, rgba(247,234,213,.5) 29%, transparent 30%, transparent 34%, rgba(247,234,213,.5) 35%, rgba(247,234,213,.5) 39%, transparent 40%);
  background-size: 72px 36px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.08;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
}

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

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(9, 8, 10, 0.88), rgba(24, 15, 12, 0.78));
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-bright);
  background: radial-gradient(circle, rgba(200, 161, 90, 0.22), rgba(116, 24, 25, 0.18));
  box-shadow: inset 0 0 22px rgba(200, 161, 90, 0.14);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  color: var(--ink-soft);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.nav a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.28s ease;
}

.nav a:hover::after {
  width: 100%;
}

.section-full,
.content-section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  padding: 150px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.82fr);
  align-items: center;
  gap: clamp(36px, 6vw, 76px);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 110px -42px 56px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 42px;
  background:
    linear-gradient(90deg, rgba(200, 161, 90, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(200, 161, 90, 0.06) 1px, transparent 1px),
    rgba(255, 255, 255, 0.022);
  background-size: 34px 34px;
  box-shadow: var(--shadow);
}

.hero-image {
  position: absolute;
  inset: 110px -42px 56px;
  z-index: -2;
  border-radius: 42px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(10, 8, 8, 0.92), rgba(10, 8, 8, 0.54) 52%, rgba(10, 8, 8, 0.18)),
    linear-gradient(0deg, rgba(10, 8, 8, 0.88), rgba(10, 8, 8, 0.18) 44%),
    url("images/web03.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(0.96) contrast(1.08);
}

.hero-crest {
  position: absolute;
  right: 14%;
  top: 18%;
  z-index: 0;
  width: 320px;
  height: 320px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(200, 161, 90, 0.18);
  color: rgba(200, 161, 90, 0.09);
  font-size: 12rem;
  line-height: 1;
  pointer-events: none;
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 5vw, 5.15rem);
  line-height: 1.18;
  letter-spacing: 0.03em;
  text-shadow: 0 18px 46px rgba(0,0,0,.5);
}

.hero-lead {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  text-shadow: 0 10px 24px rgba(0,0,0,.48);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  letter-spacing: 0.08em;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--gold-bright), #92703b);
  color: #160d08;
  font-weight: 800;
}

.btn.ghost {
  color: var(--gold-bright);
  background: rgba(11, 9, 8, 0.52);
}

.hero-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
  min-height: 500px;
  border: 1px solid rgba(247, 234, 213, 0.2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015)),
    radial-gradient(circle at 70% 18%, rgba(200, 161, 90, 0.14), transparent 12rem),
    rgba(18, 14, 12, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -56px;
  bottom: -56px;
  border-radius: 50%;
  border: 1px solid rgba(200, 161, 90, 0.32);
}

.vertical-text {
  margin: 0;
  height: 100%;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: var(--gold-bright);
  letter-spacing: 0.26em;
  font-size: 1.5rem;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(200, 161, 90, 0.9), rgba(116, 24, 25, 0.7));
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  border-radius: 18px;
  border: 1px solid rgba(255, 247, 226, 0.28);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% center;
  border-radius: 18px;
  filter: saturate(0.92) contrast(1.06) brightness(0.82);
}

.card-caption {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.content-section {
  padding: 96px 0;
}

.about-grid,
.split-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: clamp(32px, 6vw, 72px);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: 0.08em;
}

h3 {
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.text-panel,
.contact-card,
.role-card,
.timeline {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

.text-panel {
  position: relative;
  padding: clamp(26px, 4vw, 46px);
  color: var(--ink-soft);
  overflow: hidden;
}

.text-panel.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background:
    linear-gradient(90deg, rgba(19,15,12,.96), rgba(19,15,12,.78)),
    url("images/web01.jpg") center/cover;
}

.text-panel p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.role-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.role-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(116, 24, 25, 0.17), transparent 52%);
  pointer-events: none;
}

.role-card.accent-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 132px;
  opacity: .22;
  background: url("images/web03.jpg") center 56%/cover;
  mask-image: linear-gradient(transparent, black 38%);
}

.role-number {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--gold-bright);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.role-card p,
.timeline p,
.muted,
.contact-card {
  color: var(--ink-soft);
}

.timeline {
  padding: 34px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 18px;
  padding-bottom: 30px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 27px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-item > span {
  width: 21px;
  height: 21px;
  margin-top: 5px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--lacquer);
  box-shadow: 0 0 0 7px rgba(200, 161, 90, 0.08);
}

.gallery-section {
  position: relative;
}

.gallery-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 58px);
  align-items: end;
  margin-bottom: 34px;
}

.gallery-heading h2 {
  margin-bottom: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-auto-rows: 260px;
  gap: 18px;
}

.photo-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(247, 234, 213, 0.18);
  background: #0e0b09;
  box-shadow: var(--shadow);
}

.photo-card.large {
  grid-row: span 2;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.95) contrast(1.06) brightness(.86);
  transform: scale(1.02);
  transition: transform .55s ease, filter .55s ease;
}

.photo-card:hover img {
  transform: scale(1.07);
  filter: saturate(1.05) contrast(1.08) brightness(.98);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.78));
  pointer-events: none;
}

.photo-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
}

.photo-card figcaption span {
  display: block;
  color: #fff5dc;
  font-size: 1.25rem;
  letter-spacing: .1em;
  font-weight: 800;
}

.photo-card figcaption small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.skill-cloud span {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.035);
}

.quote-section {
  margin-top: 32px;
  margin-bottom: 32px;
  padding: clamp(54px, 8vw, 96px);
  border-radius: 42px;
  border: 1px solid rgba(200, 161, 90, 0.25);
  background:
    linear-gradient(rgba(32, 10, 11, 0.84), rgba(14, 11, 10, 0.84)),
    url("images/web01.jpg") center/cover;
  box-shadow: var(--shadow);
}

blockquote {
  margin: 0;
  color: #fff6df;
  font-size: clamp(1.5rem, 3.6vw, 3rem);
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-shadow: 0 14px 36px rgba(0,0,0,.54);
}

blockquote span {
  color: var(--gold-bright);
}

.contact-card {
  padding: clamp(26px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.044), rgba(255,255,255,.016)),
    radial-gradient(circle at 92% 0, rgba(200, 161, 90, 0.16), transparent 18rem);
}

.contact-card ul {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.contact-card li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card strong {
  color: var(--gold-bright);
  letter-spacing: 0.08em;
}

.footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 56px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 178px;
  }

  .hero-image,
  .hero::before {
    inset: 126px -18px 42px;
  }

  .hero-card {
    min-height: auto;
  }

  .about-grid,
  .split-section,
  .contact-section,
  .gallery-heading {
    grid-template-columns: 1fr;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 320px;
  }

  .photo-card.large {
    grid-row: span 1;
  }
}

@media (max-width: 560px) {
  .section-full,
  .content-section,
  .footer {
    width: min(100% - 28px, var(--max-width));
  }

  .hero-image,
  .hero::before {
    inset: 128px -12px 36px;
    border-radius: 28px;
  }

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

  .vertical-text {
    writing-mode: horizontal-tb;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 14px;
  }

  .card-caption {
    grid-column: 1;
  }

  .photo-grid {
    grid-auto-rows: 260px;
  }

  .photo-card figcaption {
    padding: 18px;
  }

  .contact-card li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
