:root {
  --chalk: #f7f4ef;
  --ivory: #f3efe6;
  --sand: #d8cbb8;
  --teal: #5ba8a0;
  --teal-deep: #3d857e;
  --navy: #1b2a4a;
  --navy-soft: #2a3d66;
  --coral: #e07a5f;
  --text: #243044;
  --muted: #5c6a7e;
  --white: #ffffff;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow-bloom: 0 14px 36px rgba(27, 42, 74, 0.14);
  --font-serif: "Noto Serif TC", "Songti TC", serif;
  --font-sans: "Noto Sans TC", "PingFang TC", sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(91, 168, 160, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(224, 122, 95, 0.08), transparent 45%),
    linear-gradient(180deg, var(--chalk) 0%, #f0ebe3 40%, var(--chalk) 100%);
  line-height: 1.7;
  min-height: 100vh;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease;
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}

.btn--teal {
  background: var(--teal);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(27, 42, 74, 0.35);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-bloom);
  color: var(--white);
}

.btn--ghost:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.55);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(247, 244, 239, 0.78);
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
}

.site-header__inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
}

.site-header__mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 2px solid var(--teal);
  box-shadow: inset 0 0 0 3px var(--chalk), 0 0 0 2px var(--coral);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-header__nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-header__nav a:hover {
  color: var(--teal-deep);
}

.site-header__cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
}

.site-header__cta:hover {
  background: var(--navy-soft);
  color: var(--white) !important;
}

.site-header__toggle {
  display: none;
  background: none;
  border: 0;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.5rem;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 920px) {
  .site-header__toggle { display: block; }
  .site-header__nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(247, 244, 239, 0.97);
    border-bottom: 1px solid rgba(27, 42, 74, 0.1);
    display: none;
  }
  .site-header__nav.is-open { display: flex; }
  .site-header__nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(27, 42, 74, 0.06);
  }
  .site-header__cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  background: var(--navy);
  color: rgba(247, 244, 239, 0.88);
}

.site-footer__coral {
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--sand), var(--teal));
}

.site-footer a {
  color: rgba(247, 244, 239, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--sand);
}

.site-footer__inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.5rem 0 2rem;
}

.site-footer__heading {
  color: var(--chalk);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  max-width: 22rem;
}

.site-footer__cta {
  margin-bottom: 3rem;
  max-width: 36rem;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer__cols h3 {
  color: var(--sand);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.site-footer__cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__cols li {
  margin-bottom: 0.45rem;
}

.site-footer__address {
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-footer__social {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.85rem;
  opacity: 0.7;
}

.site-footer__copy {
  font-size: 0.82rem;
  opacity: 0.55;
  border-top: 1px solid rgba(247, 244, 239, 0.12);
  padding-top: 1.25rem;
}

@media (max-width: 800px) {
  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  max-width: 640px;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  background: var(--ivory);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-bloom);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.cookie-banner__inner p {
  margin: 0;
  font-size: 0.92rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--sand {
  background: rgba(216, 203, 184, 0.28);
}

.section--ivory {
  background: var(--ivory);
}

.section-cta {
  margin-top: 2rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero--compact {
  padding-bottom: 1rem;
}

.page-hero--split .page-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.page-hero__media {
  margin: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1.5px solid rgba(27, 42, 74, 0.2);
  box-shadow: 18px 18px 0 rgba(91, 168, 160, 0.18);
}

.page-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 860px) {
  .page-hero--split .page-hero__grid {
    grid-template-columns: 1fr;
  }
  .page-hero__media {
    order: -1;
    box-shadow: 10px 10px 0 rgba(91, 168, 160, 0.18);
  }
}

/* Home hero — asymmetrical magazine */
.home-hero {
  padding: 2.5rem 0 1rem;
}

.home-hero__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem 2rem;
  align-items: end;
  min-height: calc(100vh - var(--header-h) - 3rem);
}

.home-hero__brand {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 1rem;
  max-width: 12ch;
}

.home-hero__kicker {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.home-hero__stack {
  display: grid;
  grid-template-rows: 1.3fr 0.7fr;
  gap: 1rem;
  height: 100%;
  min-height: 520px;
}

.home-hero__stack figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid rgba(27, 42, 74, 0.18);
  position: relative;
}

.home-hero__stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

.home-hero__stack figure:first-child {
  transform: translateX(8%);
}

.home-hero__stack figure:last-child {
  width: 78%;
  justify-self: start;
}

@media (max-width: 900px) {
  .home-hero__layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .home-hero__stack {
    min-height: 380px;
  }
  .home-hero__stack figure:first-child {
    transform: none;
  }
  .home-hero__stack figure:last-child {
    width: 100%;
  }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.35rem;
}

.card {
  background: var(--ivory);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

.card__img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.card__body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.card__body h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.card__body p {
  font-size: 0.94rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.card__link {
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}

/* Feature / flagship band */
.flagship-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.flagship-band__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid rgba(27, 42, 74, 0.2);
}

.flagship-band__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

@media (max-width: 800px) {
  .flagship-band {
    grid-template-columns: 1fr;
  }
}

.quote-list {
  display: grid;
  gap: 1.5rem;
}

.quote-item {
  padding: 1.35rem 1.5rem;
  border-left: 3px solid var(--coral);
  background: rgba(255, 255, 255, 0.45);
}

.quote-item p {
  font-size: 1.02rem;
  margin-bottom: 0.75rem;
}

.quote-item cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
}

.asymmetric-note {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 2rem;
  padding: 2rem 0;
}

@media (max-width: 700px) {
  .asymmetric-note {
    grid-template-columns: 1fr;
  }
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.detail-card {
  background: var(--ivory);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: fit-content;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

.detail-card p {
  font-size: 0.94rem;
}

.split-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.split-lists ul {
  padding-left: 1.1rem;
}

.process-list {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 700px) {
  .detail-grid,
  .split-lists,
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(27, 42, 74, 0.12);
}

.rate-table th {
  font-family: var(--font-serif);
  color: var(--navy);
  background: rgba(91, 168, 160, 0.12);
}

.rate-factors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.rate-factors div {
  padding: 1rem;
  border-top: 2px solid var(--teal);
}

/* Cohorts */
.cohort-list {
  display: grid;
  gap: 1.25rem;
}

.cohort-item {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: var(--ivory);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  align-items: start;
}

.cohort-item h3 {
  margin-bottom: 0.35rem;
}

.cohort-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 750px) {
  .cohort-item {
    grid-template-columns: 1fr;
  }
}

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}

.contact-info dt {
  font-weight: 600;
  color: var(--navy);
  margin-top: 1rem;
}

.contact-info dd {
  margin: 0.25rem 0 0;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid rgba(27, 42, 74, 0.28);
  border-radius: 10px;
  font: inherit;
  background: var(--white);
  color: var(--text);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: var(--coral);
}

.form-error {
  color: #b54733;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: none;
}

.form-group.is-invalid .form-error {
  display: block;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(91, 168, 160, 0.18);
  border: 1px solid var(--teal);
  color: var(--navy);
}

.form-status.is-error {
  display: block;
  background: rgba(224, 122, 95, 0.15);
  border: 1px solid var(--coral);
  color: #8c3a28;
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Legal */
.legal-content {
  max-width: 42rem;
  padding-bottom: 3rem;
}

.legal-content h2 {
  margin-top: 2rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0;
}

.legal-content th,
.legal-content td {
  border: 1px solid rgba(27, 42, 74, 0.15);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: rgba(91, 168, 160, 0.12);
}

/* Blog / reviews stories */
.story-block {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: var(--ivory);
  border: 1.5px solid rgba(27, 42, 74, 0.2);
  border-radius: var(--radius);
}

.story-block + .story-block {
  margin-top: 1.5rem;
}

.post-article__figure {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid rgba(27, 42, 74, 0.15);
}

.post-article__body {
  max-width: 42rem;
  padding-bottom: 3rem;
}

.post-article__back {
  margin-top: 2.5rem;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-page h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

/* Motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 0.15s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 0.25s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 0.35s; }
[data-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
  html { scroll-behavior: auto; }
}
