/* HANGFOOK / PetDock Overseas — Sketchbook Art-Directed Subpage Stylesheet
   Matches the exact Figma artboard visual DNA: warm cream paper (#F7F5EF),
   crisp ink hairlines (#25251F), sky blue (#31CCFF), sunny yellow (#FFD400),
   Q-bounce spring physics, peeking mascots, and zero generic SaaS clutter. */

:root {
  --paper: #F7F5EF;
  --paper-soft: #FFFDF8;
  --ink: #25251F;
  --muted: rgba(37, 37, 31, 0.66);
  --line: rgba(37, 37, 31, 0.16);
  --blue: #31CCFF;
  --blue-soft: #DFF7FF;
  --yellow: #FFD400;
  --yellow-soft: #FFF4B8;
  --mint: #B8F2D6;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-ink: 4px 4px 0 #25251F;
  --shadow-lg: 6px 6px 0 #25251F;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Arial Rounded MT Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "PingFang TC", "Noto Sans TC", "Hiragino Kaku Gothic ProN", "Meiryo", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans Arabic", "Tahoma", "Noto Sans Thai", sans-serif;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px dashed var(--ink);
  outline-offset: 4px;
}

.hf-wrap {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Sketchbook Header (mirrors homepage nav-line & HF HANGFOOK logo) ---------- */
.hf-header {
  position: relative;
  z-index: 30;
  padding: 18px 24px 0;
}
.hf-header-inner {
  max-width: 1349px;
  margin: 0 auto;
  padding: 0 6px 14px;
  border-bottom: 1.5px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.hf-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform .4s var(--spring);
}
.hf-brand:hover { transform: scale(1.04) rotate(-1deg); }
.hf-brand .hf-mark { width: 26px; height: 23px; display: block; }
.hf-brand .hf-word { width: 102px; height: 13px; display: block; }

.hf-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13px;
  font-weight: 700;
}
.hf-nav a {
  text-decoration: none;
  color: rgba(37, 37, 31, 0.72);
  padding: 4px 2px;
  transition: color .15s ease, transform .3s var(--spring);
}
.hf-nav a:hover, .hf-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.hf-dl-drop { position: relative; }
.hf-dl-drop > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--blue);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .4s var(--spring), box-shadow .16s ease;
}
.hf-dl-drop > summary::-webkit-details-marker { display: none; }
.hf-dl-drop > summary:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 5px 0 var(--ink); }
.hf-dl-drop > summary:active { transform: translateY(2px) scale(.97); box-shadow: 0 1px 0 var(--ink); }
.hf-dl-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 70;
  width: 264px;
  padding: 10px;
  background: var(--paper-soft);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
  display: grid;
  gap: 8px;
  animation: hfPop .32s var(--spring) both;
}
.hf-dl-opt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 13px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--ink) !important;
  text-decoration: none !important;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .35s var(--spring), box-shadow .15s ease, background .15s ease;
}
.hf-dl-opt:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 5px 0 var(--ink); background: var(--blue); }
.hf-dl-opt:active { transform: translateY(2px) scale(.98); box-shadow: 0 1px 0 var(--ink); }
.hf-dl-opt.y { background: var(--yellow-soft); }
.hf-dl-opt.y:hover { background: var(--yellow); }
.hf-dl-opt strong { font-size: 14px; line-height: 1.25; }
.hf-dl-opt span { font-size: 11.5px; color: rgba(37, 37, 31, .75); font-weight: 600; }

/* ---------- Playful Illustrated Hero Stage ---------- */
.hf-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 46px;
}
.hf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/figma/bg-wood-ext.webp') center top / 1440px auto no-repeat;
  opacity: 0.42;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.hf-hero-rainbow {
  position: absolute;
  left: -46px;
  top: -78px;
  width: 280px;
  height: auto;
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
  animation: hfFadeIn .9s ease-out both;
}
@keyframes hfFadeIn { from { opacity: 0; transform: scale(.92) rotate(-4deg); } to { opacity: .85; transform: none; } }

/* Floating Q-bounce stickers */
.hf-float {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  z-index: 4;
  transition: transform .45s var(--spring);
  animation: hfPop .85s var(--spring) var(--fd, .2s) both;
}
.hf-float img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  animation: hfSway var(--sd, 3.6s) ease-in-out var(--sdl, 0s) infinite alternate;
}
.hf-float:hover { transform: scale(1.18) rotate(8deg); }
.hf-float:active { transform: scale(.86) rotate(-6deg); }
.hf-float.is-boing { animation: hfBoing .55s var(--spring); }
@keyframes hfPop { from { opacity: 0; transform: scale(.25) rotate(-22deg); } to { opacity: 1; transform: none; } }
@keyframes hfSway { from { transform: rotate(-4deg) translateY(0); } to { transform: rotate(4deg) translateY(-4px); } }
@keyframes hfBoing { 0% { transform: scale(.8); } 45% { transform: scale(1.24) rotate(10deg); } 75% { transform: scale(.94) rotate(-4deg); } 100% { transform: none; } }

.hf-st-1 { right: 24%; top: 10px; width: 62px; --fd: .22s; --sd: 3.8s; }
.hf-st-2 { left: 45%; top: 16px; width: 48px; --fd: .34s; --sd: 3.1s; --sdl: -.8s; }
.hf-st-3 { left: 46%; bottom: 24px; width: 44px; --fd: .44s; --sd: 3.5s; --sdl: -1.6s; }
.hf-st-4 { right: 2%; bottom: 10px; width: 56px; --fd: .52s; --sd: 2.9s; --sdl: -2.2s; }

.hf-hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
}
.hf-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.hf-crumb a { text-decoration: none; }
.hf-crumb a:hover { color: var(--ink); text-decoration: underline; }
.hf-crumb li + li::before { content: "/"; margin-inline-end: 6px; opacity: .5; }

.hf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 3px 0 var(--ink);
  margin-bottom: 14px;
  animation: hfRise .7s var(--spring) both;
}
.hf-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.1vw, 48px);
  line-height: 1.13;
  letter-spacing: -0.025em;
  animation: hfRise .8s var(--spring) .08s both;
}
.hf-lead {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  font-weight: 500;
  animation: hfRise .85s var(--spring) .14s both;
}
@keyframes hfRise { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

/* Playful CTA Buttons (matches homepage #dlModal .btn) */
.hf-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  animation: hfRise .9s var(--spring) .2s both;
}
.hf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--blue);
  color: var(--ink);
  font-family: inherit;
  font-weight: 800;
  font-size: 15.5px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .45s var(--spring), box-shadow .18s ease;
}
.hf-btn:hover { transform: translateY(-3px) scale(1.03, .98); box-shadow: 0 8px 0 var(--ink); }
.hf-btn:active { transform: translateY(3px) scale(.97, 1.03); box-shadow: 0 1px 0 var(--ink); }
.hf-btn.y { background: var(--yellow); }
.hf-btn.paper { background: var(--paper-soft); }

/* Hero Sticker Showcase Frame with Peeking Mascot */
.hf-stage-card {
  position: relative;
  margin-top: 26px;
  background: var(--paper-soft);
  border: 3px solid var(--ink);
  border-radius: 26px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1deg);
  transition: transform .5s var(--spring), box-shadow .2s ease;
  animation: hfRise .9s var(--spring) .18s both;
}
.hf-stage-card:hover { transform: rotate(0deg) translateY(-4px) scale(1.015); box-shadow: 8px 10px 0 var(--ink); }
.hf-peek-mascot {
  position: absolute;
  top: -54px;
  inset-inline-end: 24px;
  width: 82px;
  height: auto;
  pointer-events: none;
  z-index: 2;
  animation: hfPeek .95s var(--spring) .45s both;
}
@keyframes hfPeek {
  0% { opacity: 0; transform: translateY(36px) scale(.9, .75); }
  60% { opacity: 1; transform: translateY(-6px) scale(.96, 1.06); }
  100% { opacity: 1; transform: none; }
}
.hf-stage-card .hf-stage-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.hf-stage-cap {
  margin: 10px 4px 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ---------- Lightweight Quick Fact Pills (replaces heavy SaaS KPI boxes) ---------- */
.hf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-soft);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 3px 0 var(--ink);
}
.hf-pill.b { background: var(--blue-soft); }
.hf-pill.y { background: var(--yellow-soft); }
.hf-pill.m { background: var(--mint); }

/* ---------- Sections ---------- */
.hf-sec { padding: 40px 0 48px; }
.hf-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 24px;
}
.hf-sec-head h2 {
  margin: 0;
  font-size: clamp(23px, 2.8vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hf-sec-head p {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- Interactive Category Filter Tabs (Unified 26-Work Catalog) ---------- */
.hf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.hf-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .4s var(--spring), background .15s ease, box-shadow .15s ease;
}
.hf-filter:hover { transform: translateY(-2px) scale(1.03); background: var(--yellow-soft); }
.hf-filter:active { transform: translateY(2px) scale(.96); box-shadow: 0 1px 0 var(--ink); }
.hf-filter[aria-pressed="true"] { background: var(--yellow); box-shadow: 0 4px 0 var(--ink); }
.hf-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(37, 37, 31, .1);
  font-size: 11.5px;
}

/* ---------- Sketchbook Sticker Work Grid (26 Works Unified Showcase) ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-soft);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-ink);
  cursor: pointer;
  transition: transform .45s var(--spring), box-shadow .2s ease;
}
.work-card[hidden] { display: none; }
.work-card:nth-child(odd):hover { transform: translateY(-6px) rotate(-1deg) scale(1.015); box-shadow: 7px 9px 0 var(--ink); }
.work-card:nth-child(even):hover { transform: translateY(-6px) rotate(1deg) scale(1.015); box-shadow: 7px 9px 0 var(--ink); }
.work-card:active { transform: translateY(1px) scale(.98); box-shadow: 2px 2px 0 var(--ink); }
.work-card.is-target { box-shadow: 0 0 0 4px var(--yellow), 6px 6px 0 var(--ink); }

.work-thumb-wrap {
  position: relative;
  background: var(--paper);
  border-bottom: 2.5px solid var(--ink);
  overflow: hidden;
}
.work-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--spring);
}
.work-card:hover .work-thumb { transform: scale(1.04); }

.work-body {
  padding: 15px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1.5px solid var(--ink);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
}
.chip.free { background: var(--mint); }
.chip.shared { background: var(--yellow); }
.work-body h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.work-body p { margin: 0; font-size: 13.5px; color: var(--muted); flex: 1; font-weight: 500; }
.work-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1.5px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.work-open { color: var(--ink); }

/* ---------- Editorial Notes & Cards (Airy, Hand-Drawn) ---------- */
.hf-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.hf-note-card {
  background: var(--paper-soft);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  padding: 24px 26px;
  box-shadow: var(--shadow-ink);
  transition: transform .45s var(--spring);
}
.hf-note-card:hover { transform: translateY(-3px); }
.hf-note-card h3 { margin: 0 0 10px; font-size: 19px; }
.hf-note-card p { margin: 0 0 10px; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.hf-note-card ul { margin: 0; padding-inline-start: 20px; font-size: 14px; color: var(--muted); }
.hf-note-card li + li { margin-top: 6px; }
.hf-note-card code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--yellow-soft);
  color: var(--ink);
  font-size: .9em;
}

/* ---------- Sketchbook Answer-First TL;DR & Comparison Table (GEO Citation Blocks) ---------- */
.hf-tldr {
  background: #FFFDF2;
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  padding: 22px 26px;
  box-shadow: var(--shadow-ink);
}
.hf-tldr h2 { margin: 0 0 8px; font-size: clamp(19px, 2.2vw, 24px); }
.hf-tldr p { margin: 0; font-size: 15px; color: var(--muted); font-weight: 500; }

.hf-table-wrap {
  overflow-x: auto;
  background: var(--paper-soft);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-ink);
}
.hf-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 14px;
}
.hf-table th, .hf-table td {
  padding: 13px 16px;
  text-align: start;
  border-bottom: 1.5px solid var(--line);
}
.hf-table thead th {
  background: var(--yellow-soft);
  font-weight: 800;
  border-bottom: 2.5px solid var(--ink);
}
.hf-table tbody tr:last-child td { border-bottom: 0; }
.hf-table td:first-child { font-weight: 800; }
.hf-steps {
  display: grid;
  gap: 16px;
  counter-reset: hfstep;
}
.hf-step {
  position: relative;
  background: var(--paper-soft);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  padding: 20px 24px 20px 68px;
  box-shadow: var(--shadow-ink);
}
.hf-step::before {
  counter-increment: hfstep;
  content: counter(hfstep);
  position: absolute;
  inset-inline-start: 20px;
  top: 20px;
  width: 34px;
  height: 34px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
}
.hf-step h3 { margin: 0 0 6px; font-size: 18px; }
.hf-step p { margin: 0; font-size: 14.5px; color: var(--muted); font-weight: 500; }

/* ---------- Sketchbook FAQ Accordion ---------- */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
}
.faq-list details {
  background: var(--paper-soft);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  padding: 14px 20px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .35s var(--spring);
}
.faq-list details[open] { background: #FFFDF2; }
.faq-list summary {
  font-weight: 800;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .35s var(--spring);
}
.faq-list details[open] summary::after { content: "−"; background: var(--blue); transform: rotate(180deg); }
.faq-list details p { margin: 12px 0 0; font-size: 14.5px; color: var(--muted); font-weight: 500; }

/* ---------- Inline Release Box (/download/) ---------- */
.release-box {
  background: var(--paper-soft);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.release-box h2 { margin: 0 0 10px; font-size: 22px; }
.release-box .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  margin-top: 12px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--blue);
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .45s var(--spring), box-shadow .18s ease;
}
.release-box .btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 7px 0 var(--ink); }
.release-box .btn.soft { background: var(--yellow); }
.release-box .sha {
  margin: 10px 0;
  padding: 10px 12px;
  border: 2px dashed var(--ink);
  border-radius: 12px;
  background: var(--paper);
  font: 12px/1.45 ui-monospace, Consolas, monospace;
  word-break: break-all;
}

/* ---------- Work Detail Modal (#workModal — matches #dlModal 1:1) ---------- */
.work-modal-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 16px;
  margin-bottom: 14px;
  background: var(--paper);
}
.work-modal-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

/* ---------- Legal Pages ---------- */
.legal-page {
  max-width: 820px;
  margin: 36px auto 52px;
  padding: 36px 40px;
  background: var(--paper-soft);
  border: 2.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.legal-page h1 { margin-top: 0; font-size: clamp(26px, 3vw, 34px); }
.legal-page h2 { margin-top: 26px; font-size: 19px; }
.legal-page p, .legal-page li { color: var(--muted); font-size: 15px; font-weight: 500; }
.legal-page code { padding: 2px 6px; border-radius: 6px; background: var(--yellow-soft); color: var(--ink); font-size: .92em; }
.back-link { display: inline-block; margin-bottom: 16px; font-weight: 800; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ---------- RTL Support ---------- */
[dir="rtl"] .hf-hero-rainbow { left: auto; right: -46px; transform: scaleX(-1); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hf-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hf-st-2, .hf-st-3 { display: none; }
}
@media (max-width: 680px) {
  .hf-header { padding: 14px 14px 0; }
  .hf-hero { padding: 28px 0 34px; }
  .hf-sec { padding: 28px 0 36px; }
  .work-grid, .hf-two { grid-template-columns: 1fr; }
  .hf-float { display: none; }
  .hf-stage-card { transform: none; margin-top: 34px; }
  .hf-peek-mascot { width: 66px; top: -44px; }
  .legal-page { margin: 20px 14px 36px; padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-float, .hf-float img, .hf-kicker, .hf-hero h1, .hf-lead, .hf-cta-row, .hf-stage-card, .hf-peek-mascot, .hf-hero-rainbow {
    animation: none !important;
  }
}
