* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream:      #faf8f3;
  --cream-dark: #f0ebe0;
  --brown:      #2c1810;
  --brown-mid:  #4a2c1a;
  --gold:       #c17f4a;
  --gold-light: #d4a06a;
  --gold-pale:  #e8c99a;
  --white:      #ffffff;
  --border:     rgba(193,127,74,0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  background: var(--cream);
  color: var(--brown);
  overflow-x: hidden;
}

/* ══════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--delay, 0s);
}

.reveal-up    { transform: translateY(60px); }
.reveal-left  { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ══════════════════════════════
   SCROLL SECTION
══════════════════════════════ */
.scroll-section {
  height: 700vh;
  position: relative;
}

.sticky-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#cafe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.canvas-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.5) 100%
  );
  pointer-events: none;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  width: 90%;
  max-width: 820px;
}

.overlay-text.visible { opacity: 1; pointer-events: auto; }

#text-hero { opacity: 1; }
#text-hero.fade-out { opacity: 0; }

.pre-title {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 1rem;
}

#text-hero h1 {
  font-size: clamp(5rem, 16vw, 13rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.25em;
  text-shadow: 0 4px 60px rgba(0,0,0,0.5);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.7rem);
  font-style: italic;
  letter-spacing: 0.05em;
  opacity: 0.88;
  margin-bottom: 2.2rem;
}

.scroll-hint {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-pale);
  animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%       { transform: translateY(8px); opacity: 1; }
}

.it-quote {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 0.7em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}

.it-translate {
  font-size: clamp(0.75rem, 1.6vw, 1rem);
  letter-spacing: 0.2em;
  color: var(--gold-pale);
  text-transform: uppercase;
}

.label-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-pale);
  border: 1px solid rgba(212,160,106,0.6);
  padding: 0.35em 1.3em;
  margin-bottom: 1.3rem;
}

#text-two h2, #text-end h2 {
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}

#text-end h2 { margin-bottom: 2.2rem; }

.cta-btn {
  display: inline-block;
  padding: 1em 3.2em;
  border: 1px solid var(--gold-pale);
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-family: 'Georgia', serif;
  transition: background 0.35s, color 0.35s, transform 0.2s;
}

.cta-btn:hover {
  background: var(--gold-light);
  color: var(--brown);
  transform: scale(1.03);
}

/* ══════════════════════════════
   STATS
══════════════════════════════ */
.stats {
  background: var(--brown);
  padding: 4rem 2rem;
}

.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.stat-num {
  display: inline-block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-plus {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--gold);
}

.stat p {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,248,243,0.5);
  margin-top: 0.6rem;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(193,127,74,0.25);
  flex-shrink: 0;
}

@media (max-width: 600px) { .stat-divider { display: none; } }

/* ══════════════════════════════
   SHARED
══════════════════════════════ */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header { margin-bottom: 4rem; }

.section-pre {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.ornament {
  font-size: 1.2rem;
  color: var(--gold);
  margin-top: 1rem;
  display: block;
  opacity: 0.5;
}

/* ══════════════════════════════
   MENU
══════════════════════════════ */
.menu {
  background: var(--cream);
  padding: 8rem 2rem;
}

.menu-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 4rem 3rem;
}

.menu-cat h3 {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.8rem;
}

.menu-cat ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.menu-cat li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s ease;
  cursor: default;
}

.menu-cat li:hover { padding-left: 6px; }

.menu-cat li::after {
  content: '';
  flex: 1;
  border-bottom: 1px dotted var(--border);
  margin: 0 0.5rem;
}

.dish {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--brown);
  white-space: nowrap;
  transition: color 0.2s;
}

.menu-cat li:hover .dish { color: var(--gold); }

.price {
  font-size: 0.8rem;
  color: var(--gold);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════
   FEATURE BANNER (marquee)
══════════════════════════════ */
.feature-banner {
  background: var(--brown);
  padding: 1.3rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(193,127,74,0.15);
  border-bottom: 1px solid rgba(193,127,74,0.15);
}

.marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

.marquee span {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-right: 0;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════
   BOOKING
══════════════════════════════ */
.booking {
  background: var(--brown);
  padding: 8rem 2rem;
  color: var(--cream);
}

.booking .section-title { color: var(--cream); }

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(193,127,74,0.3);
  padding: 0.7rem 0;
  color: var(--cream);
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(250,248,243,0.3); }
.form-group select option { background: var(--brown); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold-light); }

.form-group textarea { resize: none; height: 80px; }

.submit-btn {
  align-self: flex-start;
  padding: 1em 3.5em;
  border: 1px solid var(--gold-light);
  background: transparent;
  color: var(--cream);
  font-family: 'Georgia', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.15s;
}

.submit-btn:hover {
  background: var(--gold-light);
  color: var(--brown);
  transform: scale(1.02);
}

.booking-success {
  padding: 1.2rem 0;
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.05rem;
}

.hidden { display: none; }

/* ══════════════════════════════
   CONTACTS
══════════════════════════════ */
.contacts {
  background: var(--cream-dark);
  padding: 8rem 2rem 3rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-bottom: 6rem;
}

@media (max-width: 750px) {
  .contacts-grid { grid-template-columns: 1fr; gap: 4rem; }
}

.contacts-left h2 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.3em;
  line-height: 1;
}

.tagline {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.contact-items { display: flex; flex-direction: column; gap: 1.8rem; }

.contact-item { display: flex; flex-direction: column; gap: 0.35rem; }

.contact-item .label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-item span:not(.label),
.contact-item a {
  font-size: 0.95rem;
  color: var(--brown);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.contact-item a:hover {
  color: var(--gold);
  padding-left: 4px;
}

/* contact form */
.contact-form-title {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
  color: var(--brown);
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(44,24,16,0.3); }

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); }

.contact-form textarea { resize: none; height: 80px; }

.contact-form button {
  align-self: flex-start;
  padding: 0.85em 2.8em;
  border: 1px solid var(--brown);
  background: transparent;
  color: var(--brown);
  font-family: 'Georgia', serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.15s;
}

.contact-form button:hover {
  background: var(--brown);
  color: var(--cream);
  transform: scale(1.02);
}

.footer-copy {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(44,24,16,0.35);
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  text-transform: uppercase;
}

/* ══════════════════════════════
   LOADER
   Added when the site was finished off: 350 frames used to load behind a
   blank canvas with nothing on screen.
══════════════════════════════ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner { text-align: center; }

.loader-logo {
  font-family: 'Georgia', serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 2rem;
  animation: loader-pulse 2s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.loader-bar {
  width: 200px;
  height: 1px;
  background: rgba(232, 201, 154, 0.25);
  margin: 0 auto 1rem;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.15s linear;
}

.loader-percent {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold-light);
}

/* Nothing should scroll behind the loader. */
body:not(.ready) { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader-logo { animation: none; }
  .reveal-up,
  .reveal-left,
  .reveal-right { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 700px) {
  /* Long sequences are a lot of thumb work on a phone. */
  .scroll-section { height: 420vh; }
}

/* ════════════════════════════════════════════════════════════════════════
   Polish pass. Everything here is chrome: the page reads fine without it,
   which is what keeps the reduced-motion and no-JS paths honest.
   ════════════════════════════════════════════════════════════════════════ */

/* ── film grain ── */
body::after {
  content: '';
  position: fixed;
  inset: -100%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(4) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ── reading progress ── */
.progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9997;
  pointer-events: none;
  background: rgba(193, 127, 74, 0.15);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-pale));
  transform: scaleX(0);
  transform-origin: left center;
}

/* ── section rail ── */
.dots {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
  mix-blend-mode: difference;
  filter: invert(1);
}

.dot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--brown);
}

.dot::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.45;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.dot.active::after {
  opacity: 1;
  background: currentColor;
  transform: scale(1.45);
}

.dot-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.dot:hover .dot-label,
.dot.active .dot-label {
  opacity: 0.75;
  transform: none;
}

/* ── cursor ── */
body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  mix-blend-mode: difference;
}

body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring {
  opacity: 1;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--gold-pale);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(232, 201, 154, 0.85);
  transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease, border-color 0.3s ease;
}

.cursor-ring.big {
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  border-color: rgba(232, 201, 154, 0.5);
}

/* ── split text ──
   The mask carries extra room below the baseline so descenders are not
   sheared off by overflow:hidden. */
.split-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.split-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 45ms);
  will-change: transform;
}

.split.in .split-inner {
  transform: none;
}

/* ── atmosfera strip ── */
.atmos {
  background: var(--brown);
  padding-bottom: 4rem;
}

.atmos .section-title,
.atmos .section-pre {
  color: var(--cream);
}

.atmos .ornament {
  color: rgba(193, 127, 74, 0.55);
}

.atmos-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 max(2rem, calc((100vw - 1100px) / 2)) 1.5rem;
  scrollbar-width: none;
}

.atmos-strip::-webkit-scrollbar { display: none; }

.atmos-strip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

.atmos-shot {
  flex: 0 0 min(74vw, 460px);
  scroll-snap-align: center;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--brown-mid);
}

.atmos-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) brightness(0.95);
  transform: scale(1.02);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.atmos-shot:hover img {
  transform: scale(1.08);
  filter: saturate(1.05) brightness(1.05);
}

.atmos-hint {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 201, 154, 0.5);
}

/* ── responsive ── */
@media (max-width: 900px) {
  .dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .split-inner { transform: none; transition: none; }
  .atmos-shot img { transition: none; transform: none; }
  .atmos-strip { scroll-snap-type: none; }
}
