.machno-intro {
  /* A shared fullscreen stage prevents vertical movement between the three scenes. */
  --hero-height: 100svh;
  /* Match the zoomed forest: shaded center/left, soft olive light on the right. */
  --chapter-one-background:
    radial-gradient(ellipse at 100% 8%, rgb(70 75 55 / 0.95) 0%, transparent 62%),
    radial-gradient(ellipse at 94% 88%, rgb(55 63 46 / 0.75) 0%, transparent 55%),
    linear-gradient(110deg, #19221c 0%, #101614 45%, #222b20 100%);
  position: relative;
  isolation: isolate;
  background: #1c1f18;
}

.machno-intro.is-animated {
  height: var(--hero-height);
  overflow: hidden;
}

.machno-hero {
  --glass-blur: 1.1px;
  --glass-tint: 0.15;
  --glass-reflection: 0.20;
  position: relative;
  width: 100%;
  height: var(--hero-height);
  overflow: hidden;
  isolation: isolate;
  background: #252d29;
}

.machno-hero__scene,
.machno-hero__view,
.machno-hero__forest-tone,
.machno-hero__video,
.machno-film__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.machno-hero__video,
.machno-film__video {
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: 50% 50%;
}

/* Blur a clipped viewport, not the oversized zoomed video texture. */
.machno-hero__view { overflow: hidden; }
.machno-hero__forest-tone {
  background: var(--chapter-one-background);
  opacity: 0;
  pointer-events: none;
}
.machno-hero__glass {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
  background: rgb(177 193 183 / var(--glass-tint));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}

/* Each pane owns its center edge, so both black lines travel with the glass. */
.machno-hero__glass--left {
  left: 0;
  border-right: 3px solid #101310;
  transform: translateX(-101%);
}

.machno-hero__glass--right {
  right: 0;
  border-left: 3px solid #101310;
  transform: translateX(101%);
}

.machno-hero__reflection {
  position: absolute;
  inset: 0;
  opacity: var(--glass-reflection);
  background: linear-gradient(112deg, transparent 9%, rgb(255 255 255 / 0.3) 31%, transparent 48%, rgb(228 239 233 / 0.22) 76%, transparent 95%);
}

.machno-hero__glass--right .machno-hero__reflection { transform: scaleX(-1); }
.machno-hero.is-active .machno-hero__glass,
.machno-hero.is-active .machno-hero__video { will-change: transform; }

/* Live copy sits above the glass; motion wrappers follow each moving frame edge. */
.machno-hero__copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: #f3f3ef;
  pointer-events: none;
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  text-shadow: 0 1px 14px rgb(0 0 0 / 0.16);
  /* The reference uses a pale translucent band, above the glass and below the logo. */
  background: linear-gradient(90deg, rgb(212 222 216 / 0.40) 0%, rgb(212 222 216 / 0.38) 3%, rgb(212 222 216 / 0.20) 10%, transparent 19%);
}

/* These layers exist only during motion; no-JS/reduced-motion keep the original copy. */
.machno-hero__push-layer,
.machno-hero__headline-half {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.machno-hero__headline-half--left { clip-path: inset(0 50% 0 0); }
.machno-hero__headline-half--right { clip-path: inset(0 0 0 50%); }
.machno-hero .machno-hero__headline--source { opacity: 0; }
.machno-hero .machno-hero__wordmark {
  position: absolute;
  top: 53%;
  left: 8.5%;
  margin: 0;
  color: inherit;
  /* The Figma artwork is already vertical; preserve its native aspect ratio. */
  display: block;
  width: min(10.5vw, 14svh);
  height: auto;
  max-width: none;


  transform: translate(-50%, -50%);
}

.machno-hero .machno-hero__services {
  position: absolute;
  top: 16%;
  right: 5.2%;
  margin: 0;
  color: #F1F0EF;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 3.8px;
  text-align: right;
  font-family: "Unbounded", Arial, Helvetica, sans-serif;
}
.machno-hero__services span,
.machno-hero__headline span { display: block; }

.machno-hero .machno-hero__headline {
  position: absolute;
  top: 59%;
  left: 50%;
  width: 76%;
  margin: 0;
  color: rgba(241, 240, 239, 0.92);
  font-family: "Unbounded", Arial, Helvetica, sans-serif;
  font-size: clamp(22px, 3.25vw, 68px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-align: center;
  transform: translate(-50%, -50%);
}
.machno-hero__headline-last { 
  font-size: 100px; 
}

.machno-hero .machno-hero__signature {
  position: absolute;
  bottom: calc(26px + var(--machno-bottom-ui, 0px));
  right: max(5.2%, 84px);
  margin: 0;
  color: #F1F0EF;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 3.8px;
  text-align: right;
  font-weight: 300;
  font-family: "Unbounded", Arial, Helvetica, sans-serif;
}
.machno-hero__signature span,
.machno-hero__signature strong { display: block; }
.machno-hero__signature strong { font-weight: 500; }

.machno-hero .machno-hero__scroll-cue {
  position: absolute;
  bottom: calc(28px + var(--machno-bottom-ui, 0px));
  left: 16.5%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #F1F0EF;
  font-size: 10px;
  letter-spacing: 2.7px;
  font-weight: 300;
  font-family: "Unbounded", Arial, Helvetica, sans-serif;
}
.machno-hero__mouse-wheel { animation: machno-scroll-hint 2s ease-in-out infinite; }

/* CSS-only repeating gesture; no scroll listener or observer is needed for the cue. */
@keyframes machno-scroll-hint {
  0%, 25%, 100% { transform: translateY(0); opacity: 1; }
  16% { transform: translateY(8px); opacity: 0; }
  17% { transform: translateY(0); opacity: 0; }
}

@media (max-width: 1024px) {
  .machno-hero .machno-hero__services { right: 6vw; letter-spacing: 0.12em; }
  .machno-hero .machno-hero__wordmark { left: 7%; width: min(11vw, 14svh); }
  .machno-hero .machno-hero__headline { left: 55%; width: 78%; font-size: clamp(20px, 4.8vw, 34px); }
  .machno-hero .machno-hero__signature { right: 6vw; bottom: calc(80px + var(--machno-bottom-ui, 0px)); font-size: 8px; letter-spacing: 0.12em; }
  .machno-hero .machno-hero__scroll-cue { left: 6vw; bottom: calc(26px + var(--machno-bottom-ui, 0px)); font-size: 8px; }
}

@media (max-height: 500px) and (min-width: 600px) {
  .machno-hero .machno-hero__services { top: 21%; font-size: 9px; }
  .machno-hero .machno-hero__headline { top: 65%; font-size: clamp(20px, 5.5svh, 30px); }
}

.machno-media .machno-hero__playback {
  position: absolute;
  right: 24px;
  /* Leave room for the signature and the theme's fixed back-to-top control. */
  bottom: calc(104px + var(--machno-bottom-ui, 0px));
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: 50%;
  background: rgb(0 0 0 / 0.35);
  color: white;
  cursor: pointer;
}

.machno-media .machno-hero__playback:hover { background: rgb(0 0 0 / 0.65); color: white; }
.machno-media .machno-hero__playback:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.machno-hero__pause-icon { display: none; }
.machno-media.is-playing .machno-hero__pause-icon { display: block; }
.machno-media.is-playing .machno-hero__play-icon { display: none; }
.machno-media [hidden] { display: none !important; }
.machno-hero__error { position: absolute; bottom: 24px; left: 24px; color: white; }

@media (max-width: 1024px) {
  .machno-hero { --glass-blur: 0.6px; }
  .machno-media .machno-hero__playback { right: 16px; bottom: calc(156px + var(--machno-bottom-ui, 0px)); }
}

.machno-chapter {
  position: relative;
  width: 100%;
  min-height: 100svh;
  color: #deded9;
}

.machno-intro.is-animated .machno-chapter {
  position: absolute;
  inset: 0;
  height: 100%;
}

.machno-chapter--one { background: var(--chapter-one-background); isolation: isolate; }
/* The first headline can enter above the zoom before the background becomes solid. */
.machno-intro.is-animated .machno-chapter--one { background: transparent; }
.machno-intro.is-animated .machno-chapter--one::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--chapter-one-background);
  opacity: var(--chapter-solid, 0);
  pointer-events: none;
}
.machno-chapter--two { background: linear-gradient(180deg, #2b3026 0%, #6c7862 100%); }

.machno-chapter__copy {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  height: 100%;
  padding: 100px 5vw 150px;
}

.machno-chapter .machno-chapter__title {
  margin: 0;
  max-width: 100%;
  text-align: center;
  color: #F1F0EF;
  text-align: center;
  font-family: "Unbounded", Arial, Helvetica, sans-serif;
  font-size: 58px;
  font-weight: 200;
  text-transform: uppercase;
}

.machno-chapter__title span { display: block; }
.machno-intro .machno-chapter__note {
  position: absolute;
  z-index: 3;
  bottom: calc(clamp(24px, 3vh, 40px) + var(--machno-bottom-ui, 0px));
  left: 5.2vw;
  margin: 0;
  color: #deded9;
  letter-spacing: 3.8px;
  text-transform: uppercase;
  color: #F1F0EF;
  font-weight: 300;
  font-family: "Unbounded", Arial, Helvetica, sans-serif;
}
.machno-chapter__note span,
.machno-chapter__note strong { display: block; }
.machno-chapter__note strong { font-weight: 500; }

/* Static layout is also the reduced-motion and no-JavaScript fallback. */
.machno-film-story {
  --film-top: #a6ad98;
  --film-bottom: #eae7e4;
  position: relative;
  background: linear-gradient(180deg, var(--film-top), var(--film-bottom));
}
.machno-film { position: relative; height: min(1215px, 100svh); width: 100%; overflow: hidden; background: #252d29; }
.machno-systems { position: relative; display: grid; place-items: center; min-height: 100svh; padding: 60px 6vw; }
.machno-systems .machno-systems__title {
  margin: 0;
  color: #1C1C1C;
  font: 300 clamp(36px, 1.8vw, 32px)/1.35 "Unbounded", Arial, Helvetica, sans-serif;
  text-align: center;
  text-transform: uppercase;
}
.machno-systems__title span { display: block; }
.machno-systems__name { font-size: 105px; line-height: 1.15; }
.machno-film .machno-hero__playback { right: 24px; bottom: 24px; }

/* Only an adjacent hero/film pair shares a pin; the source blocks remain independent. */
.machno-intro.is-animated > .machno-film-story {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
}
.machno-intro.is-animated .machno-film {
  position: absolute;
  inset: 0;
  height: 100%;
  transform-origin: 50% 0;
}
.machno-intro.is-animated .machno-systems {
  position: absolute;
  inset: 0;
  min-height: 0;
  pointer-events: none;
  padding-bottom: calc(60px + var(--machno-bottom-ui, 0px));
}

/* The source gallery stays in normal flow when motion is disabled or JS is absent. */
.machno-gallery { position: relative; background: linear-gradient(180deg, #a6ad98, #eae7e4); }
.machno-gallery .machno-gallery__slide { position: relative; height: 100svh; margin: 0; padding: 6svh 5vw; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.machno-gallery__image { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.machno-intro.is-animated > .machno-gallery {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}
.machno-intro.is-animated .machno-gallery__slide {
  position: absolute;
  inset: 0;
  width: var(--gallery-width, 90vw);
  height: var(--gallery-height, 88svh);
  padding: 0;
  margin: auto !important;
  transform-origin: 50% 50%;
  background: transparent;
}
.machno-intro.is-animated .machno-gallery__slide:first-child { transform-origin: 50% 100%; }

@media (max-width: 1024px) {
  .machno-chapter__copy { padding: 80px 6vw 140px; }
  .machno-chapter .machno-chapter__title { font-size: clamp(24px, 5.8vw, 42px); line-height: 1.4; }
  .machno-intro .machno-chapter__note { left: 6vw; letter-spacing: 0.14em; }
}

@media (max-height: 500px) and (min-width: 600px) {
  .machno-chapter__copy { padding: 24px 5vw 90px; }
  .machno-chapter .machno-chapter__title { font-size: clamp(22px, 5vh, 32px); }
  .machno-intro .machno-chapter__note { bottom: calc(12px + var(--machno-bottom-ui, 0px)); font-size: 9px; }
}

/* Keep the real theme header/footer and remove only this page's content gutters. */
body.machno-hero-demo { margin: 0; background: #1c1f18; }
.machno-hero-demo .wd-page-content { padding: 0; }
.machno-hero-demo #main-content { display: block; width: 100%; max-width: none; padding: 0; margin: 0; }
.machno-hero-demo .machno-page-content { width: 100%; max-width: none; padding: 0; margin: 0; }

@media (max-width: 1024px) {
  /* WoodMart's existing fixed mobile toolbar is 55px tall. */
  .machno-hero-demo.sticky-toolbar-on:has(.wd-toolbar) { --machno-bottom-ui: 55px; }
}

@media (prefers-reduced-motion: reduce) {
  .machno-hero__glass { display: none; }
  .machno-hero__mouse-wheel { animation: none; }
}


/* Only Header Builder ID default_header opts into the hero handoff.
   This class exists only while the matching animated hero controls the header. */
.whb-header.whb-default_header.machno-hero-header-active > .whb-main-header {
  position: fixed;
  top: var(--wd-admin-bar-h, 0px);
  transform: none;
  animation: none;
  transition: none;
}
.whb-header.whb-default_header.machno-hero-header-active + .whb-clone {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Soften the return switch without showing both header identities together. */
.whb-header.whb-default_header.machno-hero-header-active.machno-hero-header-returning > .whb-main-header {
  visibility: hidden !important;
}
.whb-header.whb-default_header.machno-hero-header-active.machno-hero-header-returning + .whb-clone {
  transition: opacity .08s linear, visibility 0s linear .08s, transform .3s ease;
}

/* Controls are temporarily hidden pending physical-device autoplay checks. */
.machno-hero__playback { display: none !important; }

.machno-hero__wordmark img { display: block; width: 100%; height: auto; }
.machno-hero__mobile-project, .machno-hero__services .machno-hero__mobile-break { display: none; }
.machno-hero__services strong { font-weight: inherit; }
@media (max-width: 1024px) {
 .machno-hero { --mobile-project-height: 26px; }
 .machno-hero__copy { background: none; color: rgba(241, 240, 239, .92); text-shadow: none; }
 .machno-hero .machno-hero__headline { inset: 0; width: 100%; height: 100%; transform: none; font-size: clamp(24px, 7.6923vw, 38px); font-weight: 400; line-height: 1.2; letter-spacing: 0; text-align: left; }
 .machno-hero__headline-opening { position: absolute; top: 11.8%; left: 7px; width: 47%; max-width: 235px; }
 .machno-hero .machno-hero__headline-last { position: absolute; top: 52.4%; right: 7px; font-size: clamp(32px, 10.7692vw, 66px); font-weight: 400; white-space: nowrap; }
 .machno-hero .machno-hero__services { top: 61.4%; right: 7px; font-size: clamp(10px, 3.0769vw, 15px); font-weight: 300; line-height: 1.5; letter-spacing: 3.2px; color: inherit; }
 .machno-hero__services strong { font-weight: 700; }
 .machno-hero__services .machno-hero__mobile-break { display: block; }
 .machno-hero .machno-hero__wordmark { top: auto; bottom: 40px; left: 7px; width: calc(100% - 14px); transform: none; opacity: .92; }
 .machno-hero .machno-hero__signature, .machno-hero .machno-hero__scroll-cue { display: none; }
 .machno-hero__mobile-project { position: absolute; inset: auto 0 0; height: var(--mobile-project-height); display: flex; align-items: center; justify-content: space-between; padding: 0 7px; background: #000; color: inherit; font-family: "Unbounded", Arial, sans-serif; font-size: clamp(9px, 2.5641vw, 12px); font-weight: 400; letter-spacing: 2.7px; pointer-events: auto; }
 .machno-hero__mobile-project:hover { color: inherit; }
 .machno-hero__glass::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: var(--mobile-project-height); background: #000; }
 .is-animated .machno-hero__mobile-project { background: transparent; }
 .machno-hero .machno-hero__mobile-source { opacity: 0; pointer-events: none; }
 .machno-hero .machno-hero__mobile-project.machno-hero__mobile-source:focus-visible { opacity: 1; background: #000; outline: 1px solid currentColor; outline-offset: -2px; }
 /* The mobile hero begins with only its menu icon; the native sticky clone retains its logo. */
 .machno-hero-demo .whb-default_header .whb-mobile-left .site-logo { visibility: hidden; }
 .machno-hero-demo :is(.whb-default_header, .whb-default_header + .whb-clone) .whb-row > .container { padding-inline: 7px; }
 .machno-hero-demo :is(.whb-default_header, .whb-default_header + .whb-clone) .wd-header-mobile-nav .wd-tools-text { display: none; }
 .machno-hero-demo :is(.whb-default_header, .whb-default_header + .whb-clone) .wd-header-mobile-nav > a { padding: 0; color: rgba(241, 240, 239, .92); }
 .machno-hero-demo :is(.whb-default_header, .whb-default_header + .whb-clone) .wd-header-mobile-nav .wd-tools-icon { width: 95px; height: 33px; background: currentColor; mask: url('../../../../uploads/2026/09/menu-mobile-icon.svg') center / contain no-repeat; -webkit-mask: url('../../../../uploads/2026/09/menu-mobile-icon.svg') center / contain no-repeat; }
 .machno-hero-demo :is(.whb-default_header, .whb-default_header + .whb-clone) .wd-header-mobile-nav .wd-tools-icon :is(img, svg),
 .machno-hero-demo :is(.whb-default_header, .whb-default_header + .whb-clone) .wd-header-mobile-nav .wd-tools-icon::before { visibility: hidden; }
}
@media (max-width: 1024px) {
 .machno-hero-demo :is(.whb-default_header, .whb-default_header + .whb-clone) :is(.whb-mobile-left, .whb-mobile-right) { margin-inline: 0; }
 .machno-hero-demo :is(.whb-default_header, .whb-default_header + .whb-clone) .site-logo { padding-inline: 0; }
 .machno-hero-demo .wd-sidebar-opener { display: none; }
}
.machno-chapter__title .machno-chapter__mobile-break { display: none; }
@media (max-width: 1024px) {
 .machno-chapter__copy { padding: 70px 7px 140px; }
 .machno-chapter .machno-chapter__title { font-size: clamp(24px, 7.6923vw, 42px); font-weight: 400; line-height: 1.25; color: #F1F0EF; }
 .machno-chapter__title .machno-chapter__mobile-break { display: block; }
 .machno-intro .machno-chapter__note { left: 16px; right: 7px; font-size: clamp(10px, 3.0769vw, 15px); font-weight: 300; line-height: 1.5; letter-spacing: .2em; color: #F1F0EF; }
 .machno-chapter__note strong { font-weight: 500; }
 .machno-film, .machno-intro.is-animated .machno-film { height: min(430px, 110.2564vw, 75svh); }
 .machno-systems .machno-systems__title { color: #1C1C1C; font-size: clamp(16px, 4.6154vw, 22px); font-weight: 300; }
 .machno-systems__name { font-size: clamp(32px, 10.2564vw, 52px); font-weight: 400; }
 .machno-gallery .machno-gallery__slide { padding-inline: 0; }
}
/* On a wide, short tablet the wordmark must leave the services caption readable. */
@media (min-width: 768px) and (max-width: 1024px) {
 .machno-hero .machno-hero__wordmark { width: min(calc(100% - 14px), 95svh); }
}
