/*
Theme Name: MakerHub Building
Theme URI: https://makerhub.dk/
Author: MakerHub
Author URI: https://makerhub.dk/
Description: Et redigerbart block theme til MakerHub i Kulturlogen, Kolding.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: makerhub-building
Tags: block-patterns, full-site-editing, wide-blocks
*/

@font-face {
  font-family: "Cal Sans";
  src: url("./assets/fonts/CalSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("./assets/fonts/PublicSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("./assets/fonts/SpaceMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("./assets/fonts/SpaceMono-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --mh-dark: #1b1712;
  --mh-orange: #ff7420;
  --mh-orange-ink: #b05413;
  --mh-base: #f1ece3;
  --mh-paper-2: #eae3d6;
  --mh-card: #e9e1d1;
  --mh-on-ink: #efe9dc;
  --mh-green: #005246;
  --mh-tone-red: #d96649;

  --mh-line: rgba(27, 23, 18, 0.14);
  --mh-line-strong: rgba(27, 23, 18, 0.28);
  --mh-ink-70: rgba(27, 23, 18, 0.7);
  --mh-ink-60: rgba(27, 23, 18, 0.6);

  --mh-font-display: "Cal Sans", "Public Sans", sans-serif;
  --mh-font-body: "Public Sans", system-ui, sans-serif;
  --mh-font-mono: "Space Mono", ui-monospace, "Courier New", monospace;

  --mh-r-btn: 8px;
  --mh-r-card: 6px;
  --mh-r-img: 3px;

  --mh-content-padding: clamp(24px, 5vw, 80px);
  --mh-section-space: clamp(60px, 7vw, 112px);
  --mh-shadow-soft: 0 14px 30px -18px rgba(27, 23, 18, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--mh-base);
  color: var(--mh-dark);
  font-family: var(--mh-font-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  background: var(--mh-orange);
  color: var(--mh-dark);
}

.wp-site-blocks {
  overflow: hidden;
}

.wp-site-blocks > * {
  margin-block-start: 0;
}

.mh-homepage-content,
.mh-homepage-content > .wp-block-post-content,
.mh-homepage-content > .wp-block-post-content > * {
  margin-block-start: 0;
}

/* Faint construction grid — a whisper of the workshop, not a cage. */
.mh-grid-bg,
.mh-site-header-wrap,
.mh-hero-section {
  background-color: var(--mh-base);
  background-image:
    linear-gradient(rgba(27, 23, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 23, 18, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ============================================================
   HEADER
   ============================================================ */
.mh-site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 var(--mh-content-padding);
  background: rgba(241, 236, 227, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mh-line);
}

.mh-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 74px;
  padding-block: 14px;
}

.mh-brand,
.mh-brand a {
  display: inline-flex;
}

.mh-brand img {
  display: block;
  width: 128px;
  height: auto;
  transition: transform 160ms ease;
}

.mh-brand a:hover img {
  transform: translateY(-3px) rotate(-1deg);
}

.mh-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--mh-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mh-ink-70);
}

.mh-location::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mh-orange);
  box-shadow: 0 0 0 4px rgba(255, 116, 32, 0.16);
  content: "";
}

/* ============================================================
   HERO
   ============================================================ */
.mh-hero-section {
  min-height: min(84svh, 720px);
  padding: clamp(36px, 5vw, 72px) var(--mh-content-padding) clamp(56px, 8vw, 104px);
  display: grid;
  align-items: center;
}

.mh-hero-grid {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  display: grid !important;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center !important;
  gap: clamp(40px, 5vw, 72px) !important;
}

.mh-hero-copy {
  max-width: 560px;
}

.mh-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--mh-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mh-orange-ink);
}

.mh-eyebrow::before {
  color: var(--mh-orange);
  content: "\21B3";
  font-size: 1.1rem;
  line-height: 1;
}

.mh-display {
  max-width: 12ch;
  margin: 0;
  font-family: var(--mh-font-display);
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.012em;
}

.mh-accent {
  background: transparent;
  color: var(--mh-orange);
}

.mh-hero-intro {
  max-width: 46ch;
  margin: clamp(24px, 3vw, 36px) 0 0;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--mh-ink-70);
}

.mh-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 34px;
}

/* ---------- hero collage ---------- */
.mh-hero-collage {
  display: grid !important;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px !important;
  align-items: stretch !important;
}

.mh-collage-main {
  margin: 0;
  border-radius: var(--mh-r-img);
  overflow: hidden;
}

.mh-collage-main img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(320px, 40vw, 470px);
  object-fit: cover;
}

.mh-collage-stack {
  display: flex !important;
  flex-direction: column;
  gap: 14px !important;
}

.mh-collage-small {
  margin: 0;
  border-radius: var(--mh-r-img);
  overflow: hidden;
  transform: rotate(-2.5deg);
  box-shadow: 0 16px 30px -16px rgba(27, 23, 18, 0.4);
}

.mh-collage-small img {
  display: block;
  width: 100%;
  height: clamp(140px, 15vw, 178px);
  object-fit: cover;
}

.mh-quote-card,
.mh-hero-status {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: var(--mh-orange);
  color: var(--mh-dark);
  border: 2px solid var(--mh-dark);
  border-radius: var(--mh-r-card);
  box-shadow: 6px 6px 0 var(--mh-dark);
}

.mh-quote-mark {
  font-family: var(--mh-font-display);
  font-size: 2.2rem;
  line-height: 0.6;
  opacity: 0.65;
}

.mh-quote-card p {
  margin: 0.4rem 0 0;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.4;
}

.mh-quote-by {
  margin-top: 0.9rem;
  font-family: var(--mh-font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------- hero status card (Fra tomme rum → Til fulde idéer) ---------- */
.mh-status-kicker {
  margin: 0 0 15px;
  padding-bottom: 13px;
  border-bottom: 2px solid var(--mh-dark);
  font-family: var(--mh-font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mh-status-line {
  margin: 0;
  font-family: var(--mh-font-display);
  font-size: clamp(1.35rem, 1.9vw, 1.8rem);
  line-height: 1.02;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.mh-status-arrow {
  margin: 6px 0;
  font-size: 1.3rem;
  line-height: 1;
}

.mh-status-foot {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 18px 0 0;
  padding-top: 13px;
  border-top: 2px solid var(--mh-dark);
  font-family: var(--mh-font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mh-status-foot::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mh-dark);
  animation: mh-pulse 1.8s ease-in-out infinite;
}

/* ============================================================
   BUTTONS  — the "press into the shadow" interaction is kept
   ============================================================ */
.wp-block-button.is-style-maker-primary > .wp-block-button__link,
.wp-block-button.is-style-maker-secondary > .wp-block-button__link,
.wp-block-button.is-style-maker-link > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 14px 26px;
  border: 2px solid var(--mh-dark);
  border-radius: var(--mh-r-btn);
  font-family: var(--mh-font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.wp-block-button.is-style-maker-primary > .wp-block-button__link {
  background: var(--mh-orange);
  color: var(--mh-dark);
  box-shadow: 4px 4px 0 var(--mh-dark);
}

.wp-block-button.is-style-maker-primary > .wp-block-button__link:hover,
.wp-block-button.is-style-maker-primary > .wp-block-button__link:focus-visible {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--mh-dark);
}

.wp-block-button.is-style-maker-secondary > .wp-block-button__link {
  background: var(--mh-card);
  color: var(--mh-dark);
  box-shadow: 4px 4px 0 var(--mh-orange);
}

.wp-block-button.is-style-maker-secondary > .wp-block-button__link:hover,
.wp-block-button.is-style-maker-secondary > .wp-block-button__link:focus-visible {
  background: var(--mh-dark);
  color: var(--mh-on-ink);
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--mh-orange);
}

.wp-block-button.is-style-maker-link > .wp-block-button__link,
.wp-block-button.is-style-maker-link > .wp-block-button__link:visited {
  min-height: auto;
  padding: 6px 0;
  background-color: transparent !important;
  color: var(--mh-dark) !important;
  border-width: 0 0 2px;
  border-radius: 0;
  border-bottom-color: var(--mh-line-strong);
  box-shadow: none;
}

.wp-block-button.is-style-maker-link > .wp-block-button__link:hover,
.wp-block-button.is-style-maker-link > .wp-block-button__link:focus-visible {
  background-color: transparent !important;
  color: var(--mh-orange) !important;
  border-bottom-color: var(--mh-orange);
  box-shadow: none !important;
  transform: translateY(-2px);
}

.wp-block-button__link:focus-visible,
.mh-brand a:focus-visible,
.mh-footer a:focus-visible {
  outline: 3px solid var(--mh-orange);
  outline-offset: 3px;
}

.wp-block-button__link[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  box-shadow: none !important;
}

/* ============================================================
   STATUS CARD  (kept for the pattern library)
   ============================================================ */
.mh-status-card {
  min-height: 420px;
  padding: 24px;
  background: var(--mh-dark);
  color: var(--mh-on-ink);
  border: 2px solid var(--mh-dark);
  border-radius: var(--mh-r-card);
  box-shadow: 10px 10px 0 var(--mh-orange);
  display: flex;
  flex-direction: column;
  transform: rotate(1.4deg);
}

.mh-card-label,
.mh-card-footer {
  margin: 0;
  font-family: var(--mh-font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mh-card-label {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(239, 233, 220, 0.4);
}

.mh-tool-mark {
  min-height: 168px;
  flex: 1;
  position: relative;
  margin: 32px 0 24px;
}

.mh-tool-mark span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 14px;
  background: var(--mh-orange);
  transform-origin: center;
}

.mh-tool-mark span:first-child {
  transform: translate(-50%, -50%);
}

.mh-tool-mark span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(60deg);
}

.mh-tool-mark span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-60deg);
}

.mh-status-line {
  margin: 0;
  font-family: var(--mh-font-display);
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  line-height: 1;
  letter-spacing: 0.015em;
}

.mh-status-arrow {
  margin: 8px 0;
  font-size: 1.4rem;
  line-height: 1;
}

.mh-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(239, 233, 220, 0.4);
}

.mh-card-footer::after {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--mh-orange);
  content: "";
  animation: mh-pulse 1.8s ease-in-out infinite;
}

@keyframes mh-pulse {
  50% {
    opacity: 0.28;
    transform: scale(0.7);
  }
}

/* ============================================================
   TICKER
   ============================================================ */
.mh-ticker {
  overflow: hidden;
  padding: 15px 0;
  background: var(--mh-dark);
  color: var(--mh-on-ink);
}

.mh-ticker-line {
  width: max-content;
  margin: 0;
  font-family: var(--mh-font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: mh-ticker 24s linear infinite;
}

.mh-ticker-line strong {
  padding-inline: 22px;
  color: var(--mh-orange);
}

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

/* ============================================================
   SECTION SHELL / HEADINGS
   ============================================================ */
.mh-build-section,
.mh-join-section,
.mh-sammen-section,
.mh-gallery-section,
.mh-invitation {
  padding: var(--mh-section-space) var(--mh-content-padding);
}

.mh-build-section,
.mh-gallery-section {
  background: var(--mh-paper-2);
}

.mh-build-section > *,
.mh-join-section > *,
.mh-sammen-section > *,
.mh-gallery-section > * {
  max-width: 1240px;
  margin-inline: auto;
}

.mh-section-heading {
  display: grid !important;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 28px !important;
  margin-bottom: clamp(36px, 4.5vw, 68px);
}

.mh-section-title {
  margin: 0;
  font-family: var(--mh-font-display);
  font-size: clamp(2.6rem, 5.5vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0.015em;
}

/* ============================================================
   BUILD PROGRESS
   ============================================================ */
.mh-progress-list {
  border-top: 1px solid var(--mh-line-strong);
}

.mh-progress-row {
  display: grid !important;
  grid-template-columns: 0.2fr 0.55fr 0.8fr auto;
  align-items: start !important;
  gap: 28px !important;
  padding: 30px 0;
  border-bottom: 1px solid var(--mh-line);
}

.mh-step-number {
  margin: 0;
  color: var(--mh-orange);
  font-family: var(--mh-font-mono);
  font-size: 1rem;
  font-weight: 700;
}

.mh-step-title {
  margin: 0;
  font-family: var(--mh-font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  line-height: 1.02;
}

.mh-step-copy {
  max-width: 520px;
  margin: 0;
  line-height: 1.6;
  color: var(--mh-ink-70);
}

.mh-state {
  min-width: 82px;
  margin: 0;
  padding: 7px 12px;
  border: 1.5px solid var(--mh-dark);
  border-radius: 999px;
  font-family: var(--mh-font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.mh-state-complete {
  background: var(--mh-dark);
  color: var(--mh-on-ink);
}

.mh-state-active {
  background: var(--mh-orange);
  border-color: var(--mh-orange);
}

.mh-state-seeking {
  background: transparent;
}

/* ============================================================
   SAMMEN  (origin-story text + photo)
   ============================================================ */
.mh-sammen-section {
  background: var(--mh-base);
}

.mh-sammen-grid {
  display: grid !important;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center !important;
  gap: clamp(32px, 5vw, 72px) !important;
}

.mh-sammen-photo {
  margin: 0;
  border-radius: var(--mh-r-img);
  overflow: hidden;
  transform: rotate(1.6deg);
  box-shadow: 0 22px 40px -22px rgba(27, 23, 18, 0.45);
}

.mh-sammen-photo img {
  display: block;
  width: 100%;
  height: clamp(260px, 30vw, 380px);
  object-fit: cover;
}

.mh-sammen-body p {
  max-width: 52ch;
  color: var(--mh-ink-70);
}

.mh-sammen-body .mh-section-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin-bottom: 18px;
}

.mh-care-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.mh-care-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--mh-dark);
}

.mh-care-list li::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  margin-top: 0.55em;
  background: var(--mh-orange);
  flex: none;
}

/* ============================================================
   GALLERY  ("Skabt i hallen" — breaks the square grid)
   ============================================================ */
.mh-gallery-intro {
  max-width: 52ch;
  margin: -1.5rem 0 0;
  color: var(--mh-ink-70);
}

.mh-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px !important;
  margin-top: clamp(36px, 5vw, 64px) !important;
}

.mh-tile.wp-block-image,
.mh-tile {
  margin: 0;
  background: var(--mh-card);
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-r-img);
  overflow: hidden;
}

.mh-tile.wp-block-image img,
.mh-tile img {
  display: block;
  width: 100%;
  height: clamp(200px, 23vw, 300px);
  object-fit: cover;
}

.mh-tile.wp-block-image figcaption,
.mh-tile figcaption {
  margin: 0;
  padding: 11px 14px 13px;
  font-family: var(--mh-font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  color: var(--mh-ink-70);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.mh-tile.wp-block-image figcaption::before,
.mh-tile figcaption::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  background: var(--mh-orange);
  flex: none;
}

.mh-tile-wide {
  grid-column: span 2;
}

/* ============================================================
   PARTICIPATION CARDS  (softened to hairlines)
   ============================================================ */
.mh-card-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px) !important;
}

.wp-block-group.is-style-maker-card,
.mh-join-card {
  min-height: 440px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-r-card);
  background: var(--mh-card);
  box-shadow: var(--mh-shadow-soft);
  display: flex;
  flex-direction: column;
}

.mh-sponsor-card {
  background: var(--mh-base);
  border-top: 6px solid var(--mh-orange);
}

.mh-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mh-line);
  font-family: var(--mh-font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mh-ink-70);
}

.mh-card-meta::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
  color: var(--mh-orange);
}

.mh-sponsor-card .mh-card-meta::after {
  content: "\2726";
}

.mh-card-title {
  max-width: 12ch;
  margin: 44px 0 20px;
  font-family: var(--mh-font-display);
  font-size: clamp(2.1rem, 3.4vw, 3.8rem);
  line-height: 0.96;
}

.mh-card-copy {
  max-width: 46ch;
  margin: 0 0 32px;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.6;
  color: var(--mh-ink-70);
}

.mh-card-action {
  margin-top: auto;
}

/* ============================================================
   INVITATION  (+ founder portrait)
   ============================================================ */
.mh-invitation {
  display: grid !important;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: end !important;
  gap: clamp(48px, 8vw, 120px) !important;
  background: var(--mh-tone-red);
  color: var(--mh-dark);
}

.mh-invitation-title {
  max-width: 11ch;
  margin: 0;
  font-family: var(--mh-font-display);
  font-size: clamp(2.6rem, 5.5vw, 5.4rem);
  line-height: 0.96;
}

.mh-invitation-copy {
  margin-bottom: 32px;
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.6;
}

.mh-invitation .mh-eyebrow {
  color: var(--mh-dark);
}

.mh-invitation .mh-eyebrow::before {
  color: var(--mh-dark);
}

/* ============================================================
   STATS
   ============================================================ */
.mh-stats-section {
  padding: var(--mh-section-space) var(--mh-content-padding);
  background: var(--mh-paper-2);
}

.mh-stats-section > * {
  max-width: 1240px;
  margin-inline: auto;
}

.mh-stats-head {
  max-width: 60ch;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
}

.mh-stats-head .mh-eyebrow {
  justify-content: center;
}

.mh-stats-head h2 {
  margin: 0.2rem 0 0.8rem;
  font-family: var(--mh-font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.mh-stats-head p {
  margin: 0;
  color: var(--mh-ink-70);
}

.mh-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px) !important;
}

.mh-stat {
  text-align: center;
}

.mh-stat-num {
  display: block;
  font-family: var(--mh-font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  color: var(--mh-dark);
}

.mh-stat-num sup {
  font-family: var(--mh-font-mono);
  font-size: 0.28em;
  font-weight: 700;
  vertical-align: super;
  color: var(--mh-orange);
}

.mh-stat-label {
  margin: 0.7rem auto 0;
  max-width: 22ch;
  font-size: 0.94rem;
  color: var(--mh-ink-60);
}

/* ============================================================
   VISION / PILLARS
   ============================================================ */
.mh-pillars-section {
  padding: var(--mh-section-space) var(--mh-content-padding);
  background: var(--mh-base);
}

.mh-pillars-section > * {
  max-width: 1240px;
  margin-inline: auto;
}

.mh-pillars-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px !important;
  margin-top: clamp(40px, 6vw, 72px) !important;
}

.mh-pillar {
  padding: 26px 24px;
  background: var(--mh-card);
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-r-card);
}

.mh-pillar.mh-pillar-dark {
  background: var(--mh-dark);
  color: var(--mh-on-ink);
  border-color: var(--mh-dark);
}

.mh-pillar-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--mh-r-img);
  background: var(--mh-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mh-pillar-badge svg {
  width: 21px;
  height: 21px;
}

.mh-pillar h3 {
  margin: 1rem 0 0.5rem;
  font-family: var(--mh-font-display);
  font-size: 1.3rem;
  line-height: 1.1;
  letter-spacing: 0.015em;
}

.mh-pillar p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--mh-ink-70);
}

.mh-pillar.mh-pillar-dark p {
  color: rgba(239, 233, 220, 0.78);
}

.mh-pillar .mh-pillar-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.9rem;
  font-family: var(--mh-font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mh-orange);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}

.mh-pillar .mh-pillar-more:hover {
  border-bottom-color: var(--mh-orange);
}

/* ============================================================
   OM MAKER MEIK  (dark "about the founder" band before footer)
   ============================================================ */
.mh-founder-section {
  padding: var(--mh-section-space) var(--mh-content-padding);
  background: var(--mh-dark);
  color: var(--mh-on-ink);
}

.mh-founder-grid {
  max-width: 1240px;
  margin-inline: auto;
  display: grid !important;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center !important;
  gap: clamp(32px, 6vw, 88px) !important;
}

.mh-founder-section .mh-eyebrow {
  color: var(--mh-orange);
}

.mh-founder-section .mh-eyebrow::before {
  color: var(--mh-orange);
}

.mh-founder-title {
  margin: 0 0 20px;
  font-family: var(--mh-font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0.015em;
}

.mh-founder-body p {
  max-width: 54ch;
  color: rgba(239, 233, 220, 0.82);
}

.mh-founder-body p + p {
  margin-top: 1rem;
}

.mh-founder-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin-top: 22px;
  font-family: var(--mh-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mh-on-ink);
  border-bottom: 2px solid rgba(239, 233, 220, 0.4);
  padding-bottom: 3px;
  transition: color 150ms ease, border-color 150ms ease;
}

.mh-founder-link:hover {
  color: var(--mh-orange);
  border-bottom-color: var(--mh-orange);
}

.mh-founder-media {
  display: grid !important;
  grid-template-columns: 1.1fr 0.7fr;
  gap: 14px !important;
  align-items: center !important;
}

.mh-founder-portrait {
  margin: 0;
  border-radius: var(--mh-r-img);
  overflow: hidden;
  border: 2px solid var(--mh-orange);
  transform: rotate(-1.6deg);
}

.mh-founder-portrait img {
  display: block;
  width: 100%;
  height: clamp(240px, 26vw, 340px);
  object-fit: cover;
}

.mh-founder-snap {
  margin: 0;
  border-radius: var(--mh-r-img);
  overflow: hidden;
  transform: rotate(2.4deg);
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.6);
}

.mh-founder-snap img {
  display: block;
  width: 100%;
  height: clamp(150px, 16vw, 200px);
  object-fit: cover;
}

/* ============================================================
   ENTRANCE ANIMATIONS  (only when JS confirms support)
   ============================================================ */
@keyframes mh-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mh-pop {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mh-tilt-in {
  from {
    opacity: 0;
    transform: rotate(-2.5deg) translateY(20px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: rotate(-2.5deg) translateY(0) scale(1);
  }
}

/* fill-mode "both" holds opacity:0 through the delay and opacity:1 after,
   so there is no separate base rule to revert to when the JS parallax
   hand-off later clears the animation. */
.mh-js .mh-hero-copy > * {
  animation: mh-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.mh-js .mh-hero-copy > .mh-eyebrow {
  animation-delay: 0.08s;
}

.mh-js .mh-hero-copy > .mh-display {
  animation-delay: 0.2s;
}

.mh-js .mh-hero-copy > .mh-hero-intro {
  animation-delay: 0.36s;
}

.mh-js .mh-hero-copy > .wp-block-buttons {
  animation-delay: 0.48s;
}

.mh-js .mh-collage-main {
  animation: mh-rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) 0.32s both;
}

.mh-js .mh-collage-small {
  animation: mh-tilt-in 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) 0.54s both;
}

.mh-js .mh-hero-status {
  animation: mh-pop 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.68s both;
}

.mh-js .mh-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mh-js .mh-reveal.is-in {
  opacity: 1;
  transform: none;
}

.mh-js .mh-reveal-scale {
  transform: translateY(24px) scale(0.9);
}

.mh-js .mh-reveal-left {
  transform: translateX(-34px);
}

.mh-js .mh-reveal-right {
  transform: translateX(34px);
}

.mh-js .mh-reveal-rotate {
  transform: translateY(26px) rotate(-4deg);
}

.mh-js .mh-reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.mh-js .mh-reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.mh-js .mh-reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.mh-js .mh-reveal:nth-child(5) {
  transition-delay: 0.32s;
}

/* ============================================================
   NATIVE CURSOR BEHAVIOR
   ============================================================ */

/* Older cached JavaScript may briefly leave these hooks behind. */
.mh-cursor {
  display: none !important;
}

.mh-cursor-on body,
.mh-cursor-on body * {
  cursor: auto !important;
}

a[href],
button:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
summary,
label[for],
select,
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
[contenteditable="true"] {
  cursor: text !important;
}

button:disabled,
[aria-disabled="true"],
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed !important;
}

/* --- card cursor spotlight + hover lift --- */
.mh-js .mh-pillar,
.mh-js .mh-join-card,
.mh-js .wp-block-group.is-style-maker-card {
  position: relative;
  transition: opacity 0.7s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.mh-js .mh-pillar::after,
.mh-js .mh-join-card::after,
.mh-js .wp-block-group.is-style-maker-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 116, 32, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mh-js .mh-pillar:hover::after,
.mh-js .mh-join-card:hover::after,
.mh-js .wp-block-group.is-style-maker-card:hover::after {
  opacity: 1;
}

.mh-js .mh-pillar:hover {
  transform: translateY(-6px);
  border-color: var(--mh-orange);
}

.mh-js .mh-pillar-dark:hover {
  border-color: var(--mh-orange);
}

.mh-js .mh-join-card:hover,
.mh-js .wp-block-group.is-style-maker-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 46px -22px rgba(27, 23, 18, 0.4);
}

.mh-js .mh-pillar-badge {
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mh-js .mh-pillar:hover .mh-pillar-badge {
  transform: rotate(-8deg) scale(1.08);
}

/* --- gallery tiles --- */
.mh-js .mh-tile {
  position: relative;
  transition: opacity 0.7s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}

.mh-js .mh-tile img {
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mh-js .mh-tile:hover {
  transform: translateY(-8px) rotate(-1.4deg);
  box-shadow: 0 30px 44px -24px rgba(27, 23, 18, 0.5);
  z-index: 3;
}

.mh-js .mh-tile-wide:hover {
  transform: translateY(-8px) rotate(0.8deg);
}

.mh-js .mh-tile:hover img {
  transform: scale(1.06);
}

.mh-js .mh-tile figcaption {
  transition: color 0.3s ease;
}

.mh-js .mh-tile:hover figcaption {
  color: var(--mh-dark);
}

/* --- magnetic buttons: the wrapper glides, the link still presses --- */
.mh-js .wp-block-button.is-style-maker-primary,
.mh-js .wp-block-button.is-style-maker-secondary {
  transition: translate 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: translate;
}

/* --- hero collage layers ease their parallax nudge --- */
.mh-js .mh-collage-main,
.mh-js .mh-collage-small,
.mh-js .mh-hero-status {
  transition: translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --- ticker pauses so you can read it --- */
.mh-js .mh-ticker:hover .mh-ticker-line {
  animation-play-state: paused;
}

/* ============================================================
   FOOTER
   ============================================================ */
.mh-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 44px var(--mh-content-padding);
  background: var(--mh-base);
  border-top: 1px solid var(--mh-line);
}

.mh-footer-brand img {
  width: clamp(140px, 16vw, 240px);
  height: auto;
}

.mh-footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  font-family: var(--mh-font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mh-ink-70);
}

.mh-footer-meta a {
  border-bottom: 1px solid var(--mh-line-strong);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease;
}

.mh-footer-meta a:hover {
  color: var(--mh-orange);
  border-color: var(--mh-orange);
}

/* ============================================================
   CONTENT SHELL  (pages, posts, 404)
   ============================================================ */
.mh-content-shell {
  padding: var(--mh-section-space) var(--mh-content-padding);
}

.mh-content-shell > * {
  max-width: 760px;
  margin-inline: auto;
}

.mh-content-shell > .alignwide {
  max-width: 1240px;
}

.mh-content-title {
  margin-bottom: 36px;
  font-family: var(--mh-font-display);
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 0.98;
}

.mh-cta-page-intro {
  margin-bottom: clamp(56px, 7vw, 96px);
}

.mh-cta-lead {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  line-height: 1.6;
  color: var(--mh-ink-70);
}

.mh-cta-jump-links {
  gap: 14px 24px;
  margin-top: 28px;
}

/* ============================================================
   FORMS  (FluentForm — hairline shell, hard-shadow submit)
   ============================================================ */
.mh-cta-form-section {
  scroll-margin-top: 90px;
  margin: 0 0 clamp(48px, 7vw, 88px);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-r-card);
  background: var(--mh-card);
  box-shadow: var(--mh-shadow-soft);
}

.mh-cta-form-sponsor {
  border-top: 6px solid var(--mh-orange);
  background: var(--mh-base);
}

.mh-cta-form-contact {
  background: var(--mh-paper-2);
}

.mh-form-kicker {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mh-line);
  font-family: var(--mh-font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mh-ink-70);
}

.mh-form-title {
  max-width: 14ch;
  margin: 0 0 18px;
  font-family: var(--mh-font-display);
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.015em;
}

.mh-cta-form-section > p:not(.mh-form-kicker) {
  max-width: 56ch;
  margin-bottom: 32px;
  font-size: 1.06rem;
  color: var(--mh-ink-70);
}

.mh-cta-form-section .frm-fluent-form {
  margin-top: 36px;
}

.mh-cta-form-section .ff-el-group {
  margin-bottom: 22px;
}

.mh-cta-form-section .ff-el-input--label label,
.mh-cta-form-section .ff-el-form-check-label {
  color: var(--mh-dark);
  font-family: var(--mh-font-body);
}

.mh-cta-form-section .ff-el-input--label label {
  margin-bottom: 8px;
  font-family: var(--mh-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mh-cta-form-section .ff-el-form-control {
  min-height: 52px;
  padding: 13px 15px;
  border: 1.5px solid var(--mh-line-strong);
  border-radius: var(--mh-r-img);
  background: #fffaf4;
  color: var(--mh-dark);
  font-family: var(--mh-font-body);
  font-size: 1rem;
  box-shadow: none;
}

.mh-cta-form-section textarea.ff-el-form-control {
  min-height: 140px;
  resize: vertical;
}

.mh-cta-form-section .ff-el-form-control:focus {
  border-color: var(--mh-dark);
  box-shadow: 0 0 0 3px rgba(255, 116, 32, 0.35);
  outline: 0;
}

.mh-cta-form-section .ff-el-form-check {
  margin-bottom: 10px;
}

.mh-cta-form-section .ff-el-form-check-input {
  accent-color: var(--mh-orange);
}

.mh-cta-form-section .mh-consent-field {
  padding-top: 18px;
  border-top: 1px solid var(--mh-line);
}

.mh-cta-form-section .mh-consent-field .ff-el-input--label {
  display: none;
}

.mh-cta-form-section .ff-btn-submit,
.mh-cta-form-section .ff-btn-submit:not(:disabled) {
  min-height: 54px;
  padding: 14px 24px;
  border: 2px solid var(--mh-dark) !important;
  border-radius: var(--mh-r-btn) !important;
  background: var(--mh-orange) !important;
  color: var(--mh-dark) !important;
  font-family: var(--mh-font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--mh-dark);
  opacity: 1;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.mh-cta-form-section .ff-btn-submit:hover,
.mh-cta-form-section .ff-btn-submit:focus-visible {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--mh-dark);
}

.mh-cta-form-section .ff-btn-submit:focus-visible {
  outline: 3px solid var(--mh-orange);
  outline-offset: 3px;
}

.mh-cta-form-section .error.text-danger,
.mh-cta-form-section .ff-el-is-error .text-danger {
  color: #8a1d0d;
  font-weight: 700;
}

.mh-cta-form-section .ff-el-is-error .ff-el-form-control {
  border-color: #8a1d0d;
}

.mh-cta-form-section .ff-message-success {
  padding: 22px;
  border: 1px solid var(--mh-dark);
  border-radius: var(--mh-r-card);
  background: var(--mh-green);
  color: #fff;
  box-shadow: var(--mh-shadow-soft);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .mh-hero-grid,
  .mh-section-heading,
  .mh-sammen-grid,
  .mh-founder-grid,
  .mh-invitation {
    grid-template-columns: 1fr;
  }

  .mh-hero-copy {
    max-width: none;
  }

  .mh-sammen-photo {
    order: -1;
    width: min(100%, 540px);
  }

  .mh-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mh-founder-media {
    order: -1;
    max-width: 520px;
  }

  .mh-tile-wide {
    grid-column: span 2;
  }

  .mh-progress-row {
    grid-template-columns: 54px 1fr auto;
  }

  .mh-step-copy {
    grid-column: 2;
  }

  .mh-state {
    grid-column: 3;
    grid-row: 1;
  }

  .mh-card-grid {
    grid-template-columns: 1fr;
  }

  .mh-stats-grid {
    grid-template-columns: 1fr;
    gap: 32px !important;
  }

  .mh-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  :root {
    --mh-content-padding: 18px;
  }

  .mh-site-header {
    min-height: 64px;
  }

  .mh-location {
    max-width: 130px;
    justify-content: flex-end;
    text-align: right;
    line-height: 1.4;
  }

  .mh-hero-section {
    min-height: auto;
    padding-top: 40px;
  }

  .mh-hero-collage {
    grid-template-columns: 1fr;
  }

  .mh-collage-small {
    transform: none;
  }

  .mh-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mh-actions .wp-block-button,
  .mh-actions .wp-block-button__link {
    width: 100%;
  }

  .mh-gallery-grid {
    grid-template-columns: 1fr;
  }

  .mh-tile-wide {
    grid-column: auto;
  }

  .mh-founder-media {
    grid-template-columns: 1fr;
  }

  .mh-progress-row {
    grid-template-columns: 40px 1fr;
    gap: 14px !important;
  }

  .mh-step-copy,
  .mh-state {
    grid-column: 2;
  }

  .mh-state {
    grid-row: auto;
    width: max-content;
  }

  .mh-footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .mh-cta-form-section {
    padding: 24px 18px 28px;
  }

  .mh-cta-jump-links,
  .mh-cta-jump-links .wp-block-button,
  .mh-cta-jump-links .wp-block-button__link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mh-ticker-line,
  .mh-card-footer::after,
  .mh-status-foot::after {
    animation: none;
  }

  .mh-brand img,
  .wp-block-button__link {
    transition: none;
  }

  .mh-js .mh-hero-copy > *,
  .mh-js .mh-collage-main,
  .mh-js .mh-collage-small,
  .mh-js .mh-hero-status,
  .mh-js .mh-reveal,
  .mh-js .mh-pillar:hover,
  .mh-js .mh-tile:hover,
  .mh-js .mh-join-card:hover {
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    animation: none !important;
    transition: none !important;
  }

  .mh-js .mh-collage-small {
    transform: rotate(-2.5deg) !important;
  }

}
