:root {
  --navy-950: #071a31;
  --navy-900: #0c2a4b;
  --navy-800: #153b63;
  --navy-700: #245679;
  --ivory: #f7f3ec;
  --ivory-2: #eee7db;
  --paper: #fffdfa;
  --white: #ffffff;
  --gold: #c79b45;
  --gold-soft: #ead8b4;
  --gold-pale: #f5ecdc;
  --ink: #132638;
  --muted: #687887;
  --line: #ded8cd;
  --success: #176d61;
  --shadow: 0 24px 70px rgba(7, 26, 49, .13);
  --shadow-soft: 0 12px 32px rgba(7, 26, 49, .08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 26, 49, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 6px 10px;
  background: var(--white);
  border-radius: 13px;
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  text-decoration: none;
}
.logo-link img { width: 74px; height: 70px; object-fit: contain; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  color: var(--white);
  background: rgba(255,255,255,.06);
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 99px;
}
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  padding: 11px 16px;
  border-radius: 999px;
  color: rgba(255,255,255,.76);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: .2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.11); }
.site-nav .nav-cta { color: var(--navy-950); background: var(--gold-soft); }
.site-nav .nav-cta:hover { color: var(--navy-950); background: var(--white); }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(234, 216, 180, .30), transparent 25%),
    radial-gradient(circle at 74% 22%, rgba(255,255,255,.10), transparent 38%),
    linear-gradient(125deg, var(--navy-950) 0%, var(--navy-900) 52%, var(--navy-700) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -150px;
  top: -190px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(255,255,255,.026), 0 0 0 120px rgba(255,255,255,.018);
}
.hero::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -125px;
  height: 170px;
  background: var(--ivory);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.home-hero .hero-inner {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 70px;
  padding: 72px 0 145px;
  position: relative;
  z-index: 2;
}
.page-hero .hero-inner {
  min-height: 395px;
  padding: 74px 0 125px;
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: "Noto Serif TC", "PMingLiU", serif; }
h1 {
  margin: 22px 0 22px;
  font-size: clamp(42px, 6.2vw, 72px);
  line-height: 1.18;
  letter-spacing: .045em;
  font-weight: 900;
}
.page-hero h1 { font-size: clamp(38px, 5vw, 58px); }
.hero-lead {
  max-width: 690px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { color: var(--navy-950); background: var(--gold-soft); box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.btn-gold:hover { background: var(--white); }
.btn-light { color: var(--white); border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.07); }
.btn-light:hover { background: rgba(255,255,255,.14); }
.btn-navy { color: var(--white); background: var(--navy-900); }
.btn-navy:hover { background: var(--navy-800); }
.btn-outline { color: var(--navy-900); border-color: var(--navy-900); background: transparent; }
.btn-outline:hover { color: var(--white); background: var(--navy-900); }

.hero-logo-card {
  justify-self: end;
  width: min(390px, 100%);
  padding: 28px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(234,216,180,.75);
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
  transform: rotate(1.4deg);
}
.hero-logo-card img { width: min(290px, 100%); margin: auto; }
.hero-logo-card p {
  margin: 18px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--ivory-2);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .05em;
}

.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.section-white { background: var(--paper); }
.section-head { max-width: 700px; margin-bottom: 36px; }
.section-kicker { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.section-title { margin: 10px 0 13px; font-size: clamp(30px, 4vw, 45px); line-height: 1.3; letter-spacing: .035em; }
.section-desc { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }

.trust-strip { position: relative; z-index: 4; margin-top: -58px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border: 1px solid rgba(199,155,69,.28);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.trust-item { padding: 25px 28px; text-align: center; }
.trust-item + .trust-item { border-left: 1px solid var(--ivory-2); }
.trust-item strong { display: block; color: var(--navy-900); font-family: "Noto Serif TC", "PMingLiU", serif; font-size: 22px; letter-spacing: .04em; }
.trust-item span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card {
  min-height: 270px;
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.info-card .number { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.info-card h3 { margin: 24px 0 12px; color: var(--navy-900); font-size: 25px; }
.info-card p { margin: 0; color: var(--muted); line-height: 1.8; }
.info-card a { display: inline-flex; margin-top: 22px; color: var(--navy-800); font-weight: 800; text-decoration: none; }
.info-card a::after { content: "→"; margin-left: 8px; }

.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}
.feature-visual {
  position: relative;
  min-height: 430px;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,0)),
    linear-gradient(135deg, var(--navy-950), var(--navy-700));
  box-shadow: var(--shadow);
}
.feature-visual::before,
.feature-visual::after {
  content: "";
  position: absolute;
  bottom: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-bottom: 0;
}
.feature-visual::before { left: 11%; width: 31%; height: 60%; }
.feature-visual::after { right: 11%; width: 38%; height: 77%; }
.feature-window {
  position: absolute;
  left: 17%;
  right: 17%;
  bottom: 17%;
  padding: 25px;
  color: var(--ink);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(234,216,180,.8);
  border-radius: 20px;
  box-shadow: 0 22px 55px rgba(0,0,0,.24);
}
.feature-window small { color: var(--muted); }
.feature-window strong { display: block; margin-top: 8px; color: var(--navy-900); font-size: 35px; }
.feature-window .bar { height: 8px; margin-top: 20px; border-radius: 99px; background: linear-gradient(90deg, var(--navy-800) 0 72%, var(--gold-soft) 72%); }
.check-list { display: grid; gap: 15px; margin: 27px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; color: var(--muted); line-height: 1.75; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 900; }

.brand-band { color: var(--white); background: linear-gradient(125deg, var(--navy-950), var(--navy-800)); }
.brand-band .section-desc { color: rgba(255,255,255,.72); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.value-item { padding: 25px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.06); }
.value-item strong { display: block; color: var(--gold-soft); font-family: "Noto Serif TC", "PMingLiU", serif; font-size: 22px; }
.value-item p { margin: 10px 0 0; color: rgba(255,255,255,.7); line-height: 1.75; }

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 44px;
  color: var(--white);
  background: linear-gradient(125deg, var(--navy-950), var(--navy-800));
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.cta-box h2 { margin: 0 0 10px; font-size: clamp(27px, 4vw, 40px); }
.cta-box p { margin: 0; color: rgba(255,255,255,.72); line-height: 1.75; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }

/* Mortgage */
.calculator-wrap { position: relative; z-index: 5; margin-top: -78px; padding-bottom: 90px; }
.calculator-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  background: var(--paper);
  border: 1px solid rgba(199,155,69,.30);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.calc-inputs { padding: 42px; border-right: 1px solid var(--ivory-2); }
.calc-results { padding: 42px; background: linear-gradient(145deg, #f9f5ed, #fffdfa); }
.calc-kicker { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.calc-title { margin: 10px 0 8px; color: var(--navy-900); font-size: 31px; }
.calc-sub { margin: 0 0 28px; color: var(--muted); line-height: 1.7; }
.field-grid { display: grid; gap: 18px; }
.field label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--ink); font-weight: 800; font-size: 14px; }
.field label span { color: var(--muted); font-size: 12px; font-weight: 500; }
.input-box { position: relative; }
.input-box input,
.input-box select {
  width: 100%;
  height: 56px;
  padding: 0 62px 0 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--white);
  font-size: 18px;
  font-weight: 800;
  outline: none;
  transition: .2s ease;
}
.input-box select { padding-right: 17px; }
.input-box input:focus,
.input-box select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(199,155,69,.12); }
.input-box .suffix { position: absolute; top: 50%; right: 17px; transform: translateY(-50%); color: var(--muted); font-size: 13px; font-weight: 700; pointer-events: none; }
.live-note { margin: 22px 0 0; padding: 15px 16px; border-left: 3px solid var(--gold); border-radius: 8px; color: var(--muted); background: var(--gold-pale); font-size: 13px; line-height: 1.7; }
.result-label { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.monthly-payment { margin: 11px 0 25px; color: var(--navy-900); font-size: clamp(46px, 6vw, 68px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.monthly-payment small { margin-left: 8px; color: var(--muted); font-size: 16px; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.result-box { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.result-box span { display: block; color: var(--muted); font-size: 12px; }
.result-box strong { display: block; margin-top: 8px; color: var(--navy-900); font-size: 21px; font-variant-numeric: tabular-nums; }
.ratio { margin-top: 22px; }
.ratio-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.ratio-bar { display: flex; height: 11px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: var(--ivory-2); }
.ratio-principal { width: 75%; background: var(--navy-800); }
.ratio-interest { width: 25%; background: var(--gold); }
.ratio-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 11px; color: var(--muted); font-size: 12px; }
.ratio-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--navy-800); }
.ratio-legend span:last-child::before { background: var(--gold); }
.disclaimer { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.guide-card strong { color: var(--navy-900); font-family: "Noto Serif TC", "PMingLiU", serif; font-size: 21px; }
.guide-card p { margin: 10px 0 0; color: var(--muted); line-height: 1.75; }

/* About */
.about-intro {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 58px;
  align-items: center;
}
.about-logo-panel { padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-soft); }
.about-logo-panel img { width: min(320px, 100%); margin: auto; }
.about-copy h2 { margin: 9px 0 18px; font-size: clamp(31px, 4vw, 45px); }
.about-copy p { color: var(--muted); line-height: 1.95; }
.area-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.area-list span { padding: 9px 13px; border: 1px solid var(--gold-soft); border-radius: 999px; color: var(--navy-800); background: var(--gold-pale); font-size: 13px; font-weight: 800; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-item { padding: 25px; border-top: 3px solid var(--gold); background: var(--paper); box-shadow: var(--shadow-soft); }
.process-item span { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.process-item h3 { margin: 17px 0 10px; color: var(--navy-900); font-size: 22px; }
.process-item p { margin: 0; color: var(--muted); line-height: 1.75; }

.site-footer { padding: 52px 0 24px; color: rgba(255,255,255,.72); background: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { width: 92px; padding: 7px; border-radius: 12px; background: var(--white); }
.footer-brand strong { display: block; color: var(--white); font-family: "Noto Serif TC", "PMingLiU", serif; font-size: 20px; }
.footer-brand span { display: block; margin-top: 8px; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.48); font-size: 12px; line-height: 1.7; }

@media (max-width: 900px) {
  .home-hero .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 62px; }
  .hero-logo-card { justify-self: start; width: min(320px, 84%); }
  .card-grid, .value-grid, .guide-grid { grid-template-columns: 1fr 1fr; }
  .split-feature, .about-intro { grid-template-columns: 1fr; }
  .calculator-card { grid-template-columns: 1fr; }
  .calc-inputs { border-right: 0; border-bottom: 1px solid var(--ivory-2); }
  .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header-inner { min-height: 76px; }
  .logo-link { padding: 5px 8px; }
  .logo-link img { width: 58px; height: 55px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: var(--navy-950);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { text-align: center; }
  .home-hero .hero-inner { min-height: auto; padding: 56px 0 135px; }
  .page-hero .hero-inner { min-height: 330px; padding: 56px 0 115px; }
  h1 { font-size: clamp(39px, 13vw, 58px); }
  .hero-logo-card { width: min(300px, 92%); padding: 22px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--ivory-2); }
  .section { padding: 70px 0; }
  .card-grid, .value-grid, .guide-grid, .process-grid { grid-template-columns: 1fr; }
  .split-feature { gap: 30px; }
  .feature-visual { min-height: 355px; }
  .cta-box { align-items: flex-start; flex-direction: column; padding: 32px 26px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .calculator-wrap { margin-top: -62px; }
  .calc-inputs, .calc-results { padding: 28px 20px; }
  .result-grid { grid-template-columns: 1fr; }
  .monthly-payment { font-size: clamp(42px, 13vw, 58px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Grace-period mortgage calculator */
.calculator-card-grace .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.calc-message {
  min-height: 1.5em;
  margin: 16px 0 0;
  color: #a33f34;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
.live-note strong { color: var(--navy-900); }
.grace-highlight {
  margin: -4px 0 22px;
  padding: 20px 22px;
  border: 1px solid rgba(199,155,69,.42);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold-pale), #fffaf1);
  box-shadow: 0 12px 30px rgba(7,26,49,.06);
}
.grace-highlight[hidden],
.grace-comparison[hidden] { display: none !important; }
.grace-highlight div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.grace-highlight span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.grace-highlight strong {
  color: var(--navy-900);
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}
.grace-highlight p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.grace-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.grace-comparison > div {
  padding: 15px 17px;
  border: 1px dashed var(--gold);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}
.grace-comparison span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.grace-comparison strong {
  display: block;
  margin-top: 7px;
  color: var(--navy-900);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

/* About brand story */
.about-hero::before { right: -90px; top: -230px; }
.story-section {
  position: relative;
  padding-bottom: 150px;
  background:
    radial-gradient(circle at 80% 18%, rgba(199,155,69,.12), transparent 23%),
    var(--ivory);
}
.story-opening { max-width: 890px; text-align: center; }
.story-opening .section-title { margin-inline: auto; }
.name-meaning {
  display: grid;
  gap: 20px;
  margin-top: 45px;
  text-align: left;
}
.name-meaning p {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  margin: 0;
  padding: 27px 32px;
  border: 1px solid rgba(199,155,69,.35);
  border-radius: 22px;
  background: rgba(255,253,250,.9);
  box-shadow: var(--shadow-soft);
}
.name-meaning strong {
  color: var(--gold);
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: 52px;
  line-height: 1;
}
.name-meaning span {
  color: var(--navy-900);
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(18px, 2.3vw, 25px);
  line-height: 1.8;
  letter-spacing: .045em;
}
.story-logo-section {
  position: relative;
  z-index: 4;
  margin-top: -105px;
  margin-bottom: -105px;
}
.story-logo-frame {
  position: relative;
  width: min(420px, calc(100vw - 56px));
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  padding: 38px;
  overflow: hidden;
  border: 1px solid rgba(199,155,69,.45);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 35px 90px rgba(7,26,49,.19);
}
.story-logo-frame::before,
.story-logo-frame::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(199,155,69,.25);
  border-radius: 50%;
}
.story-logo-frame::after { inset: 28px; border-color: rgba(7,26,49,.08); }
.story-logo-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,216,180,.24), transparent 68%);
}
.story-logo-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.origin-section { padding-top: 210px; }
.origin-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 55px;
  align-items: start;
  max-width: 1040px;
}
.origin-side {
  position: sticky;
  top: 130px;
  padding-top: 8px;
  border-top: 1px solid var(--gold);
}
.origin-index {
  display: block;
  margin-top: 18px;
  color: var(--gold);
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: 58px;
  line-height: 1;
}
.origin-side p {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.65;
  letter-spacing: .19em;
}
.origin-copy .section-title { max-width: 780px; }
.story-lines {
  display: grid;
  gap: 8px;
  margin: 34px 0 0;
  color: var(--ink);
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.9;
  letter-spacing: .04em;
}
.story-lines span:first-child {
  color: var(--navy-900);
  font-size: 1.3em;
  font-weight: 900;
}

@media (max-width: 900px) {
  .calculator-card-grace .field-grid { grid-template-columns: 1fr; }
  .origin-grid { grid-template-columns: 120px 1fr; gap: 34px; }
}

@media (max-width: 720px) {
  .grace-highlight div { align-items: flex-start; flex-direction: column; gap: 7px; }
  .grace-comparison { grid-template-columns: 1fr; }
  .story-section { padding-bottom: 120px; }
  .name-meaning p { grid-template-columns: 58px 1fr; padding: 22px 18px; }
  .name-meaning strong { font-size: 42px; }
  .name-meaning span { font-size: 17px; }
  .story-logo-section { margin-top: -78px; margin-bottom: -78px; }
  .story-logo-frame { padding: 27px; }
  .origin-section { padding-top: 145px; }
  .origin-grid { grid-template-columns: 1fr; gap: 26px; }
  .origin-side { position: static; display: flex; align-items: flex-end; gap: 18px; }
  .origin-side p { margin: 0 0 2px; }
}

/* Explore A7 */
.a7-hero .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 68px;
  min-height: 650px;
  padding: 74px 0 150px;
}
.a7-hero h1 { max-width: 720px; }
.a7-map-card {
  position: relative;
  padding: 30px;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(234,216,180,.82);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0,0,0,.24);
}
.a7-map-card::after {
  content: "A7";
  position: absolute;
  right: -12px;
  bottom: -36px;
  color: rgba(199,155,69,.08);
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: 134px;
  font-weight: 900;
  line-height: 1;
}
.a7-map-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ivory-2);
}
.a7-map-head span { color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .17em; }
.a7-map-head strong { color: var(--navy-900); font-family: "Noto Serif TC", "PMingLiU", serif; font-size: 23px; }
.rail-line {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 38px 0 34px;
}
.rail-line::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 11%;
  right: 11%;
  height: 2px;
  background: linear-gradient(90deg, var(--navy-700), var(--gold), var(--navy-700));
}
.rail-stop { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; text-align: center; }
.rail-stop span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--navy-700);
  border-radius: 50%;
  color: var(--navy-900);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
}
.rail-stop small { color: var(--muted); font-size: 11px; font-weight: 700; }
.rail-stop.is-current span {
  width: 52px;
  height: 52px;
  margin-top: -7px;
  border: 5px solid var(--gold-soft);
  color: var(--white);
  background: var(--navy-900);
  box-shadow: 0 8px 20px rgba(7,26,49,.24);
  font-size: 15px;
}
.rail-stop.is-current small { color: var(--navy-900); font-weight: 900; }
.a7-map-note { position: relative; z-index: 1; padding: 18px; border-left: 3px solid var(--gold); border-radius: 9px; background: var(--gold-pale); }
.a7-map-note span { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.a7-map-note p { margin: 7px 0 0; color: var(--navy-900); font-size: 13px; font-weight: 700; line-height: 1.75; }

.local-anchor-wrap { position: relative; z-index: 5; margin-top: -58px; }
.local-anchor-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(199,155,69,.28);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.local-anchor-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  color: var(--navy-900);
  font-weight: 900;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.local-anchor-bar a + a { border-left: 1px solid var(--ivory-2); }
.local-anchor-bar a:hover { color: var(--white); background: var(--navy-900); }
.local-anchor-bar span { color: var(--gold); font-size: 11px; letter-spacing: .1em; }
.a7-section-head { max-width: 790px; }

.area-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.area-card {
  position: relative;
  min-height: 375px;
  padding: 31px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 23px;
  box-shadow: var(--shadow-soft);
}
.area-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(199,155,69,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 27px rgba(199,155,69,.04);
}
.area-card-featured { background: linear-gradient(145deg, var(--navy-950), var(--navy-800)); border-color: transparent; }
.area-card-top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.area-index { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.area-tag { padding: 6px 10px; border-radius: 999px; color: var(--navy-800); background: var(--gold-pale); font-size: 11px; font-weight: 800; }
.area-card h3 { position: relative; z-index: 1; margin: 25px 0 13px; color: var(--navy-900); font-size: 28px; }
.area-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); line-height: 1.85; }
.area-card ul { position: relative; z-index: 1; display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.area-card li { position: relative; padding-left: 18px; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.6; }
.area-card li::before { content: ""; position: absolute; top: .62em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.area-card-featured h3 { color: var(--white); }
.area-card-featured p { color: rgba(255,255,255,.72); }
.area-card-featured li { color: rgba(255,255,255,.88); }
.text-link { position: relative; z-index: 2; display: inline-flex; margin-top: 20px; color: var(--navy-800); font-size: 13px; font-weight: 900; text-decoration: none; }
.text-link::after { content: "↗"; margin-left: 7px; }
.text-link:hover { color: var(--gold); }
.area-card-featured .text-link { color: var(--gold-soft); }

.mobility-layout { display: grid; grid-template-columns: 1fr .95fr; gap: 62px; align-items: center; }
.mobility-points { display: grid; gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
.mobility-points article { display: grid; grid-template-columns: 46px 1fr; gap: 17px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.mobility-points article > span { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.mobility-points strong { color: var(--navy-900); font-family: "Noto Serif TC", "PMingLiU", serif; font-size: 20px; }
.mobility-points p { margin: 7px 0 0; color: var(--muted); line-height: 1.75; }
.commute-card {
  position: relative;
  padding: 38px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-950), var(--navy-700));
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.commute-card::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255,255,255,.025);
}
.commute-label { position: relative; color: var(--gold-soft); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.commute-card h3 { position: relative; margin: 11px 0 32px; font-size: 29px; }
.commute-route { position: relative; display: grid; grid-template-columns: 1fr 32px 1fr 32px 1fr; align-items: center; gap: 4px; }
.commute-route > div { display: grid; align-content: center; min-height: 142px; padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 17px; background: rgba(255,255,255,.06); }
.commute-route > div.route-focus { border-color: var(--gold-soft); background: rgba(199,155,69,.15); }
.commute-route div span { color: var(--gold-soft); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.commute-route div strong { margin-top: 9px; font-family: "Noto Serif TC", "PMingLiU", serif; font-size: 16px; }
.commute-route div small { margin-top: 7px; color: rgba(255,255,255,.58); font-size: 10px; line-height: 1.5; }
.commute-route i { height: 1px; background: var(--gold-soft); }
.commute-card > p { position: relative; margin: 24px 0 0; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.75; }

.amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.amenity-card {
  position: relative;
  min-height: 330px;
  padding: 27px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.amenity-no { color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.amenity-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-top: 34px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  color: var(--gold);
  background: var(--gold-pale);
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: 20px;
  font-weight: 900;
}
.amenity-card h3 { margin: 22px 0 11px; color: var(--navy-900); font-size: 23px; }
.amenity-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.amenity-card .text-link { margin-top: 14px; }
.info-notice { display: grid; grid-template-columns: 130px 1fr; gap: 24px; margin-top: 28px; padding: 20px 24px; border-left: 3px solid var(--gold); border-radius: 10px; background: var(--gold-pale); }
.info-notice strong { color: var(--navy-900); font-family: "Noto Serif TC", "PMingLiU", serif; }
.info-notice p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.viewing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.viewing-grid article { min-height: 270px; padding: 25px 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.06); }
.viewing-grid span { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.viewing-grid h3 { margin: 40px 0 12px; color: var(--gold-soft); font-size: 21px; }
.viewing-grid p { margin: 0; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.75; }
.a7-process { margin-top: 34px; }
.a7-process .process-item { border-radius: 0 0 15px 15px; }
.a7-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 44px;
  padding: 42px;
  color: var(--white);
  background: linear-gradient(125deg, var(--navy-950), var(--navy-800));
  border-radius: 27px;
  box-shadow: var(--shadow);
}
.a7-final-cta > div:first-child > span { color: var(--gold-soft); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.a7-final-cta h2 { margin: 10px 0 9px; font-size: clamp(27px, 4vw, 39px); }
.a7-final-cta p { margin: 0; color: rgba(255,255,255,.7); line-height: 1.7; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 1040px) {
  .a7-hero .hero-inner { gap: 38px; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .viewing-grid { grid-template-columns: repeat(3, 1fr); }
  .commute-route { grid-template-columns: 1fr; gap: 8px; }
  .commute-route i { width: 1px; height: 18px; margin-inline: auto; }
  .commute-route > div { min-height: 104px; }
}

@media (max-width: 900px) {
  .a7-hero .hero-inner { grid-template-columns: 1fr; gap: 38px; padding-top: 62px; }
  .a7-map-card { width: min(620px, 100%); }
  .mobility-layout { grid-template-columns: 1fr; gap: 40px; }
  .area-grid { grid-template-columns: 1fr; }
  .area-card { min-height: auto; }
  .viewing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .a7-hero .hero-inner { min-height: auto; padding: 55px 0 135px; }
  .a7-map-card { padding: 22px 17px; }
  .a7-map-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .rail-line { margin: 32px 0; }
  .rail-stop small { font-size: 9px; }
  .local-anchor-wrap { margin-top: -48px; }
  .local-anchor-bar { grid-template-columns: repeat(2, 1fr); }
  .local-anchor-bar a { min-height: 62px; font-size: 13px; }
  .local-anchor-bar a:nth-child(3) { border-left: 0; }
  .local-anchor-bar a:nth-child(n+3) { border-top: 1px solid var(--ivory-2); }
  .amenity-grid, .viewing-grid { grid-template-columns: 1fr; }
  .amenity-card, .viewing-grid article { min-height: auto; }
  .info-notice { grid-template-columns: 1fr; gap: 8px; }
  .commute-card { padding: 29px 22px; }
  .a7-final-cta { align-items: flex-start; flex-direction: column; padding: 32px 25px; }
  .a7-final-cta .cta-actions { width: 100%; }
  .a7-final-cta .btn { flex: 1 1 100%; }
}
