:root {
  --eclipse-black: #0a0a0c;
  --eclipse-deep: #121218;
  --surface: #16161f;
  --surface-lift: #1e1e2a;
  --lunar-silver: #c4c0d0;
  --lunar-bright: #e8e4ef;
  --muted-violet: #6b4c7a;
  --violet-glow: #8a6a9a;
  --crimson-petal: #8b3a4a;
  --crimson-soft: #a85a68;
  --halo: rgba(196, 192, 208, 0.12);
  --halo-strong: rgba(138, 106, 154, 0.22);
  --petal-glow: rgba(139, 58, 74, 0.28);
  --text: #e8e4ef;
  --text-muted: #9a95a8;
  --border: rgba(196, 192, 208, 0.16);
  --font-display: "Cormorant Garamond", "Noto Serif TC", serif;
  --font-body: "Noto Serif TC", "Cormorant Garamond", serif;
  --radius: 2px;
  --shell: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--halo-strong), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 20%, var(--petal-glow), transparent 50%),
    radial-gradient(ellipse 35% 25% at 10% 60%, var(--halo), transparent 45%),
    var(--eclipse-black);
  background-attachment: fixed;
}

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;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--violet-glow);
  outline-offset: 3px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 12, 0.82);
  border-bottom: 1px solid var(--border);
}

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

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

.brand:hover {
  color: var(--lunar-silver);
}

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

.site-nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text-muted);
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--lunar-silver);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
  position: relative;
  content: "";
}

.nav-toggle-bars::before {
  position: absolute;
  top: -6px;
}

.nav-toggle-bars::after {
  position: absolute;
  top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.35s ease, background 0.3s ease, border-color 0.3s ease;
}

.btn-bloom {
  position: relative;
  color: var(--eclipse-black);
  background: var(--lunar-silver);
  border-color: var(--lunar-bright);
  box-shadow:
    0 0 0 4px rgba(196, 192, 208, 0.08),
    0 0 0 10px rgba(107, 76, 122, 0.08),
    0 0 28px rgba(139, 58, 74, 0.18);
  text-decoration: none;
}

.btn-bloom:hover {
  color: var(--eclipse-black);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 6px rgba(196, 192, 208, 0.12),
    0 0 0 14px rgba(107, 76, 122, 0.12),
    0 0 36px rgba(139, 58, 74, 0.28);
}

.btn-ghost {
  color: var(--lunar-silver);
  background: transparent;
  border-color: var(--border);
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--violet-glow);
  color: var(--lunar-bright);
}

.hero-eclipse {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-eclipse-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-eclipse-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.38) saturate(0.75);
}

.hero-eclipse::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 70% 35%, rgba(138, 106, 154, 0.35), transparent 28%),
    radial-gradient(circle at 48% 42%, rgba(10, 10, 12, 0.2) 0 8%, transparent 9%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.35) 0%, rgba(10, 10, 12, 0.55) 45%, rgba(10, 10, 12, 0.96) 100%);
  animation: halo-breathe 8s ease-in-out infinite;
}

@keyframes halo-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.hero-eclipse-content {
  width: var(--shell);
  margin: 0 auto 4.5rem;
  max-width: 38rem;
  animation: rise-in 1s ease both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--lunar-bright);
  text-shadow: 0 0 40px rgba(138, 106, 154, 0.35);
}

.hero-line {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  color: var(--lunar-silver);
  max-width: 28rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: 4.5rem 0;
}

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

.section-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--lunar-bright);
}

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

.halo-panel {
  position: relative;
  background: linear-gradient(160deg, var(--surface-lift), var(--surface));
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(107, 76, 122, 0.08), 0 20px 50px rgba(0, 0, 0, 0.35);
}

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

.primary-offer {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  overflow: hidden;
}

.primary-offer-copy {
  padding: 2.5rem;
  position: relative;
  z-index: 1;
}

.primary-offer-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.85);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson-soft);
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.offer-list {
  margin: 0 0 1.75rem;
  padding-left: 1.1rem;
  color: var(--lunar-silver);
}

.offer-list li + li {
  margin-top: 0.35rem;
}

.service-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: rgba(22, 22, 31, 0.72);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.service-tile:hover {
  background: rgba(30, 30, 42, 0.9);
  border-color: var(--violet-glow);
  color: inherit;
}

.service-tile img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  filter: brightness(0.78);
}

.service-tile-body {
  padding: 1.25rem 0.15rem 1rem;
}

.service-tile h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--lunar-bright);
}

.service-tile p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

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

.evidence figure {
  margin: 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.evidence blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--lunar-silver);
}

.evidence figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.evidence img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(107, 76, 122, 0.25);
}

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

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  color: var(--lunar-bright);
}

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

.service-grid {
  display: grid;
  gap: 2rem;
}

.service-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
  align-items: stretch;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.service-row img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  filter: brightness(0.8);
}

.price-tag {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--crimson-soft);
  font-size: 0.95rem;
}

.blog-list {
  display: grid;
  gap: 2rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-item:hover {
  color: inherit;
}

.blog-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: brightness(0.82);
}

.blog-item h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--lunar-bright);
}

.blog-meta {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.prose {
  max-width: 42rem;
}

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

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

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

.process-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.process-steps li {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4.5rem;
  background: rgba(22, 22, 31, 0.65);
  border: 1px solid var(--border);
}

.process-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.1rem;
  top: 1.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--crimson-soft);
}

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

.process-steps p {
  margin: 0;
  color: var(--text-muted);
}

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

.contact-details p {
  margin: 0.35rem 0;
  color: var(--lunar-silver);
}

.form {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form label {
  color: var(--lunar-silver);
  font-size: 0.95rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  background: var(--eclipse-deep);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 1rem;
}

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

.field-error {
  margin: 0;
  color: var(--crimson-soft);
  font-size: 0.88rem;
}

.form-status {
  margin: 0;
  padding: 0.75rem 0;
  font-size: 0.95rem;
}

.form-status[data-state="success"] {
  color: #9dba9a;
}

.form-status[data-state="error"] {
  color: var(--crimson-soft);
}

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(8, 8, 10, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

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

.footer-note,
.footer-grid p {
  color: var(--text-muted);
  margin: 0.35rem 0;
}

.footer-label {
  margin: 0 0 0.6rem !important;
  color: var(--crimson-soft) !important;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--lunar-bright);
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 50;
  max-width: 420px;
  margin-left: auto;
}

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

.cookie-banner-inner {
  padding: 1.15rem 1.25rem;
  background: var(--surface-lift);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 6px rgba(107, 76, 122, 0.1),
    0 18px 40px rgba(0, 0, 0, 0.45);
}

.cookie-banner-inner p {
  margin: 0 0 0.9rem;
  color: var(--lunar-silver);
  font-size: 0.92rem;
}

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

.cookie-error {
  color: var(--crimson-soft) !important;
  margin-top: 0.6rem !important;
}

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

.error-page h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--lunar-bright);
}

.cover-band {
  position: relative;
  min-height: 280px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.cover-band img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.8);
}

.cover-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--eclipse-black));
}

@media (max-width: 900px) {
  .primary-offer,
  .service-row,
  .blog-item,
  .contact-layout,
  .footer-grid,
  .service-preview,
  .evidence {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

  .site-nav a {
    width: 100%;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
  }

  .header-inner {
    position: relative;
  }

  .hero-eclipse-content {
    margin-bottom: 3rem;
  }
}

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