/* ============================================================================
   THE GOOD TIP — Coming Soon
   Editorial, understated-luxury landing. Brand palette derived from the logo.
   Sections: hero (gold) · idea (ivory) · discover (soft white) · coming soon
   (gold) · footer (espresso). Vanilla CSS only.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette (from the logo) */
  --gold:        #AF9964;   /* primary — logo background */
  --gold-dark:   #9A8654;   /* hover / depth */
  --gold-ink:    #877038;   /* readable gold for text/accents on light bg */
  --ivory:       #F6F1E7;   /* light section background */
  --soft-white:  #FBFAF6;   /* text on gold / cards */
  --espresso:    #2A2317;   /* warm near-black text */
  --espresso-2:  #4A4031;   /* softer body text */
  --espresso-3:  #7A6F59;   /* muted metadata */
  --muted-gold:  #C9B98E;   /* hairlines / borders */

  --line-dark:   rgba(42, 35, 23, 0.14);
  --line-light:  rgba(251, 250, 246, 0.30);

  /* Type */
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --serif-soft: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 70px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--espresso);
  background: var(--ivory);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; }
::selection { background: var(--gold); color: var(--soft-white); }

/* ---------- 3. Utilities ---------- */
.wrap { width: min(1180px, 90vw); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 11vw, 9.5rem); position: relative; }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 10000;
  background: var(--espresso); color: var(--soft-white);
  padding: 0.7rem 1.1rem; border-radius: 6px; font-size: 0.85rem;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-ink);
}
.kicker--light { color: rgba(251, 250, 246, 0.8); }

/* ---------- 4. Reveal system (failure-safe: hidden only when JS adds .anim) ---------- */
html.anim .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
html.anim .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 5. Grain & custom cursor (decorative) ---------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.038; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor { display: none; }
html.cursor-on .cursor { display: block; }
html.cursor-on, html.cursor-on a, html.cursor-on button,
html.cursor-on input, html.cursor-on label { cursor: none; }

.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.cursor.is-ready { opacity: 1; }
.cursor__dot, .cursor__ring {
  position: fixed; top: 0; left: 0; border-radius: 50%;
}
.cursor__dot {
  width: 6px; height: 6px; background: var(--soft-white);
  mix-blend-mode: difference;
}
.cursor__ring {
  width: 36px; height: 36px; border: 1px solid var(--muted-gold);
  transition: width 0.28s var(--ease), height 0.28s var(--ease),
              background 0.28s var(--ease), border-color 0.28s var(--ease);
}
.cursor.is-hover .cursor__ring {
  width: 56px; height: 56px;
  border-color: var(--gold); background: rgba(175, 153, 100, 0.12);
}

/* ---------- 6. Sticky header ---------- */
.siteheader {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(1.1rem, 4vw, 2.6rem);
  background: rgba(246, 241, 231, 0.82);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.siteheader.is-shown { transform: translateY(0); border-bottom-color: var(--line-dark); }
@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .siteheader { background: var(--ivory); }
}
.siteheader__brand {
  font-family: var(--serif); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 0.95rem; color: var(--espresso);
}
.siteheader__cta {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 500; color: var(--soft-white); background: var(--espresso);
  padding: 0.6rem 1.2rem; border-radius: 999px;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.siteheader__cta:hover { background: var(--gold-ink); transform: translateY(-2px); }

/* ============================================================================
   7. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--gold);
  color: var(--soft-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
/* warm depth + light pool behind the wordmark */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(110% 80% at 50% 18%, rgba(255, 252, 244, 0.18), transparent 55%),
    radial-gradient(120% 90% at 50% 120%, rgba(42, 35, 23, 0.22), transparent 60%);
}
.hero__inner {
  position: relative; z-index: 2;
  padding: clamp(2.8rem, 6vh, 4.2rem) clamp(1.2rem, 5vw, 2rem);
  display: flex; flex-direction: column; align-items: center;
}

.hero__eyebrow {
  font-family: var(--sans); text-transform: uppercase;
  letter-spacing: 0.42em; font-size: clamp(0.6rem, 1.6vw, 0.74rem);
  font-weight: 500; color: rgba(251, 250, 246, 0.82);
  margin-bottom: clamp(0.9rem, 2.4vw, 1.4rem);
  padding-left: 0.42em; /* optical balance for tracking */
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.015em;
  font-size: clamp(2.8rem, 10vw, 6.6rem);
  color: var(--soft-white);
  display: flex; flex-direction: column; align-items: center;
}
.wordmark__line { display: block; overflow: hidden; padding: 0.02em 0.04em; }
.wordmark__line > span { display: block; }

.hero__tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 3vw, 1.55rem);
  letter-spacing: 0.01em;
  color: var(--soft-white);
  margin-top: clamp(0.8rem, 2.4vw, 1.3rem);
}

.hero__statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.3vw, 1.45rem);
  line-height: 1.4;
  color: rgba(251, 250, 246, 0.92);
  max-width: 26ch;
  text-wrap: balance;
  margin-top: clamp(1.1rem, 2.8vw, 1.7rem);
}

/* scroll cue */
.hero__scroll {
  position: absolute; z-index: 2;
  bottom: clamp(1.3rem, 4vh, 2.4rem);
  left: 0; right: 0; margin-inline: auto; width: -moz-fit-content; width: fit-content;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--soft-white);
}
.hero__scroll-label {
  text-transform: uppercase; letter-spacing: 0.32em; font-size: 0.62rem;
  font-weight: 500; opacity: 0.85; padding-left: 0.32em;
}
.hero__scroll-line {
  width: 1px; height: 42px; position: relative; overflow: hidden;
  background: rgba(251, 250, 246, 0.3);
}
.hero__scroll-line::after {
  content: ""; position: absolute; top: -60%; left: 0; width: 100%; height: 60%;
  background: linear-gradient(to bottom, transparent, var(--soft-white));
  animation: scrollPulse 2.2s var(--ease-out) infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(-40%); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(220%); opacity: 0; }
}

/* ============================================================================
   8. THE IDEA / EXPLAINER
   ========================================================================== */
.idea { background: var(--ivory); }

.pullquote {
  font-family: var(--serif-soft);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 5.2vw, 3.5rem);
  line-height: 1.2;
  text-align: center;
  max-width: 20ch;
  margin-inline: auto;
  color: var(--espresso);
  text-wrap: balance;
}
.pullquote em { color: var(--gold-ink); font-style: italic; }

/* Full, uncropped café image — the centerpiece of this section */
.idea__figure {
  margin: clamp(3rem, 7vw, 5.5rem) auto clamp(2.6rem, 6vw, 4rem);
  max-width: 960px;
  overflow: hidden;
  border: 1px solid var(--muted-gold);
  box-shadow: 0 36px 70px -34px rgba(42, 35, 23, 0.45);
  background: var(--bg-2, #e8dfd0);
}
.idea__figure img { width: 100%; height: auto; display: block; }

.kicker--center { display: block; text-align: center; }

.values {
  list-style: none; padding: 0;
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  display: grid; grid-template-columns: 1fr;
}
.value { padding: clamp(1.2rem, 3vw, 1.6rem) 0; border-top: 1px solid var(--line-dark); }
.value:last-child { border-bottom: 1px solid var(--line-dark); }
.value__num {
  font-family: var(--serif); font-style: italic; font-size: 0.9rem;
  color: var(--gold-ink); display: block; margin-bottom: 0.4rem;
}
.value__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.2;
  color: var(--espresso); letter-spacing: 0.005em;
}
.value__text {
  margin-top: 0.45rem; color: var(--espresso-2);
  font-size: 0.92rem; max-width: 40ch;
}

/* ============================================================================
   9. DISCOVER / WHAT YOU'LL FIND
   ========================================================================== */
.discover { background: var(--soft-white); }

.globe-head { max-width: 46rem; margin: 0 auto; text-align: center; }
.globe-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.08;
  color: var(--espresso); margin-top: 0.9rem; text-wrap: balance;
}
.globe-title em { font-style: italic; color: var(--gold-ink); }
.globe-intro {
  margin: 1.3rem auto 0; max-width: 44ch;
  color: var(--espresso-2); font-size: clamp(1rem, 2.2vw, 1.12rem);
}

/* Brussels — featured, shown whole (uncropped) */
.feature {
  margin: clamp(2.6rem, 6vw, 4rem) auto clamp(1rem, 2.5vw, 1.4rem);
  max-width: 1040px;
  overflow: hidden;
  border: 1px solid var(--muted-gold);
  box-shadow: 0 40px 80px -42px rgba(42, 35, 23, 0.5);
}
.feature img { width: 100%; height: auto; display: block; }

.places {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: clamp(2.8rem, 6.5vw, 4.4rem);
}

/* community photos — uniform 3:2 cards; every image is pre-sized 3:2 so none is cropped */
.place {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow: 0 30px 60px -34px rgba(42, 35, 23, 0.5);
}
.place__media { position: absolute; inset: 0; overflow: hidden; }
.place__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.9s var(--ease); will-change: transform;
}
.place:hover .place__media img { transform: scale(1.04); }

.places__caption {
  margin: clamp(0.4rem, 1.5vw, 0.9rem) 0 0; text-align: center;
  font-family: var(--serif-soft); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 3.2vw, 2rem); color: var(--gold-ink);
}

/* Cinematic clip-path "wipe" reveal — overrides the default fade for cards */
html.anim .place.reveal {
  opacity: 0; transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease), opacity 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 130ms);
  will-change: clip-path;
}
html.anim .place.reveal.is-visible { opacity: 1; clip-path: inset(0 0 0 0); }

/* ============================================================================
   10. COMING SOON
   ========================================================================== */
.comingsoon {
  background: var(--gold); color: var(--soft-white);
  text-align: center; overflow: hidden; isolation: isolate;
}
.comingsoon::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255, 252, 244, 0.2), transparent 60%),
    radial-gradient(90% 70% at 50% 120%, rgba(42, 35, 23, 0.2), transparent 60%);
}
.comingsoon__inner { position: relative; z-index: 1; max-width: 44rem; }

.comingsoon__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 5.5rem); line-height: 0.98;
  letter-spacing: 0.01em; margin-top: 1rem;
  color: var(--soft-white);
}
.comingsoon__lead {
  margin: 1.4rem auto 0; max-width: 38ch;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: rgba(251, 250, 246, 0.9);
}

/* store badges */
.badges {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(0.8rem, 2.5vw, 1.4rem);
  margin-top: clamp(2.2rem, 5vw, 3rem);
}
.badge {
  position: relative; display: block;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
  filter: drop-shadow(0 12px 22px rgba(42, 35, 23, 0.28));
}
.badge img { height: clamp(46px, 12vw, 54px); width: auto; }
.badge:hover, .badge:focus-visible { transform: translateY(-3px); }
.badge::after {
  content: attr(data-tooltip);
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px);
  background: var(--espresso); color: var(--soft-white);
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.4rem 0.7rem; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.badge:hover::after, .badge:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* stay in touch — phone */
.connect { margin-top: clamp(2.4rem, 5vw, 3.2rem); }
.connect__label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.24em;
  color: rgba(251, 250, 246, 0.82);
}
.connect__actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(0.7rem, 2vw, 1.1rem);
  margin-top: clamp(1.1rem, 2.5vw, 1.6rem);
}
.connect__btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.7rem; border-radius: 999px;
  background: var(--espresso); color: var(--soft-white);
  font-size: clamp(0.98rem, 2.2vw, 1.1rem); font-weight: 500; letter-spacing: 0.01em;
  box-shadow: 0 14px 30px -16px rgba(42, 35, 23, 0.6);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.connect__btn svg { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.connect__btn:hover {
  background: #1d1810; transform: translateY(-3px);
  box-shadow: 0 22px 42px -18px rgba(42, 35, 23, 0.72);
}

/* ============================================================================
   11. FOOTER
   ========================================================================== */
.footer {
  background: var(--espresso); color: rgba(251, 250, 246, 0.78);
  text-align: center; padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(201, 185, 142, 0.18);
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.footer__brand {
  font-family: var(--serif); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.24em; font-size: 1.1rem; color: var(--soft-white);
}
.footer__tagline { font-family: var(--serif-soft); font-style: italic; font-size: 1.05rem; color: var(--muted-gold); }
.footer__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem;
  margin-top: 0.8rem; font-size: 0.9rem;
}
.footer__links a { color: rgba(251, 250, 246, 0.8); transition: color 0.3s var(--ease); position: relative; }
.footer__links a:hover { color: var(--gold); }
.footer__copy { margin-top: 1rem; font-size: 0.78rem; color: rgba(251, 250, 246, 0.5); }

/* ============================================================================
   12. Hero entrance animations (CSS-only; self-completing → safe without main.js)
   ========================================================================== */
.js .wordmark__line > span {
  transform: translateY(112%);
  animation: lineRise 1s var(--ease-out) both;
}
.js .wordmark__line:nth-child(1) > span { animation-delay: 0.18s; }
.js .wordmark__line:nth-child(2) > span { animation-delay: 0.32s; }
.js .wordmark__line:nth-child(3) > span { animation-delay: 0.46s; }
@keyframes lineRise { to { transform: translateY(0); } }

.js .reveal-hero {
  opacity: 0; transform: translateY(18px);
  animation: heroFade 0.95s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0) * 80ms + 250ms);
}
@keyframes heroFade { to { opacity: 1; transform: none; } }

/* ============================================================================
   13. Responsive — mobile-first; promote grids on larger screens
   ========================================================================== */
@media (min-width: 720px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
    column-gap: clamp(1.6rem, 3.5vw, 2.8rem);
  }
  .value { border-bottom: 0 !important; }
  .places { grid-template-columns: 1fr 1fr; gap: clamp(1.1rem, 2vw, 1.6rem); }
}

@media (max-width: 430px) {
  .connect__actions { flex-direction: column; align-items: stretch; }
  .connect__btn { justify-content: center; }
}

/* ============================================================================
   14. Reduced motion — keep functional fades, drop intrusive/looping motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .wordmark__line > span { animation: none; transform: none; }
  .js .reveal-hero { animation: none; opacity: 1; transform: none; }

  .hero__scroll-line::after { animation: none; }

  /* scroll reveals: show instantly, no transform */
  html.anim .reveal { transition-duration: 0.3s; transform: none; }
  html.anim .place.reveal { clip-path: none; opacity: 1; }
}
