/* Selected Loop / After Hours design. Existing A–D styles remain in their own files. */
.loop-site{--ink:#111110;--paper:#f5f2eb;--orange:#ff6513;--muted:#bdbbb7;--line:#383736;--serif:Interface,sans-serif;--max:1480px;--gutter:clamp(22px,5.4vw,80px);background:#111110;color:var(--paper);position:relative;isolation:isolate}
.loop-site:has(.loop-hero):before{content:'';position:absolute;inset:0 0 auto;height:clamp(570px,47.5vw,900px);z-index:-1;pointer-events:none;background:url('/assets/loop/environment.webp') center top/100% auto no-repeat;mask-image:linear-gradient(to bottom,#000 75%,transparent 100%)}
.loop-site h1,.loop-site h2,.loop-site h3{font-family:var(--sans);font-weight:800;letter-spacing:-.045em}
.loop-site .site-header{height:104px;border:0;position:relative;z-index:5;gap:25px}.loop-site .wordmark{font-family:var(--sans);font-weight:800;font-size:34px;letter-spacing:-1.5px;gap:17px}.loop-site .wordmark img{width:64px;height:64px;object-fit:contain}.loop-site .site-nav{gap:30px;font-size:18px;font-weight:600}.loop-site .site-nav a[aria-current=page]:after{content:'';height:3px;background:var(--orange);position:absolute;left:0;right:0;bottom:3px}.loop-site .search-nav{gap:16px}.loop-site .search-nav svg{width:25px;height:25px}
.loop-hero{height:495px;position:relative;display:flex;align-items:center}.loop-hero-copy{position:relative;z-index:2;padding-bottom:23px}.loop-hero h1{font-size:clamp(74px,8.65vw,128px);font-weight:800;line-height:1.01;letter-spacing:-.045em;max-width:950px}.loop-hero h1 span{color:var(--orange)}.loop-hero-copy>p{font-size:clamp(21px,2vw,28px);line-height:1.4;margin-top:22px;letter-spacing:-.025em}.loop-primary{display:inline-flex;align-items:center;justify-content:space-between;gap:34px;background:var(--orange);color:#10100e;border-radius:6px;padding:17px 27px;font-size:24px;font-weight:750;margin-top:27px;min-height:66px;transition:transform .22s,background .22s}.loop-primary:hover{background:#ff843f;transform:translateY(-3px)}.loop-primary .arrow{width:28px;height:28px}.loop-hero-art{position:absolute;width:42%;max-width:640px;right:2.5%;top:-82px;z-index:1;pointer-events:none;transform:translate3d(var(--hero-x,0px),var(--hero-y,0px),0);transition:transform .45s ease-out}.loop-hero-art img{animation:loop-float 7s ease-in-out infinite;filter:drop-shadow(0 32px 18px #0006)}
.loop-featured{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;padding-top:22px;padding-bottom:75px}.loop-story{min-width:0}.loop-story-link{display:block}.loop-story-image{overflow:hidden;border:1px solid #3d3935;border-radius:9px;background:#171615;transition:transform .3s,border-color .3s;transform:perspective(900px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));transform-origin:center;contain:paint}.loop-story-image img{width:100%;height:auto;aspect-ratio:1.88;object-fit:cover;transition:transform .55s}.loop-story-link:hover .loop-story-image{border-color:#a45327}.loop-story-link:hover img{transform:scale(1.045)}.loop-story-copy{padding-top:17px}.loop-story-category{font-size:14px;text-transform:uppercase;letter-spacing:.16em;color:#c9c6c0;display:block;margin-bottom:11px;font-weight:500}.loop-story h3{font-size:clamp(29px,3.1vw,45px);line-height:1.05;font-weight:800;letter-spacing:-.045em;transition:color .25s}.loop-story-link:hover h3{color:var(--orange)}
.loop-discover{padding-top:28px;padding-bottom:72px}.loop-section-head{border-top:1px solid var(--line);padding-top:34px;display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:25px}.loop-section-head h2{font-size:44px}.loop-section-head>a{display:flex;align-items:center;gap:15px;font-size:18px;font-weight:600}.loop-section-head>a:hover{color:var(--orange)}.loop-topics{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:32px}.loop-topics a{border:1px solid #484440;border-radius:50px;padding:9px 17px;font-size:16px}.loop-topics a:hover{border-color:var(--orange);color:var(--orange)}.loop-more-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:38px 30px}.loop-more-grid h3{font-size:29px;line-height:1.15}.loop-more-grid .loop-story-image img{object-fit:contain;background:#141616}
.loop-site .newsletter-afterword{padding-block:35px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:36px}.loop-site .newsletter-afterword h2{font-size:40px;font-weight:800}.loop-site .newsletter-afterword__copy>p:last-child{font-size:18px}.loop-site .newsletter-eyebrow{font-size:13px}.loop-site .newsletter-consent{font-size:14px}.loop-site .newsletter-unavailable{font-size:18px!important}.loop-site .footer-brand{font-family:var(--sans);font-weight:800;font-size:25px}.loop-site .footer-brand img{width:42px;height:42px}.loop-site .footer-links{font-size:15px}.loop-site .footer-line{align-items:center;flex-wrap:wrap}.loop-site .footer-line>p{font-size:15px}.loop-site .preview-nav{background:#171615;border-top:1px solid var(--line);border-bottom:0;padding-block:12px}.loop-site .preview-nav .wrap{gap:10px;font-size:14px}.loop-site .preview-nav a{font-size:14px}.loop-site .preview-nav .desk-link{margin-left:0}
/* Discovery and reading routes continue the same clear type language. */
.loop-site .library-intro h1,.loop-site .page-intro h1{font-size:clamp(48px,6vw,80px);font-weight:800}.loop-site .library-intro p{font-size:20px}.loop-site .library-grid .article-card__title{font-size:28px;line-height:1.13;font-weight:750}.loop-site .library-grid .article-card__description{display:none}.loop-site .library-grid .article-card__meta{font-size:15px}.loop-site .library-grid .article-card__category{font-size:14px;letter-spacing:.1em}.loop-site .library-grid .article-card__meta [aria-label="Editorial status"]{display:none}.loop-site .filters button{font-size:16px}.loop-site .article-heading h1{font-size:clamp(38px,4vw,66px);line-height:1.05;font-weight:800}.loop-site .article-heading>p{font-size:22px;line-height:1.5}.loop-site .article-prose{font-family:var(--sans);line-height:1.72}.loop-site .article-prose h2{font-size:31px;line-height:1.2;font-weight:750}.loop-site .article-toc{font-size:16px}.loop-site .article-card__description{font-size:18px}.loop-site .article-card__title{font-weight:750}.loop-site .reading-surface{--paper:#f5f2eb;--ink:#171616}.loop-site .article-meta{font-size:15px}
.loop-cursor{position:fixed;top:0;left:0;display:none;width:42px;height:42px;z-index:1000;pointer-events:none;contain:layout paint style;transform:translate3d(-100px,-100px,0);overflow:visible}.loop-cursor img{width:42px;height:42px;background:var(--orange);border-radius:50%;padding:5px;box-shadow:0 1px 10px #0005}.loop-cursor span{position:absolute;top:30px;left:23px;background:var(--paper);color:#121110;padding:3px 10px;border-radius:15px;font:700 13px/1.5 var(--sans);white-space:nowrap;opacity:0;transition:opacity .15s}.loop-cursor.is-link span{opacity:1}.loop-cursor.is-link img{background:#ff843f}
@media(hover:hover) and (pointer:fine){.loop-site.cursor-active,.loop-site.cursor-active a,.loop-site.cursor-active button{cursor:none}.loop-site.cursor-active input,.loop-site.cursor-active textarea,.loop-site.cursor-active .article-prose{cursor:text}.loop-site.cursor-active .loop-cursor{display:block}.loop-site.cursor-active .loop-cursor.is-hidden{display:none}}
@keyframes loop-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-12px) rotate(1deg)}}
@keyframes loop-enter{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
.loop-hero-copy{animation:loop-enter .7s both}.loop-featured>.loop-story{animation:loop-enter .7s both}.loop-featured>.loop-story:nth-child(1){animation-delay:.12s}.loop-featured>.loop-story:nth-child(2){animation-delay:.22s}.loop-featured>.loop-story:nth-child(3){animation-delay:.32s}.loop-site.motion-idle .loop-hero-art img{animation-play-state:paused}
@media(max-width:1100px){.loop-site .wordmark{font-size:27px;gap:10px}.loop-site .site-nav{gap:21px;font-size:16px}.loop-site .wordmark img{width:49px;height:49px}.loop-hero{height:405px}.loop-hero-art{right:0;top:-5px;width:46%}.loop-hero h1{font-size:8.7vw}.loop-hero-copy>p{font-size:23px}.loop-primary{font-size:20px;min-height:58px;padding:14px 23px}.loop-story h3{font-size:35px}.loop-featured{gap:22px}.loop-story-category{font-size:13px;letter-spacing:.12em}}
@media(max-width:850px){.loop-site .site-header{height:90px}.loop-site .site-nav .instagram-nav,.loop-site .site-nav .explained-nav{display:none}.loop-hero{height:340px}.loop-hero-copy>p{font-size:20px}.loop-hero-art{width:44%;top:15px}.loop-featured{gap:18px}.loop-story h3{font-size:28px}.loop-featured{padding-bottom:45px}.loop-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.loop-story-category{font-size:12px}.loop-site .newsletter-afterword{display:block}.loop-site .newsletter-afterword .newsletter-actions{margin-top:20px}}
@media(max-width:640px){.loop-site{--gutter:22px}.loop-site:has(.loop-hero):before{height:830px;background-size:auto 830px;background-position:53% top;mask-image:linear-gradient(to bottom,#000 65%,transparent 100%)}.loop-site .site-header{height:78px}.loop-site .wordmark{font-size:23px;letter-spacing:-1px;gap:9px}.loop-site .wordmark img{width:36px;height:36px}.loop-site .site-nav{display:none}.loop-site .mobile-menu-toggle{display:flex}.loop-site .mobile-menu{position:absolute;background:#171615;border:1px solid #4a4540;top:72px;left:22px;right:22px;padding:18px;z-index:10}.loop-site .mobile-menu:not([hidden]){display:flex;flex-direction:column;gap:13px;font-size:18px}.loop-site .mobile-menu a{min-height:38px}.loop-hero{height:auto;min-height:525px;display:block;padding-top:24px;isolation:isolate}.loop-hero-copy{padding-bottom:0}.loop-hero h1{font-size:clamp(48px,12.4vw,76px);letter-spacing:-.055em;line-height:1.01}.loop-hero-copy>p{font-size:19px;margin-top:15px}.loop-primary{font-size:18px;min-height:51px;padding:12px 19px;margin-top:18px;gap:30px}.loop-primary .arrow{width:23px;height:23px}.loop-hero-art{width:285px;right:5px;top:245px;z-index:0}.loop-featured{grid-template-columns:1fr;padding-top:15px;gap:35px;padding-bottom:40px}.loop-story-image img{aspect-ratio:1.88}.loop-story-copy{padding-top:14px}.loop-story-category{font-size:13px;margin-bottom:9px}.loop-story h3{font-size:35px;line-height:1.06}.loop-section-head h2{font-size:35px}.loop-section-head>a{font-size:16px}.loop-discover{padding-top:10px;padding-bottom:40px}.loop-more-grid{grid-template-columns:1fr;gap:32px}.loop-more-grid h3{font-size:29px}.loop-site .newsletter-afterword h2{font-size:33px}.loop-site .newsletter-afterword__copy>p:last-child{font-size:17px}.loop-site .footer-line{display:block}.loop-site .footer-line>p{margin-block:15px}.loop-site .footer-links{font-size:15px;gap:20px}.loop-site .article-heading h1{font-size:38px}.loop-site .article-heading>p{font-size:20px}.loop-site .article-prose{font-size:var(--reading-size);line-height:1.7}.loop-site .article-prose h2{font-size:29px}.loop-site .library-grid .article-card__title{font-size:29px}.loop-site .preview-nav .wrap{gap:3px}}
@media(prefers-reduced-motion:reduce){.loop-site *,.loop-site *:before,.loop-site *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.loop-hero-art,.loop-story-image{transform:none!important}.loop-cursor{display:none!important}.loop-site,.loop-site a,.loop-site button{cursor:auto!important}}
@media print{.loop-site{background:white;color:black}.loop-hero-art,.loop-cursor{display:none}}

.loop-site .wordmark img,.loop-site .footer-brand img{background:var(--orange);border-radius:50%;padding:3px}
.loop-site .library-intro em{font-style:normal}.loop-site .filter-list .filter{font-size:16px}

@media(max-width:360px){.loop-site .site-header{gap:10px;flex-wrap:nowrap}.loop-site .wordmark{font-size:20px;gap:7px}.loop-site .wordmark img{width:32px;height:32px}.loop-site .mobile-menu-toggle{flex-shrink:0}}

/* October 6 polish: a clear signup, compact mobile discovery and purposeful motion. */
.loop-site .site-header{gap:22px}
.loop-site .site-nav{margin-left:auto;gap:24px;font-size:16px}
.newsletter-beacon{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;min-height:48px;padding:12px 18px;border:1px solid #ff945e;border-radius:999px;background:#ff6513;color:#111110;font:750 16px/1.2 var(--sans);box-shadow:0 0 18px #ff65134d;animation:beacon-breathe 3.8s ease-in-out infinite;transition:transform .2s,background .2s}
.newsletter-beacon:hover,.newsletter-beacon:focus-visible{transform:translateY(-2px);background:#ff8d4f;box-shadow:0 0 30px #ff651380;outline:2px solid #fff1df;outline-offset:4px}
.beacon-spark{font-size:22px;animation:spark-turn 10s linear infinite}.beacon-arrow{font-size:23px;transition:transform .2s}.newsletter-beacon:hover .beacon-arrow{transform:translate(2px,-2px)}
.loop-site .newsletter-afterword .newsletter-link{min-height:58px;padding:16px 24px;font-size:18px;font-weight:750;border-radius:999px;box-shadow:0 0 24px #ff65133d;animation:beacon-breathe 3.8s ease-in-out infinite}
.loop-site .newsletter-afterword{border-radius:16px;background:#191714;padding-inline:30px;margin-top:20px}
.loop-site .newsletter-afterword .newsletter-consent{max-width:350px;line-height:1.55}
.loop-story-link:focus-visible{outline:2px solid var(--orange);outline-offset:8px;border-radius:6px}
.loop-site .reveal-ready{opacity:0;transform:translateY(24px);transition:opacity .65s ease,transform .65s ease}.loop-site .reveal-ready.is-revealed{opacity:1;transform:none}
.loop-site .progress-line{height:3px;background:var(--orange);box-shadow:0 0 14px #ff651380}
.loop-site .loop-hero-art img{animation:loop-float 7s ease-in-out infinite,loop-arrive 1.1s ease-out both}
@keyframes loop-arrive{from{opacity:0;scale:.92}to{opacity:1;scale:1}}
@keyframes beacon-breathe{0%,100%{box-shadow:0 0 12px #ff651335,0 0 0 0 #ff651300}50%{box-shadow:0 0 25px #ff651366,0 0 0 5px #ff651310}}
@keyframes spark-turn{to{transform:rotate(360deg)}}
@media(max-width:1200px) and (min-width:641px){.loop-site .wordmark{font-size:26px;gap:10px}.loop-site .wordmark img{width:46px;height:46px}.loop-site .site-nav{gap:17px;font-size:15px}.newsletter-beacon{font-size:14px;padding-inline:14px;gap:7px}}
@media(max-width:1000px) and (min-width:641px){.loop-site .site-nav .instagram-nav{display:none}.loop-site .site-header{gap:15px}.loop-site .site-nav .search-label{display:none}}
@media(max-width:760px) and (min-width:641px){.loop-site .site-nav .explained-nav{display:none}.newsletter-beacon{font-size:13px}}
@media(max-width:640px){
 .loop-site .site-header{height:auto;min-height:128px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 10px;padding-top:18px;padding-bottom:14px;align-items:center}
 .loop-site .wordmark{grid-column:1;grid-row:1;font-size:23px}.loop-site .mobile-menu-toggle{grid-column:2;grid-row:1;margin:0}.newsletter-beacon{grid-column:1/-1;grid-row:2;min-height:43px;justify-content:center;font-size:16px;padding:10px 18px}
 .loop-site .mobile-menu{top:66px;left:0;right:0}.loop-hero{padding-top:18px;min-height:490px}.loop-hero-art{width:265px;top:228px;right:8px}
 .loop-featured{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 14px;padding-top:8px}.loop-story h3{font-size:23px;line-height:1.12;letter-spacing:-.035em}.loop-story-category{font-size:11px;letter-spacing:.09em;margin-bottom:8px}.loop-story-copy{padding-top:11px}.loop-story-image img{aspect-ratio:1.25}
 .loop-featured>.loop-story:last-child{grid-column:1/-1}.loop-featured>.loop-story:last-child .loop-story-link{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:center}.loop-featured>.loop-story:last-child .loop-story-copy{padding:0}.loop-featured>.loop-story:last-child h3{font-size:24px}
 .loop-more-grid,.loop-site .library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px}.loop-more-grid h3,.loop-site .library-grid .article-card__title{font-size:21px;line-height:1.2;letter-spacing:-.035em}.loop-more-grid .loop-story-image img{aspect-ratio:1.25;object-fit:contain}.loop-site .library-grid .article-card__category{font-size:11px;letter-spacing:.065em;line-height:1.4}.loop-site .library-grid .article-card__meta{font-size:12px;gap:5px}.loop-site .library-grid .article-card__meta time{display:none}.loop-site .library-grid .article-card__content{padding-top:12px}.loop-site .library-grid .article-card__cta{font-size:13px;margin-top:10px;line-height:1.4}.loop-site .library-grid .article-card__image img{aspect-ratio:1/1;object-fit:contain}.loop-site .library-grid .article-card__image.product-screenshot img{object-fit:cover}
 .loop-site .filter-list{flex-wrap:nowrap;overflow:auto;padding-bottom:10px;scrollbar-width:thin}.loop-site .filter-list .filter{flex-shrink:0;min-height:44px;font-size:15px}.loop-site .library-intro h1{font-size:44px}.loop-site .library-intro p{font-size:18px}.loop-site .library-intro{padding-top:24px}
 .loop-site .newsletter-afterword{padding-inline:20px;width:calc(100% - 32px);margin-inline:auto}.loop-site .newsletter-afterword .newsletter-link{width:100%;font-size:17px}.loop-site .newsletter-afterword h2{font-size:32px}
}
@media(max-width:360px){.loop-site .wordmark{font-size:20px}.loop-site .wordmark img{width:32px;height:32px}.loop-story h3,.loop-more-grid h3,.loop-site .library-grid .article-card__title{font-size:20px}.loop-story-category{font-size:10px}.loop-featured>.loop-story:last-child h3{font-size:22px}}
@media(prefers-reduced-motion:reduce){.loop-site .reveal-ready{opacity:1;transform:none}.newsletter-beacon,.beacon-spark,.loop-site .newsletter-afterword .newsletter-link,.loop-site .loop-hero-art img{animation:none!important}}

@media(max-width:640px){.loop-site .library-tools{min-width:0;max-width:100%}.loop-site .filter-list{width:100%;max-width:100%;min-width:0}.loop-site .library-grid .article-card__meta time{display:none}.loop-site .library-grid .article-card__event-date{display:none}}

/* On-demand signup keeps readers on the story, with the provider's real DOI form. */
.loop-site.newsletter-open{overflow:hidden}
.newsletter-dialog{padding:0;width:min(540px,calc(100% - 28px));max-width:calc(100% - 28px);max-height:calc(100dvh - 32px);border:1px solid #ff6a2b66;border-radius:22px;background:#f2f0ea;color:#f6f2ea;box-shadow:0 0 75px #ff6a2b33,0 24px 80px #0009;overflow:hidden}
.newsletter-dialog[open]{animation:loop-enter .25s both}
.newsletter-dialog::backdrop{background:#090908bf;backdrop-filter:blur(12px)}
.newsletter-dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px 10px 20px;background:#1a1c1f;font-size:14px;font-weight:600;border-bottom:1px solid #ffffff20}
.newsletter-close{font-family:inherit;font-size:30px;line-height:1;display:grid;place-items:center;min-width:44px;min-height:44px;border:0;border-radius:50%;color:#f6f2ea;background:#ffffff12;cursor:pointer}
.newsletter-close:hover{background:#ff6a2b;color:#111}.newsletter-close:focus-visible{outline:3px solid #ff6a2b;outline-offset:2px}
.newsletter-dialog iframe{display:block;width:100%;height:min(640px,calc(100dvh - 102px));border:0;background:#f2f0ea}
.loop-site.newsletter-open .loop-cursor{display:none}
@media(max-width:640px){.newsletter-dialog{width:calc(100% - 20px);max-width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:18px}.newsletter-dialog-bar{padding-left:14px;font-size:12px}.newsletter-dialog iframe{height:min(700px,calc(100dvh - 86px))}}
@media(prefers-reduced-motion:reduce){.newsletter-dialog[open]{animation:none}}

/* Keep complete source screenshots and product-name strips visible in every card. */
.loop-site .library-grid .article-card__image.product-screenshot img,.loop-site .library-grid .article-card__image.source-photo img{aspect-ratio:1.875;object-fit:contain;background:#111a1f}
.loop-site .loop-story-image img{aspect-ratio:1.875;object-fit:contain;background:#111a1f}
