/* Nihari Point: the black-and-gold look and its animation layer, on top of the kit (system.css, layout.css).
   Everything here rests under prefers-reduced-motion, and every hidden state waits for html.rv (set by a
   head script), so without script the page shows whole. */

/* ---------- type and gold ---------- */
h1, h2, h3, .close__word, .nav__logo { font-family: var(--font-display); }
h2 { font-weight: 500; letter-spacing: -0.01em; }
.gold-text, .nav__logo, .close__word, .cine__name {
  background: var(--gold-grad); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav__logo { font-weight: 600; letter-spacing: .02em; }
.nav__logo .mark { background: var(--gold); -webkit-text-fill-color: initial; }
.close__word { animation: shimmer 9s linear infinite; padding-bottom: .06em; }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 220% 50%; } }

/* a short gold rule drawn before each section heading */
main > .section h2::before, .closing__cta h2::before {
  content: ""; display: block; width: 56px; height: 1px; margin-bottom: 20px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform-origin: left; transition: transform 1.1s cubic-bezier(.22,1,.36,1) .15s;
}
html.rv main > .section:not(.is-seen) h2::before, html.rv .closing:not(.is-seen) .closing__cta h2::before { transform: scaleX(0); }

/* the nav: a thin gold line under it once the page moves */
.nav { transition: box-shadow .4s ease, border-color .4s ease; }
.nav.is-scrolled { border-bottom-color: color-mix(in oklab, var(--gold) 45%, transparent); box-shadow: 0 10px 30px -18px rgb(212 175 55 / .35); }

/* primary buttons: a light passes across them on hover */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s cubic-bezier(.22,1,.36,1);
}
@media (hover: hover) { .btn--primary:hover::after { transform: translateX(120%); } }
.btn--secondary { border-color: color-mix(in oklab, var(--gold) 60%, transparent); color: var(--ink); }

/* ---------- the cinematic hero ---------- */
.hero--cine {
  position: relative; height: 100svh; min-height: 620px; padding: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; background: #050505; color: #f5f2ed;
}
.hero--cine > .hero__bg { position: absolute; inset: 0; z-index: 0; display: block; }
.hero--cine > .hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block;
  transform-origin: 60% 45%; animation: kenburns 26s ease-in-out infinite alternate; will-change: transform;
}
@keyframes kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.hero--cine::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgb(5 5 5 / .96) 0%, rgb(5 5 5 / .78) 30%, rgb(5 5 5 / .35) 62%, rgb(5 5 5 / .55) 100%),
    radial-gradient(120% 80% at 20% 100%, rgb(10 47 31 / .55), transparent 60%);
}
main > section.hero.hero--cine { height: 100svh; padding: var(--nav) 0 0; }
main > section.hero.hero--cine > .wrap { position: relative; z-index: 2; justify-content: flex-end; padding-bottom: 120px; }
.cine { max-width: 900px; }
.cine__eyebrow {
  display: flex; align-items: center; gap: 16px; margin: 0 0 28px;
  font: 500 13px/1.4 var(--font-text); letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.cine__rule { display: block; width: 64px; height: 1px; background: var(--gold); transform-origin: left; }
.hero--cine h1 { margin: 0; display: grid; gap: 14px; }
.cine__name { font: 500 clamp(60px, 9.5vw, 148px)/.92 var(--font-display); letter-spacing: -0.02em; }
.cine__sub { font: italic 400 clamp(24px, 2.6vw, 38px)/1.2 var(--font-display); color: #f5f2ed; }
.cine__lead { margin: 24px 0 0; max-width: 46ch; font: 400 18px/1.6 var(--font-text); color: rgb(245 242 237 / .86); }
.cine__actions { margin-top: 36px; }
.hero--cine .btn--secondary { background: rgb(5 5 5 / .35); backdrop-filter: blur(6px); }

/* the entrance: once, on load */
.cine > * { animation: rise 1.1s cubic-bezier(.22,1,.36,1) both; }
.cine__eyebrow { animation-delay: .15s; }
.cine__rule { animation: draw 1.2s cubic-bezier(.22,1,.36,1) .35s both; }
.hero--cine h1 { animation: none; }
.cine__name { display: block; animation: rise 1.2s cubic-bezier(.22,1,.36,1) .3s both, shimmer 10s linear 1.6s infinite; }
.cine__sub { display: block; animation: rise 1.1s cubic-bezier(.22,1,.36,1) .5s both; }
.cine__lead { animation-delay: .68s; }
.cine__actions { animation-delay: .84s; }
.hero--cine > .hero__bg { animation: unveil 1.8s cubic-bezier(.22,1,.36,1) both; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes unveil { from { opacity: 0; filter: brightness(.4); } to { opacity: 1; filter: none; } }

/* a gold line that runs down from the hero */
.cine__scroll { position: absolute; right: max(24px, var(--gut, 80px)); bottom: calc(40px + var(--bar, 0px)); z-index: 2; width: 44px; height: 64px; display: grid; place-items: center; }
.cine__scroll span { position: relative; width: 1px; height: 56px; background: rgb(212 175 55 / .25); overflow: hidden; }
.cine__scroll span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: drip 2.2s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes drip { to { top: 100%; } }

@media (max-width: 639px) {
  main > section.hero.hero--cine > .wrap { padding-bottom: 88px; }
  .cine__eyebrow { letter-spacing: .14em; font-size: 12px; margin-bottom: 20px; }
  .cine__rule { width: 32px; }
  .cine__lead { font-size: 16px; }
  .cine__actions { flex-direction: row; flex-wrap: nowrap; gap: 12px; }
  .cine__actions .btn { flex: 1 1 0; padding-inline: 12px; }
  .cine__scroll { display: none; }
}

/* ---------- reveals as the page scrolls ---------- */
html.rv [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
html.rv [data-reveal="fade"] { transform: none; }
html.rv [data-reveal="wipe"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(.77,0,.18,1); transition-delay: calc(var(--i, 0) * 90ms); }
html.rv [data-reveal].is-in { opacity: 1; transform: none; }
html.rv [data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0); }

/* menu rows: gold on hover, with a slide */
.rows > li { transition: background-color .3s ease; }
.rows > li .rows__name { transition: color .3s ease, transform .35s cubic-bezier(.22,1,.36,1); }
.rows > li .rows__value { font-variant-numeric: tabular-nums; transition: color .3s ease; }
@media (hover: hover) {
  .rows > li:hover .rows__name { color: var(--gold); transform: translateX(6px); }
  .rows > li:hover .rows__value { color: var(--gold); }
}
.t-label { color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }

/* photographs: a slow zoom on hover inside their frames, a gold edge */
.pl-photo { overflow: hidden; position: relative; }
.pl-photo img { transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
@media (hover: hover) { a.pl-photo:hover img { transform: scale(1.06); } }
.pl-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgb(212 175 55 / .22); }

/* the visit card and the map: a gold hairline and a glow on hover */
.visit--card { border: 1px solid rgb(212 175 55 / .18); transition: border-color .4s ease, box-shadow .5s ease; }
.visit--card:hover { border-color: rgb(212 175 55 / .45); box-shadow: 0 30px 60px -40px rgb(212 175 55 / .35); }
/* the Google map: dark tones to sit in the page, full colour while you use it */
.gmap { position: relative; height: 520px; overflow: hidden; border: 1px solid rgb(212 175 55 / .3); background: #151512; }
.gmap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
  filter: invert(.9) hue-rotate(180deg) saturate(.7) contrast(.92); transition: filter .6s ease; }
.gmap:hover iframe, .gmap:focus-within iframe { filter: none; }
@media (max-width: 1023px) { .gmap { height: 420px; } }
@media (max-width: 639px) { .gmap { height: 520px; } }
#visit .visit__cols { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-5); }
#visit .hours dd { white-space: nowrap; }

/* the order rows: the link arrow moves */
.order-rows .link { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero--cine > .hero__bg img { transform: none; }
}

/* readability fixes: a darker field behind the hero's words, the footer name never clipped,
   section headings a step larger to sit above Montserrat's body text */
.hero--cine::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(5 5 5 / .82) 0%, rgb(5 5 5 / .6) 40%, rgb(5 5 5 / 0) 75%);
}
.cine__eyebrow, .cine__lead, .cine__sub { text-shadow: 0 1px 12px rgb(0 0 0 / .85); }
.cine__eyebrow { color: var(--gold-light); }
.close__word { line-height: 1.05; padding-top: .08em; overflow: visible; }
main > .section h2, .closing__cta h2 { font-size: clamp(34px, 3.6vw, 56px); line-height: 1.08; }

/* secondary buttons: an outlined gold button, filled gold on hover */
html[data-buttons] .btn.btn--secondary {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px;
  border: 1px solid var(--gold); border-radius: 0; background: transparent; color: var(--gold);
  text-decoration: none; background-image: none; border-color: var(--gold); font: 500 16px/1 var(--font-text);
  transition: background-color .25s ease, color .25s ease;
}
html[data-buttons] .btn.btn--secondary::after, html[data-buttons] .btn.btn--secondary::before { display: none; }
@media (hover: hover) { html[data-buttons] .btn.btn--secondary:hover { background: var(--gold); color: #0a0a09; } }
.hero--cine html[data-buttons] .btn.btn--secondary { background: rgb(5 5 5 / .35); }
@media (hover: hover) { .hero--cine html[data-buttons] .btn.btn--secondary:hover { background: var(--gold); color: #0a0a09; } }

/* the footer: room for the name set large, so it never runs into the links */
footer.closing { height: auto; min-height: 100svh; }
footer.closing > .wrap { height: auto; }
.closing__cta.close--word { display: flex; flex-direction: column; }
.close__word { margin: 56px 0 72px; font-size: clamp(56px, 10.5vw, 164px); line-height: 1; white-space: nowrap; }
@media (max-width: 639px) { .close__word { font-size: 14vw; margin: 40px 0 48px; } }
/* the header's two gold buttons, side by side */
.nav__actions { display: flex; gap: 12px; align-items: center; }
@media (max-width: 1180px) and (min-width: 640px) { .nav__actions { gap: 8px; } .nav__actions .btn { padding-inline: 14px; } .nav__links { gap: 20px; } .nav__links > .nav__item:last-child { display: none; } }
/* the phone bar: both buttons, half each */
.actionbar { gap: 12px; }
.actionbar .btn { flex: 1 1 0; }

/* the footer's own icons, larger and gold */
.footer__legal .socials { gap: 14px; }
.footer__legal .socials a { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgb(212 175 55 / .5); border-radius: 50%; color: var(--gold); transition: background-color .25s ease, color .25s ease; }
.footer__legal .socials a svg { width: 24px; height: 24px; }
@media (hover: hover) { .footer__legal .socials a:hover { background: var(--gold); color: #0a0a09; } }

/* the follow row: two compact gold buttons under the closing head */
.follow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 36px; }
.follow-row__label { font: 500 13px/1 var(--font-text); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-right: 8px; }
.follow-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px 0 16px; text-decoration: none;
  border: 1px solid var(--gold); color: var(--ink); background: rgb(212 175 55 / .06); font: 500 15px/1 var(--font-text);
  transition: background-color .25s ease, color .25s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.follow-btn svg { width: 24px; height: 24px; color: var(--gold); transition: color .25s ease; flex: none; }
.follow-btn b { font-weight: 500; color: var(--gold); margin-left: 4px; transition: color .25s ease; }
@media (hover: hover) {
  .follow-btn:hover { background: var(--gold); color: #0a0a09; transform: translateY(-2px); }
  .follow-btn:hover svg, .follow-btn:hover b { color: #0a0a09; }
}
@media (max-width: 639px) {
  .follow-row { gap: 10px; }
  .follow-row__label { flex-basis: 100%; margin: 0 0 4px; }
  .follow-btn { flex: 1 1 100%; justify-content: flex-start; }
}

/* phones: sections as tall as what they hold, no empty bands between them */
@media (max-width: 639px) {
  main > section.section, footer.closing { height: auto !important; min-height: 0 !important; padding-top: 72px; padding-bottom: calc(72px + var(--bar, 0px)); }
  main > section.section > .wrap, footer.closing > .wrap { height: auto; }
  main > section.section + section.section { border-top: 1px solid rgb(212 175 55 / .12); }
  main > .section h2, .closing__cta h2 { font-size: 36px; }
  main > .section h2::before, .closing__cta h2::before { margin-bottom: 14px; }
  .section-head { margin-bottom: 28px; }
  :is(#menu, #order) .section-head.grid { row-gap: 10px; }

  /* the hero's small line on one row */
  .cine__eyebrow { font-size: 11px; letter-spacing: .1em; gap: 10px; }
  .cine__rule { width: 20px; }

  /* visit: hours read as two rows, the map a little shorter */
  #visit .grid--top { row-gap: 24px; }
  .visit--card { padding: 24px; }
  #visit .hours { grid-template-columns: 1fr auto; }
  #visit .hours dt { white-space: nowrap; }
  .gmap { height: 340px !important; }

  /* menu: the photo after the lists, full width */
  #menu .develop { margin-top: 8px; }

  /* pickup and delivery: each way on its own full-width row */
  .order-rows > li { display: grid; grid-template-columns: 1fr; gap: 6px; padding-block: 18px; }
  .order-rows > li > .link { justify-self: start; }
  #order .grid--top > .pl-photo { margin-top: 8px; }

  /* the close and footer */
  .close__word { margin: 32px 0 40px; }
  .closing__links .grid { row-gap: 28px; }
}
@media (max-width: 639px) {
  /* hours: the day, then its time under it */
  #visit .hours { display: grid; grid-template-columns: 1fr; row-gap: 2px; }
  #visit .hours dd { margin: 0 0 12px; color: var(--gold); }
  /* the footer starts at its top, no empty band above the close */
  footer.closing > .wrap { justify-content: flex-start; gap: 0; }
  footer.closing .closing__cta { margin-top: 0; flex: none; }
  footer.closing .closing__links { margin-top: 8px; }
  .close__word { margin: 28px 0 32px; }
}
@media (max-width: 639px) {
  main > section.section { padding-bottom: 64px; }
  footer.closing { padding-top: 64px; }
}
