/* Editorial coastal modernism — chalk, sea-glass, driftwood, navy, coral */
:root {
  --chalk: #f7f5f0;
  --ivory: #f3efe6;
  --sand: #e2d6c5;
  --teal: #5ba89a;
  --teal-deep: #3d8578;
  --navy: #1b2a4a;
  --navy-soft: #2a3d66;
  --coral: #e07a5f;
  --ink: #243044;
  --muted: #5c6b7a;
  --white: #ffffff;
  --line: rgba(27, 42, 74, 0.18);
  --shadow: 0 14px 36px rgba(27, 42, 74, 0.12);
  --radius: 14px;
  --radius-pill: 999px;
  --font-serif: "Noto Serif TC", "Songti TC", serif;
  --font-sans: "Noto Sans TC", "PingFang TC", sans-serif;
  --container: 1120px;
  --header-h: 72px;
  --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(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(91, 168, 154, 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%, #fbf9f5 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.2em;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); margin: 0 0 0.55em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, 720px);
}

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

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

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

/* Buttons */
.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: var(--line);
}

.btn--coral-outline {
  background: transparent;
  color: var(--chalk);
  border-color: var(--coral);
}

.btn--small {
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
}

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

.btn--ghost:hover,
.btn--coral-outline:hover {
  color: var(--chalk);
  background: rgba(224, 122, 95, 0.2);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid var(--coral);
  padding-bottom: 0.1em;
}

.text-link:hover { color: var(--teal-deep); }

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.site-header__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--navy) 50%, var(--teal) 50%);
  flex-shrink: 0;
}

.site-header__name {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}

.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 {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--white) !important;
}

.site-header__cta:hover {
  background: var(--navy-soft);
  box-shadow: var(--shadow);
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
}

@media (max-width: 960px) {
  .site-header__toggle { display: flex; }
  .site-header__nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.75rem;
    background: rgba(247, 245, 240, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.35s ease;
  }
  .site-header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-header__name { max-width: 62vw; font-size: 0.75rem; }
}

/* Hero */
.hero--split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - var(--header-h));
  gap: 0;
}

.hero__media {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
}

.hero__media.is-parallax img {
  transform: scale(1.12) translateY(var(--parallax-y, 0));
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  background:
    linear-gradient(160deg, rgba(243, 239, 230, 0.9), rgba(247, 245, 240, 0.4));
}

.hero__title span {
  display: block;
}

.hero__lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.stagger-lines span {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.9s var(--ease) forwards;
}

.stagger-lines span:nth-child(2) { animation-delay: 0.18s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero--split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__media { min-height: 52vw; max-height: 420px; }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section--sand { background: rgba(226, 214, 197, 0.35); }
.section--ivory { background: var(--ivory); }
.section--navy {
  background: var(--navy);
  color: var(--chalk);
}
.section--navy h2 { color: var(--chalk); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2.25rem;
  max-width: 36rem;
}

.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

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

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--coral);
}

.layered-frame {
  position: relative;
  margin: 0;
}

.layered-frame::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1rem -1rem 1.1rem;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  opacity: 0.35;
  z-index: 0;
}

.layered-frame img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
}

.magazine-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.magazine-row__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.magazine-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

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

.evidence-block {
  display: grid;
  gap: 1.5rem;
  max-width: 760px;
}

.evidence-block blockquote {
  margin: 0;
  padding: 1.75rem 1.75rem 1.75rem 1.5rem;
  border-left: 3px solid var(--coral);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
}

.evidence-block footer {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--muted);
}

.cta-band {
  text-align: center;
}

.cta-band p {
  color: rgba(247, 245, 240, 0.78);
  max-width: 34rem;
  margin-inline: auto;
}

.section-cta {
  text-align: center;
  padding: 3rem 0 4rem;
}

/* Cards — soft ivory, navy outline, paper grain */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card-grid--services {
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

.card {
  background:
    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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"),
    var(--ivory);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card--horizontal {
  display: grid;
  grid-template-columns: 280px 1fr;
}

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

.card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card--horizontal .card__img {
  height: 100%;
  min-height: 200px;
}

.card__body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.card__body h2,
.card__body h3 {
  margin-top: 0.2rem;
}

.card__body a { text-decoration: none; color: inherit; }
.card__body a:hover { color: var(--teal-deep); }

.card__meta {
  font-size: 0.9rem;
  color: var(--teal-deep);
  font-weight: 600;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(91, 168, 154, 0.2);
  color: var(--navy);
  font-weight: 700;
}

/* Page heroes */
.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 1rem;
}

.page-hero--split .page-hero__grid,
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.page-hero__grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--line);
}

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

.page-article {
  padding: 3rem 0 4rem;
}

.page-article__header { margin-bottom: 2rem; }

.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.25rem 0;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--ivory); }

.prose-wide { max-width: 920px; }

/* Service / post detail */
.service-detail__hero {
  padding: 2.5rem 0 1rem;
  background: linear-gradient(180deg, var(--ivory), transparent);
}

.service-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.service-detail__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--navy);
}

.service-detail__price {
  font-weight: 600;
  color: var(--teal-deep);
}

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

.post-detail__hero { padding-top: 2.5rem; }
.post-detail__meta { color: var(--muted); font-size: 0.92rem; }
.post-detail__cover {
  margin: 1.75rem auto 0;
  width: min(100% - 2.5rem, 920px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--line);
}
.post-detail__cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.post-detail__back {
  padding: 2rem 0 4rem;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-list__item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.post-list__thumb {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--line);
}

.post-list__thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.post-list__meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

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

/* Pricing / reviews / cohorts / contact / about */
.pricing-layout {
  display: grid;
  gap: 1.25rem;
  max-width: 820px;
}

.pricing-block {
  background: var(--ivory);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}

.pricing-block--flagship {
  border-width: 2px;
  background:
    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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E"),
    #efe9dc;
}

.pricing-block__price {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--teal-deep);
  font-weight: 600;
}

.pricing-note {
  margin-top: 1rem;
  padding: 1.25rem 0;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.review-card {
  margin: 0;
  padding: 1.5rem;
  background: var(--ivory);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  font-size: 1rem;
}

.review-card--short { grid-row: span 1; }

.review-card footer {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.story-block {
  display: grid;
  gap: 2.5rem;
  max-width: 760px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.team-card {
  background: var(--ivory);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.team-card h3,
.team-card p,
.team-card__role {
  padding-inline: 1rem;
}

.team-card h3 { margin-top: 1rem; }
.team-card__role {
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.4rem;
}

.team-card p:last-child { padding-bottom: 1.25rem; }

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

.table-wrap {
  overflow-x: auto;
  margin-bottom: 3rem;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  background: var(--ivory);
}

.cohort-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 640px;
}

.cohort-table th,
.cohort-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.cohort-table th {
  background: var(--navy);
  color: var(--chalk);
  font-weight: 600;
}

.process-list {
  padding-left: 1.2rem;
  margin: 1rem 0 1.5rem;
}

.process-list li { margin-bottom: 0.5rem; }

.section-inner { margin-top: 1rem; }

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

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

.contact-details address {
  font-style: normal;
}

.contact-form {
  background: var(--ivory);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form-field {
  margin-bottom: 1.1rem;
}

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.form-error {
  color: #a33b2a;
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 500;
}

.form-status.is-success {
  background: rgba(91, 168, 154, 0.2);
  color: var(--navy);
}

.form-status.is-error {
  background: rgba(224, 122, 95, 0.2);
  color: #8a3a28;
}

.error-page {
  padding: clamp(4rem, 12vw, 8rem) 0;
  text-align: center;
}

.error-page .text-link {
  display: inline-block;
  margin-left: 1rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(247, 245, 240, 0.86);
  margin-top: 2rem;
}

.site-footer__accent {
  height: 3px;
  background: var(--coral);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 2rem;
  padding: 3.25rem 0 2rem;
}

.site-footer__title {
  font-family: var(--font-serif);
  color: var(--chalk);
  font-size: 1.45rem;
}

.site-footer h3 {
  color: var(--sand);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

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

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

.site-footer address {
  font-style: normal;
  font-size: 0.92rem;
}

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

.site-footer__social a {
  opacity: 0.7;
}

.site-footer__social a:hover { opacity: 1; color: var(--sand); }

.site-footer__bottom {
  border-top: 1px solid rgba(247, 245, 240, 0.12);
  padding: 1rem 0 1.5rem;
  font-size: 0.85rem;
  color: rgba(247, 245, 240, 0.55);
}

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

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 200;
  max-width: 640px;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.2rem 1.35rem;
  background: var(--ivory);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-banner__text {
  flex: 1 1 280px;
}

.cookie-banner__text h2 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.cookie-banner__text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.cookie-banner__error {
  color: #a33b2a;
  margin-top: 0.5rem !important;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.reveal--delay {
  transition-delay: 0.15s;
}
