:root {
  --ink: #322821;
  --muted: #75675d;
  --cream: #f8f3ee;
  --paper: #fffdf9;
  --rose: #d8aea6;
  --rose-light: #f0ddd8;
  --green: #315d4b;
  --green-dark: #234537;
  --gold: #c69a5e;
  --line: rgba(50, 40, 33, 0.14);
  --shadow: 0 24px 60px rgba(50, 40, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
}

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

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

main,
.site-header,
.hero,
.section,
footer {
  min-width: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--green-dark);
  border-radius: 999px;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px 16px;
  background: rgba(255, 253, 249, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(50, 40, 33, 0.07);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--green);
  border-radius: 50%;
  place-items: center;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  transition: color 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--green);
}

.site-header > .button {
  justify-self: end;
}

.button {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  color: white;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 24px rgba(49, 93, 75, 0.2);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(49, 93, 75, 0.26);
}

.button-small {
  padding: 9px 17px;
  font-size: 13px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 74px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 98px);
  margin: 0 auto;
  padding: 72px 0 92px;
  overflow: clip;
}

.hero-copy,
.intro-grid > *,
.certifications > *,
.cert-item > div {
  min-width: 0;
}

.hero::before {
  position: absolute;
  top: 20%;
  left: -18%;
  z-index: -1;
  width: 420px;
  height: 420px;
  content: "";
  background: radial-gradient(circle, rgba(240, 221, 216, 0.86), rgba(240, 221, 216, 0));
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

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

h1,
h2 {
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-weight: 600;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: clamp(48px, 5.8vw, 82px);
  line-height: 1.14;
}

h2 {
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.3;
}

.hero-text {
  max-width: 490px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}

.text-link {
  display: inline-block;
  padding-bottom: 3px;
  color: var(--green);
  border-bottom: 1px solid rgba(49, 93, 75, 0.38);
  font-size: 14px;
  font-weight: 700;
}

.hero-notes {
  display: flex;
  gap: 32px;
  margin: 54px 0 0;
}

.hero-notes div {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: center;
}

.hero-notes dt {
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 12px;
}

.hero-notes dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.portrait-wrap {
  position: relative;
  justify-self: end;
  width: min(100%, 560px);
  padding: 34px 42px 50px;
}

.portrait-card {
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  background: var(--rose-light);
  border: 10px solid rgba(255, 255, 255, 0.68);
  border-radius: 48% 48% 34% 34% / 38% 38% 24% 24%;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 42%;
}

.portrait-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(198, 154, 94, 0.62);
  border-radius: 50%;
}

.orbit-one {
  inset: 2% 5% 2% 0;
  transform: rotate(-10deg);
}

.orbit-two {
  inset: 7% 0 0 9%;
  border-color: rgba(216, 174, 166, 0.8);
  transform: rotate(9deg);
}

.portrait-label {
  position: absolute;
  right: 0;
  bottom: 8%;
  z-index: 3;
  display: flex;
  gap: 12px;
  align-items: center;
  width: 250px;
  padding: 17px 20px;
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid white;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(50, 40, 33, 0.15);
  backdrop-filter: blur(14px);
}

.portrait-label span {
  color: var(--gold);
  font-size: 25px;
}

.portrait-label p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Noto Sans TC", sans-serif;
  font-size: 12px;
  line-height: 1.55;
}

.portrait-label strong {
  color: var(--ink);
  font-family: "Noto Sans TC", sans-serif;
  font-size: 13px;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 118px 0;
}

.section-kicker {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 46px;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.section-kicker .line {
  width: 80px;
  height: 1px;
  background: var(--gold);
}

.intro {
  border-top: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 110px;
}

.intro-grid h2 {
  margin: 0;
}

.prose {
  color: var(--muted);
  font-size: 16px;
}

.prose p + p {
  margin-top: 20px;
}

.values {
  width: 100%;
  padding-right: max(24px, calc((100% - 1180px) / 2));
  padding-left: max(24px, calc((100% - 1180px) / 2));
  background: var(--cream);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 50px;
}

.section-heading h2 {
  margin: 0;
}

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

.value-card {
  position: relative;
  min-height: 330px;
  padding: 34px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(50, 40, 33, 0.08);
  border-radius: 26px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.value-card::after {
  position: absolute;
  right: -50px;
  bottom: -80px;
  width: 180px;
  height: 180px;
  content: "";
  background: var(--rose-light);
  border-radius: 50%;
  opacity: 0.5;
}

.card-number {
  position: absolute;
  top: 30px;
  right: 30px;
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 13px;
}

.card-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 56px;
  color: var(--green);
  background: #edf3ef;
  border-radius: 50%;
  font-size: 25px;
  place-items: center;
}

.value-card h3 {
  margin-bottom: 12px;
  font-family: "Noto Serif TC", serif;
  font-size: 23px;
}

.value-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.certifications {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  align-items: center;
}

.cert-copy > p:not(.eyebrow) {
  max-width: 440px;
  color: var(--muted);
}

.cert-list {
  display: grid;
  gap: 16px;
}

.cert-item {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 30px;
  align-items: center;
  padding: 28px;
  background: var(--cream);
  border: 1px solid rgba(50, 40, 33, 0.08);
  border-radius: 22px;
}

.cert-item img {
  width: 128px;
  height: auto;
}

.cert-item h3 {
  margin-bottom: 5px;
  color: var(--green-dark);
  font-family: Georgia, "Noto Sans TC", sans-serif;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.cert-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.cert-item .cert-label {
  color: var(--ink);
  font-weight: 700;
}

.cta {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin-bottom: 40px;
  padding: 90px 30px;
  overflow: hidden;
  color: white;
  text-align: center;
  background: var(--green-dark);
  border-radius: 36px;
}

.cta::before,
.cta::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.cta::before {
  top: -180px;
  left: -100px;
  width: 420px;
  height: 420px;
}

.cta::after {
  right: -80px;
  bottom: -240px;
  width: 500px;
  height: 500px;
}

.cta .eyebrow {
  color: #d4c19e;
}

.cta h2 {
  margin-bottom: 18px;
}

.cta > p:not(.eyebrow) {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.68);
}

.button-light {
  position: relative;
  z-index: 2;
  color: var(--green-dark);
  background: white;
  border-color: white;
  box-shadow: none;
}

.button-light:hover,
.button-light:focus-visible {
  color: var(--green-dark);
  background: var(--rose-light);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 46px;
  color: var(--muted);
  font-size: 11px;
}

footer p {
  margin: 0;
  text-align: center;
}

footer p:last-child {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
    padding-top: 70px;
  }

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

  .portrait-wrap {
    justify-self: center;
    width: min(86vw, 560px);
  }

  .intro-grid,
  .certifications {
    grid-template-columns: 1fr;
    gap: 50px;
  }

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

  .value-card {
    min-height: 280px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer .brand {
    justify-self: center;
  }

  footer p:last-child {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .site-header {
    width: calc(100% - 24px);
    margin-top: 10px;
    padding: 10px 12px;
  }

  .brand {
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.14em;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .button-small {
    padding: 8px 14px;
  }

  .hero,
  .section,
  .cta,
  footer {
    width: calc(100% - 32px);
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(36px, 11.5vw, 44px);
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(31px, 9.5vw, 36px);
    overflow-wrap: anywhere;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-notes {
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .portrait-wrap {
    width: 100%;
    padding: 16px 18px 44px;
  }

  .portrait-label {
    right: 2px;
    bottom: 3%;
    width: min(228px, calc(100% - 36px));
  }

  .section {
    padding: 82px 0;
  }

  .values {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .cert-item {
    grid-template-columns: 92px 1fr;
    gap: 18px;
    padding: 20px;
  }

  .cert-item img {
    width: 92px;
  }

  .cert-item h3 {
    font-size: 16px;
  }

  .cta {
    padding: 70px 20px;
    border-radius: 26px;
  }
}

@media (max-width: 380px) {
  .hero,
  .section,
  .cta,
  footer {
    width: calc(100% - 24px);
  }

  .hero-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .cert-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .cert-item img {
    width: 72px;
  }

  .cta {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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