:root {
  --brand-orange: #ec6734;
  --brand-black: #000000;
  --brand-green: #20b34a;
  --text-muted: #525252;
  --bg: #f5f5f5;
  --card: #ffffff;
  --ring: 0 0 0 2px rgba(255, 70, 0, 0.24);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  --mmc-surface: #ffffff;
  --mmc-surface-soft: #f6f8fc;
  --mmc-text: #1d2433;
  --mmc-muted: #5d6472;
  --mmc-border: #e5e8f0;
  --mmc-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
  --mmc-radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #ffffff, var(--bg));
  color: var(--brand-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* Sections + shared page hero (see block below) */
.section {
  scroll-margin-top: 90px;
  overflow-x: hidden;
}

.section:not(.hero-section) {
  padding: 72px 0;
}

.page-home {
  overflow-x: hidden;
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 1.3rem + 1.2vw, 2.6rem);
  line-height: 1.16;
  color: #101828;
}

.section-title.center,
.section-subtitle.center {
  text-align: center;
}

.section-subtitle {
  margin: -8px 0 22px;
  color: var(--text-muted);
  line-height: 1.65;
}

.accent {
  color: var(--brand-orange) !important;
}

.text-link {
  color: var(--brand-black);
  font-weight: 700;
  text-decoration: none;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ebebeb;
  font-size: 0.75rem;
}

.course-ribbon {
  margin: 0 0 10px;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: #ffe167;
  border-radius: 999px;
  padding: 5px 8px;
}

.strike {
  text-decoration: line-through;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline {
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #fff;
}

.primary-link,
.btn-primary {
  background: var(--brand-orange);
  border: 1px solid transparent;
  color: #fff;
}

.btn-outline:hover,
.btn-primary:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.faq-question:focus-visible,
.scroll-top:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Inner pages: hero-section matches home (padding-top clears header); no extra main offset */
body.page-inner main {
  padding-top: 0;
}

@media (max-width: 1100px) {
  .section:not(.hero-section) {
    padding-top: 58px;
    padding-bottom: 58px;
  }
}

@media (max-width: 1200px) {
  .container {
    width: min(1200px, calc(100% - 24px));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1200px, calc(100% - 20px));
  }

  .section:not(.hero-section) {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .section-subtitle {
    margin-bottom: 18px;
    font-size: clamp(0.9rem, 0.84rem + 0.45vw, 1.05rem);
  }

  .section-title {
    margin-bottom: 14px;
    font-size: clamp(1.55rem, 1.15rem + 1.4vw, 2.35rem);
  }
}

/* --------------------------------------------------------------------------
   Shared page hero (all routes) + inner-page section typography
   -------------------------------------------------------------------------- */

/* Shared inner-page typography (about, contact, blog) */

.about-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.about-section-head {
  margin-bottom: clamp(22px, 3.2vw, 36px);
}

.about-section-head--center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(26px, 3.5vw, 40px);
}

.about-title-rule {
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 16px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-orange), rgba(236, 103, 52, 0.25));
}

.about-title-rule--center {
  margin-left: auto;
  margin-right: auto;
}

.about-title-rule--light {
  background: linear-gradient(90deg, rgba(253, 186, 116, 0.95), rgba(255, 255, 255, 0.25));
}

.about-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 5px 12px 5px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 6px;
  border-left: 3px solid var(--brand-orange);
}

.about-kicker--center {
  margin-left: auto;
  margin-right: auto;
}

.about-section-title {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.65rem, 1.05rem + 1.6vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #0f172a;
  max-width: 38rem;
}

.about-section-title.center {
  margin-left: auto;
  margin-right: auto;
  max-width: min(36rem, 100%);
}

.about-deck {
  margin: 14px 0 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--mmc-muted);
  max-width: 42rem;
}

.about-deck--center {
  margin-left: auto;
  margin-right: auto;
}

.about-lead {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: #334155;
  font-weight: 500;
}

.about-prose {
  margin: 0;
  color: #475569;
  line-height: 1.72;
  font-size: 0.98rem;
}

/* Shared hero shell (home + inner pages) */
.hero-section {
  min-height: 90vh;
  padding-top: 98px;
  padding-bottom: 28px;
  border-bottom: 1px solid #d6d6d6;
}

/* Home only: grid + light grey (not used on inner pages) */
.page-home .hero-section:not(.hero-section--inner) {
  background:
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    #f9f9f9;
  background-size: 26px 26px, 26px 26px, auto;
}

/* Inner pages: professional gradients (add heroTheme in page-hero: about | contact | blog | default) */
.hero-section.hero-section--inner {
  position: relative;
  overflow: hidden;
}

.hero-section.hero-section--inner.hero-theme-about {
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(236, 103, 52, 0.1), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(37, 99, 235, 0.07), transparent 50%),
    linear-gradient(168deg, #fbfbfd 0%, #f0f3fa 48%, #e8ecf4 100%);
}

.hero-section.hero-section--inner.hero-theme-contact {
  background:
    radial-gradient(circle at 88% 12%, rgba(16, 185, 129, 0.14), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.08), transparent 45%),
    linear-gradient(175deg, #f6fffc 0%, #ecfdf5 42%, #e0f7f0 100%);
}

.hero-section.hero-section--inner.hero-theme-blog {
  background:
    radial-gradient(circle at 12% 25%, rgba(124, 58, 237, 0.12), transparent 38%),
    radial-gradient(circle at 92% 70%, rgba(236, 103, 52, 0.06), transparent 42%),
    linear-gradient(172deg, #faf9ff 0%, #f3f0ff 50%, #ede9fe 100%);
}

.hero-section.hero-section--inner.hero-theme-default {
  background:
    radial-gradient(circle at 75% 8%, rgba(255, 107, 53, 0.09), transparent 36%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 55%, #e8edf4 100%);
}

/* About page only: warm editorial hero + large soft “blob” doodle (reference-style, MapMyCourse palette) */
.hero-section.hero-section--inner.hero-theme-about.hero-section--about-collage {
  padding-bottom: 44px;
  background:
    radial-gradient(ellipse 105% 75% at 78% 8%, rgba(236, 103, 52, 0.1), transparent 54%),
    radial-gradient(ellipse 90% 60% at 8% 88%, rgba(32, 179, 74, 0.07), transparent 52%),
    linear-gradient(170deg, #fdfcfa 0%, #f5f3ee 38%, #eef5f1 100%);
}

.hero-section.hero-section--about-collage .hero-about-doodle-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.hero-section.hero-section--about-collage .hero-doodle-fill {
  width: min(88vw, 1040px);
  height: auto;
  max-height: min(78vh, 820px);
  min-width: min(520px, 92vw);
  opacity: 0.92;
}

.hero-breadcrumb {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--mmc-muted);
}

.hero-breadcrumb a {
  color: var(--mmc-muted);
  text-decoration: none;
}

.hero-breadcrumb a:hover {
  color: var(--brand-orange);
}

.hero-breadcrumb-sep {
  margin: 0 8px;
  opacity: 0.55;
}

.hero-breadcrumb-current {
  color: #334155;
  font-weight: 600;
}

/* About collage: hero copy typography (headline + lead + second paragraph) */
.hero-copy--about-collage .hero-about-eyebrow {
  margin: 0 0 14px;
  padding: 6px 14px 6px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c4030;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid rgba(236, 103, 52, 0.22);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.hero-copy--about-collage .hero-about-eyebrow::before {
  display: none;
}

.hero-copy--about-collage h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.28em 0.4em;
  margin: 0 0 18px;
  max-width: 34rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 1.35rem + 2.5vw, 3.55rem);
  line-height: 1.12;
  color: var(--mmc-text);
  isolation: isolate;
}

.hero-about-title-prefix {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mmc-muted);
}

.hero-about-title-brand {
  position: relative;
  display: inline-block;
  color: #141a26;
  font-weight: 800;
  letter-spacing: -0.02em;
  z-index: 0;
}

.hero-about-title-brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.14em;
  min-height: 5px;
  max-height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-orange) 0%, rgba(236, 103, 52, 0.35) 100%);
  z-index: -1;
}

.hero-copy--about-collage .hero-subtext--lead {
  margin: 0 0 14px;
  max-width: 36rem;
  font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.14rem);
  line-height: 1.68;
  color: #3d4556;
  font-weight: 500;
}

.hero-copy--about-collage .hero-subtext--secondary {
  margin: 0 0 22px;
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--mmc-muted);
  font-weight: 400;
}

.hero-copy--about-collage .hero-actions {
  margin-top: 4px;
}

.hero-grid--about-collage {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(22px, 3.4vw, 40px);
  align-items: center;
}

.hero-visual--about-collage {
  min-height: 0;
  overflow: visible;
}

.hero-about-collage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-height: clamp(340px, 38vw, 460px);
}

.hero-about-photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.11);
  background: #e8ecf4;
}

.hero-about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-about-photo--tl {
  grid-column: 1;
  grid-row: 1;
}

.hero-about-photo--bl {
  grid-column: 1;
  grid-row: 2;
}

.hero-about-photo--main {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 0;
}

.hero-about-chip {
  position: absolute;
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.hero-about-chip--yellow {
  top: -4px;
  right: 6%;
  background: linear-gradient(135deg, #fff9db 0%, #ffe066 92%);
  color: #141414;
}

.hero-about-chip--blue {
  top: 46%;
  left: 4%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 95%);
  color: #0f172a;
}

.hero-about-chip--coral {
  bottom: 12%;
  left: 3%;
  background: linear-gradient(135deg, #ffe4e6 0%, #fda4af 92%);
  color: #1e293b;
}

.hero-about-star-foot {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--brand-orange);
  opacity: 0.88;
  pointer-events: none;
}

.hero-section.hero-section--inner .hero-grid,
.hero-section.hero-section--inner .hero-copy {
  position: relative;
  z-index: 1;
}

/* Decorative stroke (inner pages only): diagonal gradient + slow draw — lightweight CSS only */
.hero-section.hero-section--inner .hero-doodle {
  position: absolute;
  left: clamp(10px, 2.5vw, 28px);
  top: clamp(10px, 2.5vw, 26px);
  width: min(96vw, 1180px);
  height: auto;
  max-height: min(90vh, 980px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
}

.hero-doodle-path {
  stroke-dasharray: 3200;
  stroke-dashoffset: 3200;
  animation: hero-doodle-stroke 20s ease-in-out infinite alternate;
}

@keyframes hero-doodle-stroke {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-doodle-path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .hero-section.hero-section--inner .hero-doodle {
    opacity: 0.48;
  }

  .hero-inner-node,
  .hero-inner-frame {
    animation: none;
  }
}

.hero-visual--inner {
  min-height: 360px;
  overflow: visible;
}

/* Inner hero (non-home): abstract accents — theme colours; no giant letter / yellow chip */
.hero-inner-deco {
  position: relative;
  width: 100%;
  min-height: 340px;
  isolation: isolate;
}

.hero-inner-glow {
  position: absolute;
  right: -6%;
  top: 2%;
  width: clamp(196px, 40vw, 304px);
  height: clamp(196px, 40vw, 304px);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section.hero-section--inner.hero-theme-about .hero-inner-glow {
  background: radial-gradient(circle at 35% 35%, rgba(251, 146, 60, 0.44) 0%, rgba(37, 99, 235, 0.14) 52%, transparent 68%);
}

.hero-section.hero-section--inner.hero-theme-contact .hero-inner-glow {
  background: radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.4) 0%, rgba(59, 130, 246, 0.12) 55%, transparent 70%);
}

.hero-section.hero-section--inner.hero-theme-blog .hero-inner-glow {
  background: radial-gradient(circle at 30% 30%, rgba(167, 139, 250, 0.42) 0%, rgba(236, 103, 52, 0.1) 58%, transparent 72%);
}

.hero-section.hero-section--inner.hero-theme-default .hero-inner-glow {
  background: radial-gradient(circle at 38% 38%, rgba(96, 165, 250, 0.38) 0%, rgba(100, 116, 139, 0.14) 56%, transparent 70%);
}

.hero-inner-node {
  position: absolute;
  pointer-events: none;
  animation: heroInnerFloat 6s ease-in-out infinite;
}

@keyframes heroInnerFloat {
  0%,
  100% {
    transform: translateY(0) rotate(var(--hi-rot, 0deg));
  }

  50% {
    transform: translateY(-11px) rotate(var(--hi-rot, 0deg));
  }
}

.hero-inner-node--a {
  --hi-rot: 14deg;
  width: 52px;
  height: 52px;
  top: 22%;
  right: 30%;
  border-radius: 14px;
  animation-delay: 0.15s;
}

.hero-inner-node--b {
  --hi-rot: -10deg;
  width: 38px;
  height: 38px;
  top: 44%;
  right: 13%;
  border-radius: 50%;
  animation-delay: 0.85s;
}

.hero-inner-frame {
  position: absolute;
  right: 9%;
  bottom: 16%;
  width: 86px;
  height: 86px;
  border-radius: 0 26px 0 0;
  border-top: 3px solid rgba(30, 41, 59, 0.18);
  border-right: 3px solid rgba(30, 41, 59, 0.18);
  pointer-events: none;
  animation: heroInnerFloat 7s ease-in-out infinite reverse;
  animation-delay: 0.35s;
}

.hero-section.hero-section--inner.hero-theme-about .hero-inner-node--a {
  background: linear-gradient(145deg, #fb923c 0%, #ea580c 100%);
  box-shadow: 0 14px 32px rgba(234, 88, 12, 0.28);
}

.hero-section.hero-section--inner.hero-theme-about .hero-inner-node--b {
  background: linear-gradient(180deg, #93c5fd 0%, #2563eb 95%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.hero-section.hero-section--inner.hero-theme-about .hero-inner-frame {
  border-color: rgba(234, 88, 12, 0.4);
}

.hero-section.hero-section--inner.hero-theme-contact .hero-inner-node--a {
  --hi-rot: 0deg;
  border-radius: 50%;
  background: linear-gradient(160deg, #34d399 0%, #059669 100%);
  box-shadow: 0 14px 30px rgba(5, 150, 105, 0.28);
}

.hero-section.hero-section--inner.hero-theme-contact .hero-inner-node--b {
  --hi-rot: 12deg;
  border-radius: 12px;
  background: linear-gradient(145deg, #7dd3fc 0%, #0284c7 100%);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.24);
}

.hero-section.hero-section--inner.hero-theme-contact .hero-inner-frame {
  border-color: rgba(16, 185, 129, 0.48);
  border-radius: 0 40% 0 0;
}

.hero-section.hero-section--inner.hero-theme-blog .hero-inner-node--a {
  --hi-rot: 36deg;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, #c4b5fd 0%, #7c3aed 100%);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.28);
}

.hero-section.hero-section--inner.hero-theme-blog .hero-inner-node--b {
  background: linear-gradient(145deg, #fdba74 0%, #fb923c 100%);
  box-shadow: 0 10px 24px rgba(251, 146, 60, 0.24);
}

.hero-section.hero-section--inner.hero-theme-blog .hero-inner-frame {
  border-color: rgba(124, 58, 237, 0.42);
}

.hero-section.hero-section--inner.hero-theme-default .hero-inner-node--a {
  background: linear-gradient(145deg, #94a3b8 0%, #64748b 100%);
  box-shadow: 0 12px 28px rgba(100, 116, 139, 0.24);
}

.hero-section.hero-section--inner.hero-theme-default .hero-inner-node--b {
  background: linear-gradient(145deg, #bfdbfe 0%, #3b82f6 100%);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.22);
}

.hero-section.hero-section--inner.hero-theme-default .hero-inner-frame {
  border-color: rgba(71, 85, 105, 0.4);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: center;
  min-height: calc(90vh - 220px);
  padding: clamp(20px, 2.8vw, 36px) 0 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #181818;
}

.section-tag::before {
  content: "◉";
  color: #ff8c52;
  font-size: 0.9rem;
}

.hero-copy h1 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 1.3rem + 2.2vw, 4.2rem);
  line-height: 1.1;
  max-width: 620px;
}

/* Home hero: stronger headline + accent underline (inner pages keep plain h1 / their own span styles) */
.page-home .hero-copy h1 {
  margin: 10px 0 0;
  max-width: 640px;
  letter-spacing: -0.025em;
  color: #111827;
  line-height: 1.08;
  font-size: clamp(2.25rem, 1.25rem + 2.5vw, 4.35rem);
}

.page-home .hero-copy h1 span {
  position: relative;
  display: inline-block;
  color: #b9380f;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.03em;
  isolation: isolate;
}

.page-home .hero-copy h1 span::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0;
  height: 5px;
  border-radius: 6px;
  background: linear-gradient(90deg, #ffb366 0%, var(--brand-orange) 45%, #ff5b2e 100%);
  box-shadow: 0 6px 18px rgba(236, 103, 52, 0.38);
  z-index: -1;
}

.page-home .hero-section .section-tag {
  margin: 4px 0 16px;
  padding: 7px 14px 7px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.page-home .hero-section .section-tag::before {
  display: none;
}

.page-home .hero-section .hero-subtext {
  max-width: 560px;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
  line-height: 1.62;
}

.hero-subtext {
  margin: 16px 0 20px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.55;
  font-size: 1.04rem;
}

.hero-subtext em {
  color: #ff5b00;
  font-style: italic;
}

.hero-actions .btn-primary {
  min-width: 150px;
  font-size: 1.03rem;
  padding: 12px 22px;
}

.hero-visual {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.page-home .hero-bg-text {
  position: absolute;
  right: -16px;
  top: -80px;
  font-size: 420px;
  line-height: 0.8;
  font-weight: 800;
  color: rgba(255, 15, 67, 0.14);
  user-select: none;
}

/* Portrait image: home page only */
.page-home .hero-figure-image {
  position: absolute;
  right: 18px;
  bottom: -8px;
  width: min(430px, 100%);
  height: 475px;
  background: url("../../images/heroimage.png") no-repeat bottom right / contain;
  border-radius: 0;
  filter: saturate(1.02);
}

.page-home .hero-star {
  position: absolute;
  color: var(--brand-orange);
  font-size: 2.2rem;
  animation: starPulse 2.4s ease-in-out infinite;
  transform-origin: center;
}

.page-home .star-one {
  top: 132px;
  right: 356px;
  animation-delay: 0.2s;
}

.page-home .star-two {
  top: 188px;
  right: 112px;
  animation-delay: 1s;
}

.page-home .hero-arrow {
  position: absolute;
  right: 80px;
  top: 154px;
  font-size: 4.8rem;
  line-height: 1;
  color: #1e1e1e;
  transform: rotate(16deg);
}

.page-home .floating-chip {
  position: absolute;
  background: linear-gradient(140deg, #fff260 0%, #ffd400 56%, #ffc400 100%);
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 700;
}

.page-home .chip-one {
  right: 18px;
  bottom: 118px;
  transform: rotate(-14deg);
  background: linear-gradient(140deg, #fff260 0%, #ffd400 56%, #ffc400 100%);
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Hero responsive (all routes) */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .page-home .hero-visual {
    min-height: 320px;
  }

  .hero-visual--inner {
    min-height: 280px;
  }

  .page-home .hero-bg-text {
    font-size: 280px;
    top: -10px;
  }

  .hero-inner-deco {
    min-height: 260px;
  }

  .hero-section--about-collage .hero-doodle-fill {
    width: min(90vw, 680px);
    max-height: min(52vh, 560px);
    min-width: 0;
  }

  .hero-about-collage {
    min-height: 280px;
    gap: 12px;
  }

  .hero-inner-node--a {
    top: 18%;
    right: 26%;
  }

  .hero-inner-frame {
    width: 72px;
    height: 72px;
    right: 6%;
    bottom: 12%;
  }

  .page-home .hero-figure-image {
    width: 300px;
    height: 340px;
  }

  .page-home .hero-arrow,
  .page-home .hero-star,
  .page-home .chip-one {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-home .hero-visual {
    min-height: 340px;
    height: 340px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
  }

  .page-home .hero-bg-text {
    font-size: 260px;
    right: 50%;
    transform: translateX(50%);
    top: 10px;
  }

  .page-home .hero-figure-image {
    position: relative;
    right: auto;
    left: auto;
    bottom: 0;
    margin: 0 auto;
    width: 270px;
    height: 340px;
    background-position: center bottom;
  }
}

@media (max-width: 720px) {
  .hero-section {
    min-height: auto;
    padding-top: 84px;
    padding-bottom: 16px;
  }

  .hero-grid {
    padding-top: 20px;
  }

  .hero-section.hero-section--inner .hero-doodle {
    width: min(94vw, 760px);
    max-height: 52vh;
    left: 4px;
    top: 64px;
    opacity: 0.58;
  }

  .hero-section--about-collage .hero-doodle-fill {
    width: min(94vw, 100%);
    max-height: 42vh;
    opacity: 0.85;
  }

  .hero-about-collage {
    min-height: 240px;
    gap: 10px;
  }

  .hero-about-chip {
    font-size: 0.68rem;
    padding: 6px 11px;
  }

  .hero-visual--inner {
    min-height: 260px;
  }

  .hero-inner-deco {
    min-height: 200px;
  }

  .hero-inner-node--a {
    top: 14%;
    right: 22%;
  }

  .hero-inner-node--b {
    top: 38%;
    right: 8%;
  }

  .hero-inner-frame {
    right: 4%;
    bottom: 10%;
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 640px) {
  .page-home .hero-copy h1 {
    font-size: clamp(1.65rem, 1.1rem + 3.2vw, 2.35rem);
    line-height: 1.15;
    margin-top: 6px;
  }
}

@media (max-width: 480px) {
  .hero-copy h1,
  .page-home .hero-copy h1 {
    font-size: clamp(1.6rem, 1rem + 3.2vw, 2.2rem);
    line-height: 1.14;
  }

  .page-home .hero-copy h1 span::after {
    height: 4px;
    left: -2px;
    right: -2px;
    box-shadow: 0 4px 12px rgba(236, 103, 52, 0.28);
  }

  .hero-copy--about-collage h1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08em;
    font-size: clamp(2rem, 1.2rem + 4vw, 2.65rem);
  }

  .hero-about-title-prefix {
    font-size: 0.5em;
  }

  .hero-subtext {
    font-size: 0.94rem;
  }
}

