/* ═══════════════ MAESTRANZA skg ═══════════════
   Charcoal #0D0D0C · Bone #F0EFEA · Ember #B03A2E · Ash #2A2A28 */

:root {
  --char: #0d0d0c;
  --bone: #f0efea;
  --ember: #b03a2e;
  --ash: #2a2a28;
  --display: "Archivo Black", sans-serif;
  --body: "Space Grotesk", sans-serif;
  --mono: "Space Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--char);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ember); color: var(--bone); }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── logo mark (campfire line-art, from brand logo) ─── */
.mark-line { fill: none; stroke: var(--bone); stroke-width: 3.4; stroke-linejoin: round; stroke-linecap: round; }

/* ═══ PRELOADER ═══ */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--char);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.9s ease, visibility 0.9s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-mark { width: 64px; margin: 0 auto 28px; animation: flicker 1.6s infinite; }
@keyframes flicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  40% { opacity: 0.75; transform: scale(0.98); }
  60% { opacity: 0.95; transform: scale(1.015); }
}
.preloader-text { color: var(--bone); opacity: 0.8; }
.preloader-bar { width: 220px; height: 1px; background: var(--ash); margin: 18px auto 0; }
.preloader-bar-fill { width: 0%; height: 100%; background: var(--ember); transition: width 0.25s ease; }

/* ═══ NAV ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  transition: transform 0.45s ease, background 0.45s ease;
}
.nav.hidden { transform: translateY(-110%); }
.nav.solid { background: rgba(13, 13, 12, 0.82); backdrop-filter: blur(14px); }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-mark { width: 26px; }
.nav-wordmark {
  font-family: var(--body); font-weight: 600;
  letter-spacing: 0.42em; font-size: 0.82rem;
}
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); }
.nav-links a {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.85; transition: opacity 0.25s, color 0.25s;
}
.nav-links a:hover { opacity: 1; color: var(--ember); }
.nav-cta {
  border: 1px solid var(--ember); color: var(--bone) !important;
  padding: 10px 20px; border-radius: 999px;
  background: var(--ember); opacity: 1 !important;
  transition: background 0.3s, transform 0.3s !important;
}
.nav-cta:hover { background: #c94b3d; transform: translateY(-1px); }

/* ─── mobile burger + overlay menu ─── */
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px 6px; z-index: 60; position: relative; }
.nav-burger span { display: block; width: 25px; height: 2px; background: var(--bone); margin: 5px 0; transition: transform 0.35s, opacity 0.35s; }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(13, 13, 12, 0.97);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 9vw;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
.mm-links { display: flex; flex-direction: column; }
.mm-links a {
  font-family: var(--display);
  font-size: clamp(2rem, 9.5vw, 3.2rem);
  line-height: 1.3; color: var(--bone);
  border-bottom: 1px solid var(--ash); padding: 14px 0;
}
.mm-links a.mm-book { color: var(--ember); }
.mm-contact { margin-top: 34px; opacity: 0.65; }
.mm-contact a:hover { color: var(--ember); }

/* ═══ HERO ═══ */
.hero { height: 520vh; position: relative; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#fireCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(13, 13, 12, 0.62) 100%),
    linear-gradient(rgba(13, 13, 12, 0.42), transparent 28%, transparent 70%, rgba(13, 13, 12, 0.72));
}
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 4vw; pointer-events: none;
}
.hero-kicker { opacity: 0.7; margin-bottom: 2.4vh; color: var(--bone); }
.hero-title {
  font-family: var(--display);
  font-size: clamp(3.2rem, 11.6vw, 12.5rem);
  line-height: 0.92; letter-spacing: -0.015em;
  color: var(--bone);
  text-shadow: 0 8px 60px rgba(13, 13, 12, 0.55);
  white-space: nowrap;
}
.hero-title span { display: inline-block; will-change: transform, opacity; }
.hero-sub {
  display: flex; align-items: baseline; gap: 18px;
  margin-top: 1.2vh;
}
.hero-skg {
  font-family: var(--mono); font-style: italic; font-size: clamp(1.1rem, 2.6vw, 2rem);
  color: var(--ember); font-weight: 700;
}
.hero-tag {
  font-family: var(--body); font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 1.7rem); letter-spacing: 0.04em;
}
.hero-note { position: absolute; bottom: 12vh; opacity: 0.65; max-width: 90vw; }
.hero-scrollcue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.62rem; letter-spacing: 0.22em; opacity: 0.7;
}
.scrollcue-line {
  width: 1px; height: 44px; background: linear-gradient(var(--bone), transparent);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══ TICKER ═══ */
.ticker {
  border-top: 1px solid var(--ash); border-bottom: 1px solid var(--ash);
  overflow: hidden; padding: 18px 0; background: var(--char);
  position: relative; z-index: 2;
}
.ticker-track { display: flex; gap: 42px; width: max-content; align-items: center; }
.ticker-track span {
  font-family: var(--body); font-weight: 600; letter-spacing: 0.14em;
  font-size: 0.95rem; white-space: nowrap;
}
.ticker-track span em {
  font-style: normal; font-weight: 400; opacity: 0.55;
  font-size: 0.8rem; margin-left: 10px; letter-spacing: 0.06em;
}
.ticker-track i { color: var(--ember); font-style: normal; }

/* ═══ SECTION LABEL ═══ */
.section-label {
  display: flex; align-items: center; gap: 14px;
  text-transform: uppercase; opacity: 0.85; margin-bottom: clamp(30px, 5vh, 60px);
}
.label-tag {
  background: var(--ember); color: var(--bone);
  padding: 3px 9px; font-weight: 700;
}

/* ═══ MANIFESTO ═══ */
.manifesto {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 18vh clamp(24px, 8vw, 140px);
  background: var(--bone); color: var(--char);
}
.manifesto .label-tag { color: var(--bone); }
.manifesto-text {
  font-family: var(--body); font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 3.4rem);
  line-height: 1.28; letter-spacing: -0.01em; max-width: 1080px;
}
.manifesto-text .w { opacity: 0.12; display: inline-block; }

/* ═══ VALUES ═══ */
.values {
  background: var(--bone); color: var(--char);
  padding: 4vh clamp(24px, 8vw, 140px) 16vh;
}
.value-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  border-top: 1px solid rgba(13, 13, 12, 0.18); padding: 3.4vh 0;
  overflow: hidden;
}
.value-word {
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 0.95; letter-spacing: -0.01em;
  color: var(--char);
}
.value-row:nth-child(2) .value-word { color: var(--ember); }
.value-def { opacity: 0.6; text-align: right; }

/* ═══ STORY CARDS ═══ */
.stories {
  background: var(--char);
  padding: 14vh clamp(16px, 5vw, 80px) 10vh;
  position: relative;
}
.card-stack { display: flex; flex-direction: column; gap: 6vh; }
.story-card {
  position: sticky; top: 11vh;
  display: grid; grid-template-columns: 44% 1fr;
  min-height: 76vh;
  background: #161615;
  border: 1px solid var(--ash);
  border-radius: 6px; overflow: hidden;
  will-change: transform;
}
.story-card::before {
  content: attr(data-index);
  position: absolute; top: 0; right: 0; z-index: 3;
  font-family: var(--mono); font-weight: 700; font-size: 0.8rem;
  background: var(--ember); color: var(--bone);
  padding: 8px 16px;
}
.card-media { position: relative; overflow: hidden; }
.card-media img {
  position: absolute; inset: 0; width: 100%; height: 110%;
  object-fit: cover; will-change: transform;
}
.card-body {
  padding: clamp(28px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.card-el { color: var(--ember); font-weight: 700; letter-spacing: 0.3em; }
.card-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  line-height: 0.95; letter-spacing: -0.01em;
}
.card-copy { max-width: 46ch; opacity: 0.82; font-size: clamp(0.95rem, 1.2vw, 1.12rem); }
.card-tag {
  align-self: flex-start;
  border: 1px dashed rgba(240, 239, 234, 0.35);
  padding: 7px 14px; font-size: 0.68rem; letter-spacing: 0.18em;
  opacity: 0.75;
}

/* ═══ FAQ ═══ */
.faq { padding: 10vh clamp(24px, 8vw, 140px) 6vh; max-width: 1100px; }
.faq-item {
  border-top: 1px solid var(--ash);
  padding: 26px 0;
}
.faq-item:last-of-type { border-bottom: 1px solid var(--ash); }
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: var(--body); font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--mono); color: var(--ember);
  font-size: 1.4rem; transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 16px; opacity: 0.78; max-width: 70ch; }
.faq-item a { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; }

/* ═══ BOOK ═══ */
.book {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 18vh clamp(20px, 6vw, 80px) 12vh;
  background:
    radial-gradient(ellipse 70% 46% at 50% 108%, rgba(176, 58, 46, 0.34), transparent),
    var(--char);
}
.book-title {
  font-family: var(--display);
  font-size: clamp(3.4rem, 13vw, 14rem);
  line-height: 0.92; letter-spacing: -0.015em;
  margin: 2vh 0 4vh;
}
.book-line { display: block; overflow: hidden; }
.book-line > * { display: inline; }
.book-flame { color: var(--ember); font-size: 0.5em; vertical-align: 0.35em; margin-left: 0.12em; }
.book-copy { max-width: 44ch; opacity: 0.75; margin-bottom: 5vh; }
.book-actions { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.btn-ember, .btn-ghost {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.78rem; padding: 18px 38px; border-radius: 999px;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.btn-ember { background: var(--ember); color: var(--bone); }
.btn-ember:hover { background: #c94b3d; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--ash); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); transform: translateY(-2px); }
.book-details {
  display: flex; gap: clamp(24px, 6vw, 90px); flex-wrap: wrap; justify-content: center;
  margin-top: 10vh; opacity: 0.75; font-size: 0.72rem; letter-spacing: 0.1em;
}
.book-details span { display: block; color: var(--ember); font-weight: 700; margin-bottom: 6px; }
.book-details a:hover { color: var(--ember); }

/* ═══ FOOTER ═══ */
.footer {
  border-top: 1px solid var(--ash);
  padding: 9vh 6vw; text-align: center;
}
.footer-mark { width: 40px; margin: 0 auto 24px; }
.footer-quote { opacity: 0.65; margin-bottom: 10px; }
.footer-social { opacity: 0.7; margin-bottom: 14px; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.footer-social a:hover { color: var(--ember); }
.footer-legal { opacity: 0.35; font-size: 0.65rem; }

/* ═══ GRAIN ═══ */
.grain {
  position: fixed; inset: -100%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -8%); }
  30% { transform: translate(4%, 6%); }
  50% { transform: translate(-7%, 3%); }
  70% { transform: translate(6%, -4%); }
  90% { transform: translate(-3%, 7%); }
}

/* ═══════════════ SUBPAGES (menu / about / team) ═══════════════ */
.nav-links a.active { color: var(--ember); opacity: 1; }

.subhero {
  padding: 22vh clamp(24px, 8vw, 140px) 8vh;
  border-bottom: 1px solid var(--ash);
}
.sub-title {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 9.5rem);
  line-height: 0.92; letter-spacing: -0.015em;
  margin: 10px 0 18px;
}
.sub-title em { font-style: normal; color: var(--ember); }
.sub-note { opacity: 0.6; max-width: 60ch; }

.sub-section { padding: 8vh clamp(24px, 8vw, 140px) 6vh; }

/* ─── menu ─── */
.menu-cat {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  letter-spacing: 0.01em; margin-bottom: 12px;
}
.menu-cat em {
  font-style: normal; font-family: var(--mono);
  font-size: 0.9rem; color: var(--ember);
  letter-spacing: 0.22em; margin-left: 16px; text-transform: uppercase;
}
.menu-cat-note { font-family: var(--mono); font-size: 0.7rem; opacity: 0.5; letter-spacing: 0.12em; margin-bottom: 40px; }
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(430px, 100%), 1fr)); gap: 28px; margin-bottom: 9vh; }
.dish {
  display: grid; grid-template-columns: 118px 1fr; gap: 20px;
  border: 1px solid var(--ash); border-radius: 4px;
  background: #141413; padding: 18px;
  transition: border-color 0.3s, transform 0.3s;
}
.dish:hover { border-color: rgba(176, 58, 46, 0.6); transform: translateY(-2px); }
.dish-photo {
  position: relative; width: 118px; height: 118px;
  border-radius: 3px; overflow: hidden; background: #1c1c1a;
}
.dish-photo img { width: 100%; height: 100%; object-fit: cover; }
.dish-photo.empty img { display: none; }
.dish-photo.empty {
  border: 1px dashed rgba(240, 239, 234, 0.28);
  display: flex; align-items: center; justify-content: center;
}
.dish-photo.empty::after {
  content: "ΦΩΤΟ\A ADD PHOTO";
  white-space: pre; text-align: center;
  font-family: var(--mono); font-size: 0.56rem;
  letter-spacing: 0.18em; opacity: 0.45; line-height: 2;
}
.dish-info { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.dish-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.dish-head h3 { font-family: var(--body); font-weight: 600; font-size: 1.06rem; letter-spacing: 0.01em; }
.dish-en { display: block; font-weight: 400; font-size: 0.78rem; color: var(--ember); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px; font-family: var(--mono); }
.dish-price { font-family: var(--mono); font-weight: 700; white-space: nowrap; color: var(--bone); }
.dish-desc { font-size: 0.86rem; opacity: 0.72; line-height: 1.5; }
.dish-desc.en { opacity: 0.45; font-size: 0.78rem; }

/* ─── about ─── */
.about-wrap { max-width: 900px; }
.about-lead {
  font-family: var(--body); font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.4; margin-bottom: 5vh;
}
.about-lead::first-letter { color: var(--ember); }
.about-body p { opacity: 0.8; margin-bottom: 3.2vh; max-width: 72ch; font-size: 1.02rem; }
.about-quote {
  border-left: 3px solid var(--ember);
  padding: 14px 0 14px 28px; margin: 6vh 0;
  font-family: var(--mono); font-size: 1.02rem; opacity: 0.85; font-style: italic;
}
.about-photo { border-radius: 5px; overflow: hidden; margin: 7vh 0; border: 1px solid var(--ash); }
.about-photo img { width: 100%; }
.about-photo figcaption { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; opacity: 0.5; padding: 12px 4px; text-transform: uppercase; }

/* ─── team ─── */
.team-grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
}
.member {
  background: #141413; border: 1px solid var(--ash); border-radius: 4px;
  overflow: hidden; transition: border-color 0.3s, transform 0.3s;
}
.member:hover { border-color: rgba(176, 58, 46, 0.6); transform: translateY(-3px); }
.member-photo { position: relative; aspect-ratio: 4/5; background: #1c1c1a; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.85) contrast(1.05); transition: filter 0.4s; }
.member:hover .member-photo img { filter: grayscale(0.1) contrast(1); }
.member-photo.empty img { display: none; }
.member-photo.empty { border-bottom: 1px dashed rgba(240, 239, 234, 0.28); display: flex; align-items: center; justify-content: center; }
.member-photo.empty::after {
  content: "ΦΩΤΟ\A ADD PHOTO\A black tee · arms crossed";
  white-space: pre; text-align: center;
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.16em; opacity: 0.45; line-height: 2.1;
}
.member-info { padding: 18px 20px 22px; }
.member-name { font-family: var(--body); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em; }
.member-role { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--ember); text-transform: uppercase; margin-top: 6px; }

.sub-cta { text-align: center; padding: 10vh 6vw 14vh; }
.sub-cta .btn-ember { display: inline-block; margin-top: 26px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .hero { height: 420vh; }
  .hero-title { font-size: min(10.6vw, 5rem); }
  .dish { grid-template-columns: 96px 1fr; padding: 14px; }
  .dish-photo { width: 96px; height: 96px; }
  .story-card { grid-template-columns: 1fr; min-height: auto; top: 9vh; }
  .card-media { height: 42vh; }
  .card-media img { position: relative; height: 100%; }
  .value-row { flex-direction: column; gap: 6px; }
  .value-def { text-align: left; }
  .hero-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scrollcue-line, .preloader-mark { animation: none; }
}
