/* Welcome animation followed by a static editorial page. */
.meldo-home .meldo-home-section{display:grid;align-content:center;min-height:0;padding-block:clamp(48px,4.4vw,64px);background:var(--meldo-paper)}
.meldo-home-section-content{width:100%;min-width:0}
.meldo-home-section:not(.meldo-home-opening) .meldo-home-section-content{max-width:1280px}
.meldo-home .meldo-home-opening{min-height:calc(100svh - var(--meldo-expanded-header-height) - var(--meldo-admin-offset));padding-block:clamp(56px,8svh,96px) clamp(112px,16svh,176px)}
.meldo-opening-layout{display:grid;grid-template-columns:clamp(130px,15vw,210px) minmax(0,1fr);gap:clamp(44px,7vw,100px);align-items:center;max-width:1160px;margin:auto}
.meldo-opening-layout .meldo-hero-symbol-position{min-width:0}
.meldo-opening-layout .meldo-hero-symbol{width:100%;height:auto;overflow:visible}
/* The wrapper positions the whole logo; SVG matrices gather its four sections. */
@media(prefers-reduced-motion:no-preference){
  .meldo-home-motion:not(.meldo-home-started):not(.meldo-home-entrance-seen) .meldo-home .meldo-hero-symbol{visibility:hidden}
  /* Keep header space reserved while the opening has the visitor's attention. */
  .meldo-home-motion .home .wp-site-blocks>header{transition:opacity 650ms cubic-bezier(.4,0,.2,1),transform 520ms cubic-bezier(.32,0,.2,1)}
  .meldo-home-motion.meldo-home-menu-pending .home .wp-site-blocks>header{opacity:0;visibility:hidden;transition:none}
  .meldo-home-motion .home .wp-site-blocks>header:focus-within{transition:none}
}
@media(prefers-reduced-motion:reduce){
  .meldo-home .meldo-hero-symbol-position{transform:none!important}
  .meldo-home .meldo-logo-pieces{visibility:hidden!important}
  .meldo-home .meldo-logo-whole{visibility:visible!important}
}
.meldo-opening-layout h1{font-size:clamp(54px,6.7vw,96px);font-weight:400;line-height:1.04;letter-spacing:-.06em;margin:0;overflow-wrap:break-word}
.meldo-home-title-line{display:block;overflow:hidden;padding-block:.08em .14em;margin-block:-.08em -.14em}
.meldo-home-title-line>span{display:block}
.meldo-scene-actions{display:flex;align-items:center;flex-wrap:wrap;gap:22px 36px;margin-top:44px}
.meldo-scene-actions .wp-element-button{display:inline-flex;align-items:center;gap:28px;font-size:14px}
.meldo-scene-next{display:inline-flex;gap:24px;align-items:center;min-height:44px;font-size:14px;text-decoration:none}
.meldo-scene-next:hover{text-decoration:underline}
.meldo-scene-next span{font-size:22px}
/* Below the welcome, everything is visible and scrolls together. */
.meldo-home-editorial{background:var(--meldo-paper)}
.meldo-home-origin{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(40px,7vw,100px);align-items:center;padding-block:clamp(56px,6vw,88px) 0}
.meldo-home-introduction{grid-column:2;grid-row:1;min-width:0}
.meldo-home-origin>.meldo-home-photo{grid-column:1;grid-row:1;max-width:600px}
.meldo-home-introduction .meldo-kicker{margin:0 0 24px}
.meldo-home-introduction h2,.meldo-home-people h2{font-family:inherit;font-weight:400;font-size:clamp(44px,4.8vw,68px);line-height:1.08;letter-spacing:-.035em;margin:0;overflow-wrap:break-word}
.meldo-home-intro-copy{max-width:46ch;margin-top:32px}
.meldo-home-intro-copy p,.meldo-home-people p{font-size:18px;line-height:1.7;margin:0 0 18px;overflow-wrap:break-word}
.meldo-home-intro-copy p:last-child,.meldo-home-people p:last-child{margin-bottom:0}
.meldo-home-photo{margin:0;width:100%;min-width:0}
.meldo-home-photo-frame{overflow:hidden;border-radius:8px;isolation:isolate;aspect-ratio:1088/1450}
.meldo-home-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.meldo-home-orchard figcaption{font-size:12px;line-height:1.5;color:var(--meldo-muted);margin-top:12px}
.meldo-home-values{padding-block:clamp(64px,6vw,88px) clamp(40px,4vw,60px)}
.meldo-home-values-heading{display:flex;justify-content:space-between;align-items:baseline;gap:24px 40px;margin-bottom:36px}
.meldo-home-values-heading h2{font-size:clamp(30px,3vw,40px);font-weight:400;line-height:1.15;letter-spacing:-.035em;margin:0}
.meldo-home-values-heading .meldo-text-link{flex-shrink:0}
.meldo-home-principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(28px,4vw,56px);list-style:none;margin:0;padding:0}
.meldo-home-principles li{border-top:1px solid var(--meldo-line);padding-top:20px;min-width:0}
.meldo-home-principle-number{display:block;font-size:12px;line-height:1.5;color:var(--meldo-muted);letter-spacing:.06em;margin-bottom:28px}
.meldo-home-principles h3{font-size:clamp(24px,2.1vw,30px);font-weight:400;line-height:1.2;letter-spacing:-.025em;margin:0 0 16px;overflow-wrap:break-word}
.meldo-home-principles p{font-size:16px;line-height:1.75;margin:0 0 16px;max-width:40ch;overflow-wrap:break-word}
.meldo-home-principles p:last-child{margin-bottom:0}
.meldo-home .meldo-home-products{padding-bottom:56px}
.meldo-home .meldo-home-products .meldo-home-section-content{max-width:1440px}
.meldo-home-products .meldo-section-head{margin-bottom:32px}
.meldo-home-products .meldo-section-head h2{font-size:clamp(36px,4vw,56px)}
.meldo-home-people-inner{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:clamp(40px,7vw,100px);align-items:start;border-top:1px solid var(--meldo-line);padding-block:clamp(48px,5vw,72px)}
.meldo-home-people h2{font-size:clamp(38px,3.8vw,52px)}
.meldo-home-people p{max-width:52ch}
.meldo-home-people .meldo-text-link{margin-top:24px}

/* Only the welcome may hide content while preparing its once-per-session reveal. */
@media(prefers-reduced-motion:no-preference){
  .meldo-home-motion.meldo-age-confirmed .meldo-home-opening [data-meldo-reveal]:not(.meldo-home-revealed){opacity:0}
  .meldo-home-motion.meldo-home-entrance-seen .meldo-home-opening [data-meldo-reveal]{opacity:1}
}
@media(max-width:1040px){
  .meldo-opening-layout{grid-template-columns:140px minmax(0,1fr);gap:48px}
  .meldo-opening-layout h1{font-size:clamp(50px,6.7vw,70px)}
  .meldo-home-origin,.meldo-home-people-inner{gap:40px}
  .meldo-home-intro-copy p,.meldo-home-people p{font-size:17px}
}
@media(max-width:760px){
  .meldo-home .meldo-home-section{padding-block:clamp(28px,5vw,40px)}
  .meldo-home .meldo-home-opening{min-height:calc(100svh - var(--meldo-expanded-header-height) - var(--meldo-admin-offset));align-content:center;padding-block:clamp(40px,7svh,64px)}
  .meldo-opening-layout{grid-template-columns:1fr;gap:36px}
  .meldo-opening-layout .meldo-hero-symbol-position{width:112px}
  .meldo-opening-layout h1{font-size:clamp(42px,9vw,64px)}
  /* Compact the arrows and gaps rather than letting browser font metrics stack the links. */
  .meldo-scene-actions{margin-top:48px;flex-wrap:nowrap;align-items:stretch;gap:12px 16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  .meldo-scene-actions .wp-element-button,.meldo-scene-actions .meldo-scene-next{flex:0 1 auto;min-width:0;min-height:48px;gap:8px;font-size:14px;line-height:1.35;white-space:normal}
  .meldo-scene-actions .wp-element-button{padding:12px 14px}
  .meldo-scene-actions .meldo-scene-next{padding-block:12px}
  .meldo-scene-actions>a>span{display:flex;align-items:center;flex:none}
  .meldo-scene-actions .meldo-link-arrow{width:18px;height:18px}
  .meldo-home-origin{grid-template-columns:minmax(0,1fr);gap:32px;padding-top:48px}
  .meldo-home-introduction{grid-column:1;grid-row:1}
  .meldo-home-origin>.meldo-home-photo{grid-column:1;grid-row:2;max-width:none}
  .meldo-home-people-inner{grid-template-columns:minmax(0,1fr);gap:24px}
  .meldo-home-introduction .meldo-kicker{margin-bottom:20px}
  .meldo-home-introduction h2{font-size:clamp(40px,9vw,56px)}
  .meldo-home-intro-copy p,.meldo-home-people p{font-size:16px}
  .meldo-home-intro-copy{max-width:none;margin-top:24px}
  .meldo-home-values{padding-block:48px 32px}
  .meldo-home-values-heading{display:block;margin-bottom:28px}
  .meldo-home-values-heading .meldo-text-link{margin-top:20px}
  .meldo-home-principles{grid-template-columns:minmax(0,1fr);gap:28px}
  .meldo-home-principles li{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:16px;padding-top:22px}
  .meldo-home-principle-number{grid-column:1;grid-row:1/3;padding-top:5px;margin:0}
  .meldo-home-principles h3,.meldo-home-principles p{grid-column:2;max-width:none}
  .meldo-home-principles h3{font-size:25px;margin-bottom:12px}
  .meldo-home .meldo-home-products{padding-bottom:40px}
  .meldo-home-products .meldo-section-head{margin-bottom:24px}
  .meldo-home-products .meldo-section-head h2{font-size:clamp(32px,7vw,44px)}
  .meldo-home-people-inner{padding-block:40px 48px}
}
/* Very narrow screens keep both text starts and arrows aligned in two full rows. */
@media(max-width:359px){
  .meldo-scene-actions{flex-direction:column;gap:12px}
  .meldo-scene-actions .wp-element-button,.meldo-scene-actions .meldo-scene-next{width:100%;justify-content:space-between;padding:12px 14px}
}
@media print{
  .meldo-home .meldo-hero-symbol-position{transform:none!important}
  .meldo-home .meldo-hero-symbol{visibility:visible!important}
  .meldo-home .meldo-logo-pieces{visibility:hidden!important}
  .meldo-home .meldo-logo-whole{visibility:visible!important}
  .meldo-home .meldo-home-section{min-height:0;padding-block:32px}
  .meldo-home-title-line{overflow:visible}
  .meldo-home-opening [data-meldo-reveal]{opacity:1!important;transform:none!important;animation:none!important}
  .meldo-home-principles li{break-inside:avoid}
}
