/* ============================================================
   HOBBYLAND GROUP — half-dark elegant homepage (attempt 3).
   Direction: private-equity calm. Cormorant Garamond + Noto Serif TC
   display, Noto Sans TC body. Charcoal #161412 / ivory #f4efe6,
   champagne accent #c2a05f (from the old site's warm maroon family).
   Signature: stacked glass-plane 3D motif travelling between
   sections, sticky side labels, oversized section numerals.
   ============================================================ */

:root {
  --ink: #1c1916;
  --ink-soft: #4c463f;
  --ivory: #f4efe6;
  --ivory-deep: #ece5d8;
  --char: #161412;
  --char-2: #1d1a17;
  --paper-dark: #eae3d5;
  --gold: #c2a05f;
  --gold-soft: rgba(194, 160, 95, 0.45);
  --gold-faint: rgba(194, 160, 95, 0.16);
  --serif-en: "Cormorant Garamond", Georgia, serif;
  --serif-tc: "Noto Serif TC", "Cormorant Garamond", serif;
  --sans: "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
  --container: min(1160px, 92vw);
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--char);
  padding: 10px 18px; z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

a { color: inherit; }
img { max-width: 100%; display: block; }

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

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(22, 20, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
  transition: background 0.4s ease;
}
.header-inner {
  width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ivory);
}
.wm-mono {
  font-family: var(--serif-en); font-style: italic; font-weight: 600;
  font-size: 20px; line-height: 1;
  color: var(--ivory);
  border: 1px solid var(--gold-soft);
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
}
.wm-text {
  font-family: var(--serif-en); font-size: 19px; letter-spacing: 0.04em;
}
.wm-text em { font-style: italic; color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  text-decoration: none; font-size: 14px; letter-spacing: 0.08em;
  color: rgba(244, 239, 230, 0.78);
  transition: color 0.25s ease;
}
.site-nav a:hover { color: var(--gold); }
.site-nav .nav-cta {
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  padding: 8px 18px;
}
.site-nav .nav-cta:hover { background: var(--gold); color: var(--char); }

/* ---------- mobile hamburger (gold on charcoal) ---------- */
.nav-burger {
  display: none; appearance: none; border: 0; background: transparent; cursor: pointer;
  width: 42px; height: 42px; padding: 9px; margin-left: auto;
}
.nav-burger__box { display: block; position: relative; width: 24px; height: 16px; }
.nav-burger__box i {
  position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px;
  background: var(--gold); transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-burger__box i:nth-child(1) { top: 0; }
.nav-burger__box i:nth-child(2) { top: 7px; }
.nav-burger__box i:nth-child(3) { top: 14px; }
.site-header.is-open .nav-burger__box i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-burger__box i:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-burger__box i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- shared section scaffolding ---------- */
.sec { position: relative; padding: clamp(88px, 11vw, 150px) 0; overflow: clip; }
.sec-dark { background: var(--char); color: var(--ivory); }
.sec-dark.cta,
.sec-dark#brands { background: linear-gradient(var(--char-2), var(--char)); }
.sec-light { background: var(--ivory); color: var(--ink); }
.sec-tint { background: var(--ivory-deep); }

.eyebrow {
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 26px;
}

.sec-title {
  font-family: var(--serif-tc);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 30px;
  position: relative;
}
.sec-title::after {
  content: ""; display: block; width: 64px; height: 1px;
  background: var(--gold); margin-top: 22px;
}

.body-lg { font-size: clamp(17px, 1.6vw, 19px); max-width: 62ch; margin-bottom: 18px; }
.split-body > p { max-width: 62ch; }
.dim { opacity: 0.78; }

/* disciplined asymmetric split: sticky side label + content */
.split {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.side-label {
  position: sticky; top: calc(var(--header-h) + 40px);
  display: flex; flex-direction: column; gap: 10px;
}
.sec-num {
  font-family: var(--serif-en);
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 500; line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-soft);
}
.sec-dark .sec-num { -webkit-text-stroke: 1px rgba(194, 160, 95, 0.55); }
.sec-name {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
  border-top: 1px solid var(--gold-faint);
  padding-top: 12px; width: fit-content; padding-right: 28px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none;
  font-size: 15px; letter-spacing: 0.1em;
  padding: 14px 32px;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn-gold { background: var(--gold); color: var(--char); }
.btn-gold:hover { background: #d4b478; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(244, 239, 230, 0.3); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 18px 44px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(72px, 9vw, 130px)); min-height: min(92vh, 880px); display: flex; flex-direction: column; justify-content: space-between; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hero-copy { max-width: 640px; }
.hero h1 {
  font-family: var(--serif-tc);
  font-weight: 700;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 1.16;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hd-sep { color: var(--gold); }
.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(244, 239, 230, 0.8);
  max-width: 54ch;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(244, 239, 230, 0.14);
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 34px;
  gap: 24px;
}
.hero-stats dt {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.hero-stats dd {
  font-family: var(--serif-en);
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 500; line-height: 1;
}
.stat-note {
  display: block;
  font-family: var(--sans);
  font-size: 13px; color: rgba(244, 239, 230, 0.6);
  margin-top: 8px;
}

/* ---------- motto ---------- */
.motto {
  margin-top: clamp(48px, 5vw, 72px);
  border: 0; border-left: 1px solid var(--gold);
  padding-left: clamp(24px, 3vw, 44px);
}
.motto span {
  display: block;
  font-family: var(--serif-en);
  font-style: italic; font-weight: 500;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.22;
  color: var(--ink);
}
.motto span:nth-child(2) { margin-left: clamp(20px, 3vw, 56px); }
.motto span:nth-child(3) { margin-left: clamp(40px, 6vw, 112px); color: var(--gold); }

/* ---------- pillars ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: rgba(28, 25, 22, 0.14);
  border: 1px solid rgba(28, 25, 22, 0.14);
  margin-top: 14px;
}
.pillar {
  background: var(--ivory-deep);
  padding: clamp(28px, 3vw, 44px);
  position: relative;
  transition: background 0.3s ease;
}
.sec-tint .pillar { background: var(--ivory); }
.pillar:hover { background: #fbf8f1; }
.pillar:nth-child(even) { transform: translateY(18px); }
.pillar-num {
  font-family: var(--serif-en);
  font-size: 30px; color: var(--gold);
  display: block; margin-bottom: 18px;
}
.pillar h3 {
  font-family: var(--serif-tc); font-weight: 600;
  font-size: 21px; margin-bottom: 12px; letter-spacing: 0.02em;
}
.pillar p { font-size: 15px; color: var(--ink-soft); }
.pillar-brands {
  margin-top: 18px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold) !important;
  border-top: 1px solid var(--gold-faint);
  padding-top: 12px;
}

/* ---------- brand tiles (dark, 3D lift) ---------- */
.brand-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
  perspective: 1200px;
}
.brand-tile {
  display: flex; flex-direction: column; gap: 8px;
  min-height: 168px;
  padding: 26px 24px;
  text-decoration: none;
  border: 1px solid rgba(244, 239, 230, 0.12);
  background: linear-gradient(160deg, rgba(244, 239, 230, 0.045), rgba(244, 239, 230, 0.01));
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease, background 0.3s ease;
}
.brand-tile:hover, .brand-tile:focus-visible {
  transform: translateY(-8px) rotateX(4deg) rotateY(-3deg);
  border-color: var(--gold-soft);
  background: linear-gradient(160deg, rgba(194, 160, 95, 0.1), rgba(244, 239, 230, 0.02));
}
.bt-cat {
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
}
.bt-name {
  font-family: var(--serif-en);
  font-size: 23px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--ivory);
  margin-top: auto;
}
.bt-desc { font-size: 13.5px; color: rgba(244, 239, 230, 0.6); }
/* offset the last tile for an asymmetric finish */
.brand-grid li:last-child .brand-tile { border-style: solid; }

/* ---------- engagement ---------- */
.engage {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  margin-top: 26px;
}
.engage-item { border-top: 1px solid var(--gold); padding-top: 24px; }
.engage-item h3 {
  font-family: var(--serif-tc); font-weight: 600;
  font-size: 21px; margin-bottom: 12px;
}
.engage-item p { font-size: 15px; color: var(--ink-soft); }

/* ---------- team ---------- */
.team-list { list-style: none; margin-top: 30px; }
.team-list li {
  display: grid;
  grid-template-columns: 200px 180px minmax(0, 1fr);
  gap: 20px; align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid rgba(28, 25, 22, 0.14);
}
.team-list li:first-child { border-top: 1px solid rgba(28, 25, 22, 0.14); }
.tm-name {
  font-family: var(--serif-en);
  font-size: 26px; font-weight: 600; letter-spacing: 0.02em;
}
.tm-role {
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.tm-bio { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-title {
  font-family: var(--serif-tc); font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.3; letter-spacing: 0.02em;
  margin-bottom: 44px;
}

/* ---------- footer ---------- */
.site-footer {
  background: #100e0c; color: rgba(244, 239, 230, 0.7);
  padding: 64px 0 40px;
}
.footer-grid {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand p { font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; max-width: 560px; }
.footer-links a {
  font-size: 13px; letter-spacing: 0.06em; text-decoration: none;
  color: rgba(244, 239, 230, 0.62);
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--gold); }
.footer-legal { padding-top: 28px; font-size: 12.5px; color: rgba(244, 239, 230, 0.42); }

/* ---------- 3D motif: stacked glass planes ---------- */
.motif {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  perspective: 1100px;
}
.motif-stage {
  position: absolute;
  width: 300px; height: 300px;
  top: 0; left: 0;
  transform-style: preserve-3d;
  will-change: transform;
  opacity: 0.9;
  transition: opacity 0.6s ease;
}
.plane {
  position: absolute; inset: 0;
  border: 1px solid var(--gold-soft);
  background: linear-gradient(135deg, rgba(194, 160, 95, 0.05), rgba(194, 160, 95, 0) 55%);
  transform-style: preserve-3d;
}
.plane.p1 { transform: translateZ(-90px); border-color: rgba(194, 160, 95, 0.16); background: none; }
.plane.p2 { transform: translateZ(-45px); border-color: rgba(194, 160, 95, 0.24); background: none; }
.plane.p3 { transform: translateZ(0);     border-color: rgba(194, 160, 95, 0.4); }
.plane.p4 { transform: translateZ(45px);  border-color: rgba(194, 160, 95, 0.28); background: none; }
.plane.p5 { transform: translateZ(90px);  border-color: rgba(194, 160, 95, 0.18);
  background: linear-gradient(135deg, rgba(194, 160, 95, 0.07), transparent 60%); }

/* reveal animation hooks (JS adds .in) */
/* Content is never fully hidden (min opacity 0.35) so any first paint or
   interrupted scroll still reads; the reveal is a subtle settle, not a fade-in. */
.reveal { opacity: 0.35; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .motif { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
  .side-label { position: static; flex-direction: row; align-items: baseline; gap: 18px; }
  .sec-num { font-size: 56px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .motif-stage { opacity: 0.45; width: 200px; height: 200px; }
}
@media (max-width: 720px) {
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  /* nav links collapse into a charcoal dropdown under the fixed header */
  .site-nav {
    position: fixed; top: var(--header-h); right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px; border: 1px solid rgba(244, 239, 230, 0.1); border-radius: 14px;
    background: rgba(22, 20, 18, 0.97);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .site-header.is-open .site-nav { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { padding: 12px 10px; min-height: 44px; display: flex; align-items: center; font-size: 15px; }
  .site-nav .nav-cta { justify-content: center; margin-top: 6px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar:nth-child(even) { transform: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
  .brand-grid { grid-template-columns: 1fr; }
  .team-list li { grid-template-columns: 1fr; gap: 6px; }
  .engage { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
}
