/* ==========================================================================
   Fire Pho — site.css
   The ONLY stylesheet. Every page links exactly this file and defines no
   <style> block of its own. If you need a new component, add it here under
   the matching section so it is available to every page.

   Fonts are self-hosted below via @font-face (see assets/fonts/).
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Anton';
  src: url('/assets/fonts/anton-latin-vietnamese.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* DM Sans has no vietnamese glyphs upstream (Google Fonts doesn't serve a
   vietnamese subset for it either) — this companion face covers exactly the
   missing precomposed range so ế/ở/ụ/ắ/ố etc. don't drop to a system font
   mid-word. Declared before the latin face so its narrower unicode-range
   wins for those codepoints. */
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dm-sans-vietnamese-companion.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+01A0-01A1, U+01AF-01B0, U+0309, U+0323, U+0329, U+1EA0-1EBB, U+1EBE-1EF1, U+1EF4-1EF7, U+20AB;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dm-sans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched fallbacks (derived from OS/2 + head tables via fontTools)
   so the system font shown during font-display: swap occupies the same box
   as the real webfont — protects the CLS score across the swap. */
@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial');
  size-adjust: 125.28%;
  ascent-override: 79.18%;
  descent-override: 24.74%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Anton Fallback';
  src: local('Impact');
  size-adjust: 76.76%;
  ascent-override: 153.24%;
  descent-override: 42.87%;
  line-gap-override: 0%;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --charcoal: #1A1A1A;
  --charcoal-2: #232323;
  --fire-red: #D62828;
  --flame: #F77F00;
  --glow: #FFC93C;
  --cream: #F7EFE0;
  --cream-2: #F1E6D1;
  --walnut: #3E2723;
  --line: rgba(247, 239, 224, 0.12);
  --line-dark: rgba(26, 26, 26, 0.12);

  --fire-gradient: linear-gradient(180deg, #FFC93C 0%, #F77F00 50%, #D62828 100%);
  --fire-gradient-h: linear-gradient(90deg, #FFC93C 0%, #F77F00 50%, #D62828 100%);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--charcoal);
  color: var(--cream);
  font-family: 'DM Sans', 'DM Sans Fallback', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

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

/* --------------------------------------------------------------------------
   3. Typography helpers
   -------------------------------------------------------------------------- */
.display {
  font-family: 'Anton', 'Anton Fallback', 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.92;
}

.eyebrow {
  font-family: 'DM Sans', 'DM Sans Fallback', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
}

.fire-text {
  background: var(--fire-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Match .split-word's box model (effects.js) so a fire-text span lines up
   with sibling split-word text on the same heading line. */
span.fire-text {
  display: inline-block;
  vertical-align: bottom;
  padding-top: 0.06em;
  padding-bottom: 0.06em;
}

/* Long-form body copy. Wrap article prose in <div class="prose"> */
.prose p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(247, 239, 224, 0.72);
  margin: 0 0 20px;
}
.prose p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* Narrower measure for reading-heavy pages (menu, article pages) */
.container-narrow { max-width: 860px; }

section { position: relative; }
.section-pad { padding: 120px 0; }
@media (max-width: 720px) { .section-pad { padding: 72px 0; } }

.bg-charcoal { background: var(--charcoal); color: var(--cream); }
.bg-cream    { background: var(--cream);    color: var(--charcoal); }
.bg-walnut   { background: var(--walnut);   color: var(--cream); }

/* Hairline section separator used between page sections */
.section-rule {
  background: var(--charcoal);
  padding: 0 32px;
}
.section-rule > div {
  max-width: 860px;
  margin: 0 auto;
  height: 2px;
  background: rgba(247, 239, 224, 0.20);
}

/* --------------------------------------------------------------------------
   5. Buttons
   NOTE: .btn-primary paints its red fill in ::before at z-index:-1 so the
   ::after fire-gradient can cross-fade over it on hover. Setting the red
   directly on the element (the old styles.css did) stacks ::after behind the
   element background and the hover silently does nothing. Do not "simplify".
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  font-family: 'DM Sans', 'DM Sans Fallback', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  border-radius: 2px;
  transition: transform 0.18s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: transparent;
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fire-red);
  z-index: -1;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fire-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(214, 40, 40, 0.65);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(247, 239, 224, 0.35);
}
.btn-ghost:hover { border-color: var(--glow); color: var(--glow); }

.btn-ghost-dark {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid rgba(26, 26, 26, 0.35);
}
.btn-ghost-dark:hover { border-color: var(--fire-red); color: var(--fire-red); }

/* --------------------------------------------------------------------------
   6. Navigation  (identical on every page — see _template.html)
   The active item is set at runtime by site.js from location.pathname.
   Do not hand-add .nav-active in page markup.
   -------------------------------------------------------------------------- */
#main-nav {
  background: transparent;
  border-bottom: 1px solid transparent;
}
#main-nav.nav-scrolled {
  background: rgba(26, 26, 26, 0.85);
  border-bottom-color: rgba(247, 239, 224, 0.08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
#nav-inner { height: 84px; }
#main-nav.nav-scrolled #nav-inner { height: 64px; }

.nav-link {
  color: var(--cream);
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-link:hover { color: var(--glow); opacity: 1; }
.nav-link.nav-active { color: var(--glow); opacity: 1; }

.nav-drawer-link {
  display: block;
  padding: 18px 32px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  border-bottom: 1px solid rgba(247, 239, 224, 0.07);
  transition: color 0.2s, opacity 0.2s;
  text-decoration: none;
}
.nav-drawer-link:hover,
.nav-drawer-link.nav-active { color: var(--glow); opacity: 1; }

.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cream);
  padding: 0;
}

@media (max-width: 900px) {
  .nav-links  { display: none !important; }
  .nav-phone  { display: none !important; }
  .nav-hamburger { display: flex !important; }
}

/* In-page category jump links (menu page) */
.cat-nav-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 239, 224, 0.6);
  transition: color 0.2s;
  text-decoration: none;
}
.cat-nav-link:hover { color: var(--glow); }

/* Gradient-filled inline link */
.gradient-link {
  background: var(--fire-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 2px;
  border: 1px solid rgba(247, 239, 224, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--cream);
  text-decoration: none;
}
.social-icon:hover { border-color: var(--glow); color: var(--glow); }

/* --------------------------------------------------------------------------
   8. Menu components
   -------------------------------------------------------------------------- */
.menu-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease, padding-left 0.2s ease;
}
.menu-item-row:hover {
  border-left-color: var(--fire-red);
  padding-left: 16px;
}

.item-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
}

.item-desc {
  margin: 0;
  font-size: 14px;
  color: rgba(247, 239, 224, 0.58);
  line-height: 1.55;
}

.item-price {
  font-family: 'Anton', 'Anton Fallback', Impact, sans-serif;
  font-size: 22px;
  color: var(--glow);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.item-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--fire-gradient-h);
  color: #1A1A1A;
  padding: 2px 7px;
  border-radius: 2px;
}

.spice-meter {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  margin-left: 8px;
}

.menu-callout {
  background: rgba(62, 39, 35, 0.55);
  border-left: 3px solid var(--flame);
  padding: 16px 22px;
  margin-bottom: 32px;
  border-radius: 0 2px 2px 0;
}

/* --------------------------------------------------------------------------
   9. Article components (comparison table, FAQ)
   -------------------------------------------------------------------------- */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}
.compare-table th,
.compare-table td {
  padding: 16px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
.compare-table thead th {
  font-family: 'Anton', 'Anton Fallback', Impact, sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--glow);
  border-bottom: 2px solid var(--flame);
}
.compare-table tbody th { font-weight: 700; color: var(--cream); width: 22%; }
.compare-table td { color: rgba(247, 239, 224, 0.72); }

@media (max-width: 620px) {
  .compare-table { font-size: 14px; }
  .compare-table th, .compare-table td { padding: 12px 10px; }
  .compare-table thead th { font-size: 16px; }
}

.faq-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 10px;
  line-height: 1.35;
}
.faq-item p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(247, 239, 224, 0.72);
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. Hours table
   -------------------------------------------------------------------------- */
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(247, 239, 224, 0.08);
  font-size: 15px;
  transition: background 0.15s;
}
.hours-row:last-child { border-bottom: none; }
.hours-row:hover { background: rgba(247, 239, 224, 0.04); }
.hours-row .is-closed { color: rgba(247, 239, 224, 0.35); }
.hours-row.is-today { color: var(--glow); font-weight: 600; }

/* --------------------------------------------------------------------------
   11. Media
   Replaces the old .placeholder-img / .placeholder-label pair, which had
   conflicting definitions between story.html and visit.html.
   -------------------------------------------------------------------------- */
.img-cover { position: relative; overflow: hidden; background: rgba(26, 26, 26, 0.85); }
.img-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.map-frame { filter: invert(0.9) hue-rotate(180deg) saturate(0.7) brightness(0.95); }

/* --------------------------------------------------------------------------
   12. Page-specific grids and cards
   -------------------------------------------------------------------------- */
.fact-card { transition: background 0.2s ease; }
.fact-card:hover { background: rgba(247, 239, 224, 0.05) !important; }

.review-card { transition: transform 0.22s ease, box-shadow 0.22s ease; }
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px -12px rgba(26, 26, 26, 0.18);
}
.review-card-dark:hover { box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.5); }

.platform-card { transition: border-color 0.2s ease, background 0.2s ease; }
.platform-card:hover {
  border-color: rgba(247, 239, 224, 0.25) !important;
  background: rgba(247, 239, 224, 0.04) !important;
}

.dish-card {
  background: #1F1F1F;
  border: 1px solid rgba(247, 239, 224, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.dish-card:hover { transform: translateY(-6px); border-color: rgba(255, 201, 60, 0.4); }
.dish-card .dish-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.dish-card .dish-media img { transition: transform 0.45s ease; }
.dish-card:hover .dish-media img { transform: scale(1.06); }

/* Grid stretches every card in a row to equal height; this makes the text
   block fill that height and pushes "Order it" flush to the bottom of every
   card in the row, regardless of how long each description runs. */
.dish-body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Price badge floats over the dish photo instead of sitting in the title
   row — keeps long titles/badges from wrapping the price onto its own line
   and shifting the description below. Not the same as .item-price (menu.html
   uses that inline, in a flex row — do not merge these). */
.dish-price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: 'Anton', 'Anton Fallback', Impact, sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--cream);
  background: rgba(26, 26, 26, 0.7);
  padding: 4px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
}

/* Hero corner meta: Open Now pill + the real (SEO) h1, rotated on the right
   edge. The big "The bowl that hits hardest." copy is decorative marketing
   text, not a heading — this vertical label is the page's one true <h1>. */
@media (max-width: 900px) {
  .hero-meta { display: none !important; }
}

.dish-order-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(247, 239, 224, 0.6);
  transition: color 0.25s;
}
.dish-order-link:hover { color: var(--glow); }
.dish-order-link .dish-order-arrow { display: inline-block; transition: transform 0.25s; }
.dish-order-link:hover .dish-order-arrow { transform: translateX(4px); }

/* Section intro block: eyebrow + heading + subtitle stacked, left-aligned,
   capped width. Also matters structurally — section-transitions.js finds
   scroll-reveal targets via "container > div + div"; wrapping the intro in
   one div keeps that sibling chain intact. */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  text-align: left;
  max-width: 760px;
}

@media (max-width: 720px) {
  .story-two-col { grid-template-columns: 1fr !important; }
  .story-numbers-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .story-numbers-grid > div:nth-child(2) { border-right: none !important; }
  .story-numbers-grid > div:nth-child(3) {
    border-left: none !important;
    border-top: 1px solid var(--line);
  }
  .story-numbers-grid > div:nth-child(4) {
    border-left: 1px solid var(--line) !important;
    border-top: 1px solid var(--line);
  }
  .visit-two-col { grid-template-columns: 1fr !important; }
  .visit-facts-grid { grid-template-columns: 1fr !important; }
  .visit-facts-grid .fact-divider {
    border-left: none !important;
    border-top: 1px solid var(--line) !important;
  }
  .reviews-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .reviews-platforms-grid { grid-template-columns: 1fr !important; }
}

/* --------------------------------------------------------------------------
   13. Motion + utilities
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes steam-rise {
  0%   { transform: translateY(0) scaleX(1); opacity: 0; }
  20%  { opacity: 0.7; }
  100% { transform: translateY(-180px) scaleX(1.4); opacity: 0; }
}
.steam-puff {
  animation: steam-rise 4.5s ease-out infinite;
  transform-origin: center bottom;
  filter: blur(8px);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.divider-fire {
  height: 4px;
  width: 56px;
  background: var(--fire-gradient-h);
  border: 0;
  margin: 0;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* JS-driven scroll/reveal animations. These used to be injected at runtime
   via document.head.appendChild(style) from effects.js and
   section-transitions.js — each call forced a full style recalc, and a
   strict style-src-elem CSP would block them outright. Declared statically
   here instead, gated behind .js-anim (set on <html> by effects.js) so none
   of it applies on the (never-hit, since only JS ever adds these classes)
   no-JS path. */
html.js-anim .split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-top: 0.06em;
  padding-bottom: 0.06em;
}
/* Vietnamese tone marks (Ú, Ò, Ế, ...) sit above the cap-height and need more
   clip headroom than plain Latin capitals. Doubly-stacked marks (ế, ề, ể, ễ,
   ệ combine a circumflex and a second mark) need the most headroom of all —
   scoped to headings that carry diacritics only. padding-right guards
   against the same overhang on the horizontal axis: a word-final "ế" with
   no trailing punctuation to pad the box renders ink past its own advance
   width, which overflow:hidden otherwise clips on the right. */
html.js-anim .diacritic-tall .split-word {
  padding-top: 0.5em;
  padding-right: 0.15em;
}
html.js-anim .split-word-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease;
}
html.js-anim .split-revealed .split-word-inner {
  transform: translateY(0);
  opacity: 1;
}
html.js-anim .eyebrow-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-anim .eyebrow-revealed {
  clip-path: inset(0 0% 0 0);
}

html.js-anim .stat-count { display: inline-block; }

html.js-anim .dish-tilt {
  transform-style: preserve-3d;
  perspective: 800px;
  transition: box-shadow 0.4s ease !important;
}
html.js-anim .dish-tilt:hover {
  box-shadow: 0 24px 60px -16px rgba(214, 40, 40, 0.35) !important;
}

html.js-anim .line-wipe {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-anim .line-wipe.in {
  transform: scaleX(1);
}

/* Section-level enters (section-transitions.js) */
html.js-anim .sec-enter {
  opacity: 0;
  transform: translateY(56px);
  will-change: opacity, transform;
  transition: opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1), transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-anim .sec-enter.sec-in {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}
html.js-anim .from-left {
  opacity: 0;
  transform: translateX(-64px);
  transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1), transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-anim .sec-enter.sec-in .from-left,
html.js-anim .from-left.sec-in {
  opacity: 1;
  transform: none;
}
html.js-anim .from-right {
  opacity: 0;
  transform: translateX(64px);
  transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1), transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-anim .sec-enter.sec-in .from-right,
html.js-anim .from-right.sec-in {
  opacity: 1;
  transform: none;
}
html.js-anim .from-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1), transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-anim .sec-enter.sec-in .from-scale,
html.js-anim .from-scale.sec-in {
  opacity: 1;
  transform: none;
}
html.js-anim .clip-wipe {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-anim .clip-wipe.sec-in {
  clip-path: inset(0% 0 0 0);
}

html.js-anim #sec-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0;
  background: radial-gradient(ellipse 100% 50% at 50% 50%, rgba(247, 127, 0, 0.28) 0%, rgba(214, 40, 40, 0.10) 45%, transparent 70%);
  transition: opacity 0.55s ease;
}

html.js-anim #sec-label {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(60px);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
  opacity: 0;
  pointer-events: none;
}
html.js-anim #sec-label.show {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}
html.js-anim #sec-label-text {
  font-family: 'DM Sans', 'DM Sans Fallback', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247, 239, 224, 0.55);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
html.js-anim #sec-label-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(255, 201, 60, 0.7) 0%, rgba(247, 127, 0, 0.3) 100%);
}
html.js-anim #sec-label-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--glow, #FFC93C);
  box-shadow: 0 0 8px var(--glow, #FFC93C);
}
@media (max-width: 900px) {
  html.js-anim #sec-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Per-page opt-out of the sitewide pre-footer CTA banner (footer markup itself
   stays identical on every page — see tools/check-sync.ps1 — this only hides
   the banner via the page's own <body> class). */
body.no-footer-cta #site-footer > div:first-child { display: none; }
