/* V6: supplied video, normal document flow, no pinned / scroll-controlled hero. */
.video-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(850px, max(700px, 100svh));
  padding: 140px max(24px, calc((100vw - 1460px) / 2)) 70px;
  background: var(--paper);
}
.video-hero-media { position: absolute; z-index: -1; inset: 0 0 0 30%; overflow: hidden; background: #d5c2a4; }
.video-hero-poster, .video-hero-poster img, #hero-video, .video-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-hero-poster img, #hero-video { display: block; object-fit: cover; object-position: 57% center; }
#hero-video { opacity: 0; transition: opacity .25s ease; }
#hero-video.is-ready { opacity: 1; }
.video-hero-shade { pointer-events: none; background: linear-gradient(90deg, var(--paper), rgba(243,238,226,.84) 10%, rgba(243,238,226,.2) 28%, transparent 42%); }
.video-hero-copy { width: min(50%, 700px); position: relative; }
.video-hero-copy .kicker { margin-bottom: 28px; font-size: 11px; }
.video-hero h1 { margin: 0; font-size: clamp(52px, 5.8vw, 88px); line-height: 1.03; font-weight: 700; letter-spacing: -.02em; }
.video-hero h1 em { display: inline-block; position: relative; isolation: isolate; color: var(--ink); white-space: nowrap; font-size: .88em; }
.video-hero h1 em::after { content: ''; position: absolute; z-index: -1; left: -1%; right: -1%; bottom: .07em; height: .2em; background: var(--lime); transform: rotate(-1deg); }
.video-hero-lead { max-width: 540px; margin: 30px 0 0; color: #555249; font: clamp(18px, 1.4vw, 22px)/1.5 var(--serif); }
.video-hero .hero-actions { flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-lesson-link { background: rgba(251,248,241,.88); border: 1px solid rgba(17,18,15,.24); }
.video-hero .hero-action-icon { display: block; width: 22px; height: 22px; flex: 0 0 22px; color: currentColor; }
.video-hero a:focus-visible, .product-open:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
section[id] { scroll-margin-top: 108px; }
.duality.section { padding-top: 80px; padding-bottom: 60px; }
.toolkit.section { padding-top: 60px; }
.journey.section { padding-top: 90px; padding-bottom: 90px; }
.market-head { align-items: end; }
.referral-copy h2 { font-size: clamp(34px, 3.35vw, 50px); line-height: 1.1; }
.referral-copy h2 em { display: inline-block; margin-top: .25em; }
.product-card footer { justify-content: flex-end; }
.product-open { display: inline-flex; gap: 24px; align-items: center; min-height: 44px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 24px; font-size: 13px; font-weight: 700; }
.product-open:hover { background: var(--ink); color: var(--paper); }
.product-open span { font-size: 19px; }
/* Let complete cover artwork scale with its card; never crop typography or hide a card off-screen. */
.market .market-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: clamp(14px, 1.5vw, 22px);
  margin: 0;
  padding: 4px 0 24px;
  overflow: visible;
  scroll-snap-type: none;
  align-items: stretch;
}
.market .product-card { display: flex; flex-direction: column; min-width: 0; height: auto; padding: 10px 10px 18px; }
.market .product-image { height: auto; aspect-ratio: auto; flex: 0 0 auto; overflow: hidden; background: transparent; }
.market .product-image img { width: 100%; height: auto; max-width: 100%; object-fit: contain; display: block; transform: none; }
.market .product-card:hover .product-image img { transform: none; }
.market .product-card h3 { min-height: 0; font-family: var(--display); font-size: clamp(20px, 1.65vw, 25px); font-weight: 700; line-height: 1.16; margin: 0 8px 12px; overflow-wrap: break-word; }
.market .product-card > p { margin: 18px 8px 10px; font-size: 11px; }
.market .product-card > span { min-height: 0; margin: 0 8px 22px; font-size: 15px; line-height: 1.5; }
.market .product-card footer { margin: auto 8px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.market .product-open { max-width: 100%; min-height: 46px; }
@media (min-width: 841px) and (max-width: 1199px) {
  .market .product-card > span { font-size: 14px; }
  .market .product-open { gap: 8px; padding-inline: 10px; font-size: 12px; }
}
@media (max-width: 840px) {
  .market .market-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market .product-card h3 { font-size: clamp(22px, 2.6vw, 28px); }
}
@media (max-width: 599px) {
  .market .market-row { gap: 12px; }
  .market .product-card { padding: 6px 6px 10px; border-radius: 18px; }
  .market .product-image { border-radius: 12px; }
  .market .product-card h3 { font-family: var(--sans); font-size: clamp(13px, 3.4vw, 18px); font-weight: 700; line-height: 1.3; margin: 0 4px 8px; text-transform: none; overflow-wrap: anywhere; }
  .market .product-card > p { font-size: 10px; letter-spacing: .08em; margin: 12px 4px 8px; }
  .market .product-card > span { font-size: 12px; line-height: 1.45; margin: 0 4px 14px; overflow-wrap: anywhere; }
  .market .product-card footer { margin: auto 4px 0; padding-top: 10px; }
  .market .product-open { min-height: 44px; padding: 9px 8px; gap: 6px; font-size: 12px; line-height: 1.3; }
  .market .product-open span { flex: 0 0 auto; font-size: 16px; }
}
@media (min-width: 841px) {
  .academy { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .lesson-player { min-width: 0; }
  .whieda-emblem { width: 110px; height: 110px; right: 24px; top: 106px; }
}
@media (min-width: 841px) and (max-width: 1100px) {
  .video-hero h1 { font-size: 56px; }
  .video-hero-copy { width: 51%; }
  .video-hero-lead { max-width: 410px; }
}
@media (max-width: 840px) {
  .whieda-panel { grid-template-columns: minmax(0, 1fr) 72px; }
  .whieda-emblem { width: 64px; height: 64px; }
  .video-hero { display: block; min-height: 100svh; padding: clamp(380px, 55svh, 540px) 0 44px; }
  .video-hero-copy { width: 100%; max-width: 650px; padding: 0 22px; margin-inline: auto; }
  .video-hero-copy .kicker { font-size: 9px; letter-spacing: .14em; margin-bottom: 22px; }
  .video-hero h1 { font-size: clamp(38px, 9.4vw, 54px); line-height: 1.02; }
  .video-hero h1 em { font-size: .91em; }
  .video-hero-lead { margin-top: 20px; font-size: 17px; line-height: 1.45; max-width: 540px; }
  /* Grid prevents legacy column-flex rules treating the width basis as button height. */
  .video-hero .hero-actions { display: grid; grid-template-columns: 1.45fr 1fr; align-items: stretch; margin-top: 22px; gap: 10px; max-width: 450px; }
  .video-hero .button { font-size: 12px; line-height: 1.4; min-height: 54px; height: auto; padding: 12px 14px; min-width: 0; gap: 10px; }
  .video-hero .button span { flex: 0 0 auto; }
  .video-hero-media { position: absolute; z-index: -1; inset: 0 0 auto; height: clamp(520px, 75svh, 740px); width: 100%; max-width: none; margin: 0; }
  .video-hero-poster img, #hero-video { object-fit: cover; object-position: center 30%; }
  .video-hero-shade { background: linear-gradient(180deg, transparent 46%, rgba(243,238,226,.25) 59%, rgba(243,238,226,.94) 81%, var(--paper) 98%); }
  .duality.section { padding-top: 52px; padding-bottom: 30px; }
  .toolkit.section { padding-top: 30px; }
  .journey.section { padding-block: 60px; }
  .referral-copy h2 { font-size: clamp(32px, 8vw, 52px); }
  .product-open { width: 100%; justify-content: space-between; background: var(--ink); color: var(--paper); border-radius: 14px; }
}
@media (max-width: 360px) {
  .whieda-panel { grid-template-columns: minmax(0, 1fr) 56px; }
  .whieda-emblem { width: 52px; height: 52px; }
  .video-hero-copy { padding-inline: 18px; }
  .video-hero h1 { font-size: 36px; }
  .video-hero-lead { font-size: 17px; }
}
@media (min-width: 600px) and (max-width: 840px) {
  .video-hero { padding-top: 520px; }
  .video-hero-media { height: 740px; }
  .video-hero-poster img, #hero-video { object-position: center 48%; }
}
@media (prefers-reduced-motion: reduce) {
  #hero-video { transition: none; }
}
