/* ============================================================
   QUIET BUILD · Field Journal No. 01 "Reducing the distance"
   Page layer on top of cine.css + article-cine.css. Added Nov 2026.
   Techniques: topographic contour field, mask reveals, scroll-drawn
   route line, persistent place postcard, marquee close.
   ============================================================ */
.jd{--fm:'Switzer','Hanken Grotesk',sans-serif;--grey:var(--dim);}

/* contour field sits behind everything, very faint */
.jd-contours{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.55;}
.jd main,.jd article,.jd section,.jd figure,.jd header,.jd footer,.jd .art-cta,.jd .related{position:relative;z-index:1;}

/* ---------- HERO ---------- */
.jd-hero{position:relative;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden;padding:20vh 6vw 10vh;}
.jd-hero-media,.jd-hero-media video,.jd-hero-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.jd-hero-media video{z-index:1;opacity:0;transition:opacity 1.2s var(--ease);}
.jd-hero-media video.on{opacity:1;}
.jd-hero-media{transform:scale(1.06);animation:jdSettle 2.6s var(--ease) forwards;}
@keyframes jdSettle{to{transform:scale(1);}}
.jd-hero-shade{position:absolute;inset:0;z-index:2;background:
  linear-gradient(180deg,rgba(12,12,11,.55) 0%,rgba(12,12,11,0) 26%,rgba(12,12,11,0) 45%,rgba(12,12,11,.78) 82%,#0c0c0b 100%),
  radial-gradient(120% 80% at 20% 100%,rgba(12,12,11,.6),transparent 60%);}
.jd-hero-copy{position:relative;z-index:3;max-width:1100px;}
.jd-hero .crumb{font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(239,233,224,.7);margin-bottom:1.6rem;}
.jd-hero .crumb a{color:var(--sage);}
.jd-issue{display:inline-flex;align-items:center;gap:.8rem;font-size:.7rem;letter-spacing:.3em;text-transform:uppercase;color:var(--sand);margin-bottom:1.4rem;}
.jd-issue i{width:34px;height:1px;background:var(--terra);display:inline-block;}
.jd-title{font-size:clamp(2.5rem,5.6vw,5.4rem);line-height:.98;letter-spacing:-.035em;font-weight:500;}
@media(min-width:861px){.jd-title .jd-line{white-space:nowrap;}}
.jd-title .jd-line{display:block;overflow:hidden;}
.jd-title .it{font-family:'Hanken Grotesk';font-style:italic;font-weight:300;color:var(--sand);letter-spacing:-.02em;}
.jd-title .jd-line{opacity:0;transform:translateY(40%);animation:jdRise 1.3s var(--ease) forwards;}
.jd-title .jd-line:nth-child(2){animation-delay:.12s}.jd-title .jd-line:nth-child(3){animation-delay:.24s}
@keyframes jdRise{to{opacity:1;transform:none;}}
.jd-stand{margin-top:1.8rem;max-width:46ch;font-size:clamp(1.05rem,1.6vw,1.3rem);line-height:1.55;color:#ddd6cb;opacity:0;animation:jdRise 1.3s .5s var(--ease) forwards;}
.jd-hero .art-meta{opacity:0;animation:jdRise 1.3s .7s var(--ease) forwards;}
.jd-scroll{position:absolute;right:6vw;bottom:11vh;z-index:3;width:1px;height:70px;background:rgba(239,233,224,.2);overflow:hidden;}
.jd-scroll span{position:absolute;left:0;top:-40%;width:1px;height:40%;background:var(--sand);animation:jdDrip 2.2s ease-in-out infinite;}
@keyframes jdDrip{to{top:110%;}}

/* ---------- BODY additions ---------- */
.jd-body{margin-top:9vh;}
.jd-body section+section{margin-top:5vh;}
.jd-body .lead{font-size:clamp(1.25rem,2.1vw,1.5rem);}
.jd-quote{font-size:clamp(1.6rem,3.8vw,2.5rem);}
.reveal{opacity:0;transform:translateY(26px);transition:opacity 1.1s var(--ease),transform 1.1s var(--ease);}
.reveal.in{opacity:1;transform:none;}
.jd-history{position:relative;margin:2.6rem 0;padding:1.8rem 1.8rem 1.6rem 2.2rem;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,rgba(212,184,150,.06),rgba(12,12,11,0) 60%);}
.jd-history::before{content:'';position:absolute;left:0;top:1.6rem;bottom:1.6rem;width:3px;border-radius:3px;background:repeating-linear-gradient(180deg,var(--terra) 0 10px,transparent 10px 18px);}
.jd-history-k{font-size:.68rem;letter-spacing:.24em;text-transform:uppercase;color:var(--sage);margin-bottom:.8rem;}
.jd-history p{margin-bottom:.9rem;font-size:1rem;}
.jd-history sup a{border:0;color:var(--terra);font-size:.75em;}
.jd-history-moral{font-family:'Switzer','Hanken Grotesk';font-weight:500;color:var(--ink);font-size:1.2rem!important;line-height:1.35;margin:0!important;}

/* ---------- FULL BLEED MEDIA ---------- */
.jd-bleed{position:relative;margin:10vh 0;height:min(78vh,56.25vw);min-height:340px;overflow:hidden;}
.jd-bleed-tall{height:min(92vh,62vw);}
.jd-bleed img,.jd-bleed video{position:absolute;inset:-6% 0;width:100%;height:112%;object-fit:cover;will-change:transform;}
.jd-bleed video{z-index:1;opacity:0;transition:opacity 1s var(--ease);}
.jd-bleed video.on{opacity:1;}
.jd-bleed figcaption,.jd-pair figcaption,.jd-inset figcaption{position:absolute;left:6vw;bottom:2.2rem;z-index:3;max-width:44ch;font-size:.82rem;color:rgba(239,233,224,.85);text-shadow:0 1px 18px rgba(0,0,0,.6);}
.jd-bleed figcaption span,.jd-pair figcaption span,.jd-inset figcaption span{display:block;font-size:.66rem;letter-spacing:.26em;text-transform:uppercase;color:var(--sand);margin-bottom:.35rem;}
.jd-bleed::after{content:'';position:absolute;inset:0;z-index:2;background:linear-gradient(180deg,#0c0c0b 0%,rgba(12,12,11,0) 18%,rgba(12,12,11,0) 70%,rgba(12,12,11,.85) 100%);pointer-events:none;}
.jd-statement::after{background:linear-gradient(180deg,#0c0c0b 0%,rgba(12,12,11,.25) 25%,rgba(12,12,11,.35) 60%,#0c0c0b 100%);}
.jd-over{position:absolute;z-index:3;left:6vw;right:6vw;top:50%;transform:translateY(-50%);font-family:'Switzer','Hanken Grotesk';font-weight:500;font-size:clamp(2rem,6vw,5.4rem);line-height:1;letter-spacing:-.035em;color:var(--ink);text-shadow:0 2px 40px rgba(0,0,0,.45);cursor:pointer;}
.jd-over p{margin:0;}
.jd-over .it{font-family:'Hanken Grotesk';font-style:italic;font-weight:300;color:var(--sand);}

/* mask reveal: media opens from a slit as it enters */
.jd-mask{clip-path:inset(12% 8% 12% 8% round 18px);transition:clip-path 1.6s var(--ease);}
.jd-mask.in{clip-path:inset(0 0 0 0 round 0);}
.jd-inset.jd-mask.in,.jd-pair .jd-mask.in{clip-path:inset(0 0 0 0 round 14px);}

/* ---------- ROUTE ---------- */
.jd-route{max-width:1280px;margin:12vh auto;padding:0 6vw;}
.jd-route-head{max-width:720px;margin:0 auto 4vh;}
.jd-route-head h2,.jd-projects-head h2,.jd-film-head h2{font-size:clamp(1.8rem,4.2vw,3.2rem);margin:.8rem 0 1rem;}
.jd-route-head p,.jd-projects-head p{color:var(--dim);max-width:56ch;}
.jd-route-map{position:relative;}
.jd-route-svg{width:100%;height:160px;display:block;overflow:visible;}
.jd-route-ghost{fill:none;stroke:rgba(239,233,224,.12);stroke-width:2;stroke-dasharray:2 8;}
.jd-route-line{fill:none;stroke:var(--terra);stroke-width:2.5;stroke-linecap:round;}
.jd-stops{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);gap:1.2rem;margin-top:-1rem;}
.jd-stop{position:relative;padding:1.4rem 1.2rem 1.3rem;border:1px solid var(--line);border-radius:16px;background:rgba(20,20,18,.72);backdrop-filter:blur(6px);opacity:.5;transform:translateY(14px);transition:opacity .8s var(--ease),transform .8s var(--ease),border-color .8s;}
.jd-stop.lit{opacity:1;transform:none;border-color:rgba(196,131,106,.45);}
.jd-stop b{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;border-radius:50%;border:1.5px solid var(--terra);font-family:'Switzer';font-weight:600;font-size:.72rem;color:var(--terra);margin-bottom:.9rem;background:#0c0c0b;}
.jd-stop.lit b{background:var(--terra);color:#0c0c0b;}
.jd-stop h3{font-size:1.25rem;margin-bottom:.5rem;}
.jd-stop p{font-size:.9rem;line-height:1.5;color:var(--dim);margin-bottom:.9rem;}
.jd-stop .q{display:block;font-size:.82rem;font-style:italic;color:var(--sand);}

/* ---------- QUESTIONS ---------- */
.jd-questions{position:relative;margin:10vh 0;padding:16vh 6vw;overflow:hidden;}
.jd-questions-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.42;}
.jd-questions::before{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,#0c0c0b,rgba(12,12,11,.35) 30%,rgba(12,12,11,.35) 70%,#0c0c0b);}
.jd-questions ol{position:relative;z-index:2;list-style:none;max-width:1100px;margin:0 auto;cursor:pointer;}
.jd-questions li{font-family:'Switzer','Hanken Grotesk';font-weight:500;font-size:clamp(2rem,6.4vw,5.6rem);line-height:1.04;letter-spacing:-.04em;padding:1.2vh 0;border-bottom:1px solid var(--line);display:flex;align-items:baseline;gap:1.6vw;}
.jd-questions li:nth-child(2){padding-left:6vw;}
.jd-questions li:nth-child(3){padding-left:12vw;color:var(--sand);}
.jd-questions li span{font-size:.8rem;letter-spacing:.2em;color:var(--terra);font-weight:500;transform:translateY(-1.4em);}

/* ---------- PAIR (broken grid) ---------- */
.jd-pair{display:grid;grid-template-columns:1.5fr 1fr;gap:2.4vw;max-width:1280px;margin:9vh auto;padding:0 6vw;align-items:end;}
.jd-pair figure{position:relative;overflow:hidden;border-radius:14px;}
.jd-pair img{width:100%;height:100%;object-fit:cover;aspect-ratio:16/10;}
.jd-pair-b{transform:translateY(-10vh);}
.jd-pair-b img{aspect-ratio:4/5;}
.jd-pair figcaption{left:1.2rem;bottom:1.2rem;}

/* ---------- PROJECTS ---------- */
.jd-projects{max-width:1280px;margin:12vh auto;padding:0 6vw;}
.jd-projects-head{max-width:760px;margin-bottom:5vh;}
.jd-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem;}
.jd-card{position:relative;display:flex;flex-direction:column;padding:1.6rem 1.4rem 1.4rem;border:1px solid var(--line);border-radius:18px;background:rgba(20,20,18,.78);transition:border-color .5s,transform .6s var(--ease);min-height:330px;}
a.jd-card:hover{border-color:rgba(196,131,106,.55);transform:translateY(-6px);}
.jd-card::before{content:'';position:absolute;left:1.4rem;right:1.4rem;top:0;height:3px;border-radius:0 0 3px 3px;background:var(--terra);}
.jd-card:nth-child(2)::before{background:var(--sage);}.jd-card:nth-child(3)::before{background:var(--sand);}.jd-card:nth-child(4)::before{background:repeating-linear-gradient(90deg,var(--dim) 0 8px,transparent 8px 14px);}
.jd-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:2.2rem;}
.jd-tag{font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;color:var(--sage);border:1px solid var(--line);border-radius:100px;padding:.25rem .65rem;}
.jd-tag-dim{color:var(--dim);}
.jd-line-no{font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;color:var(--dim);}
.jd-card h3{font-size:1.6rem;margin-bottom:.8rem;}
.jd-card p{font-size:.92rem;line-height:1.55;color:var(--dim);flex:1;}
.jd-card-dist{margin-top:1.2rem;padding-top:1rem;border-top:1px solid var(--line2);font-size:.8rem;color:var(--dim);}
.jd-card-dist b{color:var(--ink);font-weight:500;}
.jd-projects-foot{max-width:760px;margin:5vh auto 0;font-size:1.08rem;line-height:1.75;color:#d9d3c9;}
.jd-projects-foot b{color:var(--ink);font-weight:500;}

/* ---------- DAME ---------- */
.jd-dame{max-width:1100px;margin:4vh auto 8vh;padding:0 6vw;display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-top:1px solid var(--line);}
.jd-dame-step{padding:1.8rem 1.4rem 1rem 0;border-right:1px solid var(--line2);}
.jd-dame-step:last-child{border-right:0;}
.jd-dame-step+.jd-dame-step{padding-left:1.4rem;}
.jd-dame-step b{display:block;font-family:'Switzer';font-weight:600;font-size:3.2rem;line-height:1;color:var(--terra);margin-bottom:1rem;letter-spacing:-.04em;}
.jd-dame-step h3{font-size:1.15rem;margin-bottom:.5rem;}
.jd-dame-step p{font-size:.9rem;color:var(--dim);line-height:1.5;}

/* ---------- INSET ---------- */
.jd-inset{position:relative;max-width:1100px;margin:8vh auto;padding:0;overflow:hidden;border-radius:14px;}
.jd-inset img{width:100%;aspect-ratio:16/9;object-fit:cover;}
.jd-inset::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(12,12,11,0) 55%,rgba(12,12,11,.8));}
.jd-inset figcaption{left:2rem;bottom:1.8rem;max-width:52ch;}
@media(min-width:861px){.jd-inset{width:calc(100% - 12vw);}}

/* ---------- FILM ---------- */
.jd-film{max-width:1200px;margin:12vh auto;padding:0 6vw;}
.jd-film-head{margin-bottom:3vh;}
.jd-film-frame{position:relative;border-radius:16px;overflow:hidden;border:1px solid var(--line);box-shadow:0 40px 120px rgba(0,0,0,.55);background:#000;}
.jd-film-frame video{display:block;width:100%;aspect-ratio:16/9;background:#000;}
.jd-film-note{margin-top:1rem;font-size:.85rem;color:var(--dim);max-width:60ch;}

/* ---------- CLOSE ---------- */
.jd-close{position:relative;min-height:92vh;display:flex;flex-direction:column;justify-content:center;overflow:hidden;margin-top:6vh;}
.jd-close-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(1.35) saturate(1.1);}
.jd-close::before{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,#0c0c0b 0%,rgba(12,12,11,.15) 30%,rgba(12,12,11,.25) 70%,#0c0c0b 100%);}
.jd-marquee{position:relative;z-index:2;overflow:hidden;white-space:nowrap;}
.jd-marquee-track{display:inline-flex;align-items:center;gap:4vw;animation:jdMarquee 48s linear infinite;}
.jd-marquee span{font-family:'Switzer','Hanken Grotesk';font-weight:500;font-size:clamp(3rem,9vw,8.5rem);letter-spacing:-.045em;color:transparent;-webkit-text-stroke:1px rgba(239,233,224,.55);}
.jd-marquee i{width:18px;height:18px;border-radius:50%;background:var(--terra);flex:none;}
@keyframes jdMarquee{to{transform:translateX(-50%);}}
.jd-close-copy::before{content:'';position:absolute;inset:-3rem -2rem;z-index:-1;background:radial-gradient(closest-side,rgba(12,12,11,.78),rgba(12,12,11,0));}
.jd-close-copy{position:relative;z-index:2;max-width:720px;margin:7vh auto 0;padding:0 6vw;font-size:1.25rem;line-height:1.6;color:#ddd6cb;cursor:pointer;}
.jd-close-copy b{color:var(--ink);font-weight:500;}

/* ---------- NEXT WALK + CREDIT ---------- */
.jd-next{margin:2rem 0 3rem;padding:1.6rem 1.8rem;border-radius:16px;border:1px dashed rgba(168,196,170,.45);background:rgba(168,196,170,.05);}
.jd-next-k{font-size:.68rem;letter-spacing:.24em;text-transform:uppercase;color:var(--sage);margin-bottom:.6rem;}
.jd-next p{margin:0;font-size:1rem;}
.jd-credit{margin-top:1.4rem;font-size:.8rem;color:var(--dim);}

/* ---------- POSTCARD (persistent place) ---------- */
.jd-postcard{position:fixed;left:1.4rem;bottom:1.4rem;z-index:800;display:flex;align-items:center;gap:.7rem;padding:.7rem 1rem .7rem .8rem;border-radius:14px;background:rgba(20,20,18,.78);backdrop-filter:blur(12px);border:1px solid var(--line);max-width:300px;opacity:0;transform:translateY(12px);transition:opacity .6s var(--ease),transform .6s var(--ease);}
.jd-postcard.on{opacity:1;transform:none;}
.jd-postcard svg{width:16px;height:16px;fill:var(--terra);flex:none;}
.jd-postcard small{display:block;font-size:.58rem;letter-spacing:.22em;text-transform:uppercase;color:var(--dim);}
.jd-postcard span{display:block;font-size:.82rem;color:var(--ink);line-height:1.3;transition:opacity .35s;}
.jd-postcard span.swap{opacity:0;}

/* ---------- RESPONSIVE ---------- */
@media(max-width:1000px){
  .jd-stops{grid-template-columns:1fr 1fr;}
  .jd-stops li:last-child{grid-column:1/-1;}
  .jd-route-svg{display:none;}
  .jd-stops{margin-top:0;}
  .jd-cards{grid-template-columns:1fr 1fr;}
  .jd-dame{grid-template-columns:1fr 1fr;}
  .jd-dame-step:nth-child(2){border-right:0;}
  .jd-dame-step:nth-child(3){padding-left:0;}
  .jd-dame-step:nth-child(n+3){border-top:1px solid var(--line2);}
}
@media(max-width:860px){
  .jd-hero{padding-bottom:9vh;}
  .jd-scroll{display:none;}
  .jd-bleed{height:62vh;margin:7vh 0;}
  .jd-bleed-tall{height:76vh;}
  .jd-pair{grid-template-columns:1fr;gap:1.2rem;}
  .jd-pair-b{transform:none;width:70%;margin-left:auto;}
  .jd-questions{padding:10vh 6vw;}
  .jd-questions li:nth-child(2){padding-left:4vw;}.jd-questions li:nth-child(3){padding-left:8vw;}
  .jd-postcard{left:.8rem;right:auto;bottom:.8rem;max-width:62vw;padding:.55rem .8rem .55rem .65rem;}
  .jd-postcard small{display:none;}
  .jd-inset{border-radius:0;}
  .jd-inset figcaption{left:6vw;}
  .jd-close-copy{font-size:1.08rem;}
}
@media(max-width:560px){
  .jd-stops,.jd-cards,.jd-dame{grid-template-columns:1fr;}
  .jd-dame-step{border-right:0!important;padding-left:0!important;border-top:1px solid var(--line2);}
  .jd-card{min-height:0;}
  .jd-card-top{margin-bottom:1.4rem;}
  .jd-title{font-size:clamp(2.4rem,11vw,3.4rem);}
}

/* ---------- REDUCED MOTION ---------- */
@media(prefers-reduced-motion:reduce){
  .jd-hero-media,.jd-title .jd-line,.jd-stand,.jd-hero .art-meta{animation:none;opacity:1;transform:none;}
  .reveal,.jd-stop{opacity:1;transform:none;transition:none;}
  .jd-mask{clip-path:none;transition:none;}
  .jd-marquee-track,.jd-scroll span{animation:none;}
  .jd-bleed video,.jd-hero-media video{display:none;}
}

/* Google renders very tall viewports: keep vh-sized sections sane and drop the fixed field */
@media(min-height:1600px){
  .jd-hero{min-height:900px;}
  .jd-close{min-height:820px;}
  .jd-questions{padding:140px 6vw;}
  .jd-bleed{height:56.25vw;max-height:900px;}
}
@media(min-height:2400px){.jd-contours,.jd-postcard{display:none;}}
