:root {
  --ink:      #211710;
  --roast:    #3B2A1A;
  --cream:    #F0EAE0;
  --paper:    #DED2BE;
  --caramel:  #C47D2E;
  --hop:      #5C8567;
  --steam:    #A69784;
  --line:     rgba(240,234,224,0.09);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}
.grain {
  position: fixed; inset: 0; z-index: 500; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }

.logo-mark {
  display: inline-block;
  -webkit-mask-image: url('lofi-logo.svg'); mask-image: url('lofi-logo.svg');
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  background-color: var(--cream);
  clip-path: circle(40%);
}
/* square / full-bleed logos must not be cropped to a circle */
.logo-mark.no-clip { clip-path: none; }

.tag {
  font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--hop);
  display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.3rem;
}
.tag::after { content: ''; flex: 1; max-width: 44px; height: 1px; background: var(--hop); opacity: 0.4; }
.tag.cream { color: var(--cream); }
.tag.cream::after { background: var(--cream); }
.tag.caramel { color: var(--caramel); }
.tag.caramel::after { background: var(--caramel); }

/* ── HEADER ───────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2.5rem; transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.pinned { background: rgba(33,23,16,0.94); backdrop-filter: blur(10px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand .logo-mark { width: 42px; height: 42px; }
.brand-word { font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--cream); letter-spacing: 0.01em; }
.brand-word b { font-weight: 500; color: var(--caramel); }
.main-nav { display: flex; gap: 2.4rem; list-style: none; }
.main-nav a {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--steam); transition: color 0.2s;
}
.main-nav a:hover { color: var(--cream); }
.main-nav a.active { color: var(--cream); }
.header-cta {
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); background: var(--cream);
  padding: 0.55rem 1.15rem; transition: background 0.2s;
}
.header-cta:hover { background: var(--caramel); }

/* ── HERO (home) ──────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 6% 4rem;
  background:
    radial-gradient(ellipse 900px 600px at 50% 30%, rgba(196,125,46,0.14), transparent 65%),
    radial-gradient(ellipse 700px 500px at 80% 85%, rgba(92,133,103,0.08), transparent 60%),
    var(--ink);
}
.hero-seal-btn {
  display: block; background: none; border: 0; padding: 0; cursor: pointer;
  margin-bottom: 2.4rem; opacity: 0; animation: rise 0.8s 0.1s forwards;
}
.hero-seal-btn:focus-visible { outline: 1px solid var(--caramel); outline-offset: 16px; }
.hero-seal {
  display: block;
  width: clamp(280px, min(34vw, 46vh), 460px); height: clamp(280px, min(34vw, 46vh), 460px);
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}
.hero-seal.swapping { opacity: 0; filter: blur(10px); transform: scale(0.94); }
.hero-seal.spinning { animation: spinSeal 20s linear infinite; }
@keyframes spinSeal { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero-seal.swapping { filter: none; transform: none; }
  .hero-seal.spinning { animation: none; }
}
.hero-eyebrow {
  font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--hop);
  margin-bottom: 1.6rem; opacity: 0; animation: rise 0.8s 0.25s forwards;
}
.hero h1 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1.08; color: var(--cream);
  max-width: 17ch; opacity: 0; animation: rise 0.9s 0.4s forwards;
}
.hero h1 em { font-style: italic; font-weight: 300; color: var(--caramel); }

/* rotating slogan — blur-to-focus swap */
.hero-slogan { min-height: 2.16em; }
.hero-slogan .line {
  display: block; will-change: opacity, filter, transform;
  transition: opacity 0.55s ease, filter 0.55s ease, transform 0.55s ease;
}
.hero-slogan .l2 { transition-delay: 0.09s; }
.hero-slogan.is-out .line { opacity: 0; filter: blur(9px); transform: translateY(-16px); }
.hero-slogan.is-pre .line { opacity: 0; filter: blur(12px); transform: translateY(20px); transition: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-slogan .line { transition: opacity 0.3s ease; }
  .hero-slogan.is-out .line, .hero-slogan.is-pre .line { filter: none; transform: none; }
}
.hero-sub {
  margin-top: 1.7rem; font-size: 1rem; line-height: 1.8; color: var(--steam);
  max-width: 40ch; opacity: 0; animation: rise 0.9s 0.55s forwards;
}
.hero-actions {
  display: flex; gap: 1rem; margin-top: 2.6rem; flex-wrap: wrap; justify-content: center;
  opacity: 0; animation: rise 0.9s 0.7s forwards;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.btn {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 0.85rem 1.9rem; transition: all 0.25s;
}
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #FFFFFF; }
.btn-fill { background: var(--caramel); color: var(--ink); }
.btn-fill:hover { background: #D89148; }
.btn-line { border: 1px solid var(--line); color: var(--paper); }
.btn-line:hover { border-color: var(--caramel); color: var(--caramel); }

/* ── PAGE HERO (subpages) ─────────────────── */
.page-hero {
  position: relative; padding: 11rem 6% 6rem; background:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(196,125,46,0.12), transparent 65%), var(--ink);
  text-align: center;
}
.page-hero .tag { justify-content: center; }
.page-hero .tag::after { display: none; }
.page-hero h1 {
  font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.12; color: var(--cream);
}
.page-hero h1 em { font-style: italic; color: var(--caramel); }
.page-hero p {
  margin: 1.4rem auto 0; max-width: 46ch; font-size: 0.95rem; line-height: 1.8; color: var(--steam);
}

/* ── GALLERY ──────────────────────────────── */
.gallery { position: relative; padding: 7rem 6%; background: var(--roast); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.gallery-slot {
  aspect-ratio: 4/5; background:
    radial-gradient(ellipse at 30% 20%, rgba(196,125,46,0.1), transparent 60%), var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem;
  position: relative;
}
.gallery-slot .ring { width: 30px; height: 30px; border: 1px solid var(--steam); border-radius: 50%; opacity: 0.5; }
.gallery-slot span {
  font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steam);
  text-align: center; padding: 0 1.5rem; line-height: 1.6;
}

/* ── FIND US ──────────────────────────────── */
.find-body { position: relative; padding: 6rem 6%; background: var(--roast); }
.schedule { max-width: 900px; margin: 0 auto; }
.schedule-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line); transition: padding-left 0.25s;
}
.schedule-row:hover { padding-left: 0.6rem; }
.schedule-row:first-child { border-top: 1px solid var(--line); }
.schedule-name { font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--cream); }
.schedule-place { display: block; font-family: 'Work Sans', sans-serif; font-size: 0.78rem; color: var(--steam); margin-top: 0.3rem; }
.schedule-time {
  font-family: 'Space Mono', monospace; font-size: 0.66rem; letter-spacing: 0.06em;
  color: var(--caramel); text-align: right; line-height: 1.8; text-transform: uppercase; white-space: nowrap;
}
.schedule-time small { display: block; color: var(--steam); font-size: 0.6rem; }
.schedule-empty { max-width: 52ch; margin: 0 auto; text-align: center; }
.schedule-empty p { font-size: 1rem; line-height: 1.9; color: var(--paper); margin-bottom: 1.1rem; }
.schedule-empty p:last-child { margin-bottom: 0; }
.schedule-empty a { color: var(--caramel); text-decoration: underline; text-underline-offset: 3px; }
.schedule-empty a:hover { color: var(--cream); }
.booking { max-width: 900px; margin: 4.5rem auto 0; }
.booking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.book-card { border-left: 2px solid var(--hop); padding: 1.4rem 1.5rem; background: rgba(240,234,224,0.02); }
.book-card h4 { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hop); margin-bottom: 0.6rem; }
.book-card p { font-size: 0.85rem; color: var(--paper); line-height: 1.7; }
.book-card p b { color: var(--cream); font-weight: 500; }

/* ── VISION ───────────────────────────────── */
.vision-body { position: relative; padding: 6rem 6%; background: var(--roast); }
.phases { max-width: 860px; margin: 0 auto; }
.phase {
  display: grid; grid-template-columns: 5rem 1fr; gap: 2rem; align-items: start;
  padding: 2.2rem 0; border-bottom: 1px solid var(--line);
}
.phase:first-child { border-top: 1px solid var(--line); }
.phase-n { font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--steam); padding-top: 0.35rem; }
.phase.now .phase-n { color: var(--caramel); }
.phase-name { font-family: 'Fraunces', serif; font-size: 1.35rem; color: var(--cream); margin-bottom: 0.6rem; }
.phase.now .phase-name { color: var(--caramel); }
.phase-detail { font-size: 0.9rem; line-height: 1.8; color: var(--steam); max-width: 54ch; }
.phase-badge {
  display: inline-block; margin-left: 0.8rem; font-family: 'Space Mono', monospace;
  font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); background: var(--caramel); padding: 0.2rem 0.55rem; vertical-align: middle;
}

/* ── JOIN ─────────────────────────────────── */
.join { position: relative; padding: 6rem 6%; background: var(--ink); text-align: center; }
.join h2 { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--cream); margin-bottom: 0.7rem; }
.join h2 em { color: var(--caramel); font-style: italic; }
.join p { font-size: 0.87rem; color: var(--steam); margin-bottom: 2.2rem; }
.join-form { display: flex; max-width: 400px; margin: 0 auto; }
.join-form input {
  flex: 1; padding: 0.85rem 1.1rem; background: rgba(240,234,224,0.05);
  border: 1px solid var(--line); border-right: none; color: var(--cream);
  font-family: 'Space Mono', monospace; font-size: 0.72rem; outline: none;
}
.join-form input::placeholder { color: var(--steam); }
.join-form button {
  background: var(--caramel); color: var(--ink); border: none; padding: 0.85rem 1.3rem;
  font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
}
.join-form button:hover { background: var(--cream); }

/* ── FOOTER ───────────────────────────────── */
.site-footer { position: relative; background: var(--roast); padding: 3.5rem 6% 2rem; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; text-decoration: none; }
.footer-brand .logo-mark { width: 38px; height: 38px; }
.footer-brand span { font-family: 'Fraunces', serif; font-size: 1.1rem; color: var(--cream); }
.footer-brand span b { font-weight: 500; color: var(--caramel); }
.footer-meta { font-size: 0.82rem; color: var(--steam); line-height: 1.8; }
.footer-legal { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-legal a { color: var(--steam); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--caramel); }

/* ── LEGAL PAGES ──────────────────────────── */
.legal { position: relative; padding: 5rem 6% 6rem; background: var(--roast); }
.legal-inner { max-width: 66ch; margin: 0 auto; }
.legal-updated {
  font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steam);
  padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 2.6rem;
}
.legal-inner h2 {
  font-family: 'Fraunces', serif; font-weight: 400; font-size: 1.35rem;
  color: var(--cream); margin: 2.8rem 0 0.9rem;
}
.legal-inner h2:first-of-type { margin-top: 0; }
.legal-inner p { font-size: 0.92rem; line-height: 1.9; color: var(--paper); margin-bottom: 1.1rem; }
.legal-inner ul { list-style: none; margin: 0 0 1.4rem; }
.legal-inner li {
  font-size: 0.92rem; line-height: 1.9; color: var(--paper);
  padding-left: 1.4rem; position: relative; margin-bottom: 0.5rem;
}
.legal-inner li::before { content: '—'; position: absolute; left: 0; color: var(--caramel); }
.legal-inner a { color: var(--caramel); text-decoration: underline; text-underline-offset: 3px; }
.legal-inner a:hover { color: var(--cream); }
.legal-inner strong { color: var(--cream); font-weight: 500; }
.footer-col h5 { font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hop); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { text-decoration: none; color: var(--steam); font-size: 0.82rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--caramel); }
.footer-bottom {
  padding-top: 1.8rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; font-size: 0.6rem; letter-spacing: 0.05em; color: var(--steam);
}

/* ── REVEAL ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 900px) {
  .site-header { padding: 0.9rem 1.3rem; }
  .main-nav { gap: 1.3rem; }
  .main-nav a { font-size: 0.6rem; letter-spacing: 0.1em; }
  .header-cta { display: none; }
  .brand-word { font-size: 0.92rem; }
  .hero { padding: 7rem 5% 4rem; }
  .hero-seal { width: clamp(200px, 55vw, 260px); height: clamp(200px, 55vw, 260px); }
  .brand .logo-mark { width: 34px; height: 34px; }
  .page-hero { padding: 9rem 5% 4rem; }
  .gallery { padding: 5rem 5%; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-slot { aspect-ratio: 3/2; }
  .find-body, .vision-body { padding: 4rem 5%; }
  .schedule-row { flex-direction: column; gap: 0.5rem; }
  .schedule-time { text-align: left; }
  .booking-grid { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; gap: 0.6rem; padding: 1.8rem 0; }
  .phase-n { padding-top: 0; }
  .join { padding: 4rem 5%; }
  .legal { padding: 3.5rem 5% 4.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 460px) {
  .brand .logo-mark { width: 30px; height: 30px; }
  .brand-word { font-size: 0.8rem; }
  .main-nav { gap: 0.9rem; }
  .main-nav a { font-size: 0.55rem; }
  .hero-actions .btn { padding: 0.8rem 1.4rem; font-size: 0.62rem; }
}
