/* QCreative Magazine. Scoped to main.mag so it does not restyle the site header, footer, or other pages. */


.mag{
  --bg:#141416; --bg-2:#1c1c1e; --bg-3:#242427; --line:#2e2e32;
  --text:#ECEAE4; --muted:#a3a19b; --dim:#6f6e6a;
  --accent:#F0A43C; --accent-2:#ffbe63;
  --radius:16px; --wrap:1260px;
  --display:"Space Grotesk",system-ui,sans-serif;
  --body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --red:#e23d3d;
  --footer:#0e0e10;
}

.mag *{box-sizing:border-box}
.mag html{scroll-behavior:smooth}
.mag html,.mag body{background:var(--bg);color:var(--text)}
.mag body{
  margin:0;
  font-family:var(--body);
  font-size:17px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
.mag img{display:block;max-width:100%;height:auto}
.mag a{color:inherit;text-decoration:none}
.mag a:hover{color:var(--accent)}
.mag button{font-family:inherit}
.mag h1,.mag h2,.mag h3,.mag h4{font-family:var(--display);line-height:1.08;letter-spacing:-.02em;font-weight:700;margin:0}
.mag p{margin:0 0 1em}
.mag p:last-child{margin-bottom:0}
.mag ul{margin:0;padding:0;list-style:none}

.mag .wrap{max-width:var(--wrap);margin:0 auto;padding:0 28px}
.mag .accent{color:var(--accent)}
.mag .kicker{
  display:inline-flex;align-items:center;gap:10px;
  font-size:12.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent);
}
.mag .kicker--pill{
  background:rgba(240,164,60,.1);padding:7px 14px;border-radius:999px;
}

/* Wordmarks. Same inline treatment as the site nav and homepage: the icon is the Q,
   Video is white, the 8 and Studio are amber, and the text Q stays for reading. */
.mag .qv{white-space:nowrap;letter-spacing:0;text-transform:none}
.mag .qv:not(.qas){color:#fff}
.mag .qas{color:#ECEAE4}
.mag .qv__mark{display:inline-block;width:1.34em;height:1.34em;max-width:none;margin:0 -.06em 0 -.04em;vertical-align:-.26em;object-fit:contain}
.mag .qv__q{font-size:0;line-height:0;color:transparent}
.mag .qv__8,.mag .qas__studio{color:#F0A43C}
/* AvaLittleFun.com. Same inline idea as the Q marks: the face is the icon,
   then cream Ava, red Little, gold Fun, cream .com. */
.mag .ava-mark{
  display:inline-flex;align-items:center;gap:.28em;
  white-space:nowrap;font-family:var(--display);font-weight:700;
  letter-spacing:-.03em;text-transform:none;line-height:1;
  color:#f6ead2;vertical-align:-.22em;background:transparent;
}
.mag .ava-mark b{color:#e0342f;font-weight:inherit}
.mag .ava-mark i{font-style:normal;color:#f5b83d;font-weight:inherit}
.mag .ava-mark__dot{
  display:block;width:1.081em;height:1.081em;flex:none;
  border-radius:50%;object-fit:cover;object-position:50% 28%;
  border:2px solid #f5b83d;box-sizing:border-box;background:transparent;
}
.mag a:hover .ava-mark{color:#f6ead2}
.mag .carousel__copy h2:has(.ava-mark),
.mag .story-hero__copy h1:has(.ava-mark){max-width:min(100%,46rem);line-height:1.15}
.mag .kicker .qv:not(.qas){color:#fff}
.mag .qcl,
.mag .qcmag{white-space:nowrap;font-family:var(--display);font-weight:700;letter-spacing:-.02em;background:transparent;box-shadow:none}
.mag .qcl .qcl__mark{display:inline-block;width:1.21em;height:1.21em;max-width:none;margin:0 .08em 0 0;vertical-align:-.2em;object-fit:contain;background:transparent}
.mag .qcmag .qcl__mark{display:inline-block;width:1.21em;height:1.21em;max-width:none;margin:0 .02em 0 0;vertical-align:-.24em;object-fit:contain;background:transparent}
.mag .qcl__labs{color:var(--accent)}
.mag .qcmag__creative,
.mag .letter__sign .qcmag__creative,
.mag .masthead__title .qcmag__creative{color:#fff;background:transparent}
.mag .qcmag__mag,
.mag .letter__sign .qcmag__mag,
.mag .masthead__title .qcmag__mag{color:#F0A43C;background:transparent}
.mag .footer .qcmag .qcl__mark{width:1.3em;height:1.3em;margin:0 .04em 0 0;vertical-align:-.24em}
.mag .footer .qcl .qcl__mark{width:1.15em;height:1.15em;vertical-align:-.22em}
.mag .qr-lockup,
.mag .qsp-lockup,
.mag .stu-lockup{
  display:inline-block;
  width:auto;
  max-width:none;
  height:1.081em;
  object-fit:fill;
  object-position:left center;
  background:transparent;
}
/* Ink height matches the QVideo8 mark. Each file is cropped to its ink,
   then scaled so the rendered ink matches that mark. */
.mag .qr-lockup{height:1.081em;vertical-align:-.26em}
.mag .stu-lockup{height:1.096em;vertical-align:-.22em}
.mag .qsp-lockup{vertical-align:-.22em}
/* A narrow card or headline keeps the artwork inside the box. Body copy does not. */
.mag .card .qsp-lockup,
.mag .arch-title .qsp-lockup,
.mag .story-hero__copy .qsp-lockup{height:auto;max-height:1.081em;max-width:100%}
.mag .card .qr-lockup,
.mag .arch-title .qr-lockup,
.mag .story-hero__copy .qr-lockup{height:auto;max-height:1.081em;max-width:100%}
.mag .card .stu-lockup,
.mag .arch-title .stu-lockup,
.mag .story-hero__copy .stu-lockup{height:auto;max-height:1.096em;max-width:100%}
/* On a phone the long title keeps this height and takes a line of its own. */
@media (max-width:800px){
  .mag .letter__body .stu-lockup,
  .mag .story-body .stu-lockup,
  .mag .story-figure figcaption .stu-lockup{
    display:block;max-width:none;height:1.096em;width:auto;margin:.45em 0 .5em;
  }
}
@media (max-width:430px){
  .mag .letter__body .stu-lockup,
  .mag .story-body .stu-lockup,
  .mag .story-figure figcaption .stu-lockup{
    display:block;width:auto;max-width:100%;height:auto;margin:0;
  }
}
.mag .story-hero__copy h1:has(.stu-lockup),
.mag .story-hero__copy h1:has(.qsp-lockup){max-width:min(100%,40rem)}

/* Buttons */
.mag .btn{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--accent);color:#1a1307;font-weight:600;font-size:15px;
  padding:12px 22px;border-radius:999px;border:0;cursor:pointer;
  transition:transform .15s,background .15s,box-shadow .15s;
  box-shadow:0 6px 24px -8px rgba(240,164,60,.6);font-family:var(--body);
}
.mag .btn:hover{background:var(--accent-2);transform:translateY(-1px);color:#1a1307}
.mag .btn--ghost{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1.5px var(--line)}
.mag .btn--ghost:hover{background:var(--bg-3);color:var(--text)}
.mag .btn--sm{padding:9px 16px;font-size:14px;box-shadow:none;white-space:nowrap;flex:none}

/* Site nav */
.mag .nav{
  position:sticky;top:0;z-index:50;
  background:rgba(20,20,22,.78);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.05);
}
.mag .nav__inner{display:flex;align-items:center;gap:18px;height:68px}
.mag .brand{display:flex;align-items:center;gap:10px;font-family:var(--display);font-weight:700;font-size:18px;letter-spacing:-.01em;color:var(--text);flex:none}
.mag .brand:hover{color:var(--text)}
.mag .q-mark{display:block;flex:none}
.mag .nav__social{display:flex;align-items:center;gap:12px;flex:none;margin-left:4px}
.mag .nav__social a{display:inline-flex;color:var(--text);border-radius:6px}
.mag .nav__social a:hover,.mag .nav__social a:focus{color:var(--accent)}
.mag .nav__social svg{width:20px;height:20px;display:block}
.mag .nav__links{display:flex;align-items:center;gap:18px;margin-left:auto;font-size:14.5px;color:var(--muted)}
.mag .nav__links a{white-space:nowrap;color:var(--muted)}
.mag .nav__links a:hover{color:var(--text)}
.mag .nav__links a[aria-current="page"]{color:var(--text);font-weight:600}
.mag .nav__mag{color:var(--accent)!important}
.mag .nav .btn--sm{margin-left:8px}

/* Magazine masthead. Charcoal band with a left amber glow, a hint of brand red
   at the mark, a fine dot grid, and paper grain. No motion. */
.mag .masthead{
  background-color:#161614;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.64 0 0 0 0 0.22 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 6.5% 50%, rgba(226,61,61,.13), transparent 18%),
    radial-gradient(ellipse 52% 180% at 0% 50%, rgba(245,166,35,.20), rgba(245,166,35,.05) 42%, transparent 72%),
    repeating-linear-gradient(-21deg, transparent 0 9px, rgba(245,166,35,.045) 9px 10px),
    radial-gradient(circle, rgba(236,234,228,.09) .55px, transparent .7px);
  background-size:160px 160px, auto, auto, auto, 5px 5px;
  background-repeat:repeat, no-repeat, no-repeat, repeat, repeat;
  border-bottom:1px solid #3a3228;
}
.mag .masthead__inner{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:18px 28px;
}
.mag .masthead__title{
  font-family:var(--display);font-weight:700;
  font-size:clamp(28px,3.4vw,42px);letter-spacing:-.03em;line-height:1;
  color:var(--text);background:transparent;box-shadow:none;
}
/* Nav mark is 32px beside 18px type. Same ratio here, pulled tight so the Q
   ink sits against Creative. The SVG viewBox has empty margin, so the offset is negative. */
.mag .masthead__title .qcmag,
.mag .masthead__title .qcmag__creative,
.mag .masthead__title .qcmag__mag{background:transparent;box-shadow:none}
.mag .masthead__title .qcl__mark{
  width:1.78em;height:1.78em;max-width:none;
  margin:0 -.13em 0 0;vertical-align:-.52em;
  background:transparent;box-shadow:none;border-radius:0;
}
.mag .masthead__id{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;max-width:36rem}
/* Strapline wording is the single text node in .masthead__tagline. */
.mag .masthead__tagline{
  margin:0;
  font-family:var(--body);
  font-size:12.5px;
  font-weight:500;
  letter-spacing:.12em;
  line-height:1.45;
  color:#c4c0b6;
}
.mag .masthead__title span{color:var(--accent)}
.mag .masthead__meta{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:14px;min-width:0}
.mag .masthead__issue{
  font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);font-weight:600;text-align:right;
}
.mag .masthead__issue b{display:block;color:var(--text);font-family:var(--display);letter-spacing:.04em;font-size:13px;margin-top:2px}
.mag .editor-chip{
  display:flex;align-items:center;gap:12px;
  padding:6px 14px 6px 6px;
  border:1px solid var(--line);
  background:var(--bg);
  border-radius:999px;
  color:var(--text);
}
.mag .editor-chip:hover{border-color:rgba(240,164,60,.55);color:var(--text)}
.mag .editor-chip__photo{
  width:48px;height:48px;border-radius:50%;overflow:hidden;flex:none;
  background:#000;box-shadow:0 0 0 1px rgba(240,164,60,.35);
}
.mag .editor-chip__photo img{
  width:100%;height:100%;object-fit:cover;object-position:50% 16%;
}
.mag .editor-chip__by{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--dim);font-weight:600}
.mag .editor-chip__name{display:block;font-family:var(--display);font-weight:700;font-size:14.5px;letter-spacing:-.02em;line-height:1.2}
.mag .editor-chip__role{display:block;font-size:12px;color:var(--muted)}

/* Listen pill beside the editor portrait on the magazine home page. */
.mag .masthead__side{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;min-width:0}
.mag .listen-badge{
  display:inline-flex;align-items:center;gap:8px;
  min-height:48px;padding:4px 12px 4px 4px;
  border-radius:999px;border:1px solid rgba(240,164,60,.75);
  background:
    radial-gradient(ellipse at 0% 50%, rgba(248,56,136,.18), transparent 58%),
    linear-gradient(180deg, #2c2418, #141416);
  color:#ECEAE4;text-decoration:none;cursor:pointer;flex:none;
  box-shadow:0 0 0 1px rgba(248,56,136,.28),0 0 14px rgba(240,164,60,.4),0 0 28px rgba(248,56,136,.22);
  animation:listen-glow 3.4s ease-in-out infinite;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease
}
.mag .listen-badge:hover,
.mag .listen-badge:focus-visible{
  color:#fff;transform:translateY(-3px);border-color:#FE9F30;animation:none;
  box-shadow:
    0 12px 24px -14px rgba(240,164,60,.95),
    0 0 0 1px rgba(248,56,136,.6),
    0 0 26px rgba(254,159,48,.75),
    0 0 44px rgba(248,56,136,.5)
}
.mag .listen-badge:focus{outline:none}
.mag .listen-badge:focus-visible{outline:2px solid #F0A43C;outline-offset:3px}
.mag .listen-badge__art{
  position:relative;width:40px;height:40px;flex:none;border-radius:50%;overflow:hidden;
  box-shadow:0 0 0 1px rgba(240,164,60,.7),0 0 10px rgba(248,56,136,.35)
}
.mag .listen-badge__art img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:center 42%}
.mag .listen-badge__play{display:block;flex:none}
.mag .listen-badge__waves{display:inline-flex;align-items:flex-end;gap:2px;height:14px;flex:none}
.mag .listen-badge__waves i{
  display:block;width:2px;height:100%;border-radius:2px;background:#FE9F30;
  transform-origin:center bottom;animation:listen-eq 1.05s ease-in-out infinite
}
.mag .listen-badge__waves i:nth-child(1){height:55%;animation-delay:0s}
.mag .listen-badge__waves i:nth-child(2){height:100%;animation-delay:.16s}
.mag .listen-badge__waves i:nth-child(3){height:70%;animation-delay:.32s}
.mag .listen-badge__label{
  display:inline-flex;align-items:baseline;gap:6px;
  font-family:var(--display);font-weight:700;line-height:1;white-space:nowrap
}
.mag .listen-badge__kicker{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#FE9F30}
.mag .listen-badge__sep{color:#F83888;font-size:15px}
.mag .listen-badge__name{font-size:14.5px;letter-spacing:-.02em;color:#ECEAE4}
.mag .listen-badge__eye{display:block;flex:none;filter:drop-shadow(0 0 4px rgba(248,56,136,.85))}
@keyframes listen-glow{
  0%,100%{box-shadow:0 0 0 1px rgba(248,56,136,.28),0 0 14px rgba(240,164,60,.38),0 0 28px rgba(248,56,136,.22)}
  42%{box-shadow:0 0 0 1px rgba(248,56,136,.48),0 0 18px rgba(254,159,48,.58),0 0 36px rgba(248,56,136,.36)}
  48%{box-shadow:0 0 0 1px rgba(248,56,136,.16),0 0 8px rgba(240,164,60,.22),0 0 14px rgba(248,56,136,.12)}
  56%{box-shadow:0 0 0 1px rgba(254,159,48,.72),0 0 22px rgba(254,159,48,.66),0 0 40px rgba(248,56,136,.45)}
}
@keyframes listen-eq{0%,100%{transform:scaleY(.4)}50%{transform:scaleY(1)}}

/* Ticker */
.mag .ticker{
  background:#0e0e10;
  border-bottom:1px solid var(--line);
  overflow:hidden;
  height:42px;
  display:flex;align-items:stretch;
}
.mag .ticker__label{
  flex:none;display:flex;align-items:center;
  padding:0 16px 0 28px;
  font-family:var(--display);font-weight:700;font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  color:#1a1307;background:var(--accent);
  z-index:1;
}
.mag .ticker__track-wrap{overflow:hidden;flex:1;display:flex;align-items:center}
.mag .ticker__track{
  display:flex;gap:0;width:max-content;
  animation:ticker 48s linear infinite;
}
.mag .ticker:hover .ticker__track{animation-play-state:paused}
.mag .ticker__item{
  display:inline-flex;align-items:center;white-space:nowrap;
  padding:0 28px;color:var(--text);font-size:14px;
  border-right:1px solid var(--line);
}
.mag .ticker__item a{color:var(--text)}
.mag .ticker__item a:hover{color:var(--accent)}
.mag .ticker__dot{width:5px;height:5px;border-radius:50%;background:var(--accent);margin-right:12px;flex:none}

@keyframes ticker{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* Cover carousel */
.mag .cover{position:relative;background:#0a0a0c;isolation:isolate;overflow:hidden}
/* Same glow + lab grid as "From the lab this week" (#features), behind the cover carousel */
.mag .cover::before{
  content:"";position:absolute;inset:-18%;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse 34% 46% at 10% 68%, rgba(245,166,35,.22), transparent 70%),
    radial-gradient(ellipse 30% 40% at 94% 82%, rgba(226,61,61,.16), transparent 68%),
    radial-gradient(ellipse 42% 52% at 76% 4%, rgba(86,72,184,.24), transparent 72%);
  animation:features-drift 72s ease-in-out infinite alternate;
}
.mag .cover::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.62 0 0 0 0 0.66 0 0 0 0 0.82 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(rgba(236,234,228,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(236,234,228,.05) 1px,transparent 1px);
  background-size:200px 200px,72px 72px,72px 72px;
  background-position:0 0,center top,center top;
  box-shadow:inset 0 -1px 0 rgba(120,104,200,.32);
}
.mag .cover > .carousel{z-index:1}
.mag .cover .carousel__media img{background:transparent!important}
.mag .cover .carousel__media.focus-pinball img,.mag .cover .carousel__media.focus-montage img,.mag .cover .carousel__media.focus-podcast img{mix-blend-mode:lighten}
@media (prefers-reduced-motion:reduce){.mag .cover::before{animation:none}}
.mag .carousel{position:relative;min-height:560px;height:min(72vh,680px);overflow:hidden}
@media (min-width:801px){
  .mag .carousel{height:auto;min-height:0;aspect-ratio:20 / 9}
}
.mag .carousel__slide{
  position:absolute;inset:0;
  opacity:0;visibility:hidden;
  transition:opacity .7s ease,visibility .7s;
}
.mag .carousel__slide.is-active{opacity:1;visibility:visible;z-index:1}
.mag .carousel__media{position:absolute;inset:0}
.mag .carousel__media img{
  width:100%;height:100%;object-fit:cover;
}
.mag .carousel__media--table img{object-fit:contain;object-position:center;background:transparent}
.mag .carousel__media--engine img{object-fit:cover;object-position:50% 30%}
.mag .carousel__media--ava img{object-fit:cover;object-position:50% 40%}
.mag .carousel__shade{
  position:absolute;inset:0;
  background:
    linear-gradient(180deg,rgba(10,10,12,.2) 0%,rgba(10,10,12,.35) 40%,rgba(10,10,12,.92) 100%),
    linear-gradient(90deg,rgba(10,10,12,.72) 0%,rgba(10,10,12,.28) 58%,transparent 100%);
  pointer-events:none;
}
.mag .carousel__copy{
  position:absolute;left:0;right:0;bottom:0;z-index:2;
  padding:0 0 88px;
}
.mag .carousel__copy .wrap{max-width:820px;margin-left:auto;margin-right:auto;padding-left:28px;padding-right:28px}
.mag .carousel .kicker{margin-bottom:14px}
.mag .carousel__copy h2{
  font-size:clamp(32px,5vw,58px);letter-spacing:-.03em;line-height:1.02;
  margin:0 0 14px;text-wrap:balance;max-width:16ch;
}
.mag .carousel__dek{font-size:18px;color:rgba(236,234,228,.86);max-width:36em;margin:0 0 22px;line-height:1.45}
.mag .carousel__meta{display:flex;flex-wrap:wrap;gap:14px 20px;align-items:center;font-size:13px;color:var(--muted);margin-bottom:20px}
.mag .carousel__controls{
  position:absolute;left:0;right:0;bottom:0;z-index:3;
  padding:0 0 24px;
}
.mag .carousel__controls .wrap{display:flex;align-items:center;gap:16px}
.mag .carousel__arrows{display:flex;gap:8px}
.mag .carousel__btn{
  width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.16);
  background:rgba(8,8,10,.55);color:#fff;cursor:pointer;font-size:20px;line-height:1;
  display:grid;place-items:center;
}
.mag .carousel__btn:hover,.mag .carousel__btn:focus-visible{background:rgba(255,255,255,.14);outline:none}
.mag .carousel__dots{display:flex;gap:8px;align-items:center}
.mag .carousel__dot{
  width:8px;height:8px;padding:0;border:0;border-radius:50%;
  background:rgba(255,255,255,.35);cursor:pointer;
}
.mag .carousel__dot.is-on{background:var(--accent);box-shadow:0 0 8px rgba(240,164,60,.7);width:22px;border-radius:999px}
.mag .carousel__progress{
  flex:1;height:3px;background:rgba(255,255,255,.12);border-radius:99px;overflow:hidden;
}
.mag .carousel__bar{display:block;height:100%;width:0;background:var(--accent)}
.mag .carousel.is-playing .carousel__bar{animation:coverbar 7s linear}
@keyframes coverbar{from{width:0}to{width:100%}}

/* Sections */
.mag .section{padding:88px 0}
.mag .section--alt{background:var(--bg-2)}

/* Features stage. A full-bleed band, darker and cooler than the masthead,
   with off-center glows, a faint grid, and grain. The glows drift very slowly. */
.mag #features{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#0a0a0c;
}
.mag #features::before{
  content:"";
  position:absolute;
  inset:-18%;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 34% 46% at 10% 68%, rgba(245,166,35,.22), transparent 70%),
    radial-gradient(ellipse 30% 40% at 94% 82%, rgba(226,61,61,.16), transparent 68%),
    radial-gradient(ellipse 42% 52% at 76% 4%, rgba(86,72,184,.24), transparent 72%);
  animation:features-drift 72s ease-in-out infinite alternate;
}
.mag #features::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:
    linear-gradient(180deg,#141416 0,rgba(20,20,22,0) 64px,rgba(20,20,22,0) calc(100% - 72px),#141416 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.62 0 0 0 0 0.66 0 0 0 0 0.82 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(rgba(236,234,228,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(236,234,228,.05) 1px,transparent 1px);
  background-size:auto,200px 200px,72px 72px,72px 72px;
  box-shadow:inset 0 1px 0 rgba(245,166,35,.2),inset 0 -1px 0 rgba(120,104,200,.32);
}
.mag #features > .wrap{position:relative;z-index:1}
@keyframes features-drift{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(-2.2%,1.4%,0)}
}
.mag #features .filter{
  background:rgba(8,8,10,.82);
  color:#eceae4;
  border-color:rgba(255,255,255,.16);
}
.mag #features .filter:hover{background:rgba(18,18,22,.92);color:#fff;border-color:rgba(245,166,35,.5)}
.mag #features .filter.is-on,
.mag #features .filter[aria-pressed="true"]{background:var(--accent);color:#1a1307;border-color:var(--accent)}
.mag #features .card{
  background:#121214;
  box-shadow:0 18px 40px -18px rgba(0,0,0,.85),0 1px 0 rgba(255,255,255,.04);
}
.mag .section__head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:36px}
.mag .section__head h2{font-size:clamp(28px,3.2vw,42px)}
.mag .section__sub{color:var(--muted);max-width:38em;margin-top:10px}

/* Editor's letter. Pink and amber are sampled from lloyd-dynamic-2.webp:
   neon magenta #F83888, spotlight amber #FE9F30. */
.mag #letter{position:relative;isolation:isolate}
.mag #letter::before{
  content:"";
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse 62% 70% at 4% 22%, rgba(248,56,136,.22), transparent 64%),
    radial-gradient(ellipse 58% 74% at 100% 78%, rgba(254,159,48,.26), transparent 62%);
}
.mag #letter > .wrap{position:relative;z-index:1}
.mag .letter{
  display:grid;
  grid-template-columns:minmax(240px,340px) 1fr;
  gap:48px;
  align-items:start;
}
.mag .letter__portrait{
  position:sticky;top:96px;
  background:#000;
  border:1px solid rgba(248,56,136,.32);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:
    0 28px 60px -32px rgba(0,0,0,.85),
    0 0 28px -6px rgba(248,56,136,.45),
    18px 22px 40px -18px rgba(254,159,48,.32);
}
.mag .letter__portrait img{
  width:100%;aspect-ratio:4/5;object-fit:cover;object-position:50% 18%;
  background:#000;
}
/* Lloyd's portrait: breathing neon glow, a slow neon trace around the frame,
   a gentle push-in on the art and an occasional light sweep. All subtle. */
@property --lp-ang{syntax:"<angle>";inherits:false;initial-value:0deg}
.mag .letter__portrait{isolation:isolate;animation:lpGlow 7s ease-in-out infinite}
@keyframes lpGlow{
  0%,100%{box-shadow:0 28px 60px -32px rgba(0,0,0,.85),0 0 28px -6px rgba(248,56,136,.45),18px 22px 40px -18px rgba(254,159,48,.32)}
  50%{box-shadow:0 28px 60px -32px rgba(0,0,0,.85),0 0 40px -4px rgba(248,56,136,.62),22px 26px 54px -16px rgba(254,159,48,.48)}}
.mag .letter__portrait img{transform-origin:55% 30%;animation:lpPush 22s ease-in-out infinite alternate}
@keyframes lpPush{from{transform:scale(1)}to{transform:scale(1.045) translate(-.6%,-.4%)}}
.mag .letter__portrait::after{content:"";position:absolute;inset:-1px;z-index:3;pointer-events:none;border-radius:inherit;padding:2px;
  background:conic-gradient(from var(--lp-ang),transparent 0deg,rgba(248,56,136,.95) 40deg,transparent 95deg,transparent 180deg,rgba(254,159,48,.95) 220deg,transparent 275deg,transparent 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  filter:drop-shadow(0 0 3px rgba(255,255,255,.5)) drop-shadow(0 0 8px rgba(248,56,136,.75));animation:lpTrace 9s linear infinite}
@keyframes lpTrace{to{--lp-ang:360deg}}
.mag .letter__portrait::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;mix-blend-mode:screen;
  background:linear-gradient(115deg,transparent 38%,rgba(255,170,220,.22) 46%,rgba(255,236,200,.34) 50%,rgba(255,170,220,.18) 54%,transparent 62%) -160% 0/250% 100% no-repeat;
  animation:lpSweep 8s ease-in-out 2s infinite}
@keyframes lpSweep{0%,62%{background-position:-160% 0}100%{background-position:160% 0}}
.mag .letter__portrait > *{position:relative}
@media (prefers-reduced-motion:reduce){
  .mag .letter__portrait,.mag .letter__portrait img,.mag .letter__portrait::after,.mag .letter__portrait::before{animation:none}
}
.mag .letter__caption{
  padding:14px 16px 16px;
  border-top:1px solid var(--line);
  background:var(--bg-3);
}
.mag .letter__caption strong{display:block;font-family:var(--display);font-size:16px;letter-spacing:-.02em}
.mag .letter__caption span{display:block;font-size:13px;color:var(--muted);margin-top:2px}
.mag .letter .kicker{margin-bottom:16px}
.mag .letter h2{font-size:clamp(32px,3.6vw,46px);margin-bottom:18px;max-width:16ch}
.mag .letter__body{font-size:17.5px;line-height:1.65;color:var(--text);max-width:42em}
.mag .letter__body p{margin:0 0 1.15em}
.mag .letter__sign{
  margin-top:28px;padding-top:22px;border-top:1px solid var(--line);
  font-family:var(--display);
}
.mag .letter__sign .name{font-weight:700;font-size:20px;letter-spacing:-.02em}
.mag .letter__sign .role{color:var(--muted);font-size:14px;margin-top:2px;font-family:var(--body)}

/* Filters + grid */
.mag .filters{display:flex;flex-wrap:wrap;gap:8px}
.mag .filter{
  border:1px solid var(--line);background:transparent;color:var(--muted);
  padding:8px 16px;border-radius:999px;cursor:pointer;font-size:14px;font-weight:600;
  transition:background .15s,border-color .15s,color .15s;
}
.mag .filter:hover{color:var(--text);border-color:#4a4a50}
.mag .filter.is-on,.mag .filter[aria-pressed="true"]{
  background:var(--accent);color:#1a1307;border-color:var(--accent);
}

.mag .grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  aspect-ratio:auto;
  height:auto;
  overflow:visible;
  border-radius:0;
  background:transparent;
}
.mag .card{
  display:flex;flex-direction:column;
  background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;color:var(--text);
  transition:transform .25s ease,border-color .2s,box-shadow .25s;
}
.mag .section--alt .card{background:var(--bg-2)}
.mag .card:hover{
  transform:translateY(-6px);
  border-color:rgba(240,164,60,.45);
  box-shadow:0 24px 50px -28px rgba(0,0,0,.9),0 0 0 1px rgba(240,164,60,.2);
  color:var(--text);
}
.mag .card__media{position:relative;aspect-ratio:16/10;overflow:hidden;background:#000}
.mag .card__media{flex:none;width:100%}
.mag .card__media > img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .6s ease}
.mag .card__media--cover{aspect-ratio:1/1;background:#000}
.mag .card__media--cover img{object-fit:cover;object-position:center}
.mag .story-hero--cover{background:#050506}
.mag .story-hero--cover img{object-fit:contain;object-position:center;background:#050506}
.mag .card:hover .card__media img{transform:scale(1.06)}
.mag .card--qsponsor .card__media{background:#0b0b0d}
.mag .card--wordmark{
  position:absolute;inset:0;display:grid;place-items:center;
  background:linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,.55));
  padding:18px;
}
.mag .card--wordmark img{width:86%;height:auto;object-fit:contain;filter:drop-shadow(0 2px 0 #0a0a0c) drop-shadow(0 0 1.5px #fff) drop-shadow(0 8px 16px rgba(0,0,0,.6))}
.mag .card:hover .card--wordmark img{transform:none}
.mag .card__body{padding:18px 18px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.mag .card__tagrow{display:flex;justify-content:space-between;align-items:center;gap:10px}
.mag .card__tag{font-size:11.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
.mag .card__time{font-size:12.5px;color:var(--dim)}
.mag .card h3{font-size:22px;letter-spacing:-.02em;line-height:1.15}
.mag .card__dek{color:var(--muted);font-size:15px;line-height:1.45;flex:1}
.mag .card__by{font-size:13px;color:var(--dim);margin-top:6px}
.mag .card.is-hidden{display:none}
.mag .grid__empty{display:none;grid-column:1/-1;color:var(--muted);padding:40px 0;text-align:center}
.mag .grid.is-empty .grid__empty{display:block}

.mag .card--feature{grid-column:span 1}

/* From the lab */
.mag .strip{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.mag .strip__item{
  background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius);
  padding:20px 20px 22px;
  transition:transform .2s,border-color .2s;
}
.mag .strip__item:hover{transform:translateY(-3px);border-color:rgba(240,164,60,.4);color:var(--text)}
/* Fine graph-paper grid inside each From the lab card */
.mag #from-the-lab .strip__item{
  background-image:
    radial-gradient(ellipse 80% 70% at 100% 0%,rgba(245,166,35,.07),transparent 70%),
    linear-gradient(rgba(236,234,228,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(236,234,228,.045) 1px,transparent 1px);
  background-size:auto,14px 14px,14px 14px;
  background-position:0 0,-1px -1px,-1px -1px}
.mag #from-the-lab .strip__item:hover{
  background-image:
    radial-gradient(ellipse 80% 70% at 100% 0%,rgba(245,166,35,.12),transparent 70%),
    linear-gradient(rgba(240,164,60,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(240,164,60,.07) 1px,transparent 1px)}
.mag .strip__item .kicker{margin-bottom:10px;font-size:11px}
.mag .strip__item h3{font-size:18px;margin-bottom:8px}
.mag .strip__item p{color:var(--muted);font-size:14.5px;line-height:1.45}

/* Archive */
.mag .archive{border-top:1px solid var(--line)}
/* Same glow + lab grid as "From the lab this week" (#features) */
.mag #archive{position:relative;isolation:isolate;overflow:hidden;background:#0a0a0c}
.mag #archive::before{
  content:"";position:absolute;inset:-18%;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse 34% 46% at 10% 68%, rgba(245,166,35,.22), transparent 70%),
    radial-gradient(ellipse 30% 40% at 94% 82%, rgba(226,61,61,.16), transparent 68%),
    radial-gradient(ellipse 42% 52% at 76% 4%, rgba(86,72,184,.24), transparent 72%);
  animation:features-drift 72s ease-in-out infinite alternate;
}
.mag #archive::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:
    linear-gradient(180deg,#141416 0,rgba(20,20,22,0) 64px,rgba(20,20,22,0) calc(100% - 72px),#141416 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.62 0 0 0 0 0.66 0 0 0 0 0.82 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(rgba(236,234,228,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(236,234,228,.05) 1px,transparent 1px);
  background-size:auto,200px 200px,72px 72px,72px 72px;
  box-shadow:inset 0 1px 0 rgba(245,166,35,.2),inset 0 -1px 0 rgba(120,104,200,.32);
}
.mag #archive > .wrap{position:relative;z-index:1}
@media (prefers-reduced-motion:reduce){.mag #archive::before{animation:none}}
.mag .archive-list{display:flex;flex-direction:column}
.mag .archive-list a{
  display:grid;grid-template-columns:160px 1fr auto;gap:24px;align-items:baseline;
  padding:18px 0;border-bottom:1px solid var(--line);color:var(--text);
}
.mag .archive-list a:hover{color:var(--text)}
.mag .archive-list a:hover .arch-title{color:var(--accent)}
.mag .arch-date{font-size:13px;color:var(--dim);letter-spacing:.04em;text-transform:uppercase;font-weight:600}
.mag .arch-title{font-family:var(--display);font-weight:700;font-size:20px;letter-spacing:-.02em}
.mag .arch-kind{font-size:13px;color:var(--muted)}
.mag .author-articles__title{margin:28px 0 4px;font-size:22px}
.mag .archive-list .qr-lockup,
.mag .archive-list .qsp-lockup,
.mag .archive-list .stu-lockup{height:auto;max-height:1.1em;max-width:100%}

/* Story page */
.mag .story-hero{position:relative;min-height:520px;height:min(70vh,720px);background:#000;overflow:hidden}
.mag .story-hero img{width:100%;height:100%;object-fit:cover}
/* Wordmarks in the headline sit in the type, not in the hero frame. */
.mag .story-hero__copy .qv__mark{
  position:static;width:1.34em;height:1.34em;max-width:none;
  object-fit:contain;background:transparent;
}
.mag .story-hero__copy .qcl__mark{
  position:static;width:1.21em;height:1.21em;max-width:none;
  object-fit:contain;background:transparent;
}
.mag .story-hero__copy .qr-lockup,
.mag .story-hero__copy .stu-lockup,
.mag .story-hero__copy .qsp-lockup{
  position:static;width:auto;max-width:100%;
  object-fit:contain;background:transparent;
}
.mag .story-hero__copy .ava-mark__dot{
  position:static;width:1.081em;height:1.081em;max-width:none;
  object-fit:cover;object-position:50% 28%;border-radius:50%;
  border:2px solid #f5b83d;background:transparent;
}
.mag .story-hero--pinball{
  display:grid;grid-template-columns:1fr minmax(300px,48vw);
  background:#050506;
  height:auto;min-height:640px;overflow:visible;
}
.mag .story-hero--pinball img{
  grid-column:2;grid-row:1;
  width:auto;max-width:100%;height:min(760px,86vh);
  object-fit:contain;object-position:center bottom;
  justify-self:end;align-self:end;
  background:#050506;
}
.mag .story-hero--pinball .story-hero__shade{
  grid-column:1 / -1;grid-row:1;
  background:linear-gradient(90deg,#0a0a0c 0%,rgba(10,10,12,.72) 42%,rgba(10,10,12,.12) 72%,transparent 100%);
}
.mag .story-hero--pinball .story-hero__copy{
  grid-column:1 / -1;grid-row:1;
  display:flex;align-items:flex-end;
}
.mag .story-hero--engine img{object-fit:cover;object-position:50% 20%}
.mag .story-hero--ava img{object-fit:cover;object-position:50% 42%}
.mag .story-hero__shade{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(10,10,12,.05) 30%,rgba(20,20,22,.92) 100%);
  pointer-events:none;
}
.mag .story-hero__copy{position:absolute;left:0;right:0;bottom:0;z-index:1;padding:0 0 48px}
.mag .story-hero__copy h1{
  font-size:clamp(32px,5vw,62px);letter-spacing:-.03em;line-height:1.02;
  max-width:18ch;text-wrap:balance;margin:12px 0 0;
}
.mag .story-wrap{max-width:740px;margin:0 auto;padding:48px 28px 20px}
.mag .story-meta{
  display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;
  color:var(--muted);font-size:14px;margin:0 0 28px;
  padding-bottom:22px;border-bottom:1px solid var(--line);
}
.mag .story-byline{display:flex;align-items:center;gap:12px;color:var(--text);font-weight:600}
.mag .story-byline img{
  width:44px;height:44px;border-radius:50%;object-fit:cover;object-position:50% 16%;
  box-shadow:0 0 0 1px rgba(240,164,60,.35);
}
.mag .story-byline small{display:block;font-weight:500;color:var(--muted);font-size:12.5px}
.mag .story-byline a,
.mag .card__by a,
.mag .carousel__meta a,
.mag .letter__sign .name a{color:inherit;text-decoration:underline;text-underline-offset:.12em}
.mag .story-body{font-size:18px;line-height:1.7;max-width:42em}
.mag .story-body p{margin:0 0 1.2em}
.mag .story-body a{color:var(--accent);text-decoration:underline;text-underline-offset:.12em}
.mag .story-body a:hover{color:var(--accent-2)}
.mag .story-body .lede{font-size:20px;color:var(--muted);line-height:1.55;margin-bottom:1.4em}
.mag .pullquote{
  margin:36px 0;
  padding:8px 0 8px 22px;
  border-left:3px solid var(--accent);
}
.mag .pullquote p{
  font-family:var(--display);font-weight:600;font-size:clamp(22px,2.6vw,30px);
  letter-spacing:-.02em;line-height:1.25;color:var(--text);margin:0 0 10px;
}
.mag .pullquote cite{font-style:normal;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}
.mag .story-figure{margin:36px 0 40px}
.mag .story-figure > img{width:100%;border-radius:var(--radius);border:1px solid var(--line);box-shadow:0 28px 60px -32px rgba(0,0,0,.85)}
.mag .story-figure figcaption{font-size:13px;color:var(--dim);margin-top:10px;line-height:1.55}
.mag .story-body a:has(.qr-lockup),
.mag .story-body a:has(.stu-lockup),
.mag .story-body a:has(.qsp-lockup),
.mag .story-body a:has(.ava-mark){text-decoration:none}
.mag .story-body a .link-text{text-decoration:underline;text-underline-offset:.12em}
.mag .related{padding:64px 0 88px;border-top:1px solid var(--line);background:var(--bg-2)}
.mag .related h2{font-size:28px;margin-bottom:28px}
.mag .related .grid{grid-template-columns:repeat(3,1fr)}

/* Footer */
.mag .footer{background:var(--footer);border-top:1px solid var(--line);padding:56px 0 28px;font-size:15px}
.mag .footer__inner{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px}
.mag .footer__brand p{color:var(--dim);margin-top:12px}
.mag .footer__social{display:flex;align-items:center;gap:14px;margin-top:16px}
.mag .footer__social a{display:inline-flex;color:var(--text);border-radius:6px;transition:color .15s}
.mag .footer__social a:hover,.mag .footer__social a:focus{color:var(--accent)}
.mag .footer__social svg{width:20px;height:20px;display:block}
.mag .footer__h{font-size:12.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--dim);margin-bottom:14px}
.mag .footer li{margin-bottom:10px;color:var(--muted)}
.mag .footer li a:hover{color:var(--text)}
.mag .pill{display:inline-block;margin-left:8px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);border:1px solid rgba(240,164,60,.35);border-radius:999px;padding:1px 7px;vertical-align:middle}
.mag .footer__more{font-style:italic;color:var(--dim)!important;border:1px dashed var(--line);border-radius:10px;padding:10px 14px;display:inline-block}
.mag .footer__legal{margin-top:40px;padding-top:22px;border-top:1px solid var(--line);font-size:12.5px;color:var(--dim)}
.mag .footer__legal p{margin:0 0 8px}

/* Podcast closer. The existing wordmark, with Ava's neutron orbits around it. */
@property --mqr-ang{syntax:"<angle>";inherits:false;initial-value:0deg}
.mag .mqr-slot{display:flex;justify-content:center;margin:0;padding:36px 20px 48px}
.mag .mqr{
  --qr-silver:#c8cdd7;
  position:relative;isolation:isolate;
  display:inline-flex;align-items:center;justify-content:center;
  max-width:100%;
  padding:16px 10px 18px;
  font-size:clamp(20px,4.6vw,36px);
  line-height:1;text-decoration:none;color:var(--qr-silver);
}
.mag .mqr__mark{
  position:relative;z-index:2;
  display:block;height:1.42em;width:auto;max-width:100%;
  object-fit:contain;background:transparent;
}
.mag .mqr__atom{position:absolute;inset:0;pointer-events:none}
.mag .mqr__atom i{
  --t:calc(var(--mqr-ang) + var(--mqr-phase, 0deg));
  --x:calc(var(--mqr-rx) * cos(var(--t)) * cos(var(--mqr-phi)) - var(--mqr-ry) * sin(var(--t)) * sin(var(--mqr-phi)));
  --y:calc(var(--mqr-rx) * cos(var(--t)) * sin(var(--mqr-phi)) + var(--mqr-ry) * sin(var(--t)) * cos(var(--mqr-phi)));
  --front:calc((sin(var(--t)) + 1) / 2);
  position:absolute;left:50%;top:50%;
  width:.36em;height:.36em;margin:-.18em 0 0 -.18em;border-radius:50%;
  background:radial-gradient(circle at 35% 32%,#fff 0 28%,#ff8d8d 52%,#ff2828);
  box-shadow:0 0 5px 1px #ff2828b3;
  pointer-events:none;
  z-index:calc(2 + round(nearest, sin(var(--t)), 1));
  opacity:calc(.34 + .66 * var(--front));
  transform:translate3d(var(--x), var(--y), 0) scale(calc(.5 + .7 * var(--front)));
  animation:mqr-orbit var(--mqr-dur, 11s) linear infinite;
}
@keyframes mqr-orbit{to{--mqr-ang:360deg}}

/* Reveals */
.mag .reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s ease}
.mag .reveal.is-in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  .mag html{scroll-behavior:auto}
  .mag .ticker__track,.mag .carousel__bar,.mag #features::before,.mag .mqr__atom i{animation:none}
  .mag .carousel__slide,.mag .card,.mag .card__media img,.mag .reveal,.mag .strip__item{transition:none}
  .mag .reveal{opacity:1;transform:none}
  .mag .card:hover,.mag .strip__item:hover{transform:none}
  .mag .listen-badge,.mag .listen-badge__waves i{animation:none}
  .mag .listen-badge__waves i{transform:none}
}

@media (max-width:1320px){
  .mag .nav__social{display:none}
}
@media (max-width:1000px){
  .mag .grid,.mag .related .grid{grid-template-columns:repeat(2,1fr)}
  .mag .strip{grid-template-columns:repeat(2,1fr)}
  .mag .letter{grid-template-columns:220px 1fr;gap:32px}
  .mag .footer__inner{grid-template-columns:1fr}
  .mag .nav__social{display:none}
  .mag .archive-list a{grid-template-columns:1fr;gap:6px}
}
@media (max-width:800px){
  .mag .wrap{padding:0 20px}
  .mag .nav__inner{gap:12px}
  .mag .nav__links{gap:12px;font-size:13px}
  .mag .nav__links a.nav__founders,.mag .nav__links a.nav__support{display:none}
  .mag .masthead__inner{flex-wrap:wrap;padding:14px 20px}
  .mag .masthead__id{max-width:none}
  .mag .masthead__tagline{font-size:11.5px;letter-spacing:.06em}
  .mag .carousel{height:auto;min-height:0;aspect-ratio:auto}
  .mag .carousel__slide{position:relative;height:auto;min-height:520px}
  .mag .carousel__slide:not(.is-active){display:none}
  .mag .letter{grid-template-columns:1fr}
  .mag .letter__portrait{position:static;max-width:280px}
  .mag .grid,.mag .related .grid{grid-template-columns:1fr}
  .mag .strip{grid-template-columns:1fr}
  .mag .section{padding:64px 0}
  .mag .story-hero{min-height:420px;height:auto;aspect-ratio:4/5}
  .mag .story-hero--pinball{display:block;height:auto;aspect-ratio:auto;min-height:0}
  .mag .story-hero--pinball img{position:relative;height:auto;max-height:70vh;margin:0 auto}
  .mag .story-hero--pinball .story-hero__copy{position:relative;padding:24px 0 32px;background:linear-gradient(180deg,transparent,var(--bg));}
}

@media (max-width:640px){
  .mag .nav__inner{height:auto;flex-wrap:wrap;padding:10px 0;row-gap:8px}
  .mag .nav .btn--sm{display:none}
  .mag .editor-chip__role{display:none}
  .mag .masthead__meta{flex-wrap:wrap;justify-content:flex-start}
  .mag .masthead__side{width:100%;justify-content:flex-start}
  .mag .carousel__copy h2{font-size:32px}
}
@media (max-width:520px){
  .mag .masthead__side{flex-direction:column-reverse;align-items:flex-start;width:100%}
  .mag .listen-badge{max-width:100%}
}

/* Focal point for each piece of art. Set on the hero, carousel frame, or card.
   object-position keeps faces in frame when the picture is wider than the art.
   --fit:contain is for frames where a crop cannot hold the whole subject. */
.mag .story-hero,
.mag .carousel__media,
.mag .card__media{--fit:cover;--focus:50% 32%}
.mag .story-hero img,
.mag .carousel__media img,
.mag .card__media > img{
  object-fit:var(--fit);
  object-position:var(--focus);
  background:#050506;
}
.mag .focus-podcast{--fit:contain;--focus:center center}
.mag .focus-qvideo8{--focus:50% 0%}
.mag .focus-ava{--focus:50% 26%}
.mag .focus-cannonball{--focus:50% 0%}
.mag .focus-gameart{--focus:50% 30%}
.mag .focus-tv{--focus:50% 0%}
.mag .carousel__media.focus-montage{--fit:contain;--focus:center center}
.mag .card__media.focus-montage{--focus:50% 45%}
.mag .focus-engine{--focus:50% 24%}
.mag .focus-qas{--focus:50% 40%}
.mag .focus-qsponsor{--focus:50% 8%}
.mag .focus-pinball{--fit:contain;--focus:center center}
.mag .focus-soundtracks{--fit:cover;--focus:center center}
.mag .story-hero picture,
.mag .carousel__media picture{display:contents}
.mag .card__media.focus-soundtracks{aspect-ratio:16 / 10}
.mag .grid[data-grid] .card__media.focus-soundtracks > img{aspect-ratio:16 / 10}
/* Desktop stage is 2560x1200. The left side is dark for the headline; the Red-Eye Q sits right of center. */
.mag .story-hero.focus-soundtracks{height:auto;min-height:0;aspect-ratio:20 / 9}
.mag .story-hero.focus-soundtracks .story-hero__shade,
.mag .carousel__slide:has(.focus-soundtracks) .carousel__shade{
  background:linear-gradient(90deg,rgba(5,5,6,.5) 0%,rgba(5,5,6,.12) 28%,transparent 44%);
}
.mag .story-hero.focus-soundtracks .story-hero__copy,
.mag .carousel__slide:has(.focus-soundtracks) .carousel__copy{right:56%}
.mag .story-hero.focus-soundtracks .story-hero__copy .wrap,
.mag .carousel__slide:has(.focus-soundtracks) .carousel__copy .wrap{
  max-width:none;
  margin-left:0;
  margin-right:0;
}
/* Uncanny Candor stage is 20:9. The left side is dark for the headline. */
.mag .focus-uncanny{--fit:cover;--focus:center center}
.mag .card__media.focus-uncanny{aspect-ratio:16 / 10}
.mag .grid[data-grid] .card__media.focus-uncanny > img{aspect-ratio:16 / 10}
.mag .story-hero.focus-uncanny{height:auto;min-height:0;aspect-ratio:20 / 9}
.mag .story-hero.focus-uncanny .story-hero__shade{
  background:linear-gradient(90deg,rgba(5,5,6,.72) 0%,rgba(5,5,6,.28) 28%,transparent 48%);
}
.mag .story-hero.focus-uncanny .story-hero__copy{right:56%}
.mag .story-hero.focus-uncanny .story-hero__copy .wrap{
  max-width:none;
  margin-left:0;
  margin-right:0;
}
/* QVideo8 stage is 20:9. The program window is on the right; the headline stays on the left. */
.mag .story-hero.focus-qvideo8{height:auto;min-height:0;aspect-ratio:20 / 9}
.mag .story-hero.focus-qvideo8 .story-hero__shade,
.mag .carousel__slide:has(.focus-qvideo8) .carousel__shade{
  background:linear-gradient(90deg,rgba(8,8,10,.82) 0%,rgba(8,8,10,.4) 30%,transparent 48%);
}
.mag .story-hero.focus-qvideo8 .story-hero__copy,
.mag .carousel__slide:has(.focus-qvideo8) .carousel__copy{right:56%}
.mag .story-hero.focus-qvideo8 .story-hero__copy .wrap,
.mag .carousel__slide:has(.focus-qvideo8) .carousel__copy .wrap{
  max-width:none;
  margin-left:0;
  margin-right:0;
}
.mag .carousel__slide:has(.focus-qvideo8) .carousel__dek{max-width:none}
/* Design-engine slide: the lower playfield sits on the right, and the headline stays on the left. */
.mag .carousel__slide:has(.carousel__media--engine) .carousel__shade{
  background:linear-gradient(90deg,rgba(10,10,12,.9) 0%,rgba(10,10,12,.55) 28%,transparent 46%);
}
.mag .carousel__slide:has(.carousel__media--engine) .carousel__copy{right:52%}
.mag .carousel__slide:has(.carousel__media--engine) .carousel__copy .wrap{
  max-width:none;
  margin-left:0;
  margin-right:0;
}
.mag .carousel__slide:has(.carousel__media--engine) .carousel__dek{max-width:none}
.mag .carousel__media--engine{--fit:cover;--focus:center center;background:#0a0a0c}
@media (max-width:800px){
  .mag .story-hero:not(.story-hero--pinball),
  .mag .carousel__media{--fit:contain;--focus:center center}
  .mag .story-hero.focus-soundtracks{
    aspect-ratio:1080 / 1350;
    height:auto;
    min-height:0;
  }
  .mag .carousel__slide.is-active:has(.focus-soundtracks){
    min-height:0;
    height:auto;
    aspect-ratio:1080 / 1350;
  }
  .mag .story-hero.focus-soundtracks,
  .mag .carousel__media.focus-soundtracks,
  .mag .card__media.focus-soundtracks{--fit:cover;--focus:center center}
  .mag .story-hero.focus-soundtracks .story-hero__copy,
  .mag .carousel__slide.is-active:has(.focus-soundtracks) .carousel__copy{right:0}
  .mag .carousel__slide.is-active:has(.focus-soundtracks) .carousel__copy{
    padding-bottom:56px;
  }
  .mag .carousel__slide.is-active:has(.focus-soundtracks) .carousel__copy h2{
    font-size:28px;
    margin-bottom:14px;
  }
  .mag .carousel__slide.is-active:has(.focus-soundtracks) .carousel__dek,
  .mag .carousel__slide.is-active:has(.focus-soundtracks) .carousel__meta{display:none}
  .mag .story-hero.focus-soundtracks .story-hero__copy{padding-bottom:28px}
  .mag .carousel__slide.is-active:has(.focus-soundtracks) .carousel__shade,
  .mag .story-hero.focus-soundtracks .story-hero__shade{
    background:linear-gradient(180deg,transparent 52%,rgba(5,5,6,.45) 100%);
  }
  .mag .story-hero.focus-uncanny{
    aspect-ratio:1080 / 1350;
    height:auto;
    min-height:0;
  }
  .mag .story-hero.focus-uncanny,
  .mag .card__media.focus-uncanny{--fit:cover;--focus:center center}
  .mag .story-hero.focus-uncanny .story-hero__copy{right:0;padding-bottom:28px}
  .mag .story-hero.focus-uncanny .story-hero__shade{
    background:linear-gradient(180deg,transparent 46%,rgba(5,5,6,.78) 100%);
  }
  .mag .story-hero.focus-qvideo8{
    display:flex;
    flex-direction:column;
    height:auto;
    min-height:0;
    aspect-ratio:auto;
    background:#1e1e20;
  }
  .mag .story-hero.focus-qvideo8 > img{
    position:relative;
    height:auto;
    aspect-ratio:1600 / 870;
    background:#0a0a0c;
  }
  .mag .story-hero.focus-qvideo8 .story-hero__shade{display:none}
  .mag .story-hero.focus-qvideo8 .story-hero__copy{
    position:relative;
    right:auto;
    padding:22px 0 32px;
    background:var(--bg);
  }
  .mag .carousel__slide.is-active:has(.focus-qvideo8){
    display:flex;
    flex-direction:column;
    min-height:0;
    height:auto;
  }
  .mag .carousel__slide.is-active:has(.focus-qvideo8) .carousel__media{
    position:relative;
    inset:auto;
    height:auto;
    aspect-ratio:1600 / 870;
    background:#0a0a0c;
  }
  .mag .carousel__media.focus-qvideo8,
  .mag .story-hero.focus-qvideo8{--fit:contain;--focus:center center}
  .mag .carousel__slide.is-active:has(.carousel__media--engine){
    display:flex;
    flex-direction:column;
    min-height:0;
    height:auto;
  }
  .mag .carousel__slide.is-active:has(.carousel__media--engine) .carousel__media{
    position:relative;
    inset:auto;
    height:auto;
    aspect-ratio:670 / 508;
    background:#0a0a0c;
  }
  .mag .carousel__media.carousel__media--engine{--fit:cover;--focus:center center}
  .mag .carousel__slide.is-active:has(.carousel__media--engine) .carousel__shade{display:none}
  .mag .carousel__slide.is-active:has(.carousel__media--engine) .carousel__copy{
    position:relative;
    right:auto;
    padding:18px 0 88px;
  }
  .mag .carousel__slide.is-active:has(.focus-qvideo8) .carousel__shade{display:none}
  .mag .carousel__slide.is-active:has(.focus-qvideo8) .carousel__copy{
    position:relative;
    right:auto;
    padding:18px 0 88px;
  }
  .mag .card__media.focus-qvideo8,
  .mag .card__media.focus-cannonball,
  .mag .card__media.focus-ava,
  .mag .card__media.focus-gameart,
  .mag .card__media.focus-tv,
  .mag .card__media.focus-podcast,
  .mag .card__media.focus-pinball,
  .mag .card__media.focus-montage{--fit:contain;--focus:center center}
}

/* Podcast jet: the portrait stays whole, centered on a softened copy of itself.
   The headline sits under the picture so it does not cover his face, hands, or feet. */
.mag .story-hero.focus-podcast{
  height:auto;
  min-height:0;
  aspect-ratio:auto;
  display:block;
  background:#140c08;
}
.mag .story-hero.focus-podcast .story-hero__stage{
  position:relative;
  height:min(76vh,840px);
  min-height:520px;
  overflow:hidden;
  background:#140c08;
}
.mag .story-hero.focus-podcast .story-hero__fill{
  position:absolute;
  inset:-10%;
  width:120%;
  height:120%;
  object-fit:cover;
  filter:blur(28px) saturate(1.2);
  transform:scale(1.02);
}
.mag .story-hero.focus-podcast .story-hero__figure{
  position:relative;
  z-index:1;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
  background:transparent;
}
.mag .story-hero.focus-podcast .story-hero__copy{
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  padding:28px 0 40px;
  background:var(--bg);
}
.mag .card__media.focus-podcast > .story-hero__fill{
  position:absolute;
  inset:-12%;
  width:124%;
  height:124%;
  object-fit:cover;
  filter:blur(18px) saturate(1.15);
}
.mag .card__media.focus-podcast > img:not(.story-hero__fill){
  object-fit:contain;
  object-position:center center;
  background:transparent;
  z-index:1;
}
/* Caption sits under the picture, inside the tile, so it does not cover a face. */
.mag .grid[data-grid]{align-items:stretch}
.mag .grid[data-grid] .card__body{display:none}
.mag .grid[data-grid] > .card{height:auto;align-self:stretch}
.mag .grid[data-grid] .card__media{display:flex;flex-direction:column;flex:1;aspect-ratio:auto}
.mag .grid[data-grid] .card__media > img{
  position:relative;
  inset:auto;
  flex:none;
  width:100%;
  height:auto;
  aspect-ratio:16 / 10;
}
.mag .grid[data-grid] .card--wordmark{bottom:auto;height:calc(100% - 4.8rem)}
.mag .tilecap{
  position:relative;
  z-index:3;
  display:flex;
  flex-direction:column;
  flex:1;
  gap:3px;
  padding:10px 14px 12px;
  background:#121214;
  border-top:1px solid rgba(255,255,255,.06);
  pointer-events:none;
}
.mag .tilecap strong{
  font-family:var(--display);
  font-weight:700;
  font-size:16px;
  line-height:1.15;
  letter-spacing:-.02em;
  color:#fff;
}
.mag .tilecap span{
  margin-top:auto;
  font-size:13px;
  line-height:1.3;
  color:rgba(236,234,228,.84);
}
.mag .card--wide .tilecap strong{font-size:20px}
@media (max-width:800px){
  .mag .story-hero.focus-podcast .story-hero__stage{height:min(72vh,640px);min-height:420px}
  .mag .tilecap{padding:10px 12px 12px}
  .mag .tilecap strong{font-size:15px}
  .mag .card--wide .tilecap strong{font-size:17px}
}

/* Every story card uses the same 16:10 picture. Contain only where a crop would cut the subject. */
.mag .card__media.focus-qvideo8{--fit:contain;--focus:center center;background:#0a0a0c}
.mag .card__media.focus-qvideo8 > img{background:#0a0a0c}
.mag .card__media.focus-pinball{--fit:contain;--focus:center center;background:#07060c}
.mag .card__media.focus-pinball > img{background:#07060c}
.mag .card__media.focus-montage{--fit:contain;--focus:center center;background:#141210}
.mag .card__media.focus-montage > img{background:#141210}
.mag .card__media.focus-podcast{--fit:cover;--focus:center center}
.mag .card__media.focus-engine{--fit:cover;--focus:50% 24%}
.mag .related .card__media,
.mag .grid .card__media{aspect-ratio:16 / 10}

/* Magazine and podcast pages only (this stylesheet loads only there): the footer
   uses the same charcoal grain, amber glow, red hint and dot grid as the masthead. */
body > footer.footer{
  background-color:#161614;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.64 0 0 0 0 0.22 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 6.5% 50%, rgba(226,61,61,.13), transparent 18%),
    radial-gradient(ellipse 52% 180% at 0% 50%, rgba(245,166,35,.20), rgba(245,166,35,.05) 42%, transparent 72%),
    repeating-linear-gradient(-21deg, transparent 0 9px, rgba(245,166,35,.045) 9px 10px),
    radial-gradient(circle, rgba(236,234,228,.09) .55px, transparent .7px);
  background-size:160px 160px, auto, auto, auto, 5px 5px;
  background-repeat:repeat, no-repeat, no-repeat, repeat, repeat;
  border-top:1px solid #3a3228;
}
