/* Compact landscape and a readable editorial homepage. */
@keyframes journal-in { from { opacity:0; transform:translateY(12px); } }
.journal-home .hero{height:50svh;min-height:360px;max-height:620px;padding:0}
.journal-home .hero-copy{width:min(43%,550px);bottom:24px;padding:0;max-width:none}
.journal-home .hero h1{margin:0 0 8px}
.journal-home .hero-copy>p{margin:0 0 14px;line-height:1.65}
.journal-home .hero-actions{gap:22px}
.journal-home .hero-actions :is(.solid-cta,.outline-cta){min-height:40px;padding-top:7px;padding-bottom:7px}
.journal-home .hero-feature-card{width:200px;bottom:25px;border-radius:14px}
.journal-home .hero-feature-caption{padding:7px 10px;line-height:1.45}
.journal-home .hero-controls{bottom:25px;right:calc(var(--gutter) + 220px);gap:8px}
.journal-home .hero-overlay{background:linear-gradient(90deg,rgba(9,28,43,.32),transparent 48%),linear-gradient(0deg,rgba(9,28,43,.35),transparent 38%)}
.journal-home .site-header{height:78px}
.content-index{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:30px;padding:15px var(--gutter);background:rgba(248,249,244,.93);backdrop-filter:blur(18px);border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.content-index::-webkit-scrollbar{display:none}
.content-index a{color:#617881;white-space:nowrap;position:relative;font-size:16px}
.content-index a::after{content:'';position:absolute;bottom:-15px;left:0;right:0;height:2px;background:#476d73;transform:scaleX(0);transform-origin:left;transition:transform .4s ease}
.content-index a:hover,.content-index a[aria-current]{color:#173c48}
.content-index a[aria-current]::after{transform:scaleX(1)}
.content-index .index-label{margin-right:auto;color:#233f46;white-space:nowrap}
.journal-home .intro-section{padding:38px var(--gutter) 30px}
.journal-home .intro-section .section-heading{align-items:start;gap:45px;margin-bottom:0;display:grid;grid-template-columns:1fr 2fr}
.journal-home .intro-section .section-heading>p{max-width:760px}
.journal-home .intro-section .stats{padding:22px 0 0}
.journal-home .stats-grid{display:flex;gap:28px;flex-wrap:wrap}
.journal-home .stat{display:flex;flex-direction:row;min-height:0;padding:0;border:0;gap:9px}
.journal-home .stat strong{font-weight:500;color:#8b734e}
.journal-home .stat span{color:#72838a}
.journal-section{border-top:1px solid var(--line)}
.journal-home .journal-section{padding-top:34px;padding-bottom:60px}
.journal-section .section-heading{align-items:center;margin-bottom:26px}
.journal-kicker{color:#8b734e;margin:0 0 12px;display:flex;align-items:center;gap:12px}
.journal-kicker::before{content:'';height:1px;width:28px;background:currentColor}
.journal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.journal-card{position:relative;display:block;color:#213e47;padding-bottom:23px;border-bottom:1px solid #b9c9c7;transition:transform .4s cubic-bezier(.2,.7,.3,1),border-color .4s}
.journal-cover{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;background:#e4e9e5;border-radius:4px;margin-bottom:20px}
.journal-cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 1s cubic-bezier(.2,.7,.3,1),filter .6s;transform:scale(1.035);filter:saturate(.82)}
.journal-card h3{margin:10px 0;color:#213e47;line-height:1.8}
.journal-meta{display:flex;justify-content:space-between;gap:10px;color:#7b8279}
.journal-card p{margin:0 0 22px;color:#617781;line-height:1.85}
.journal-read{display:flex;align-items:center;justify-content:space-between;color:#385a62}
.journal-read span{transition:transform .35s ease}
.journal-card:hover{transform:translateY(-5px);border-color:#496d75}
.journal-card:hover .journal-cover img{transform:scale(1.085);filter:saturate(1)}
.journal-card:hover .journal-read span{transform:translateX(5px)}
.journal-home .has-product-screenshot{grid-template-columns:1fr 1.35fr;gap:6vw;padding-top:60px;padding-bottom:60px;align-items:center}
.journal-home .has-product-screenshot .source-copy{order:0;max-width:470px}
.journal-home .has-product-screenshot .source-screenshot{order:1;min-width:0}
.journal-home .source-screenshot a{border:0;border-radius:7px;box-shadow:0 20px 40px rgba(3,16,23,.2)}
.journal-home .source-screenshot>span{line-height:1.8}
.journal-home .workflow-section{padding-top:50px;padding-bottom:42px}
.journal-home .workflow-step{padding-bottom:0}
.journal-home :is(#services,#products,#about){padding-top:60px;padding-bottom:60px}
.journal-home .service-row{min-height:0}
.journal-home .service-visual{border:0;border-radius:4px;min-height:0;height:auto;aspect-ratio:16/10}
.journal-home .service-visual img{min-height:0;object-fit:cover}
.journal-home .product-card,.journal-home .product-card.featured{min-height:0;display:flex;flex-direction:column;padding:28px;gap:12px;border-radius:5px}
.journal-home .product-card h3,.journal-home .product-card p{margin:0;max-width:none}
.journal-home .product-visual{position:relative;inset:auto;height:auto;width:calc(100% + 56px);max-width:none;margin:4px -28px 10px;aspect-ratio:16/9;order:-1}
.journal-home .product-tags{position:static;max-width:none;margin-top:auto;padding-top:14px}
.journal-home .product-link{position:static;align-self:flex-start;margin-top:8px}
.journal-home .about-graphic{min-height:260px}
.journal-home .graphic-circle{width:190px;height:190px}
.journal-home .contact{min-height:300px;padding-top:54px;padding-bottom:54px}
.journal-home .reveal,.journal-home .story-reveal{transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.3,1)}
.lunar-site .editorial-reveal{transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.3,1);transition-delay:var(--reveal-delay,0ms)}
.lunar-site .editorial-reveal.waiting{opacity:0;transform:translateY(28px)}
.lunar-site .editorial-reveal.arrived{opacity:1;transform:none}
.image-reveal{overflow:hidden}
.image-reveal img{will-change:transform}
.lunar-site .image-reveal.waiting{clip-path:inset(0 0 13% 0)}
.lunar-site .image-reveal.arrived{clip-path:inset(0);transition:clip-path 1s cubic-bezier(.2,.7,.3,1),opacity .8s,transform .8s}
.journal-home .has-product-screenshot .source-copy{position:sticky;top:100px}

/* Standalone reading pages. */
.journal-article{background:#f8f9f4}
.journal-article .site-header{position:relative;height:82px;background:#f8f9f4;border-bottom:1px solid var(--line)}
.journal-article .site-header .brand img{filter:none}
.journal-article .site-header :is(.brand b,.main-nav a,.language-switch,.mini-cta,.mini-cta span){color:#234653}
.journal-article .site-header .menu-toggle{border-color:#a5b8bc;background:transparent}
.journal-article .site-header .menu-toggle span{background:#234653}
.journal-article .site-header :is(a,button):focus-visible{outline-color:#285f70}
.reading-progress{position:fixed;z-index:150;top:0;left:0;right:0;height:3px;background:#af8d56;transform:scaleX(0);transform-origin:left;pointer-events:none}
.article-masthead{padding:46px var(--gutter) 40px;max-width:var(--max);margin:auto}
.article-back{color:#6c817f;display:inline-flex;gap:10px;margin-bottom:30px}
.journal-article .article-back,.journal-article .article-toc{animation:journal-in .6s cubic-bezier(.2,.7,.3,1) both}
.article-intro{display:grid;grid-template-columns:1fr 1.1fr;gap:7vw;align-items:center}
.article-intro h1{color:#233f46;margin:18px 0;line-height:2;font-weight:600}
.article-intro .article-lede{color:#617781;line-height:2;margin:18px 0}
.article-intro figure{margin:0;overflow:hidden;border-radius:5px;background:#e0e7e3}
.article-intro figure img{width:100%;height:100%;aspect-ratio:16/10;object-fit:cover;display:block}
.article-intro figure figcaption{padding:9px 15px;color:#687d7d;background:#eef1eb;line-height:1.7}
.article-byline{color:#7b8279;margin:18px 0 0}
.article-layout{max-width:1220px;margin:0 auto;padding:48px var(--gutter) 80px;border-top:1px solid var(--line);display:grid;grid-template-columns:210px minmax(0,1fr);gap:6vw}
.article-toc{align-self:start;position:sticky;top:40px;color:#74847f}
.article-toc p{color:#8b734e;margin:0 0 18px}
.article-toc a{display:block;color:#738381;padding:9px 0 9px 15px;border-left:1px solid #d4ded8;transition:color .3s,border-color .3s,transform .3s}
.article-toc a:hover,.article-toc a[aria-current]{color:#294d59;border-color:#aa8855;transform:translateX(3px)}
.article-body{min-width:0;max-width:720px}
.article-body section{margin:0 0 48px;scroll-margin-top:35px}
.article-body h2{color:#234653;margin:0 0 20px;font-weight:600}
.article-body p{color:#526d77;line-height:2.05;margin:0 0 22px}
.article-body ul{color:#526d77;padding-left:22px;margin:0 0 24px;line-height:2.05}
.article-body li{padding-left:5px;margin:8px 0}
.article-note{padding:22px 26px;background:#eeece3;border-left:2px solid #c4a77b;color:#596d6b;line-height:2;margin:26px 0}
.article-body a{color:#416c78;text-decoration:underline;text-underline-offset:5px}
.article-next{display:flex;justify-content:space-between;gap:22px;padding:26px 0;border-top:1px solid var(--line);color:#294d59}
.article-next span{transition:transform .3s}
.article-next:hover span{transform:translateX(6px)}
.article-related{padding:50px var(--gutter) 70px;max-width:var(--max);margin:auto;border-top:1px solid var(--line)}
.article-related>h2{margin:0 0 28px}
.article-related .journal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1100px){.content-index{gap:22px}.journal-home .hero-feature-card{width:170px}.journal-home .hero-controls{right:calc(var(--gutter) + 185px)}.journal-home .hero-copy{width:52%}.journal-grid{gap:22px}.journal-home .main-nav{gap:20px}}
@media(max-width:860px){
  .journal-home .hero{height:50svh;min-height:330px;max-height:520px;padding:0}
  .journal-home .hero-copy{position:absolute;left:24px;right:24px;bottom:19px;padding:0;width:auto;max-width:530px}
  .journal-home .hero h1{margin-bottom:6px}
  .journal-home .hero-copy>p{margin-bottom:0;line-height:1.7}
  .journal-home .hero-actions{display:none}
  .journal-home .hero-feature-card,.journal-home .hero-controls{display:none!important}
  .content-index{padding:14px 24px;gap:25px;backdrop-filter:blur(12px)}
  .content-index .index-label{display:none}
  .content-index a::after{bottom:-14px}
  .journal-home .intro-section{padding:28px 24px}
  .journal-home .intro-section .section-heading{grid-template-columns:1fr;gap:14px}
  .journal-home .stats-grid{gap:8px 23px}
  .journal-home .intro-section .stats{padding-top:18px}
  .journal-home .journal-section{padding:30px 24px 42px}
  .journal-section .section-heading{display:block;margin-bottom:24px}
  .journal-section .section-heading>p{margin-top:10px}
  .journal-grid{grid-template-columns:1fr;gap:30px}
  .journal-card{display:grid;grid-template-columns:1fr 1.4fr;gap:0 24px;padding-bottom:24px}
  .journal-cover{grid-row:1/5;aspect-ratio:1;align-self:start;margin:0}
  .journal-meta{flex-wrap:wrap;gap:0 10px}.journal-card h3{margin-top:8px}.journal-card p{margin-bottom:14px}
  .journal-home .has-product-screenshot{grid-template-columns:1fr;gap:28px;padding:42px 24px}
  .journal-home .has-product-screenshot .source-copy{max-width:none;position:static}
  .journal-home .workflow-section{padding:38px 24px}
  .journal-home :is(#services,#products,#about){padding:44px 24px}
  .journal-home .product-card,.journal-home .product-card.featured{min-height:0;padding:24px}
  .journal-home .product-visual{width:calc(100% + 48px);margin-left:-24px;margin-right:-24px;aspect-ratio:16/10}
  .journal-home .contact{padding:42px 24px}
  .article-masthead{padding:30px 24px}
  .article-intro{grid-template-columns:1fr;gap:24px}
  .article-intro figure img{aspect-ratio:16/9}
  .article-back{margin-bottom:20px}
  .article-layout{grid-template-columns:1fr;padding:28px 24px 40px;gap:28px}
  .article-toc{position:static;border-bottom:1px solid var(--line);padding-bottom:20px}
  .article-toc a{display:inline-block;padding:5px 12px;margin:4px 8px 4px 0}
  .article-body{max-width:none}
  .article-related{padding:32px 24px 45px}
  .article-related .journal-grid{grid-template-columns:1fr}
}
@media(max-width:520px){.journal-card{display:block}.journal-cover{aspect-ratio:16/9;margin-bottom:18px}.journal-home .hero{min-height:330px}.journal-home .stat{gap:7px}.journal-home .stats-grid{gap:5px 20px}.journal-home .intro-section .section-heading h2 br{display:none}.article-note{padding:18px}.journal-article .header-actions{margin-right:8px}}
@media(prefers-reduced-motion:reduce){
  .lunar-site .editorial-reveal.waiting{opacity:1;transform:none;clip-path:none}
  .image-reveal img{will-change:auto}
}
.lunar-site.motion-paused .editorial-reveal.waiting{opacity:1;transform:none;clip-path:none}
.lunar-site.motion-paused :is(.journal-card,.journal-cover img,.image-reveal img){transition:none}
