:root {
  --bg: #070604;
  --panel: #11100d;
  --paper: #fffaf0;
  --coffee: #2f2418;
  --coffee-muted: #6a5944;
  --gold: #d7b56d;
  --gold-strong: #f1d28a;
  --text: #fff7df;
  --muted: rgba(255, 247, 223, 0.72);
  --line: rgba(215, 181, 109, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "PingFang TC", "Hiragino Sans", Arial, sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(215, 181, 109, 0.18), transparent 32rem),
    radial-gradient(circle at 82% 18%, rgba(241, 210, 138, 0.12), transparent 28rem),
    linear-gradient(180deg, #080705 0%, #0d0b08 52%, #050403 100%);
}

.portal-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.portal-hero,
.client-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(17, 16, 13, 0.94), rgba(7, 6, 4, 0.8)),
    repeating-linear-gradient(90deg, rgba(255, 247, 223, 0.035) 0 1px, transparent 1px 120px);
  padding: 56px;
  position: relative;
  overflow: hidden;
}

.portal-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(215, 181, 109, 0.16);
  border-radius: 50%;
}

.eyebrow,
.client-card__head span,
.sub-card span {
  color: var(--gold-strong);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin: 18px 0 28px;
  font-family: "Noto Serif TC", "Songti TC", Georgia, serif;
  font-size: clamp(58px, 8vw, 108px);
  line-height: 1.04;
}

h1 span,
h3 span {
  display: block;
  white-space: nowrap;
}

.portal-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 650;
}

.client-card {
  margin-top: 28px;
}

.client-card__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}

.client-card__head span {
  grid-column: 1 / -1;
  margin-bottom: -14px;
}

.client-card__head h2 {
  margin-bottom: 0;
  color: var(--text);
  font-family: "Noto Serif TC", "Songti TC", Georgia, serif;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.08;
}

.client-card__head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 650;
}

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

.sub-card {
  display: block;
  min-height: 260px;
  padding: 30px;
  background: var(--paper);
  border: 1px solid rgba(215, 181, 109, 0.38);
  color: var(--coffee);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.sub-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.sub-card span {
  color: #8a6428;
}

.sub-card h3 {
  margin: 24px 0 16px;
  color: var(--coffee);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
}

.sub-card p {
  margin-bottom: 0;
  color: var(--coffee-muted);
  font-weight: 760;
}

@media (max-width: 760px) {
  .portal-shell {
    width: min(100% - 28px, 680px);
    padding: 28px 0 48px;
  }

  .portal-hero,
  .client-card {
    padding: 28px;
  }

  h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .client-card__head,
  .sub-card-grid {
    grid-template-columns: 1fr;
  }

  .client-card__head span {
    margin-bottom: 0;
  }

  .sub-card {
    min-height: 220px;
  }

  h1 span,
  h3 span {
    white-space: normal;
  }
}
