/* inspairedstudio.com — the cover (masthead and galaxy), the cinema, the features, the editorial */

/* ---------------------------------------------------------------- the cover */
.galaxy { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100vh - 70px); min-height: calc(100svh - 70px); background: var(--night); }
.gx-nebula { position: absolute; inset: -5%; z-index: -2; opacity: .74; background: url('/assets/art/nebula.jpg') center / cover no-repeat; transform: scale(1.08); will-change: transform; }
.gx-nebula::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 20, .8) 0%, rgba(20, 20, 20, .4) 34%, rgba(20, 20, 20, 0) 58%), linear-gradient(0deg, var(--night) 0%, rgba(20, 20, 20, 0) 26%); }
.gx-canvas { position: absolute; left: 0; top: 0; z-index: 0; }
/* the cover fades into the page at its foot (on the section itself: the nebula above it moves and scales) */
.galaxy::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: -1; pointer-events: none; background: linear-gradient(0deg, var(--night) 6%, rgba(20, 20, 20, .7) 40%, rgba(20, 20, 20, 0)); }
/* the grid makes no stacking context of its own: the masthead goes behind the canvas (the logo stands in front of it), the copy in front */
.gx-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto minmax(0, 1fr) auto; column-gap: 24px;
  min-height: calc(100vh - 70px); min-height: calc(100svh - 70px); padding: clamp(18px, 2.4vw, 30px) 0 clamp(22px, 2.8vw, 38px); pointer-events: none; }
.cv-folio { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 3; margin-bottom: clamp(8px, 1.2vw, 16px); pointer-events: auto; }
/* full width, unless the screen is short: then it keeps to a third of the cover's height (and stays left-aligned) */
.cv-mast { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: -1; width: 100%; height: auto; max-height: calc((100vh - 70px) * .31); max-height: calc((100svh - 70px) * .31); overflow: visible; transition: opacity .5s; }
.cv-mast text { font: 700 252px var(--display); letter-spacing: -16px; }
.cv-glow { transition: stop-color .7s; }
.galaxy[data-mode="books"] .cv-glow { stop-color: #ff8cc6; }
.galaxy[data-mode="music"] .cv-glow { stop-color: #ffc673; }
.galaxy[data-mode="projects"] .cv-glow { stop-color: #62e0bf; }
.gx-copy { grid-column: 1; grid-row: 3; position: relative; z-index: 3; align-self: start; max-width: 560px; padding-top: clamp(10px, 1.6vw, 22px); pointer-events: auto; }
.gx-copy h1 { font-size: clamp(2.3rem, min(4vw, 6.6vh), 4rem); margin-bottom: 18px; }
html[lang="de"] .gx-copy h1 { font-size: clamp(2.1rem, min(3.5vw, 5.8vh), 3.5rem); }
.gx-copy .lead { margin-bottom: 0; }
.gx-stage { grid-column: 2; grid-row: 2 / 5; position: relative; z-index: 1; min-height: 520px; --gx-cy: .5; }
.gx-fallback { position: absolute; left: 50%; top: calc(var(--gx-cy) * 100%); width: 36%; translate: -50% -50%; transition: opacity .8s; }
.galaxy.live .gx-fallback { opacity: 0; }
.gx-hint { grid-column: 1; grid-row: 4; position: relative; z-index: 3; align-self: end; margin: 22px 0 0; max-width: 30em; font: italic 400 .98rem/1.4 var(--display); letter-spacing: -.01em; color: var(--ink-2); text-shadow: 0 1px 10px rgba(0, 0, 0, .85); }
.cv-folio .folio-note { color: var(--ink-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }

.gx-film { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; pointer-events: auto; }
.gx-film .pp { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .4s var(--spring), border-color .3s, background-color .3s; }
.gx-film .pp svg { width: 16px; height: 16px; margin-left: 2px; }
.gx-film em { font-style: normal; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.gx-film:hover .pp { transform: scale(1.1); border-color: var(--azure-ink); background: rgba(0, 129, 254, .18); }

/* cover lines: the three areas, as they would run along the foot of a magazine cover */
.issue { grid-column: 2; grid-row: 4; position: relative; z-index: 3; align-self: end; pointer-events: auto; }
.issue-h { margin: 0 0 10px; font: 700 .95rem/1 var(--display); letter-spacing: -.01em; color: var(--ink-3); }
.gx-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(14px, 2vw, 28px); border-top: 1px solid var(--line-2); }
.gx-area { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name count" "desc desc"; gap: 4px 10px; align-items: baseline;
  padding: 12px 0 4px; color: var(--ink); text-decoration: none; }
.gx-area::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--c); transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease), box-shadow .4s; }
.gx-area b { grid-area: name; font: 700 clamp(1.25rem, 1.7vw, 1.6rem)/1 var(--display); letter-spacing: -.035em; transition: color .3s; }
.gx-area em { grid-area: count; font: 700 .8rem/1 var(--sans); font-style: normal; color: var(--c); letter-spacing: .01em; white-space: nowrap; }
.gx-area span { grid-area: desc; color: var(--ink-3); font-size: .88rem; line-height: 1.4; }
.gx-area:hover::before, .gx-area.on::before { transform: scaleX(1); box-shadow: 0 0 14px var(--c); }
.gx-area:hover b, .gx-area.on b { color: var(--c); }

.planet { position: absolute; left: 0; top: 0; z-index: 4; border-radius: 50%; will-change: transform; outline: none; }
.pl-label { position: absolute; left: 50%; top: 100%; display: flex; align-items: baseline; gap: 8px; padding: 7px 13px 8px; white-space: nowrap; transform: translate(-50%, 2px);
  border-radius: 999px; background: rgba(18, 18, 18, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .1); pointer-events: none;
  transition: border-color .3s, background-color .3s, transform .4s var(--spring); }
.pl-label b { font: 700 1.02rem/1 var(--display); letter-spacing: -.02em; color: #fff; }
.pl-label span { font: 700 .74rem/1 var(--sans); color: var(--ink-3); }
.planet.on .pl-label { border-color: var(--c); background: rgba(18, 18, 18, .86); transform: translate(-50%, 6px) scale(1.06); }
.planet.on .pl-label span { color: var(--c); }
.galaxy.warping .gx-copy, .galaxy.warping .pl-label, .galaxy.warping .gx-hint, .galaxy.warping .issue, .galaxy.warping .cv-folio { opacity: 0; transition: opacity .4s; }
.galaxy.warping .cv-mast { opacity: .25; }

/* laptop screens: everything on the cover stays above the fold */
@media (max-height: 860px) and (min-width: 901px) {
  .gx-grid { padding-top: 14px; padding-bottom: 20px; }
  .cv-folio { margin-bottom: 6px; padding-bottom: 10px; }
  .cv-mast { max-height: calc((100vh - 70px) * .25); max-height: calc((100svh - 70px) * .25); }
  .gx-copy { padding-top: 4px; }
  .gx-copy h1 { font-size: clamp(2rem, min(3.8vw, 5.6vh), 3.6rem); margin-bottom: 14px; }
  html[lang="de"] .gx-copy h1 { font-size: clamp(1.9rem, min(3.4vw, 5vh), 3.2rem); }
  .gx-copy .lead { font-size: 1rem; line-height: 1.55; }
  .gx-film { margin-top: 16px; }
  .gx-hint { margin-top: 12px; font-size: .92rem; }
  .gx-area { padding-top: 10px; }
  .gx-area span { font-size: .84rem; line-height: 1.35; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .gx-area { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "count" "desc"; gap: 6px; }
}
@media (max-width: 900px) {
  .gx-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding-top: 16px; }
  .cv-folio, .cv-mast, .gx-stage, .gx-hint, .gx-copy, .issue { grid-column: 1; grid-row: auto; }
  .cv-mast { max-height: none; }
  .gx-stage { order: 3; height: min(100vw, 520px); min-height: 0; margin: -17vw calc(-1 * var(--gut)) 0; --gx-cy: .47; }
  .gx-hint { order: 4; margin: 0 0 26px; text-align: center; font-size: .95rem; }
  .gx-hint::before { display: none; }
  .gx-copy { order: 5; padding-top: 0; }
  .issue { order: 6; margin-top: 34px; }
  .gx-areas { grid-template-columns: minmax(0, 1fr); }
  .gx-area { padding: 12px 0 10px; border-bottom: 1px solid var(--line); }
  .gx-area::before { display: none; }
  .gx-nebula { background-image: url('/assets/art/nebula-tall.jpg'); }
  .gx-nebula::after { background: linear-gradient(0deg, var(--night) 0%, rgba(20, 20, 20, .8) 40%, rgba(20, 20, 20, 0) 66%); }
}

/* ---------------------------------------------------------------- the cinema */
.cinema { position: relative; isolation: isolate; overflow: hidden; padding: var(--sec) 0 calc(var(--sec) * .9); text-align: center;
  background: radial-gradient(60% 40% at 50% 100%, rgba(0, 129, 254, .08), transparent 70%), linear-gradient(180deg, var(--night), #0e0e0e 26%, #0e0e0e 76%, var(--night)); }
.beam { position: absolute; left: 50%; top: 0; z-index: -1; width: 1600px; max-width: 220%; height: 100%; translate: -50% 0; pointer-events: none; filter: blur(5px);
  background: conic-gradient(from 166deg at 50% -4%, transparent 0deg, rgba(225, 222, 214, .045) 6deg, rgba(240, 236, 228, .11) 14deg, rgba(225, 222, 214, .045) 22deg, transparent 28deg);
  -webkit-mask: linear-gradient(#000 20%, rgba(0, 0, 0, .25) 70%, transparent 95%); mask: linear-gradient(#000 20%, rgba(0, 0, 0, .25) 70%, transparent 95%); }
.cinema .dust-canvas { z-index: 0; }
.cinema .wrap { position: relative; z-index: 2; }
.sign { position: relative; display: inline-block; white-space: nowrap; padding: 20px 46px; margin-bottom: 34px; border-radius: 12px; background: linear-gradient(180deg, #232323, #121212);
  box-shadow: 0 0 0 1px rgba(255, 210, 140, .2), 0 0 60px -10px rgba(255, 174, 43, .3), inset 0 1px 0 rgba(255, 255, 255, .08); }
.sign-t { position: relative; font: 800 clamp(.8rem, 1.4vw, 1rem)/1 var(--sans); letter-spacing: .38em; margin-right: -.38em; text-transform: uppercase; color: #ffe4b5; text-shadow: 0 0 14px rgba(255, 174, 43, .85); }
.bulbs { position: absolute; inset: 6px 10px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.bulbs > span { display: flex; justify-content: space-between; }
.bulbs i { width: 5px; height: 5px; border-radius: 50%; background: #6b5a3a; }
.cinema.lights .bulbs i { animation: bulb 1.1s steps(1) infinite; }
.cinema.lights .bulbs i:nth-child(3n + 1) { animation-delay: -.37s; } .cinema.lights .bulbs i:nth-child(3n + 2) { animation-delay: -.73s; }
@keyframes bulb { 0%, 33% { background: #ffe0a6; box-shadow: 0 0 8px 2px rgba(255, 196, 100, .9); } 34%, 100% { background: #6b5a3a; box-shadow: none; } }
.film-title { font: 700 clamp(2.3rem, 6.6vw, 6.4rem)/.92 var(--display); letter-spacing: .02em; margin-right: -.02em; text-transform: uppercase; }
.film-credits { margin: 18px auto 0; max-width: 40em; color: var(--ink-3); font: italic 400 clamp(1rem, 1.4vw, 1.15rem)/1.45 var(--display); letter-spacing: -.01em; }
.film { position: relative; max-width: 1100px; margin: clamp(34px, 4.6vw, 58px) auto 0; }
.film::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -70px; height: 70px; z-index: -1; background: radial-gradient(50% 100% at 50% 0%, rgba(150, 175, 220, .2), transparent 75%); filter: blur(12px); }
.film-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 4px; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 140px -40px rgba(0, 129, 254, .4), 0 0 90px rgba(200, 210, 230, .08); }
.film.is-tall .film-frame { aspect-ratio: 9 / 16; max-width: 420px; margin-inline: auto; }
.film video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.film-play { all: unset; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; cursor: pointer; color: #fff;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45)); }
.film-play .pp { position: relative; display: grid; place-items: center; width: clamp(74px, 9vw, 104px); height: clamp(74px, 9vw, 104px); border-radius: 50%; background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); transition: transform .45s var(--spring), background-color .3s; }
.film-play .pp svg { width: 32%; height: 32%; margin-left: 6%; }
.film-play .pp::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.film-play .t { font: 700 .95rem/1 var(--sans); letter-spacing: .02em; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.film-play:hover .pp { transform: scale(1.1); background: rgba(0, 129, 254, .5); }
.film-play:focus-visible .pp { outline: 2px solid #fff; outline-offset: 5px; }
.film.is-playing .film-play { display: none; }
.film-soon { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; padding: 24px; text-align: center; background: radial-gradient(60% 70% at 50% 40%, #222, #0d0d0d); }
.film-soon b { font: 700 clamp(1.4rem, 2.6vw, 2.1rem)/1.1 var(--display); letter-spacing: -.03em; }
.film-soon span { color: var(--ink-3); }
.film-soon a { color: var(--ink); }

/* ---------------------------------------------------------------- features (one spread per area) */
.stories { padding-bottom: 0; }
.story { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(30px, 6vw, 96px); align-items: center; padding: clamp(46px, 6vw, 96px) 0; border-top: 1px solid var(--line); }
.story.right .story-media { order: 2; }
/* the area's name, set enormous behind the spread */
.st-word { position: absolute; z-index: -1; top: clamp(10px, 2vw, 26px); font: 700 clamp(5rem, 15vw, 14rem)/.8 var(--display); letter-spacing: -.065em; white-space: nowrap; pointer-events: none; user-select: none;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--c) 46%, transparent); opacity: .7; }
.story.left .st-word { right: -.04em; } .story.right .st-word { left: -.06em; }
.story-media { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 5 / 4; border-radius: 6px; text-decoration: none; isolation: isolate;
  background: radial-gradient(75% 65% at 50% -8%, color-mix(in srgb, var(--c) 34%, transparent), transparent 72%), linear-gradient(180deg, #212121, #151515 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.story-media::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: conic-gradient(from 160deg at 50% -10%, transparent 0deg, rgba(255, 255, 255, .05) 10deg, transparent 18deg, transparent 22deg, color-mix(in srgb, var(--c) 16%, transparent) 30deg, transparent 40deg); }
.story-media::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 9%; height: 7%; z-index: -1; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(14px); }
.st-book { display: grid; place-items: center; width: min(60%, 340px); height: 76%; perspective: 1200px; }
.st-book img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 3px 8px 8px 3px; transform: rotateY(-16deg) rotateX(5deg); transform-origin: 40% 50%; transition: transform 1s var(--ease);
  box-shadow: -2px 0 0 rgba(255, 255, 255, .2), 30px 40px 60px -20px rgba(0, 0, 0, .9), 8px 10px 20px rgba(0, 0, 0, .4); }
.story:hover .st-book img { transform: rotateY(-4deg) rotateX(2deg) translateY(-6px); }
.st-record { position: relative; display: block; width: min(64%, 400px); aspect-ratio: 1; }
.st-sleeve { position: relative; z-index: 1; width: 86%; border-radius: 3px; box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .95), 10px 0 26px -10px rgba(0, 0, 0, .8); }
.st-vinyl { position: absolute; left: 14%; top: 3%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--v) 82%, #fff) 0 34%, var(--v) 36% 70%, color-mix(in srgb, var(--v) 70%, #000) 100%);
  transition: translate 1s var(--spring), rotate 2.4s var(--ease); translate: 14% 0; }
.st-vinyl img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.st-vinyl .lbl { inset: 33.4%; width: 33.2%; height: 33.2%; object-fit: cover; }
.story:hover .st-vinyl { translate: 30% 0; rotate: 200deg; }
.st-screen { display: block; width: 84%; padding: 10px; border-radius: 14px; background: linear-gradient(180deg, #2b2b2e, #161618); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .12);
  transform: perspective(1400px) rotateY(10deg) rotateX(3deg); transition: transform 1s var(--ease); }
.st-screen img { width: 100%; border-radius: 6px; }
.story:hover .st-screen { transform: perspective(1400px) rotateY(2deg) rotateX(1deg) translateY(-6px); }
.story-area { margin: 0 0 16px; }
.story-area a { font: 700 1.08rem/1 var(--display); letter-spacing: -.012em; color: var(--c); text-decoration: none; }
.story-area a::before { content: ""; display: inline-block; width: .52em; height: .52em; margin-right: .6em; vertical-align: .06em; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.story-area a:hover { text-decoration: underline; text-underline-offset: 4px; }
.story-copy h3 { font-size: clamp(2.1rem, 3.8vw, 3.6rem); line-height: .95; letter-spacing: -.045em; margin-bottom: 14px; }
.story-kind { margin: 0 0 16px; font-weight: 700; font-size: .9rem; color: var(--ink-3); }
.story-text { color: var(--ink-2); font-size: 1.06rem; max-width: 30em; }
.story-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; }
@media (max-width: 860px) {
  .story { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .story.right .story-media { order: 0; }
  .story { padding-top: calc(var(--sec) * .3 + 19vw); }
  .st-word { top: calc(var(--sec) * .3 - 2vw); font-size: 23vw; opacity: .9; }
  .story.left .st-word, .story.right .st-word { left: -.04em; right: auto; }
}

/* ---------------------------------------------------------------- the editorial */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.orbit-portrait { position: relative; margin: 0; width: 100%; max-width: 500px; aspect-ratio: 1; justify-self: center; overflow: hidden; border-radius: 50%; }
.orbit-portrait img { position: absolute; left: 15%; top: 15%; width: 70%; height: 70%; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 90px -30px rgba(0, 129, 254, .45); }
.op-glow { position: absolute; left: 12%; top: 6%; width: 76%; height: 50%; border-radius: 50%; background: radial-gradient(50% 50% at 50% 30%, rgba(150, 185, 240, .36), transparent 70%); filter: blur(24px); }
.op-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 80s linear infinite; }
.op-ring text { font: 700 14px/1 var(--sans); letter-spacing: .28em; fill: rgba(220, 216, 208, .55); }
@keyframes spin { to { transform: rotate(360deg); } }
.about-copy h2 { font-size: clamp(2.8rem, 5.6vw, 5.4rem); }
.about-copy > p { color: var(--ink-2); max-width: 34em; }
.about-copy > .kicker { color: var(--area); }
.about-copy .sign-off { margin-top: 4px; font: italic 400 1.05rem/1.4 var(--display); color: var(--ink-3); }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .orbit-portrait { max-width: 380px; } }

@media (prefers-reduced-motion: reduce) { .op-ring { animation: none; } .film-play .pp::after { display: none; } }
