/* Homepage for the local scene atlas. */
.home-bar {
  border:0;
  min-height:76px;
  position:relative;
  z-index:1;
}
.home-bar .brand img { width:150px;height:auto }
@media(max-width:900px) { .home-bar .brand img {width:42px} }
.home-bar nav { align-items:center;gap:clamp(18px,2.4vw,34px); }
.home-bar nav a { font-size:13px;letter-spacing:.01em; }
.home-bar .home-contact {
  display:inline-flex;align-items:center;gap:17px;
  padding:9px 19px;border-radius:50px;
  color:var(--paper);background:var(--accent);
}
.home-bar .home-contact:hover {background:#9b5000;}
.bar-ai .ai-short {display:none;}
.bar-ai [aria-hidden] {font-size:12px;}
.home-hero {
  display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1fr);
  gap:clamp(20px,4vw,70px);align-items:center;
  padding:clamp(22px,3.6vw,54px) 0 clamp(32px,4.3vw,68px);
}
.home-eyebrow {
  display:flex;align-items:center;gap:10px;
  font-weight:700;font-size:13px;margin:0 0 16px;letter-spacing:.08em;
}
.home-eyebrow::before {content:"";height:5px;width:32px;border-radius:8px;background:var(--straw);}
.home-intro h1 {
  font-size:clamp(34px,4.1vw,62px);line-height:1.22;letter-spacing:-.058em;
  margin:0;font-weight:800;
}
.home-intro h1 span {display:block;}
.home-intro h1 em {position:relative;font-style:normal;z-index:0;}
.home-intro h1 em::after {
  content:"";position:absolute;z-index:-1;left:0;bottom:.045em;width:100%;height:.16em;
  border-radius:65% 25% 50% 28%;background:var(--straw);transform:rotate(-1.1deg);
}
.home-position {max-width:34em;margin:16px 0 6px;font-weight:700;font-size:16px;line-height:1.7;}
.home-lead {max-width:34em;margin:0 0 17px;font-size:14px;line-height:1.7;color:#46536b;}
.home-map-link {
  display:inline-flex;gap:22px;align-items:center;padding:9px 10px 9px 20px;
  background:var(--ink);border-radius:100px;color:var(--paper);text-decoration:none;font-size:14px;font-weight:700;
}
.home-map-link span {display:grid;place-items:center;width:26px;height:26px;border-radius:50%;color:var(--ink);background:var(--straw);line-height:1;}
.home-map-link:hover span {transform:translateY(2px);}
.home-map-art {
  position:relative;isolation:isolate;display:grid;place-items:center;
  min-width:0;aspect-ratio:1.81;
}
.home-map-art::before {
  content:"";position:absolute;inset:0 -1% 0 2%;z-index:-2;
  border-radius:62% 39% 47% 55% / 51% 51% 49% 47%;
  background:radial-gradient(ellipse at 22% 26%,#fff4c2 0%,#ffe875 56%,#f9d958 100%);
  transform:rotate(-3deg);
}
.home-map-art::after {
  content:"";position:absolute;inset:20% -1% 6% 5%;border-radius:48% 58% 54% 53%;
  border-bottom:1px solid #ddc048;border-right:1px solid #ddc048;transform:rotate(5deg);z-index:-1;
}
.atlas-paper {
  width:90%;display:grid;grid-template-columns:35% 65%;
  aspect-ratio:2.15;transform:perspective(900px) rotateY(-9deg) rotateZ(-6deg);
  filter:drop-shadow(2px 4px 1px #7861242e) drop-shadow(0 16px 12px #58460f32);
}
.atlas-cover {
  display:flex;flex-direction:column;justify-content:space-between;min-width:0;position:relative;isolation:isolate;
  background:#fffefb;border-radius:3px 0 0 4px;overflow:hidden;
  padding:13% 11% 10%;line-height:1.2;transform-origin:right;
}
.atlas-cover::after {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(93deg,transparent 48%,#413f3512 96%,#302c2332);
}
.atlas-cover-title {font-weight:800;font-size:clamp(14px,1.65vw,24px);letter-spacing:.04em;z-index:1;}
.atlas-cover-art {
  width:141%;align-self:center;aspect-ratio:2.42;overflow:hidden;
  background:url('home-brand-collage.webp') center / auto 114%;mix-blend-mode:multiply;
}
.atlas-cover-art img {display:block;width:100%;height:auto;}
.atlas-cover-count {display:flex;align-items:baseline;gap:4px;font-size:11px;font-weight:700;}
.atlas-cover-count b {font-size:clamp(24px,3.1vw,45px);letter-spacing:-.08em;font-weight:800;line-height:.94;}
.home-map-art .route-art {
  aspect-ratio:auto;max-height:none;height:100%;width:100%;position:relative;
  border-radius:0 4px 3px 0;background:var(--cream);overflow:visible;
}
.home-map-art .route-art canvas {border-radius:inherit;}
.home-map-art .route-art::after {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,#6d633633,transparent 13%,transparent 45%,#454c461c 50%,#fff7cf7a 50.5%,transparent 65%);
}
.home-map-art .route-pin {
  z-index:1;font-size:clamp(10px,.88vw,13px);padding:3px 9px;
  box-shadow:0 2px 1px #24314a38;border:1px solid #202c46ba;line-height:1.4;
}
.home-picks {
  position:relative;padding:30px 0 44px;background:#fff6c8;
  background:linear-gradient(180deg,#fff5bd,#fff9df);
}
.home-picks::before {
  content:"";position:absolute;bottom:calc(100% - 1px);left:0;width:100%;height:9px;
  background:#fff5bd;
  clip-path:shape(from 0% 50%,curve to 12.5% 50% with 4.16% 0% / 8.33% 0%,smooth to 25% 50% with 20.83% 100%,smooth to 37.5% 50% with 33.33% 0%,smooth to 50% 50% with 45.83% 100%,smooth to 62.5% 50% with 58.33% 0%,smooth to 75% 50% with 70.83% 100%,smooth to 87.5% 50% with 83.33% 0%,smooth to 100% 50% with 95.83% 100%,vline to 100%,hline to 0%,close);
}
.home-picks-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;}
.home-picks-head h2 {margin:0;font-size:clamp(21px,2.1vw,29px);letter-spacing:-.04em;line-height:1.4;}
.home-picks-head>a {font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:9px;text-underline-offset:4px;}
#home-scenes {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.5vw,20px);}
@media(min-width:701px){#home-scenes:has(.home-scene[hidden]){grid-template-columns:repeat(3,minmax(0,1fr));}}
.home-scene {
  display:flex;min-width:0;flex-direction:column;overflow:hidden;
  border-radius:10px 28px 10px 10px;text-decoration:none;background:var(--paper);
  box-shadow:0 2px 3px #34310f0a,0 5px 16px #443f2110;
  transition:transform .18s ease,box-shadow .18s ease;
}
.home-scene:hover {transform:translateY(-4px);box-shadow:0 8px 22px #443f2120;}
.home-scene-art {width:100%;aspect-ratio:1.87;background:#f4f0de;display:block;overflow:hidden;}
.home-scene-art img {width:100%;height:100%;display:block;object-fit:cover;}
.home-scene-text {display:flex;flex-direction:column;position:relative;padding:15px 16px 18px;gap:8px;flex:1;}
.home-scene-meta {display:flex;align-items:baseline;gap:9px;font-size:12px;font-weight:700;color:#505b6b;line-height:1.3;}
.home-id {font:bold 11px/1.2 ui-monospace,monospace;letter-spacing:.04em;}
.home-id::after {content:"";display:inline-block;height:9px;border-right:1px solid #b4b5a7;margin-left:9px;}
.home-scene-question {display:block;font-size:clamp(16px,1.38vw,20px);font-weight:700;line-height:1.52;letter-spacing:-.035em;margin-right:12px;}
.home-scene-open {
  position:absolute;right:11px;top:10px;display:grid;place-items:center;
  width:22px;height:22px;background:#f5f4ee;border-radius:50%;color:var(--ink);font-size:14px;line-height:1;font-weight:700;
}
.home-scene:hover .home-scene-question {text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;}
#scene-reader {
  padding:0;width:min(720px,calc(100% - 32px));max-height:min(86dvh,880px);overflow:auto;
  border:0;border-radius:16px 34px 16px 16px;background:var(--paper);overscroll-behavior:contain;
}
#scene-reader[open] {display:flex;flex-direction:column;overflow:hidden;}
#scene-reader .reader-head,#scene-reader .reader-actions {flex:none;}
#scene-reader .reader-body {min-height:0;overflow:auto;overscroll-behavior:contain;}
#scene-reader .reader-head {position:relative;padding:24px 64px 20px 28px;background:var(--cream);}
#scene-reader .reader-meta {font-size:13px;font-weight:bold;color:var(--muted);margin:0 0 6px;}
#reader-title {font-size:clamp(21px,2.5vw,31px);line-height:1.45;letter-spacing:-.04em;}
#reader-close {position:absolute;right:16px;top:14px;width:40px;height:40px;border-radius:50%;border:1px solid #c8c4a8;background:var(--paper);font-size:20px;}
#scene-reader .reader-body {padding:18px 28px;}
#scene-reader .reader-offer {font-weight:700;}
#scene-reader dl {margin:16px 0;display:grid;gap:16px;}
#scene-reader dt {font-weight:750;font-size:13px;color:#4b5770;margin:0 0 3px;}
#scene-reader dd {margin:0;font-size:15px;line-height:1.85;}
#scene-reader .reader-actions {display:flex;gap:9px 14px;align-items:center;flex-wrap:wrap;padding:12px 28px 16px;position:sticky;bottom:0;background:var(--paper);border-top:1px solid var(--edge);}
#reader-select, #reader-consult {border-radius:22px;padding:8px 15px;font-weight:700;font-size:14px;text-decoration:none;}
#reader-select {border:1px solid var(--ink);color:var(--ink);background:white;}
#reader-select[aria-pressed=true]{background:var(--cream);}
#reader-consult {background:var(--accent);color:var(--paper);border:1px solid var(--accent);}
#reader-other {border:0;padding:7px 0;background:transparent;font-size:14px;text-decoration:underline;text-underline-offset:3px;font-weight:700;}
#reader-share {font-size:13px;color:var(--muted);}
#reader-share-status:empty {display:none;}
.map-heading-row {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 15px;margin-bottom:20px;}
.map-heading-row .map-heading {margin:0;}
.map-heading-row a,.scene-ai-link {font-size:14px;text-underline-offset:4px;}
.scene-ai-link {display:inline-block;margin:5px 0 12px;font-weight:700;}
.work-ai {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:clamp(18px,5vw,70px);align-items:center;background:var(--ink);color:var(--paper);border-radius:12px 48px 12px 12px;padding:clamp(22px,3.4vw,46px);margin:20px auto 40px;scroll-margin-top:16px;}
.work-ai h2 {margin:0 0 10px;font-size:clamp(21px,2.3vw,31px);line-height:1.45;}
.work-ai p {margin:0;font-size:15px;line-height:1.85;}
.work-ai-options {display:grid;gap:9px;}
.work-ai-options a {display:flex;justify-content:space-between;gap:.8em;color:var(--paper);font-size:14px;line-height:1.6;text-underline-offset:4px;}
.work-ai-options a span {color:var(--straw);}
@media(max-width:860px) {
  .home-bar {min-height:65px;}
  .home-hero {gap:14px;}
  .home-map-art {aspect-ratio:1.52;}
  #home-scenes {gap:10px;}
  .home-scene-text {padding:12px 12px 14px;}
  .home-scene-question {font-size:15px;margin:0;}
}
@media(max-width:700px) {
  .home-hero {position:relative;display:block;padding-block:23px 32px;}
  .home-intro {position:relative;z-index:1;}
  .home-eyebrow {font-size:12px;margin-bottom:12px;}
  .home-intro h1 {font-size:clamp(31px,6.5vw,43px);line-height:1.26;}
  .home-map-art {position:absolute;width:35%;right:0;top:33px;aspect-ratio:1.55;}
  .home-map-art .route-pin {display:none;}
  .home-map-art .atlas-cover {padding:13% 8%;}
  .atlas-cover-title {font-size:clamp(6px,1.3vw,10px);}
  .atlas-cover-count {font-size:6px;gap:2px;}
  .atlas-cover-count b {font-size:clamp(13px,3.4vw,20px);}
  .home-position {margin:13px 0 5px;font-size:15px;}
  .home-lead {font-size:14px;max-width:34em;margin:0 0 13px;}
  .work-ai {grid-template-columns:1fr;}
  .map-heading-row {margin-bottom:14px;}
  .home-map-link {font-size:13px;padding:6px 7px 6px 14px;gap:13px;}
  .home-bar nav {gap:15px;}
  .home-bar nav a {font-size:12px;}
  .home-bar .bar-map,.bar-ai .ai-full {display:none;}
  .bar-ai .ai-short {display:inline;}
  .home-bar .home-contact {padding:7px 12px;gap:8px;}
  .home-picks {padding:20px 0 26px;}
  .home-picks-head {margin-bottom:12px;}
  .home-picks-head>a {font-size:12px;}
  #home-scenes {grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
  .home-scene {border-radius:8px 18px 8px 8px;}
  .home-scene-text {gap:6px;}
  .home-scene-meta {font-size:11px;gap:6px;}
  #scene-reader .reader-head {padding:18px 56px 16px 17px;}
  #scene-reader .reader-body {padding:8px 17px;}
  #scene-reader .reader-actions {padding:10px 13px;}
  #scene-reader .reader-actions {display:grid;grid-template-columns:auto auto;justify-content:start;gap:3px 12px;}
  #reader-other,#reader-share {justify-self:start;}
  #reader-share-status {grid-column:1/-1;}
}
@media(max-width:440px) {
  .home-map-art {width:30%;top:31px;right:-1%;}
  .home-intro h1 {font-size:clamp(27px,7.55vw,33px);}
  .home-scene-text {padding:10px 10px 13px;}
  .home-scene-question {font-size:15px;}
  .home-scene-open {top:11px;right:10px;}
}
@media(max-width:365px) {
  .home-map-art {display:none;}
  .home-bar nav {gap:9px;}
  .home-bar .home-contact span {display:none;}
  #reader-select,#reader-consult {padding:7px 10px;font-size:13px;}
}
@media(max-height:500px) and (orientation:landscape) {
  #scene-reader[open] {display:block;overflow:auto;max-height:94dvh;}
  #scene-reader .reader-body {overflow:visible;}
}
@media(prefers-reduced-motion:reduce) {
  .home-scene,.home-map-link span {transition:none;}
  .home-scene:hover,.home-map-link:hover span {transform:none;}
}
@media print {
  .home-picks,.home-hero,.home-bar,#scene-reader {display:none!important;}
}
/* Keep each featured photograph inside its real, filterable scene card. */
.scene-slot [data-photo-reader] .card-art {
  overflow: hidden;
  isolation: isolate;
}
.scene-slot [data-photo-reader] .scene-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}
.scene-slot [data-photo-reader] .id {
  z-index: 1;
  padding: .15em .5em;
  border-radius: .35em;
  background: #fffdf4;
}
@media (min-width: 581px) {
  .result-pane .scene-slot details.scene:not([open]) [data-photo-reader] .card-art {
    min-height: 134px;
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .scene-photo { transition: transform .35s ease-out; }
  [data-photo-reader]:hover .scene-photo { transform: scale(1.045); }
}
