/* BÚN — Vietnamese Kitchen, Phnom Penh
   Palette sampled from the carved wordmark and the ochre walls. */

:root {
  --ink:        #150F0D;
  --ink-soft:   #241A16;
  --red:        #E9081A;
  --red-deep:   #720302;
  --gold:       #FAC42D;
  --ochre:      #E09F42;
  --terracotta: #B35A2E;
  --cream:      #FAF6DD;
  --cream-dim:  #CFC6A6;

  --display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;

  --gut: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

::selection { background: var(--red); color: var(--cream); }

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

.wrap { width: min(1320px, 100% - var(--gut) * 2); margin-inline: auto; }

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--body);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ochre);
}

h2.head {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 8vw, 104px);
  line-height: .88;
  letter-spacing: -.035em;
  margin: .18em 0 0;
  text-wrap: balance;
}

/* ---------- nón lá rail: the ceiling of conical hats, drawn as the page's divider ---------- */

.rail {
  position: relative;
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1.6vw, 20px);
  padding-top: 26px;
  pointer-events: none;
  overflow: hidden;
}

.rail .hat {
  width: clamp(34px, 5.2vw, 74px);
  flex: 0 0 auto;
  transform-origin: 50% -26px;
  animation: sway 6.5s var(--ease) infinite alternate;
}

.rail .hat svg { width: 100%; height: auto; display: block; overflow: visible; }
.rail .hat .cord { stroke: rgba(250, 246, 221, .26); stroke-width: 2; }

@keyframes sway {
  from { transform: rotate(-2.4deg); }
  to   { transform: rotate(2.4deg); }
}

.rail--onred .hat .cone  { fill: var(--cream); }
.rail--onred .hat .brim  { fill: var(--cream-dim); }
.rail--onred .hat .cord  { stroke: rgba(250, 246, 221, .4); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: -4%;
  z-index: -2;
  background: url("assets/img/hats-ceiling.webp") center 22% / cover no-repeat;
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.4%, -2%, 0); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 62% 46% at 50% 46%, rgba(21,15,13,.82), rgba(21,15,13,.1) 74%),
    linear-gradient(180deg, rgba(21,15,13,.8) 0%, rgba(21,15,13,.34) 26%, rgba(21,15,13,.66) 74%, var(--ink) 100%);
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3vw, 34px) var(--gut) 0;
}

.hero__mid {
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(20px, 6vh, 60px) var(--gut);
}

.mark-h1 { margin: 0; line-height: 0; }

.mark {
  width: min(430px, 62vw);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .85)) drop-shadow(0 0 60px rgba(21, 15, 13, .9));
  animation: stamp 1.05s var(--ease) .15s both;
}

@keyframes stamp {
  0%   { opacity: 0; transform: scale(1.22) rotate(-1.6deg); filter: blur(9px) drop-shadow(0 10px 30px rgba(0,0,0,.85)); }
  62%  { opacity: 1; transform: scale(.985) rotate(.35deg); filter: blur(0) drop-shadow(0 10px 30px rgba(0,0,0,.85)); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); filter: blur(0) drop-shadow(0 10px 30px rgba(0,0,0,.85)); }
}

.mark__sub {
  margin: clamp(10px, 1.6vh, 18px) 0 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(11px, 1.45vw, 17px);
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: var(--cream);
  animation: rise .9s var(--ease) .46s both;
}

.hero__line {
  margin: clamp(20px, 3.4vh, 34px) 0 0;
  font-size: clamp(16px, 2.1vw, 23px);
  font-weight: 300;
  letter-spacing: .005em;
  color: var(--cream);
  max-width: 30ch;
  animation: rise 1s var(--ease) .62s both;
}

.hero__line b { font-weight: 600; color: var(--gold); }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero__foot {
  padding: 0 var(--gut) clamp(18px, 3vw, 32px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  animation: rise 1s var(--ease) .88s both;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 1.9s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(.35); transform-origin: top; opacity: .5; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

/* ---------- buttons ---------- */

.btn {
  --bg: var(--red);
  --fg: var(--cream);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.btn span { position: relative; z-index: 1; }

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform .42s var(--ease);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(233, 8, 26, .3); }
.btn:hover::before { transform: translateY(0); }
.btn:hover span { color: var(--ink); }

.btn--ghost {
  --bg: transparent;
  border: 1px solid rgba(250, 246, 221, .32);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover { box-shadow: none; }

/* ---------- ticker ---------- */

.ticker {
  background: var(--red);
  color: var(--cream);
  padding: 16px 0;
  overflow: hidden;
  border-block: 0;
  position: relative;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: slide 46s linear infinite;
}

.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__track > div {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.4vw, 52px);
  padding-right: clamp(22px, 3.4vw, 52px);
}

.ticker span {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(19px, 2.6vw, 34px);
  letter-spacing: -.02em;
  white-space: nowrap;
}

.ticker em {
  font-style: normal;
  color: var(--gold);
  font-size: .6em;
  font-family: var(--body);
  font-weight: 500;
  vertical-align: middle;
  margin-left: .4em;
}

.ticker i {
  width: 9px; height: 9px;
  background: var(--gold);
  border-radius: 50%;
  flex: 0 0 auto;
}

@keyframes slide {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

section { position: relative; }

.sec { padding: clamp(74px, 11vw, 156px) 0; }

.sec__head { margin-bottom: clamp(34px, 5vw, 66px); }

/* reveal */

.rv {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.rv.in { opacity: 1; transform: none; }

.rv-img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.15s var(--ease);
}

.rv-img.in { clip-path: inset(0 0 0 0); }

.rv-img img {
  width: 100%; height: auto; object-fit: cover;
  transform: scale(1.16);
  transition: transform 1.5s var(--ease);
}

.rv-img.in img { transform: scale(1); }

/* ---------- dish grid ---------- */

.dishes {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
}

.dish { position: relative; overflow: hidden; background: var(--ink-soft); }

.dish figure { margin: 0; height: 100%; display: block; }

.dish img { aspect-ratio: var(--ar, 4 / 5); height: 100%; object-fit: cover; }

.dish figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 20px 18px;
  background: linear-gradient(transparent, rgba(21, 15, 13, .9));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  transform: translateY(12px);
  opacity: 0;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.dish.in figcaption { opacity: 1; transform: none; }

.dish b {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 21px);
  letter-spacing: -.015em;
  line-height: 1.1;
}

.dish small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 5px;
}

.dish .price {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 19px);
  color: var(--gold);
  flex: 0 0 auto;
}

.dish::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color .4s var(--ease);
  pointer-events: none;
}

.dish:hover::after { border-color: var(--red); }

.c3 { grid-column: span 3; } .c4 { grid-column: span 4; }
.c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; }

/* ---------- the room ---------- */

.room {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  align-items: start;
}

.room figure { margin: 0; overflow: hidden; background: var(--ink-soft); }
.room img { width: 100%; }

.room .tall img  { aspect-ratio: 3 / 4; object-fit: cover; height: auto; }
.room .wide img  { aspect-ratio: 16 / 10; object-fit: cover; height: auto; }
.room .sq img    { aspect-ratio: 1; object-fit: cover; height: auto; }

.room .offset { margin-top: clamp(26px, 6vw, 96px); }

.room-note {
  grid-column: span 4;
  align-self: center;
  padding: clamp(14px, 2vw, 30px);
}

.room-note p {
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--cream-dim);
  margin: 0;
  max-width: 30ch;
}

/* ---------- menu (paper) ---------- */

.paper {
  background: var(--cream);
  color: var(--ink);
}

.paper .eyebrow { color: var(--terracotta); }
.paper h2.head { color: var(--red); }

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(179, 90, 46, .3);
}

.menu-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(14px, 1.9vw, 21px) 2px;
  border-bottom: 1px solid rgba(179, 90, 46, .3);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left .4s var(--ease), color .3s var(--ease);
}

.menu-list a::before {
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width .4s var(--ease);
}

.menu-list li { position: relative; }

.menu-list a span {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(21px, 3.2vw, 38px);
  letter-spacing: -.028em;
  line-height: 1.05;
}

.menu-list a em {
  font-style: normal;
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--terracotta);
  white-space: nowrap;
  flex: 0 0 auto;
}

.menu-list a:hover { color: var(--red); padding-left: 16px; }
.menu-list a:hover em { color: var(--red); }

.menu-cta {
  margin-top: clamp(28px, 4vw, 46px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.menu-cta .btn { --bg: var(--red); --fg: var(--cream); }
.menu-cta .btn::before { background: var(--ink); }
.menu-cta .btn:hover span { color: var(--cream); }

.paper .foot-note {
  margin: 0;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--terracotta);
}

/* ---------- locations ---------- */

.spots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: clamp(14px, 2vw, 26px);
}

.spot {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-soft);
  overflow: hidden;
  transition: transform .5s var(--ease);
}

.spot:hover { transform: translateY(-6px); }

.spot__img { overflow: hidden; }
.spot__img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; transition: transform .8s var(--ease); }
.spot:hover .spot__img img { transform: scale(1.06); }

.spot__body { padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 12px; flex: 1; }

.spot h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(23px, 2.6vw, 33px);
  letter-spacing: -.03em;
  margin: 0;
  line-height: 1;
}

.spot dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.spot dt { color: var(--ochre); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding-top: 3px; }
.spot dd { margin: 0; color: var(--cream); }
.spot dd a { text-decoration: none; border-bottom: 1px solid rgba(250,246,221,.25); }
.spot dd a:hover { border-color: var(--gold); color: var(--gold); }

.stars {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--gold);
}

.stars small { font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--cream-dim); letter-spacing: .04em; }

.spot__actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.spot__actions .btn { padding: 12px 18px; font-size: 12px; }

/* ---------- footer ---------- */

.foot {
  background: var(--red);
  color: var(--cream);
  padding: clamp(56px, 8vw, 110px) 0 clamp(26px, 4vw, 44px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.foot h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 9vw, 118px);
  line-height: .86;
  letter-spacing: -.04em;
  margin: 0 0 clamp(22px, 3vw, 40px);
}

.foot .btn { --bg: var(--cream); --fg: var(--red); }
.foot .btn::before { background: var(--ink); }
.foot .btn:hover span { color: var(--cream); }
.foot .btn:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }

.foot__meta {
  margin-top: clamp(40px, 6vw, 76px);
  padding-top: 22px;
  border-top: 1px solid rgba(250, 246, 221, .26);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  letter-spacing: .06em;
}

.foot__meta a { text-decoration: none; border-bottom: 1px solid rgba(250,246,221,.4); }
.foot__meta a:hover { color: var(--ink); border-color: var(--ink); }

.foot__mark { width: 118px; opacity: .92; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .c3, .c4, .c5 { grid-column: span 6; }
  .c6, .c7, .c8 { grid-column: span 12; }
  .room > figure { grid-column: span 6 !important; }
  .room .wide { grid-column: span 12 !important; }
  .room-note { grid-column: span 12; }
  .room .offset { margin-top: 0; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .c3, .c4, .c5 { grid-column: span 12; }
  .room > figure { grid-column: span 12 !important; }
  .rail .hat:nth-child(n + 8) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv, .rv-img { opacity: 1; transform: none; clip-path: none; }
  .rv-img img { transform: none; }
  .dish figcaption { opacity: 1; transform: none; }
}
