/* Dreamliner Construction — project page template.
   Structure inherited from the Jacob Construction /portfolio/ template
   (docs/interventions/jacob-project-pages/deploy/project.css), itself inherited from
   the Atticare /project/ template (2026-08-13 spec). Palette taken from
   mydreamliner.com's own compiled CSS (assets/styles-*.css), not guessed:
   background #000, card #0b0b0b, gold #eabf60, muted-fg #d3d4d6, border #ffffff1a.
   Fonts Montserrat 600/700/800 + Open Sans 400/600, also from the live site's <head>. */
:root{
  --bg:#000; --card:#0b0b0b; --fg:#fff; --muted:#d3d4d6;
  --border:#ffffff1a; --gold:#eabf60; --gold-dk:#c79a3a;
  --gold-grad:linear-gradient(180deg,#f7e3a8 0%,#eabf60 45%,#c79a3a 100%);
}
*{box-sizing:border-box; margin:0; padding:0}
html{scroll-behavior:smooth}
body{font-family:'Open Sans',sans-serif; font-size:18px; line-height:1.65; color:var(--fg); background:var(--bg)}
h1,h2,h3{font-family:'Montserrat',sans-serif; line-height:1.25; font-weight:700}
a{color:var(--gold)}
img{max-width:100%; display:block}

/* prototype banner — this is a sample, and the page must say so out loud */
.ribbon{background:var(--gold); color:#1a1300; font-size:14.5px; padding:10px 16px; text-align:center; font-weight:600}
.ribbon a{color:#1a1300}

.wrap{max-width:1060px; margin:0 auto; padding:0 20px}

.crumbs{font-size:14px; color:var(--muted); padding:22px 0 0}
.crumbs a{color:var(--muted); text-decoration:none}
.crumbs a:hover{color:var(--gold)}

.eyebrow{font-family:'Montserrat'; font-weight:700; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--gold); margin:26px 0 10px}
h1{font-size:clamp(28px,4.5vw,42px); font-weight:700; max-width:22ch}
.lede{font-size:20px; color:var(--muted); margin:16px 0 0; max-width:58ch}

.hero{display:grid; gap:28px; margin:34px 0 0}
@media(min-width:900px){ .hero{grid-template-columns:minmax(0,1fr) 360px; align-items:start} }

/* signature element: the job record */
.job-record{background:var(--card); border:1px solid var(--border); border-top:4px solid var(--gold); padding:26px 24px 10px; border-radius:2px}
.job-record h2{font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:700; display:flex; justify-content:space-between; align-items:baseline}
.job-record h2 .ref{font-family:monospace; font-size:12px; color:var(--gold); text-transform:none; letter-spacing:0}
.job-record dl{margin:14px 0 0}
.job-record .row{display:grid; grid-template-columns:minmax(88px,38%) 1fr; gap:10px 14px; align-items:start; padding:11px 0; border-bottom:1px solid var(--border)}
.job-record .row:last-child{border-bottom:0}
.job-record dt{font-size:12px; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; padding-top:3px}
.job-record dd{text-align:left; font-weight:500; font-size:16px; line-height:1.45; overflow-wrap:anywhere; color:var(--fg)}
.job-record dd .gap{color:var(--gold); font-style:italic; font-weight:600}
.stamp{display:inline-block; margin:16px 0 18px; padding:6px 12px; border:2px solid var(--gold); color:var(--gold); font-family:'Montserrat'; font-weight:700; font-size:12px; letter-spacing:.1em; text-transform:uppercase; transform:rotate(-2deg)}
.finenote{font-size:13.5px; color:var(--muted); margin:6px 0 16px; line-height:1.5}

.cta-inline{margin:18px 0 0; border:1px solid var(--border); border-left:4px solid var(--gold); background:var(--card); padding:18px 20px}
.cta-inline p{font-size:16px; margin:0 0 12px; color:var(--muted)}
.cta-inline .buttons{display:flex; flex-wrap:wrap; gap:10px}
.cta-inline .btn{font-size:14.5px; padding:11px 20px}

/* aspect-ratio on a percentage-width <img> inside a CSS Grid track silently fails
   in Chrome (falls back to the image's raw natural pixel height, only width gets
   clamped — a squished/stretched photo). The ratio box has to be a plain element
   (.frame), not the img itself, or the figcaption below it gets clipped too —
   markup is <figure><div class="frame"><img></div><figcaption>. */
figure.after{border:1px solid var(--border)}
figure.after .frame{position:relative; width:100%; aspect-ratio:4/3; overflow:hidden}
figure.after .frame img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
figcaption{font-size:14px; color:var(--muted); padding:10px 14px; background:var(--card)}
figcaption .ph{color:var(--gold); font-weight:600}

.ph-box{border:1.5px dashed #4a4632; background:repeating-linear-gradient(45deg,#0b0b0b,#0b0b0b 12px,#111 12px,#111 24px); aspect-ratio:4/3; display:flex; align-items:center; justify-content:center; text-align:center; color:var(--muted); font-size:14px; padding:20px; border-radius:2px}
.sample{border-bottom:2px dotted var(--gold); cursor:help}

section{margin:56px 0}
.sec-label{font-family:'Montserrat'; font-weight:700; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--gold); margin-bottom:8px}
h2.sec-title{font-size:clamp(22px,3vw,28px); margin-bottom:16px}
section p{max-width:64ch; margin-bottom:14px; color:var(--muted)}

.steps{counter-reset:step; margin-top:10px; display:grid; gap:0}
.step{display:grid; grid-template-columns:44px 1fr; gap:18px; padding:20px 0; border-top:1px solid var(--border)}
.step:last-child{border-bottom:1px solid var(--border)}
.step::before{counter-increment:step; content:counter(step,decimal-leading-zero); font-family:'Montserrat'; font-weight:800; font-size:20px; color:var(--gold); padding-top:2px}
.step h3{font-size:18px; margin-bottom:4px; color:var(--fg)}
.step p{font-size:16px; color:var(--muted); margin:0}

.results{display:grid; gap:14px; margin-top:18px}
@media(min-width:700px){ .results{grid-template-columns:repeat(3,1fr)} }
.result{background:var(--card); border:1px solid var(--border); border-left:3px solid var(--gold); padding:18px}
.result .big{font-family:'Montserrat'; font-weight:700; font-size:22px; color:var(--fg)}
.result .small{font-size:14px; color:var(--muted); margin-top:4px}

.gallery{display:grid; gap:14px; margin-top:18px}
@media(min-width:700px){ .gallery{grid-template-columns:1fr 1fr} }
.gallery figure{border:1px solid var(--border)}
.gallery figure .frame{position:relative; width:100%; aspect-ratio:4/3; overflow:hidden}
.gallery figure .frame img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.gallery figcaption{font-size:13px}

#map{height:380px; border:1px solid var(--border); margin-top:18px; z-index:0; border-radius:2px}
.nearby{display:grid; gap:12px; margin-top:16px}
@media(min-width:700px){ .nearby{grid-template-columns:1fr 1fr} }
.nearby a{display:block; border:1px solid var(--border); padding:14px 16px; text-decoration:none; color:var(--fg); font-size:16px; border-radius:2px}
.nearby a:hover{border-color:var(--gold)}
.nearby .meta{font-size:13px; color:var(--muted)}
.volume{margin-top:16px; font-size:16px; color:var(--muted)}

.faq details{border-top:1px solid var(--border); padding:16px 0}
.faq details:last-child{border-bottom:1px solid var(--border)}
.faq summary{font-family:'Montserrat'; font-weight:600; font-size:18px; cursor:pointer; color:var(--fg)}
.faq p{margin-top:10px; color:var(--muted); font-size:16px}
.faq .asked{font-size:13px; color:var(--gold); margin-top:8px; font-style:italic}

.cta{background:var(--card); color:#fff; padding:46px 0; margin:64px 0 0; border-top:1px solid var(--border)}
.cta h2{font-size:clamp(24px,3vw,32px); max-width:24ch}
.cta p{color:var(--muted); margin:12px 0 22px; max-width:52ch}
.cta .buttons{display:flex; flex-wrap:wrap; gap:14px}
.btn{display:inline-block; font-family:'Montserrat'; font-weight:700; font-size:16px; text-decoration:none; padding:15px 28px; border-radius:2px}
.btn-gold{background:var(--gold-grad); color:#1a1300}
.btn-ghost{border:1.5px solid #4a4a4a; color:#fff}
.cta-inline .btn-ghost{border-color:var(--border); color:var(--fg)}

.related{padding:36px 0 56px; background:var(--card); border-top:1px solid var(--border)}
.related h2{font-size:19px; margin-bottom:14px}
.related ul{list-style:none; display:grid; gap:8px}
.related a{font-size:16px}

.legend{font-size:13px; color:var(--muted); margin-top:26px}
.trust{font-size:14px; color:var(--muted); margin-top:26px; border-top:1px solid var(--border); padding-top:18px}

:focus-visible{outline:2px solid var(--gold); outline-offset:2px}
@media(prefers-reduced-motion:reduce){ html{scroll-behavior:auto} }

.guides{margin-top:26px; border-top:1px solid var(--border); padding-top:18px}
.guides-h{font-family:'Montserrat'; font-weight:700; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--gold); margin-bottom:10px}
.guides ul{list-style:none; display:grid; gap:8px}
.guides li a{font-size:16px}

/* ── index / map hub ───────────────────────────────────────────── */
.hub-head{padding:26px 0 0}
h1.hub-title{font-size:clamp(24px,3.4vw,34px); margin-bottom:16px; max-width:none}
.hub-head #map{height:460px; margin-top:0}
.stats{display:grid; gap:14px; margin:26px 0 0}
@media(min-width:700px){ .stats{grid-template-columns:repeat(3,1fr)} }
.stat{background:var(--card); border:1px solid var(--border); border-top:3px solid var(--gold); padding:20px}
.stat .n{font-family:'Montserrat'; font-weight:700; font-size:30px; color:var(--gold)}
.stat .l{font-size:14px; color:var(--muted); margin-top:2px}

/* THE CRAWLABLE LIST — real anchors in the served HTML, before any JS runs.
   The map is drawn on top of this, never instead of it. */
.project-list{list-style:none; display:grid; gap:16px; margin-top:22px}
@media(min-width:800px){ .project-list{grid-template-columns:1fr 1fr} }
.project-list li{border:1px solid var(--border); background:var(--card)}
.project-list a.card{display:grid; grid-template-columns:132px 1fr; text-decoration:none; color:var(--fg)}
.project-list a.card:hover{border-color:var(--gold)}
.project-list img,.project-list .thumb-ph{width:132px; height:100%; min-height:118px; object-fit:cover}
.project-list .thumb-ph{display:flex; align-items:center; justify-content:center; background:repeating-linear-gradient(45deg,#0b0b0b,#0b0b0b 12px,#111 12px,#111 24px); color:var(--muted); font-size:11px; text-align:center; padding:8px}
.project-list .body{padding:14px 16px}
.project-list .t{display:block; font-family:'Montserrat'; font-weight:600; font-size:16.5px; line-height:1.35}
.project-list .m{display:block; font-size:13px; color:var(--muted); margin-top:6px}
.project-list .tags{margin-top:8px; display:flex; flex-wrap:wrap; gap:6px}
.project-list .tag{font-size:11px; letter-spacing:.04em; text-transform:uppercase; background:var(--bg); border:1px solid var(--border); color:var(--muted); padding:3px 8px}
