:root {
  --eclipse: #0a0a0c;
  --eclipse-deep: #050508;
  --surface: #12121a;
  --surface-lift: #1a1524;
  --lunar: #c5c8d0;
  --lunar-bright: #e8e9ed;
  --violet: #8b7a9e;
  --violet-muted: #6b5b7a;
  --crimson: #a84d5c;
  --crimson-soft: #c46a78;
  --halo: rgba(200, 190, 220, 0.12);
  --halo-strong: rgba(168, 77, 92, 0.25);
  --text: #d8d9e0;
  --text-dim: #9a9aa8;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Noto Sans TC", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139, 122, 158, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(168, 77, 92, 0.08), transparent 50%),
    linear-gradient(180deg, var(--eclipse-deep) 0%, var(--eclipse) 40%, #0e0c14 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--lunar-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--crimson-soft);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 12, 0.72);
  border-bottom: 1px solid rgba(197, 200, 208, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lunar-bright);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 400;
}

.site-nav a:hover,
.site-nav a.nav-cta {
  color: var(--lunar-bright);
}

.nav-cta {
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(197, 200, 208, 0.28);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.35rem;
  height: 1px;
  margin: 0.35rem auto;
  background: var(--lunar);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(12, 10, 18, 0.96);
    border-bottom: 1px solid rgba(197, 200, 208, 0.1);
    gap: 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

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

/* Buttons — bloom */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--lunar-bright);
  background: transparent;
  isolation: isolate;
  transition: transform 0.3s ease, color 0.3s ease;
}

.btn--bloom {
  color: var(--eclipse);
  background: var(--lunar);
  border-radius: 999px;
  overflow: visible;
}

.btn--bloom::before,
.btn--bloom::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(197, 200, 208, 0.35);
  z-index: -1;
  opacity: 0.7;
  transition: inset 0.45s ease, opacity 0.45s ease;
  pointer-events: none;
}

.btn--bloom::after {
  inset: -12px;
  border-color: rgba(168, 77, 92, 0.35);
  opacity: 0.45;
}

.btn--bloom:hover {
  transform: scale(1.02);
  color: var(--eclipse-deep);
  text-decoration: none;
}

.btn--bloom:hover::before {
  inset: -10px;
  opacity: 1;
}

.btn--bloom:hover::after {
  inset: -18px;
  opacity: 0.7;
}

.btn--ghost {
  border: 1px solid rgba(197, 200, 208, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--lunar);
}

.btn--ghost:hover {
  border-color: var(--crimson-soft);
  color: var(--lunar-bright);
  text-decoration: none;
}

/* Hero — full bleed, brand first, asymmetric */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.38) saturate(0.75);
  animation: heroDrift 28s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(139, 122, 158, 0.28), transparent 42%),
    radial-gradient(circle at 30% 70%, rgba(168, 77, 92, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(5, 5, 8, 0.35) 0%, rgba(5, 5, 8, 0.82) 70%, var(--eclipse) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 4rem;
  max-width: 34rem;
  animation: riseIn 1s ease both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--lunar-bright);
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
  text-shadow: 0 0 40px rgba(139, 122, 158, 0.35);
}

.hero__line {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 400;
  font-style: italic;
  color: var(--violet);
  margin: 0 0 1.25rem;
}

.hero__text {
  margin: 0 0 1.75rem;
  color: var(--text);
  max-width: 28rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.05) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-2%, 1%);
  }
}

@keyframes haloPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(139, 122, 158, 0.15);
  }
  50% {
    box-shadow: 0 0 40px 8px rgba(139, 122, 158, 0.12);
  }
}

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

.section--tight {
  padding: 3rem 0;
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--lunar-bright);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--text-dim);
  max-width: 36rem;
}

.halo-panel {
  background: linear-gradient(145deg, rgba(26, 21, 36, 0.9), rgba(18, 18, 26, 0.95));
  border: 1px solid rgba(197, 200, 208, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  animation: haloPulse 8s ease-in-out infinite;
}

.halo-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -20% -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, var(--halo-strong), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.halo-panel > * {
  position: relative;
  z-index: 1;
}

/* Service preview — not cards-as-default; interaction containers ok for links */
.offer-list {
  display: grid;
  gap: 1.5rem;
}

.offer-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(197, 200, 208, 0.1);
  padding-bottom: 1.5rem;
  transition: opacity 0.3s ease;
}

.offer-row:hover {
  opacity: 0.92;
  color: inherit;
}

.offer-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
}

.offer-row h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 0.5rem;
  color: var(--lunar-bright);
}

.offer-row p {
  margin: 0 0 0.75rem;
  color: var(--text-dim);
}

.offer-meta {
  font-size: 0.88rem;
  color: var(--crimson-soft);
}

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

  .offer-row img {
    height: 180px;
  }
}

/* Evidence / quotes */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.quote-item {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(197, 200, 208, 0.15);
}

.quote-item blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--lunar);
}

.quote-item cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

/* Page hero (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid rgba(197, 200, 208, 0.08);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
  color: var(--lunar-bright);
}

.page-hero p {
  margin: 0;
  max-width: 38rem;
  color: var(--text-dim);
}

.page-hero--media {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 2rem;
}

.page-hero--media .page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero--media .page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.7);
}

.page-hero--media .shell {
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
}

/* Service / blog grids */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid rgba(197, 200, 208, 0.08);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.tile:hover {
  border-color: rgba(139, 122, 158, 0.45);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}

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

.tile__body {
  padding: 1.15rem 1.2rem 1.4rem;
}

.tile h2,
.tile h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
  color: var(--lunar-bright);
}

.tile p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.price-plan {
  padding: 1.75rem 1.5rem;
  background: var(--surface-lift);
  border: 1px solid rgba(197, 200, 208, 0.1);
  position: relative;
}

.price-plan::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(139, 122, 158, 0.08);
  pointer-events: none;
}

.price-plan h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
  color: var(--lunar-bright);
}

.price-plan .amount {
  font-size: 1.35rem;
  color: var(--crimson-soft);
  margin-bottom: 0.35rem;
}

.price-plan .note {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.price-plan ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.price-plan li {
  margin-bottom: 0.4rem;
}

.price-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

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

/* Process steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(197, 200, 208, 0.12);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--violet);
  line-height: 1;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
  color: var(--lunar-bright);
}

.step p {
  margin: 0;
  color: var(--text-dim);
}

/* Prose / legal */
.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--lunar-bright);
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose ul {
  padding-left: 1.2rem;
}

/* Forms */
.form {
  max-width: 32rem;
  display: grid;
  gap: 1.1rem;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  color: var(--lunar);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--lunar-bright);
  background: rgba(18, 18, 26, 0.9);
  border: 1px solid rgba(197, 200, 208, 0.2);
  border-radius: var(--radius);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 1px solid var(--violet);
  border-color: var(--violet);
}

.form-field .error {
  display: none;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--crimson-soft);
}

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

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

.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: rgba(139, 122, 158, 0.2);
  border: 1px solid rgba(197, 200, 208, 0.25);
  color: var(--lunar-bright);
}

.form-status.is-error {
  background: rgba(168, 77, 92, 0.18);
  border: 1px solid rgba(168, 77, 92, 0.4);
  color: var(--crimson-soft);
}

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

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

/* About */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.about-split img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  filter: brightness(0.85) saturate(0.8);
}

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

/* Blog post */
.article-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 1.5rem 0 2rem;
  filter: brightness(0.9) saturate(0.85);
}

.article-meta {
  font-size: 0.88rem;
  color: var(--violet);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(197, 200, 208, 0.1);
  background: rgba(5, 5, 8, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
  color: var(--lunar-bright);
}

.footer-tag,
.footer-meta {
  margin: 0 0 0.5rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.footer-heading {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 0.75rem;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(197, 200, 208, 0.08);
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 50;
  max-width: 520px;
  margin-inline: auto;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(160deg, #1a1524, #12121a);
  border: 1px solid rgba(197, 200, 208, 0.18);
  box-shadow: 0 0 40px rgba(139, 122, 158, 0.15);
}

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

.cookie-banner__inner {
  display: grid;
  gap: 0.85rem;
}

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

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

.cookie-banner__error {
  margin: 0.5rem 0 0;
  color: var(--crimson-soft);
  font-size: 0.85rem;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  margin: 0;
  color: var(--violet);
}

.error-page p {
  color: var(--text-dim);
}

/* Detail deliverables */
.deliverables {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.deliverables li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(197, 200, 208, 0.1);
  color: var(--text);
}

.deliverables li::before {
  content: "○ ";
  color: var(--crimson-soft);
}

.cta-band {
  margin: 3rem 0;
  padding: 2rem;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(139, 122, 158, 0.18), transparent 70%);
  border: 1px solid rgba(197, 200, 208, 0.1);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
  color: var(--lunar-bright);
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: var(--text-dim);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--violet);
  border: 1px solid rgba(139, 122, 158, 0.35);
  padding: 0.15rem 0.5rem;
}
