/* LumoraX — clock / orbit dots + hours-style metrics */
:root {
  --taupe:       #CABDB5;
  --paper:       #F4EEEA;
  --sheet:       #FCFAF8;
  --mist:        #EDE4DE;
  --ink:         #2A2422;
  --char:        #3C3839;
  --brown:       #583E27;
  --brown-mid:   #6B4A30;
  --gold:        #A67C52;
  --text:        #2A2422;
  --muted:       #5C534E;
  --line:        #D9CFC8;
  --text-inv:    #F6F0EC;
  --muted-inv:   #D8CDC6;
  --line-inv:    rgba(246, 240, 236, 0.22);
  --dark:        #241F1D;
  --grad:        linear-gradient(120deg, #A67C52 0%, #583E27 55%, #3C3839 100%);
  --radius:      14px;
  --maxw:        1160px;
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --header-h:    72px;
  --display:     "Playfair Display", Georgia, "Times New Roman", serif;
  --body:        "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name, .hour-stat time, .hour-tag, .method-tag, .quote-inner blockquote {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brown); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brown);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 8px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--brown); color: #F6F0EC;
  box-shadow: 0 8px 24px -8px rgba(88, 62, 39, .5);
}
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--text);
}

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(244, 238, 234, .78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(244, 238, 234, .96);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img {
  border-radius: 8px;
  background: var(--taupe);
  box-shadow: 0 0 0 1px var(--line);
}
.brand-name {
  font-size: 20px; font-weight: 600; letter-spacing: .01em;
}
.brand-name em { font-style: italic; font-weight: 500; color: var(--brown); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 15px; color: var(--muted); font-weight: 600;
  transition: color .2s var(--ease);
}
.nav .nav-cta {
  color: var(--text); border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 8px;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== First screen: hero + hours band ===== */
.first-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 28px 0 20px;
  overflow: hidden;
  background:
    radial-gradient(720px 380px at 82% 30%, rgba(166, 124, 82, .14), transparent 62%),
    var(--paper);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 24px;
  align-items: center;
  width: 100%;
}
.hero-grid > * { min-width: 0; }
.hero-copy { max-width: 100%; }
.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brown); font-weight: 600; margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 600;
  max-width: 14ch;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  margin-top: 22px;
  max-width: min(48ch, 100%);
  overflow-wrap: break-word;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px;
}

/* ===== Clock: orbiting dots, not rings ===== */
.clock-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}
.clock-svg {
  width: min(100%, 440px);
  height: auto;
  max-width: 100%;
  overflow: visible;
}
.min-dot { fill: var(--char); opacity: .38; }
.hour-dot { fill: var(--brown); }
.hour-dot.cardinal { fill: var(--ink); }
.face-labels text {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  fill: var(--ink);
}
.orb-dot { fill: var(--gold); }
.orb-dot.inner { fill: var(--brown-mid); }
.sweep-dot { fill: var(--ink); }
.hub-core { fill: var(--brown); }
.hub-pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  opacity: .7;
  transform-origin: 220px 220px;
  transform-box: view-box;
  animation: hub-breathe 3.2s ease-in-out infinite;
}

.orbit, .sweep {
  transform-origin: 220px 220px;
  transform-box: view-box;
}
.orbit.o1 { animation: spin 36s linear infinite; }
.orbit.o2 { animation: spin-rev 22s linear infinite; }
.sweep { animation: spin 8s linear infinite; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes spin-rev {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
@keyframes hub-breathe {
  0%, 100% { transform: scale(1); opacity: .55; }
  50%      { transform: scale(1.35); opacity: .18; }
}

.hour-dots .hour-dot {
  animation: tick-glow 4.8s ease-in-out infinite;
}
.hour-dots .hour-dot:nth-child(1) { animation-delay: 0s; }
.hour-dots .hour-dot:nth-child(4) { animation-delay: 1.2s; }
.hour-dots .hour-dot:nth-child(7) { animation-delay: 2.4s; }
.hour-dots .hour-dot:nth-child(10) { animation-delay: 3.6s; }
@keyframes tick-glow {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

/* ===== Hours band ===== */
.hours-band {
  position: relative;
  z-index: 3;
  background: var(--dark);
  color: var(--text-inv);
  padding: 36px 0;
}
.hours-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.hour-stat {
  padding: 10px 18px;
  border-left: 2px solid var(--gold);
  transition: border-color .3s var(--ease);
}
.hour-stat time {
  display: block;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #F6F0EC;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.hour-stat strong {
  display: block;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.hour-stat span {
  color: var(--muted-inv);
  font-size: 14px;
  font-weight: 500;
}

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-mist { background: var(--mist); }
.section-head { margin-bottom: 40px; max-width: 640px; }
.section-head h2,
.about-lead h2,
.contact-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 600;
}
.lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}
.on-dark .kicker { color: var(--gold); }
.on-dark h2 { color: var(--text-inv); }
.on-dark .lead { color: var(--muted-inv); }

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.about-copy {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Practice cards */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.practice-card {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.hour-tag {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  color: var(--brown);
  margin-bottom: 10px;
}
.practice-card h3 {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.practice-card p { color: var(--muted); }

/* Method dark */
.method {
  background: var(--dark);
  color: var(--text-inv);
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.method-card {
  background: rgba(88, 62, 39, .22);
  border: 1px solid var(--line-inv);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.method-tag {
  display: block;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}
.method-card h3 {
  font-size: 1.4rem;
  color: var(--text-inv);
  margin-bottom: 10px;
}
.method-card p { color: var(--muted-inv); }

/* Quote */
.quote { background: var(--paper); }
.quote-inner {
  max-width: 820px; margin: 0 auto; text-align: center;
}
.quote-mark {
  display: block;
  font-family: var(--display);
  font-size: 5.2rem; line-height: .45;
  color: var(--brown); opacity: .45;
  margin-bottom: 12px;
}
.quote-inner blockquote {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}
.quote-attr {
  margin-top: 22px;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px; font-weight: 600;
}

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.faq-head { margin: 0; position: sticky; top: 100px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.faq-item.open { border-color: var(--brown); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--text);
  font-family: var(--body); font-size: 1.05rem; font-weight: 600;
  padding: 20px 22px;
}
.faq-ico { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--brown); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ico::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 280px; }
.faq-a p { color: var(--muted); margin: 0; padding: 0 22px 20px; font-size: .98rem; }

/* Contact */
.contact {
  background: var(--dark);
  color: var(--text-inv);
}
.contact .kicker { color: var(--gold); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-copy h2 { color: var(--text-inv); margin-bottom: 16px; }
.contact-copy p { color: var(--muted-inv); margin-bottom: 20px; }
.contact-email {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: .01em;
  color: #F6F0EC;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.contact-addr {
  margin-top: 22px;
  color: var(--muted-inv);
  font-size: .98rem;
  line-height: 1.6;
}
.contact-form {
  background: rgba(88, 62, 39, .22);
  border: 1px solid var(--line-inv);
  border-radius: var(--radius);
  padding: 28px;
  display: grid; gap: 16px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--muted-inv); font-weight: 600; }
.field input, .field textarea {
  background: var(--ink);
  border: 1px solid var(--line-inv);
  border-radius: 10px;
  color: var(--text-inv);
  padding: 12px 14px;
  font: inherit; font-size: 15px;
  width: 100%; resize: vertical;
  transition: border-color .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(216, 205, 198, .55); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.contact-form .btn { margin-top: 4px; justify-self: start; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--sheet);
  padding: 48px 0 26px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 30px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.footer-tag { color: var(--muted); margin: 12px 0 0; font-size: .95rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 15px; font-weight: 600; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px; padding-top: 20px;
}

/* ===== Reveal ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .orbit, .sweep, .hub-pulse, .hour-dots .hour-dot { animation: none; }
}

/* Hover AFTER reveal.in so lift is not overwritten */
@media (hover: hover) and (pointer: fine) {
  .btn { transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
  .btn-primary:hover {
    transform: translateY(-2px);
    background: var(--brown-mid);
    box-shadow: 0 14px 34px -8px rgba(88, 62, 39, .7);
  }
  .btn-ghost:hover {
    border-color: var(--brown);
    color: var(--brown);
    transform: translateY(-2px);
  }
  .nav a:hover { color: var(--text); }
  .nav .nav-cta:hover { border-color: var(--brown); color: var(--brown); }
  .practice-card.reveal.in:hover,
  .practice-card:hover {
    transform: translateY(-6px);
    border-color: var(--brown);
    box-shadow: 0 18px 36px -16px rgba(88, 62, 39, .32);
  }
  .method-card.reveal.in:hover,
  .method-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    background: rgba(88, 62, 39, .38);
  }
  .hour-stat.reveal.in:hover,
  .hour-stat:hover {
    transform: translateY(-3px);
    border-left-color: #F6F0EC;
  }
  .faq-item:hover { border-color: var(--brown); }
  .faq-q:hover { color: var(--ink); }
  .contact-email:hover { border-bottom-color: #F6F0EC; }
  .footer-nav a:hover { color: var(--brown); }
  .contact-form.reveal.in:hover,
  .contact-form:hover {
    border-color: var(--gold);
  }
}

/* Mobile tap contrast when hover is unavailable */
@media (hover: none) {
  .nav a { color: var(--text); }
  .btn-primary { background: var(--brown); color: #F6F0EC; }
  .btn-ghost { color: var(--text); border-color: var(--text); }
  .hour-stat time { color: #F6F0EC; }
  .hour-stat span { color: #EDE4DE; }
  .method-card p, .contact-copy p, .contact-addr { color: var(--text-inv); }
  .faq-q { color: var(--text); }
}

/* ===== Responsive ===== */
@media (min-width: 981px) {
  .first-screen { height: 100svh; min-height: 100vh; }
  .hero { min-height: 0; }
  .clock-svg { max-height: calc(100svh - 280px); width: auto; max-width: 440px; }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero { padding: 28px 0 8px; }
  .clock-svg { width: min(100%, 340px); }
  .about-grid,
  .faq-wrap,
  .contact-inner { grid-template-columns: 1fr; }
  .method-grid,
  .practice-grid,
  .hours-row { grid-template-columns: 1fr 1fr; }
  .faq-head { position: static; }
  .hours-row { gap: 18px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 4px; align-items: stretch;
    background: rgba(252, 250, 248, .98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: 12px 4px; font-size: 17px; color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .nav .nav-cta {
    text-align: center; margin-top: 10px;
    border-color: var(--brown); color: var(--brown);
  }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.1rem); }
  .section { padding: 68px 0; }
  .brand-name { font-size: 18px; }
  .first-screen { min-height: 0; height: auto; }
  .clock-svg { width: min(92%, 300px); max-height: none; }
  .method-grid,
  .practice-grid,
  .hours-row,
  .about-grid,
  .faq-wrap,
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 18px 0 4px; }
  .hero-actions { gap: 10px; }
  .btn { width: 100%; }
  .about-grid,
  .faq-wrap,
  .contact-inner,
  .method-grid,
  .practice-grid,
  .hours-row { grid-template-columns: 1fr; }
  .hours-band { padding: 22px 0; }
  .hour-stat {
    padding: 14px 4px 14px 16px;
    border-left-width: 3px;
  }
  .hour-stat time { font-size: 1.7rem; color: #F6F0EC; }
  .hour-stat span { color: #EDE4DE; }
  .practice-card, .method-card { padding: 22px 18px; }
  .practice-grid, .method-grid { gap: 14px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .about-grid { gap: 24px; }
  .contact-inner { gap: 32px; }
  .contact-form { padding: 22px 18px; }
  .faq-q { padding: 18px 16px; font-size: 1rem; color: var(--text); }
  .footer-inner { flex-direction: column; gap: 20px; }
  .quote-mark { font-size: 4rem; }
  .clock-svg { width: min(88%, 280px); }
  .hero-sub { font-size: 1.02rem; }
}
