/* Award homepage — blue/gold atmospheric system (scoped to .page-home)
   Fonts: self-hosted via /assets/fonts/fonts.css (imported from styles.css) */

.page-home {
  --ink: #0e1a2b;
  --ink-soft: #243447;
  --muted: #5c6b7a;
  --paper: #f3f0e8;
  --paper-deep: #e8e2d4;
  --surface: rgba(255, 252, 246, 0.72);
  --line: rgba(18, 52, 95, 0.12);
  --jade: #0f2c56;
  --jade2: #1a4578;
  --navy: #071525;
  --navy-mid: #0c2340;
  --gold: #c4a35a;
  --gold-bright: #e2c989;
  --gold-deep: #8f6d2e;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif: "Cormorant Garamond", "Noto Serif TC", "Songti TC", serif;
  --serif-tc: "Noto Serif TC", "Cormorant Garamond", serif;
  --radius: 4px;
  --max: 1180px;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--paper);
  overflow-x: hidden;
}

body.page-home {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 163, 90, 0.12), transparent 55%),
    linear-gradient(180deg, #f6f2ea 0%, var(--paper) 30%, #faf7f0 100%);
}

body.page-home::before {
  display: none;
}

/* Ambient canvas */
.home-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.page-home .site-header,
.page-home main,
.page-home .site-footer {
  position: relative;
  z-index: 1;
}

/* Header — quieter glass over hero */
.page-home .site-header {
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.page-home .site-header.is-scrolled {
  border-bottom-color: rgba(226, 218, 201, 0.7);
  background: rgba(246, 242, 234, 0.86);
  backdrop-filter: blur(16px);
}

.page-home .brand {
  letter-spacing: 0.08em;
}

.page-home .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--jade2), var(--jade));
  box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.35);
}

.page-home .brand small {
  font-family: var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.page-home .nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.page-home .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.page-home .nav-links a:hover::after,
.page-home .nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.page-home .button {
  border-radius: 2px;
  letter-spacing: 0.04em;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 600;
}

.page-home .button-primary {
  background: linear-gradient(135deg, var(--jade2), var(--jade));
  box-shadow: none;
}

.page-home .button-primary:hover {
  background: linear-gradient(135deg, var(--jade), #0a1f3d);
}

.page-home .button-secondary {
  border-color: rgba(15, 44, 86, 0.28);
  background: transparent;
}

.page-home .button-ghost {
  color: var(--gold-bright);
  border: 1px solid rgba(226, 201, 137, 0.35);
  background: transparent;
}

.page-home .button-ghost:hover {
  border-color: var(--gold-bright);
  background: rgba(226, 201, 137, 0.08);
}

/* ——— HERO ——— */
.home-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 0;
  overflow: hidden;
  color: #f7f1e4;
  background:
    radial-gradient(ellipse 90% 70% at 70% 40%, rgba(196, 163, 90, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(26, 69, 120, 0.55), transparent 55%),
    linear-gradient(165deg, #050d18 0%, var(--navy) 42%, #102844 100%);
}

.home-hero__field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.home-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: home-orb-drift 18s ease-in-out infinite alternate;
}

.home-hero__orb--gold {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  top: 8%;
  right: 4%;
  background: radial-gradient(circle, rgba(226, 201, 137, 0.35), transparent 68%);
}

.home-hero__orb--blue {
  width: min(60vw, 640px);
  height: min(60vw, 640px);
  bottom: -10%;
  left: -8%;
  background: radial-gradient(circle, rgba(30, 79, 134, 0.5), transparent 70%);
  animation-delay: -6s;
}

@keyframes home-orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3%, -4%, 0) scale(1.08); }
}

.home-hero__ring {
  position: absolute;
  top: 50%;
  left: 66%;
  width: min(92vw, 760px);
  height: min(92vw, 760px);
  transform: translate(-40%, -56%);
  opacity: 0.48;
}

.home-hero__ring svg {
  width: 100%;
  height: 100%;
  animation: home-ring-spin 72s linear infinite;
}

@keyframes home-ring-spin {
  to { transform: rotate(360deg); }
}

.home-hero__ring-core {
  position: absolute;
  top: 50%;
  left: 66%;
  width: min(28vw, 220px);
  height: min(28vw, 220px);
  transform: translate(-40%, -56%);
  border-radius: 50%;
  border: 1px solid rgba(226, 201, 137, 0.28);
  background:
    radial-gradient(circle at 40% 35%, rgba(226, 201, 137, 0.2), transparent 55%),
    rgba(7, 21, 37, 0.35);
  display: grid;
  place-items: center;
  animation: home-core-pulse 6s ease-in-out infinite;
}

.home-hero__ring-core span {
  font-family: var(--serif-tc);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--gold-bright);
  line-height: 1;
  letter-spacing: 0.08em;
}

@keyframes home-core-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 163, 90, 0.15); }
  50% { box-shadow: 0 0 48px 8px rgba(196, 163, 90, 0.12); }
}

.home-hero__content {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 120px 0 72px;
  max-width: 640px;
  margin-left: max(20px, calc((100% - var(--max)) / 2));
}

.home-hero__brand {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.2rem, 9.5vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: #f8f2e6;
  text-wrap: balance;
}

.home-hero__brand em {
  font-style: normal;
  color: var(--gold-bright);
}

.home-hero__headline {
  margin: 0 0 18px;
  max-width: 22ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.25;
  color: rgba(247, 241, 228, 0.92);
}

.home-hero__lead {
  margin: 0 0 32px;
  max-width: 36ch;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(232, 222, 198, 0.72);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero .button-ghost {
  color: #f3e6c4;
  border-color: rgba(226, 201, 137, 0.55);
  background: rgba(7, 21, 37, 0.25);
}

.home-hero .button-ghost:hover {
  border-color: #f3e6c4;
  background: rgba(226, 201, 137, 0.12);
}

.home-hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(226, 201, 137, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 2;
}

.home-hero__scroll i {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: home-scroll-line 2.2s ease-in-out infinite;
}

@keyframes home-scroll-line {
  0% { transform: scaleY(0.4); opacity: 0.3; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.4); opacity: 0.3; transform-origin: bottom; }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Sections */
.page-home .home-section {
  padding: 96px 0;
}

.page-home .home-section--tight {
  padding-top: 64px;
}

.page-home .home-kicker {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.page-home .home-kicker::before {
  content: none;
}

.page-home .home-title {
  margin: 0 0 18px;
  max-width: 16ch;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.page-home .home-copy {
  margin: 0;
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

/* About — editorial split, no card */
.home-about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}

.home-about__visual {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a1628;
}

.home-about__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.home-about__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(5, 13, 24, 0.72));
  z-index: 1;
}

.home-about__glyph {
  display: none;
}

.home-about__caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  color: rgba(247, 241, 228, 0.92);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.4;
}

/* Product stage — real I-Ching Oracle cards */
.home-product {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--navy);
}

.home-product__stage {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
}

.home-product__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 40%, rgba(196, 163, 90, 0.14), transparent 60%),
    linear-gradient(180deg, #071525 0%, #0c2340 50%, #071525 100%);
}

.home-product__cards {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 28px);
  padding: 48px 20px 120px;
  z-index: 1;
}

.home-product__card {
  width: min(22vw, 220px);
  aspect-ratio: 513 / 863;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform-origin: center bottom;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-product__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-product__card:nth-child(1) {
  transform: rotate(-8deg) translateY(28px);
}

.home-product__card:nth-child(2) {
  width: min(26vw, 260px);
  transform: translateY(-8px);
  z-index: 2;
}

.home-product__card:nth-child(3) {
  transform: rotate(8deg) translateY(28px);
}

.home-product__stage:hover .home-product__card:nth-child(1) {
  transform: rotate(-10deg) translateY(18px);
}

.home-product__stage:hover .home-product__card:nth-child(2) {
  transform: translateY(-18px) scale(1.03);
}

.home-product__stage:hover .home-product__card:nth-child(3) {
  transform: rotate(10deg) translateY(18px);
}

.home-product__copy {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 0 0 56px;
  max-width: 520px;
  color: #f7f1e4;
}

.home-product__copy .home-kicker {
  color: var(--gold-bright);
}

.home-product__copy .home-title {
  color: #f8f2e6;
  max-width: 14ch;
}

.home-product__copy .home-copy {
  color: rgba(232, 222, 198, 0.72);
  margin-bottom: 22px;
}

.home-about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Services — interaction rows, not marketing cards */
.home-services {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.home-service {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease, padding 0.25s ease;
}

.home-service:hover {
  background: linear-gradient(90deg, rgba(196, 163, 90, 0.06), transparent 60%);
  padding-left: 12px;
  padding-right: 12px;
}

.home-service__index {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-deep);
}

.home-service h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
}

.home-service p {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.home-service__go {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jade);
  white-space: nowrap;
}

.home-service:hover .home-service__go {
  color: var(--gold-deep);
}

/* Process band */
.home-band {
  position: relative;
  padding: 100px 0;
  color: #f4eee2;
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(196, 163, 90, 0.16), transparent 50%),
    linear-gradient(160deg, var(--navy) 0%, #0f2c56 55%, #0a1c36 100%);
  overflow: hidden;
}

.home-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(226, 201, 137, 0.11) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
  pointer-events: none;
  animation: home-dot-drift 40s linear infinite;
}

@keyframes home-dot-drift {
  to { background-position: 28px 56px; }
}

.home-band .home-kicker {
  color: var(--gold-bright);
}

.home-band .home-title {
  color: #f8f2e6;
  max-width: 18ch;
}

.home-band .home-copy {
  color: rgba(232, 222, 198, 0.7);
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.home-step {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 201, 137, 0.28);
}

.home-step span {
  display: block;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold-bright);
}

.home-step h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #f8f2e6;
}

.home-step p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(232, 222, 198, 0.68);
}

/* Tools strip */
.home-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
}

.home-tool {
  display: block;
  padding: 36px 28px;
  background: rgba(255, 252, 246, 0.9);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease;
}

.home-tool:hover {
  background: #fff;
}

.home-tool__label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.home-tool h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.home-tool p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-tool strong {
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  color: var(--jade);
}

/* Newsletter override for home */
.page-home #newsletter {
  padding: 88px 0 100px;
}

.page-home #newsletter .newsletter-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 44, 86, 0.04), transparent 45%),
    rgba(255, 252, 246, 0.85);
  box-shadow: none;
}

.page-home #newsletter .home-title {
  max-width: 14ch;
}

.page-home #newsletter .button {
  border-radius: 2px;
}

/* Footer */
.page-home .site-footer {
  background: var(--navy);
  color: rgba(247, 241, 228, 0.78);
}

.page-home .site-footer h2,
.page-home .site-footer h3 {
  color: #f8f2e6;
  font-family: var(--serif);
}

.page-home .site-footer a:hover {
  color: var(--gold-bright);
}

/* Chinese brand weight */
html[lang="zh-Hant"],
html[lang="zh-Hant-HK"] .page-home .home-hero__brand,
.page-home[lang^="zh"] .home-hero__brand {
  font-family: var(--serif-tc);
}

body.page-home.lang-zh .home-hero__brand,
body.page-home .home-hero__brand--zh {
  font-family: var(--serif-tc);
  letter-spacing: 0.12em;
}

/* Responsive */
@media (max-width: 960px) {
  .home-hero__content {
    max-width: 100%;
    padding: 110px 0 88px;
    margin-left: auto;
  }

  .home-hero__ring,
  .home-hero__ring-core {
    left: 76%;
    opacity: 0.28;
  }

  .home-about,
  .home-steps,
  .home-tools,
  .page-home #newsletter .newsletter-panel {
    grid-template-columns: 1fr;
  }

  .home-service {
    grid-template-columns: 48px 1fr;
  }

  .home-service__go {
    grid-column: 2;
  }

  .home-about__visual {
    min-height: 380px;
  }

  .home-product__card {
    width: min(28vw, 160px);
  }

  .home-product__card:nth-child(2) {
    width: min(34vw, 190px);
  }
}

@media (max-width: 720px) {
  .home-hero__ring {
    left: 50%;
    top: 28%;
    width: 120vw;
    height: 120vw;
    transform: translate(-50%, -50%);
    opacity: 0.28;
  }

  .home-hero__ring-core {
    left: 50%;
    top: 28%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
  }

  .home-hero__ring-core span {
    font-size: 3.2rem;
  }

  .home-hero__content {
    padding-top: 160px;
  }

  .page-home .home-section {
    padding: 72px 0;
  }

  .home-steps {
    grid-template-columns: 1fr 1fr;
  }
}

.page-home .menu-button {
  width: 48px;
  height: 48px;
  font-size: 1.15rem;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__orb,
  .home-hero__ring svg,
  .home-hero__ring-core,
  .home-about__glyph,
  .home-band::before,
  .home-hero__scroll i {
    animation: none !important;
  }

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