/* Match the footer behind the document during mobile overscroll. */
html[data-theme],
html[data-theme] body[data-variant="e"] {
  background: #5d0b0e !important;
}

/* Direction buttons keep their full hit area; only hover adds a tinted disc. */
body[data-variant="e"] :is(.signature-carousel-arrow, .chef-carousel-arrow, .menu-category-arrow, [data-location-previous], [data-location-next]) {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--chevron-ink, var(--ink));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body[data-variant="e"] :is([data-location-previous], [data-location-next]) {
  --chevron-ink: #fff;
  --chevron-tint: rgba(33, 16, 8, .55);
}
body[data-variant="e"] :is([data-location-previous], [data-location-next]) .ui-icon {
  filter: drop-shadow(0 1px 2px #211008);
}
@media (hover: hover) and (pointer: fine) {
  body[data-variant="e"] :is(.signature-carousel-arrow, .chef-carousel-arrow, .menu-category-arrow, [data-location-previous], [data-location-next]):hover:not(:disabled) {
    background: radial-gradient(circle 22px, var(--chevron-tint, rgba(112, 74, 55, .14)) 98%, transparent 100%) center / 44px 44px no-repeat;
  }
}

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("./assets/cabinet-grotesk-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("./assets/cabinet-grotesk-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

/* Cabinet Grotesk is reserved for hierarchy; body copy and controls stay in DM Sans. */
html body[data-variant="e"] :is(h1, h2, h3, h4, h5, h6) {
  font-family: "Cabinet Grotesk", "Libre Franklin", Arial, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0;
}

body[data-variant="e"] :is(.story-index, .story-steak-quotes p, .cuts-page .cuts-intro .cuts-intro-lead, .cuts-page .cut-name, .cuts-page .cuts-wagyu-lead, .cuts-page .cuts-quote p, .cuts-page .cut-chef-note p, .careers-page .career-empty span) {
  font-family: "Cabinet Grotesk", "Libre Franklin", Arial, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0;
}

/* Carousel cards retain their earlier display treatment. */
body[data-variant="e"] .signature-carousel .dish-card h3 {
  font-family: var(--headline) !important;
  font-weight: 800 !important;
  letter-spacing: -0.055em;
}

body[data-variant="e"] .chef-carousel .chef-pick h3,
body[data-variant="e"] .location-carousel .location-card h3 {
  font-family: var(--headline) !important;
  font-weight: 400 !important;
  letter-spacing: normal;
}

/* The featured-menu heading is editorial; the category controls remain functional. */
body[data-variant="e"] .signature-gallery .section-heading {
  text-align: left;
}

body[data-variant="e"] .signature-gallery .menu-tabs {
  align-items: stretch;
}

body[data-variant="e"] .signature-gallery .menu-tab {
  max-width: min(82vw, 240px);
  min-height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.08;
}

/* Shared polish for the pages touched by the heading pass. */
body[data-variant="e"] :is(.section-heading, .chef-picks-heading, .cut-section-heading, .cuts-chicken-heading) {
  color: var(--ink);
}

body[data-variant="e"] .section-heading h2 {
  text-wrap: balance;
}

html[data-theme] body[data-variant="e"] .locations-section .section-heading h2 {
  color: var(--ink);
}

body[data-variant="e"] :is(.signature-carousel-arrow, .signature-carousel-play, .chef-carousel-arrow, .chef-carousel-play):hover {
  transform: translateY(-1px);
}

body[data-variant="e"] :is(.signature-carousel-arrow, .signature-carousel-play, .chef-carousel-arrow, .chef-carousel-play):active {
  transform: translateY(0) scale(.96);
}

body[data-variant="e"] :is(.footer-action a, .footer-action button) {
  min-height: 44px;
}

body[data-variant="e"] footer.site-footer :is(.footer-intro, .footer-action, .footer-directory) {
  order: 0;
}

body[data-variant="e"] footer.site-footer .footer-action {
  order: 1;
}

body[data-variant="e"] footer.site-footer .footer-directory {
  order: 2;
}

html[data-theme] body[data-variant="e"] .footer-action .fold-button {
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: #f8f2ea !important;
  color: #651020 !important;
  box-shadow: 0 16px 34px rgba(78, 5, 22, .24) !important;
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 1024px) {
  body[data-variant="e"] footer.site-footer .footer-action {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  body[data-variant="e"] footer.site-footer .footer-directory {
    grid-column: 2 / -1;
    grid-row: 1 / span 2;
  }
}

/* Centre decorative chevrons without inline SVG baseline space. */
:is(a, button) > span[aria-hidden="true"]:has(> .ui-icon) {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.text-link {
  align-items: center;
}

/* Desktop story layouts should use the full restaurant canvas, not a narrow column. */
@media (min-width: 1024px) {
  body[data-variant="e"] .story-section {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    grid-template-columns: minmax(0, 1fr);
    padding-inline: max(32px, calc((100vw - 1680px) / 2 + 48px));
  }

  body[data-variant="e"] :is(.story-index, .story-heading, .story-copy, .story-principles, .story-future, .story-steak-quotes) {
    grid-column: 1 / -1;
  }

  body[data-variant="e"] .story-team {
    grid-column: 1 / -1;
    width: 100vw;
    min-height: clamp(620px, 64svh, 920px);
    left: 50%;
    margin-left: 0;
    margin-right: 0;
    transform: translateX(-50%);
  }

  body[data-variant="e"] .story-team img {
    object-position: center 44%;
  }

  body[data-variant="e"] .story-team figcaption strong {
    font-size: clamp(54px, 5.2vw, 104px);
  }

  body[data-variant="e"] .story-copy {
    width: min(100%, 1180px);
    max-width: none;
  }

  body[data-variant="e"] .story-copy .story-subheading {
    max-width: none;
    font-size: clamp(34px, 3.1vw, 58px);
    line-height: 1.05;
  }

  body[data-variant="e"] .story-copy > p:not(.section-label):not(.story-subheading) {
    max-width: 74ch;
    font-size: clamp(19px, 1.3vw, 23px);
    line-height: 1.55;
  }

  body[data-variant="e"] :is(.story-principles, .story-future, .story-steak-quotes) {
    width: min(100%, 1440px);
    margin-inline: auto;
  }
}

@media (min-width: 1024px) {
  body[data-variant="e"] .signature-gallery .section-heading {
    display: block;
  }

  body[data-variant="e"] .signature-gallery .section-heading > div {
    width: 100%;
  }

  body[data-variant="e"] .signature-gallery .menu-tabs {
    display: grid;
    grid-template-columns: minmax(148px, 1.35fr) minmax(132px, 1.12fr) minmax(78px, .72fr) minmax(126px, 1.08fr) minmax(140px, 1.18fr) minmax(104px, .9fr);
    width: 100%;
    gap: clamp(6px, 0.8vw, 12px);
    overflow: visible;
  }

  body[data-variant="e"] .signature-gallery .menu-tab {
    max-width: none;
    min-width: 0;
    padding-inline: clamp(8px, .85vw, 14px);
    font-size: clamp(11px, .86vw, 13px);
    white-space: nowrap;
    text-align: center;
  }
}

/* September 22 polish pass: narrow booking card, quieter navigation, cleaner review/story surfaces. */
body[data-variant="e"] .hero h1 {
  text-transform: none !important;
}

body[data-variant="e"] .menu-toggle {
  gap: 0;
}

body[data-variant="e"] .menu-toggle-label {
  display: none !important;
}

body[data-variant="e"] :is(.signature-carousel-arrow, .signature-carousel-play, .chef-carousel-arrow, .chef-carousel-play, .location-carousel-play) {
  display: none !important;
}

body[data-variant="e"] :is(.signature-carousel-controls, .chef-carousel-controls) {
  grid-template-columns: minmax(0, 1fr);
  min-height: 44px;
}

body[data-variant="e"] :is(.signature-carousel-pagination, .chef-carousel-pagination, .location-carousel-dots) {
  justify-content: center;
}

body.full-menu-page[data-variant="e"] .chef-carousel-arrow {
  display: grid !important;
}

body.full-menu-page[data-variant="e"] .chef-carousel-controls {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
}

html[data-theme] body[data-variant="e"] :is(.locations-section, .location-carousel, .location-grid) {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme] body[data-variant="e"] .locations-section .section-heading h2 {
  color: var(--ink) !important;
}

body[data-variant="e"] .story-team {
  background: transparent !important;
}

body[data-variant="e"] .story-team figcaption {
  background: transparent !important;
  box-shadow: none !important;
}

body[data-variant="e"] .story-future > article {
  justify-content: flex-end;
}

body[data-variant="e"] .story-future span {
  position: static !important;
  display: block;
  margin: 0 0 14px;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: none;
}

body[data-variant="e"] .story-future h3 {
  margin-top: 0;
}

body[data-variant="e"] .story-steak-quotes p {
  max-width: 34ch;
  font-size: clamp(24px, 3vw, 42px) !important;
  line-height: 1.06;
}

body[data-variant="e"] .reviews-section .section-heading {
  display: block;
  text-align: center;
}

body[data-variant="e"] .reviews-section .section-heading h2 {
  white-space: nowrap;
  text-wrap: nowrap;
}

body.full-menu-page[data-variant="e"] .menu-page-hero h1 {
  max-width: min(100%, 16.4ch);
  white-space: normal;
  text-wrap: balance;
  font-size: clamp(40px, 10.8vw, 76px);
  line-height: .92;
}

@media (min-width: 1200px) {
  body.full-menu-page[data-variant="e"] .menu-page-hero h1 {
    max-width: none;
    white-space: nowrap;
    text-wrap: nowrap;
    font-size: clamp(64px, 4.65vw, 78px);
  }
}

body[data-variant="e"] .reviews-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

body[data-variant="e"] .review-card {
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

body[data-variant="e"] .review-card blockquote {
  font-size: 14px;
}

body[data-variant="e"] .footer-brand {
  display: none !important;
}

body[data-variant="e"] .private-night .food-slide:nth-child(2) img {
  object-position: center 52%;
}

body[data-variant="e"] .private-night .food-slide:nth-child(3) img {
  object-position: center 50%;
}

body[data-variant="e"] .private-night .food-slide:nth-child(4) img {
  object-position: center 55%;
}

@media (min-width: 768px) {
  body[data-variant="e"] dialog.booking-dialog[open] {
    inset: 50% auto auto 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(640px, calc(100vw - 48px)) !important;
    max-width: 640px !important;
    max-height: min(820px, calc(100dvh - 48px)) !important;
    height: auto !important;
    min-height: 0 !important;
    margin: auto !important;
    padding: clamp(24px, 3vw, 34px) !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-content: start !important;
    row-gap: 14px !important;
    overflow: auto !important;
    border-radius: 18px !important;
    box-shadow: 0 32px 100px rgba(0, 0, 0, .52) !important;
  }

  body[data-variant="e"] dialog.booking-dialog > .dialog-copy,
  body[data-variant="e"] dialog.booking-dialog > .booking-form {
    max-width: none !important;
    width: 100% !important;
  }

  body[data-variant="e"] dialog.booking-dialog > form[method="dialog"] {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
  }

  body[data-variant="e"] dialog.booking-dialog .dialog-logo {
    width: 76px !important;
  }

  body[data-variant="e"] dialog.booking-dialog h2 {
    font-size: clamp(30px, 3.5vw, 42px) !important;
  }

  body[data-variant="e"] dialog.booking-dialog .dialog-copy > p {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  body[data-variant="e"] dialog.booking-dialog .booking-form {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  body[data-variant="e"] dialog.booking-dialog .booking-form label {
    min-width: 0;
  }

  body[data-variant="e"] dialog.booking-dialog .booking-form :is(input, select) {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 15px !important;
  }

  body[data-variant="e"] dialog.booking-dialog .booking-form button[type="submit"] {
    width: fit-content !important;
    min-width: 220px !important;
    min-height: 48px !important;
    justify-self: start !important;
    padding-inline: 22px !important;
  }
}

@media (max-width: 520px) {
  body[data-variant="e"] .reviews-section .section-heading h2 {
    white-space: normal;
    text-wrap: balance;
  }
}

/* Tomahawk hero update: keep the steak centred and make the mobile headline more confident. */
body[data-variant="e"] .hero-image:nth-of-type(1) {
  object-position: 54% 50% !important;
}

body[data-variant="e"] .hero-image:nth-of-type(2) {
  object-position: center center !important;
}

body[data-variant="e"] .hero-image:nth-of-type(3) {
  object-position: 48% 50% !important;
}

body[data-variant="e"] .hero picture .hero-image.hero-image-tgf {
  object-position: center center !important;
}

@media (max-width: 767px) {
  body[data-variant="e"] .hero picture .hero-image.hero-image-tgf {
    object-position: center 42% !important;
  }
}

body[data-variant="e"] .hero-rotation-toggle {
  position: absolute;
  z-index: 2;
  right: max(18px, calc((100vw - 1440px) / 2 + 32px));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  color: #fff;
  background: rgba(8, 7, 6, .58);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

body[data-variant="e"] .hero-rotation-toggle:focus-visible {
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 999px;
  overflow: visible;
  clip-path: none;
}

@media (prefers-reduced-motion: reduce) {
  body[data-variant="e"] .hero-rotation-toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  body[data-variant="e"] .hero h1 {
    font-size: clamp(34px, 9.6vw, 42px) !important;
    line-height: .9 !important;
  }
}

/* September 23 location/story polish: lock the team title to Cabinet and tighten the story rhythm. */
body[data-variant="e"] .story-team figcaption strong {
  font-family: "Cabinet Grotesk", "Libre Franklin", Arial, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em;
}

body[data-variant="e"] .story-section {
  padding-bottom: clamp(56px, 7vw, 88px);
}

body[data-variant="e"] .story-team {
  margin-top: clamp(24px, 4vw, 58px);
}

body[data-variant="e"] .location-card > .location-preview-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background-color: color-mix(in srgb, var(--ink) 8%, transparent);
}

body[data-variant="e"] .location-preview-frame .location-preview {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

body[data-variant="e"] .location-preview-frame-jp .location-preview {
  object-position: center 50%;
}

body[data-variant="e"] .location-preview-frame-mahadevapura .location-preview {
  object-position: center 68%;
}

body[data-variant="e"] .location-preview-alt {
  opacity: 0;
}

body[data-variant="e"] .location-card.is-active .location-preview-alt {
  animation: location-slide-swap 2.4s ease-in-out forwards;
}

@keyframes location-slide-swap {
  0%, 45% { opacity: 0; }
  75%, 100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-variant="e"] .location-card.is-active .location-preview-alt {
    animation: none;
  }
}

@media (max-width: 767px) {
  body[data-variant="e"] .location-preview-frame-jp .location-preview {
    object-position: center 46%;
  }

  body[data-variant="e"] .location-preview-frame-mahadevapura .location-preview {
    object-position: center 56%;
  }
}

@media (hover: hover) and (pointer: fine) {
  body[data-variant="e"] .fold-button:hover::before { box-shadow: .2em .2em .5em rgba(0, 0, 0, .62); }
}
