/* Lévy Flight Studio — alternate editorial hub */
:root{
  color-scheme:light;
  --paper:#f7f4ee;--ink:#1d1c19;--muted:#8a857b;--rule:#ddd7cb;--soft:#efebe2;
  --accent:#2f4bb0;--orb:#c9a24f;
  --serif:'Instrument Serif',Georgia,'Times New Roman',serif;
  --sans:'Inter',system-ui,-apple-system,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,Menlo,monospace;
}
:root[data-theme=dark]{
  color-scheme:dark;
  --paper:#13120f;--ink:#ece7dd;--muted:#948e82;--rule:#2d2a24;--soft:#1c1a16;
  --accent:#8ea2ec;--orb:#8a6a2a;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 var(--sans);-webkit-font-smoothing:antialiased;transition:background-color .3s,color .3s}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:1.5px solid var(--accent);outline-offset:4px}
[hidden]{display:none!important}
.wrap{max-width:1240px;margin:0 auto;padding:0 56px}
.mono{font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase}
.muted{color:var(--muted)}

/* Header */
.top{display:flex;justify-content:space-between;align-items:center;padding:30px 0}
.mark{font-family:var(--serif);font-size:24px;letter-spacing:-.01em;white-space:nowrap}
.mark span{color:var(--orb)}
.top nav{display:flex;align-items:center;gap:34px;font-size:13px}
.top nav a{color:var(--muted);transition:color .2s}
.top nav a:hover{color:var(--ink)}
.pill{background:none;border:1px solid var(--rule);border-radius:999px;padding:5px 14px;font-size:12px;transition:border-color .2s}
.pill:hover{border-color:var(--muted)}

/* Hero */
.hero{position:relative;padding:120px 0 150px;isolation:isolate}
html,body{overflow-x:hidden}
.orb{position:absolute;z-index:-1;width:520px;height:520px;right:6%;top:40px;border-radius:50%;background:radial-gradient(circle,var(--orb) 0%,transparent 68%);opacity:.38;filter:blur(30px)}
/* the glow fades out with each hero visual, moves, and fades back in with the next (hero-viz.js) */
.orb{transition:opacity 1.6s ease}.orb.is-out{opacity:0;transition-duration:.7s}
@media(prefers-reduced-motion:reduce){.orb{transition:none}}
.hero-viz{position:absolute;z-index:-1;right:-60px;top:0;width:690px;height:644px;color:var(--accent)}
.hero-viz svg{width:100%;height:100%;overflow:visible}
.hv-line{stroke:var(--accent);stroke-width:.7;fill:none;opacity:.32}
.hv-line-faint{stroke:var(--accent);stroke-width:.6;fill:none;opacity:.14}
.hv-line-strong{stroke:var(--accent);stroke-width:.9;fill:none;opacity:.55}
.hv-leap{stroke:var(--orb);stroke-width:1;fill:none;opacity:.9}
.hv-route{stroke:var(--orb);stroke-width:1.8;fill:none;stroke-dasharray:3 4;opacity:.95}
.hv-arc{stroke:var(--accent);stroke-width:1;opacity:.55}
.hv-dot{fill:var(--accent)}
.hv-halo{fill:none;stroke:var(--accent);stroke-width:.7;opacity:.4}
.hv-star{fill:var(--muted);opacity:.35}
.hv-seed{fill:var(--accent);opacity:.45}
.hv-bar{fill:var(--accent);opacity:.3}.hv-bar-accent{fill:var(--orb);opacity:.85}
.hv-ink{stroke:var(--ink);fill:none}.hv-ink-dot{fill:var(--ink)}.hv-ink-stroke{stroke:var(--ink);stroke-width:.8}
.hv-ring-ink{fill:var(--paper);stroke:var(--ink);stroke-width:1.2}.hv-dot-orb{fill:var(--orb)}
.hv-bar-ink{fill:var(--ink);opacity:.8}.hv-bar-paper{fill:var(--paper)}
.hv-stop-light{stop-color:var(--ink);stop-opacity:.1}.hv-stop-ink{stop-color:var(--ink);stop-opacity:.85}
.hv-brown{stroke:var(--muted);stroke-width:.9;opacity:.75;fill:none}
.hv-patch{fill:var(--orb);opacity:.22}
.hv-wedge{fill:var(--accent);opacity:.28}.hv-wedge-orb{fill:var(--orb);opacity:.55}
.hv-note{font:400 9.5px var(--sans);fill:var(--muted);letter-spacing:.01em}
.hv-label{font:500 9.5px var(--mono);letter-spacing:.08em;fill:var(--ink);opacity:.7}
.hv-faint{opacity:.42}

.hero-picker{position:fixed;z-index:10;left:50%;bottom:18px;transform:translateX(-50%);display:flex;gap:6px;padding:6px;border:1px solid var(--rule);border-radius:999px;background:var(--paper);box-shadow:0 6px 24px #0000001a;white-space:nowrap}
.hero-picker a{border:1px solid var(--rule);border-radius:999px;padding:4px 10px;font-size:10px;color:var(--muted);background:var(--paper)}
.hero-picker a.active,.hero-picker a:hover{border-color:var(--ink);color:var(--ink)}.hero-picker .seed{align-self:center;padding:0 8px;font-size:9px;color:var(--muted)}
.kicker{color:var(--muted);margin:0 0 34px}
h1{font:400 clamp(64px,10.5vw,148px)/.92 var(--serif);letter-spacing:-.025em;margin:0;max-width:9.5ch}
h1 em{font-style:italic;color:var(--muted)}
.hero-notes{display:flex;gap:60px;align-items:baseline;margin:56px 0 0 30%;max-width:560px}
.hero-notes p{margin:0;font-size:14px;color:var(--muted);max-width:30ch}
.hero-notes .mono{white-space:nowrap;color:var(--ink)}
.hero-notes p,.kicker,.scroll{text-shadow:0 0 4px var(--paper),0 0 10px var(--paper),0 0 18px var(--paper)}
.scroll{position:absolute;left:0;bottom:56px;color:var(--muted)}
.scroll span{margin-left:8px}

/* Sections */
.section{padding:96px 0 40px;border-top:1px solid var(--rule)}
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:24px;flex-wrap:wrap;margin-bottom:80px}
h2{font:400 48px/1 var(--serif);letter-spacing:-.015em;margin:0}
.filters{display:flex;gap:8px;flex-wrap:wrap}
.chip{background:none;border:1px solid var(--rule);border-radius:999px;padding:5px 13px;font-size:12px;color:var(--muted);transition:border-color .2s,color .2s}
.chip:hover{border-color:var(--muted);color:var(--ink)}
.chip.active{border-color:var(--ink);color:var(--ink)}

/* Featured — staggered, museum-wall layout */
.featured{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:28px;row-gap:120px;padding-bottom:80px}
.piece a{display:block}
.piece h3{font:400 40px/1.02 var(--serif);letter-spacing:-.015em;margin:0;max-width:12ch}
.byline{font-family:var(--serif);font-style:italic;font-size:16px;color:var(--muted);margin:6px 0 22px}
.piece figure{margin:0;overflow:hidden;background:var(--soft)}
.piece video{width:100%;height:auto;display:block;background:var(--soft);transition:transform .9s cubic-bezier(.2,.7,.2,1)}.piece a:hover video{transform:scale(1.03)}
.piece img{width:100%;height:auto;display:block;transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.piece a:hover img{transform:scale(1.03)}
.caption{margin-top:18px;display:grid;gap:10px;max-width:400px}
.caption .mono{color:var(--muted);font-size:10px}
.caption p{margin:0;font-size:14px;color:var(--muted);line-height:1.65}
.open{font-size:13px;border-bottom:1px solid var(--rule);justify-self:start;padding-bottom:3px;transition:border-color .2s}
.piece a:hover .open{border-color:var(--ink)}
.p1{grid-column:1/8}
.p2{grid-column:8/13;margin-top:220px}
.p3{grid-column:2/7}
.p4{grid-column:8/13;margin-top:140px}
.p5{grid-column:3/10}
.p6{grid-column:6/13}
.t-earth img{object-position:50% 48%}.t-strata img{object-position:50% 62%}.t-dimension img{object-position:50% 47%}.t-atlas img{object-position:50% 40%}
[data-theme=dark] .piece img,[data-theme=dark] .thumb img{filter:brightness(.92)}

/* Index — museum list rows */
.index{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule)}
.row{border-bottom:1px solid var(--rule)}
.row a{display:grid;grid-template-columns:56px minmax(0,1.1fr) 120px minmax(0,1fr) 40px;align-items:center;gap:32px;padding:30px 0}
.num{color:var(--muted)}
.row-title{font:400 34px/1.05 var(--serif);letter-spacing:-.01em;display:flex;flex-direction:column;gap:8px}
.row-title small{font-size:10px;color:var(--muted)}
.thumb{width:120px;aspect-ratio:4/3;overflow:hidden;background:var(--soft)}
.thumb img{width:100%;height:100%;object-fit:cover;display:block;filter:grayscale(1) contrast(.95);opacity:.85;transition:filter .4s,opacity .4s,transform .6s}
.row-desc{font-size:13px;color:var(--muted);line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.arrow{justify-self:end;font-size:20px;color:var(--muted);transition:transform .3s,color .3s}
.row a:hover .thumb img{filter:none;opacity:1;transform:scale(1.04)}
.row a:hover .arrow{color:var(--ink);transform:translate(3px,-3px)}
[data-theme=dark] .row a:hover .thumb img{filter:brightness(.92)}
.empty{text-align:center;color:var(--muted);padding:60px 0}

/* About — editorial statement */
.about{padding:120px 0 140px;border-top:0}
.statement{font-size:clamp(34px,4.2vw,52px);line-height:1.1;max-width:22ch;margin-left:16%}
.about-cols{display:grid;grid-template-columns:1fr 1fr;gap:40px;max-width:620px;margin:56px 0 0 16%}
.about-cols p{margin:0;font-size:14px;color:var(--muted);line-height:1.7}

/* Footer */
.foot{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:30px 0 44px;border-top:1px solid var(--rule)}
.foot .mark{font-size:20px}
.foot p{margin:0;color:var(--muted)}
.foot a.mono{color:var(--muted)}
.foot a.mono:hover{color:var(--ink)}

/* Tablet */
@media(max-width:980px){
  .wrap{padding:0 36px}
  .hero{padding:90px 0 130px}
  .hero-viz{width:520px;height:485px;right:-100px;opacity:.6}.hero-viz .hv-note{display:none}
  .orb{width:400px;height:400px}
  .hero-notes{margin-left:0}
  .featured{row-gap:90px}
  .p1{grid-column:1/13}
  .p2{grid-column:5/13;margin-top:0}
  .p3{grid-column:1/9}
  .p4{grid-column:3/13;margin-top:0}
  .p5{grid-column:1/11}
  .p6{grid-column:3/13}
  .row a{grid-template-columns:44px minmax(0,1fr) 110px 32px;gap:24px}
  .row-desc{display:none}
  .thumb{width:110px}
  .statement,.about-cols{margin-left:0}
}

/* Phone */
@media(max-width:640px){
  .wrap{padding:0 22px}
  .top{padding:22px 0}
  .top{gap:12px}.top .mark{font-size:20px}
  .top nav{gap:14px;font-size:12px}
  .top nav a[href="#about"]{display:none}
  .hero{padding:64px 0 110px}
  .hero-viz{width:360px;height:312px;right:-140px;top:30px;opacity:.4}.hero-viz .hv-label{display:none}.hero-picker{max-width:calc(100% - 24px);overflow-x:auto}
  .orb{width:300px;height:300px;right:-60px}
  .kicker{margin-bottom:24px}
  .hero-notes{flex-direction:column;gap:18px;margin-top:40px}
  .scroll{bottom:40px}
  .section{padding:64px 0 24px}
  .section-head{margin-bottom:48px;flex-direction:column;gap:18px}
  h2{font-size:40px}
  .featured{display:flex;flex-direction:column;gap:72px;padding-bottom:48px}
  .piece:nth-child(even){padding-left:14%}
  .piece h3{font-size:34px}
  .row a{grid-template-columns:minmax(0,1fr) 84px;gap:16px;padding:22px 0}
  .num,.arrow{display:none}
  .row-title{font-size:28px}
  .thumb{width:84px;order:2}
  .about{padding:80px 0 90px}
  .about-cols{grid-template-columns:1fr;gap:20px;margin-top:36px}
  .foot{flex-direction:column;align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}

/* Taller tile frames (experiments.js `frame`): the clip sits centered on its own background color */
.piece figure.framed{aspect-ratio:var(--frame-ratio);background:var(--frame-bg);display:flex;align-items:center;justify-content:center;overflow:hidden;width:var(--frame-w)}
.piece figure.framed video,.piece figure.framed img{width:100%;height:100%;object-fit:contain;background:transparent}
/* soften the clip's top and bottom edges into the frame color, so glows that touch the edge don't leave a seam */
.piece figure.framed video,.piece figure.framed img{-webkit-mask-image:linear-gradient(transparent,#000 4.5%,#000 95.5%,transparent);mask-image:linear-gradient(transparent,#000 4.5%,#000 95.5%,transparent);height:auto;width:var(--clip-w);max-width:none;flex-shrink:0}
@media(max-width:640px){.piece figure.framed{aspect-ratio:1}}
