/* ==========================================================================
   omahboro — cinematic multi-tenant F&B landing page (mobile-first)
   Palette: warm cream, near-black, terracotta accent
   ========================================================================== */

:root {
  --bg: #f4eee2;
  --ink: #17130f;
  --ink-2: #201a14;
  --muted: #6f6459;
  --accent: #b4552d;
  --gold: #c19a3d;
  --white: #ffffff;
  --silver: #cfc6b8;
  --hairline: rgba(23, 19, 15, 0.14);
  --hairline-light: rgba(255, 255, 255, 0.16);
  --nav-h: 60px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
video { display: block; width: 100%; height: 100%; object-fit: cover; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ---------------------------------- Preloader ----------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  text-align: center;
}
.preloader__mark {
  display: flex;
  justify-content: center;
  font-size: clamp(2.6rem, 13vw, 7rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.preloader__mark span { display: inline-block; transform: translateY(120%); opacity: 0; }
.preloader__sub {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
}

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

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  z-index: 40;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 85, 45, 0.16) 0%, transparent 62%);
  opacity: 0;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { opacity: 1; }
}

/* ---------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--accent); }
.btn--ghost { color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--silver); }
.btn--outline-light { color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.link {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-light);
  padding-bottom: 3px;
  transition: border-color 0.3s var(--ease);
}
.link:hover { border-color: var(--white); }

/* Roll-up text hover: label lifts away, accent duplicate rolls in */
[data-hover-roll] {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
[data-hover-roll] > span {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
[data-hover-roll]::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: inherit;
}
[data-hover-roll]:hover > span { transform: translateY(-110%); }
[data-hover-roll]:hover::after { transform: translateY(0); }

/* ---------------------------------- Navigation ----------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  color: var(--white);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
}
.nav__logo {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}

.nav__links {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.25rem;
  padding: 0 1.25rem;
  background: var(--bg);
  color: var(--ink);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid var(--hairline);
}
.nav.is-open .nav__links { max-height: 220px; padding: 0.75rem 1.25rem 1.25rem; }
.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0;
}
.nav__actions { display: none; gap: 0.6rem; }

.nav__burger {
  display: grid;
  gap: 5px;
  width: 34px;
  padding: 8px 4px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__burger span { height: 1px; background: currentColor; transition: transform 0.3s var(--ease); }
.nav.is-open .nav__burger span:first-child { transform: translateY(3px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-3px) rotate(-45deg); }

.nav.is-scrolled,
.nav.is-open {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.07);
}

/* Nav link hover: gold shift + underline that sweeps in */
.nav__links a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease), color 0.3s var(--ease);
}
.nav__links a:hover {
  background-size: 100% 1px;
  color: var(--gold);
}

.nav__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.nav.is-scrolled .nav__progress,
.nav.is-open .nav__progress { opacity: 1; }

/* ------------------------------------ Hero --------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: #000;
}
.hero__bg { position: absolute; inset: 0; }
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.8) 100%);
}
.hero__content { position: relative; padding: 6rem 1.25rem; max-width: 1400px; margin: 0 auto; width: 100%; }
.hero__content .eyebrow { color: var(--silver); }
.hero__title { font-size: clamp(2.6rem, 11vw, 6rem); }
.hero__sub {
  margin-top: 1.25rem;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 1.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  animation: float 2.4s var(--ease) infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-6px); opacity: 1; }
}

/* ---------------------------------- Marquee -------------------------------- */
.marquee {
  background: var(--ink);
  color: var(--silver);
  overflow: hidden;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: slide 28s linear infinite;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------------------ Chapters (sticky) --------------------------- */
.chapter {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: grid;
  align-items: end;
}
.chapter::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.78) 100%);
}
.chapter__media { position: absolute; inset: 0; overflow: hidden; }
.chapter__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.chapter__body {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 6rem 1.25rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.chapter__title { font-size: clamp(2rem, 8vw, 4rem); margin-bottom: 1rem; }
.chapter__body p { color: rgba(255, 255, 255, 0.86); max-width: 40ch; }

/* ------------------------------- Tenants (horizontal) ----------------------- */
.tenants {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
}
.tenants__head {
  padding: 3rem 1.25rem 1.75rem;
  max-width: 1400px;
  margin: 0 auto;
}
.tenants__title { font-size: clamp(2rem, 8vw, 4rem); }
.tenants__progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin-top: 1.75rem;
  max-width: 420px;
}
.tenants__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}
.tenants__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0 1.25rem 3.5rem;
}
.tenant { width: 62vw; max-width: 360px; will-change: transform; }
.tenant img { aspect-ratio: 4 / 3; height: auto; }
.tenant__meta { margin-top: 1rem; }
.tenant__meta h3 {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.tenant__meta p {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--silver);
}

/* ------------------------------------ Stats --------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
  padding: 4.5rem 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
}
.stat__num {
  display: block;
  font-size: clamp(2.6rem, 10vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------- Closing CTA ----------------------------- */
.closing {
  position: relative;
  min-height: 90svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.closing__bg { position: absolute; inset: 0; }
.closing__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.closing__content { position: relative; z-index: 2; padding: 5rem 1.25rem; }
.closing__content .eyebrow { color: var(--silver); }
.closing__title { font-size: clamp(2.2rem, 10vw, 4.5rem); margin-bottom: 2rem; }

/* ----------------------------------- Invite --------------------------------- */
.invite {
  position: relative;
  padding: 6rem 1.5rem;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}
.invite::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23b4552d' stroke-opacity='0.08' stroke-width='1'%3E%3Cellipse cx='44' cy='20' rx='13' ry='17'/%3E%3Cellipse cx='44' cy='68' rx='13' ry='17'/%3E%3Cellipse cx='20' cy='44' rx='17' ry='13'/%3E%3Cellipse cx='68' cy='44' rx='17' ry='13'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.invite > * { position: relative; }
.invite__quote {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.5rem, 6vw, 2.7rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.invite__gloss {
  margin: 1.75rem auto 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.95rem;
}
.invite__handle {
  display: inline-block;
  margin-top: 1.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 3px;
  transition: border-color 0.3s var(--ease);
}
.invite__handle:hover { border-color: var(--accent); }

/* ----------------------------------- Footer --------------------------------- */
.footer { background: var(--bg); border-top: 1px solid var(--hairline); }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 3rem 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
}
.footer__cols h4 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
  font-weight: 500;
}
.footer__cols a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease);
}
.footer__cols a:hover { color: var(--accent); }
.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ================================ Desktop up ================================ */
@media (min-width: 768px) {
  :root { --nav-h: 76px; }

  .nav__inner { padding: 0 2.5rem; gap: 2rem; }
  .nav__logo { margin-right: 0; }
  .nav__burger { display: none; }
  .nav__links {
    position: static;
    display: flex;
    gap: 2rem;
    margin-left: auto;
    background: none;
    color: inherit;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
  }
  .nav__links a { color: inherit; font-size: 0.85rem; letter-spacing: 0.12em; }
  .nav__actions { display: flex; }

  .hero__content, .chapter__body, .tenants__head, .stats, .closing__content { padding-left: 2.5rem; padding-right: 2.5rem; }
  .hero__scroll { left: 2.5rem; }

  .chapter { align-items: center; }
  .chapter__body { padding-top: 6rem; padding-bottom: 6rem; max-width: 55%; }
  .chapter--reverse .chapter__body { margin-left: auto; margin-right: 0; text-align: right; }
  .chapter--reverse .chapter__body p { margin-left: auto; }

  .tenants__track { padding: 0 2.5rem 3rem; gap: 1.75rem; }
  .tenant { max-width: 400px; }

  .stats { grid-template-columns: repeat(4, 1fr); padding: 6rem 2.5rem; }

  .footer__cols { grid-template-columns: repeat(4, 1fr); padding: 4.5rem 2.5rem; }
  .footer__base { padding: 1.5rem 2.5rem; }
}

/* ==========================================================================
   Motion layer — GSAP drives everything; these are the no-JS / reduced fallbacks
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .marquee__track { animation: none; }
  .hero__scroll { animation: none; }
  .cursor { opacity: 0 !important; }
}
