/* Exploratory compositions; existing approved card geometry and JOALI foundations. */
.postcard-experiment { padding:72px 0; border-top:1px solid #eee; overflow:hidden; }
.experiment-inner { max-width:1440px; margin:auto; padding:0 40px; }
.experiment-label { color:var(--terracotta); font-size:14px; line-height:20px; margin-bottom:20px; }
.experiment-intro { max-width:600px; margin-bottom:40px; }
.experiment-intro h2 { font-size:28px; line-height:40px; font-weight:400; letter-spacing:2.8px; text-transform:uppercase; color:var(--terracotta); margin:0 0 12px; }
.experiment-intro p { font-size:18px; line-height:24px; }
.postcard-stage { position:relative; }
.postcard-track { position:relative; display:grid; grid-auto-flow:column; grid-auto-columns:400px; gap:40px; list-style:none; padding:24px 12px; margin:0 -12px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding:12px; scrollbar-width:none; }
.postcard-track::-webkit-scrollbar {display:none;}
.postcard-track li {scroll-snap-align:start;}
.postcard { position:relative; width:400px; height:100px; padding:20px 20px 20px 0; display:flex; gap:20px; text-align:left; background:#fff; border:0; box-shadow:4px 6px 16px rgba(0,30,97,.10); color:var(--primary-navy); font-family:var(--font-family); cursor:pointer; transition:transform .25s,box-shadow .25s; }
.postcard img { width:60px; height:60px; object-fit:cover; flex-shrink:0; }
.postcard-copy {min-width:0;flex:1;}
.postcard-title {display:block;font-size:14px;font-weight:700;line-height:20px;margin-bottom:4px;}
.postcard-body {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:14px;line-height:18px;}
.postcard-reveal {position:absolute;right:8px;top:4px;color:var(--terracotta);font-size:16px;}
.postcard:hover {transform:translateY(-4px);box-shadow:4px 10px 22px rgba(0,30,97,.14);}
.postcard[aria-expanded=true] {box-shadow:0 0 0 1px var(--terracotta),4px 10px 22px rgba(0,30,97,.12);}
.postcard:focus-visible,.postcard-track:focus-visible,.detail-close:focus-visible {outline:2px solid var(--terracotta);outline-offset:4px;}
.postcard-toolbar {display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:24px;}
.postcard-toolbar p {font-size:14px;color:var(--terracotta);}
.postcard-nav {display:flex;gap:16px;}
.shore .postcard-stage {padding:40px 24px; margin:0 -24px; isolation:isolate;}
.shore .postcard-stage:before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(247,244,238,.90),rgba(255,255,255,.70)),url('assets/feature-1.jpg') center 48%/cover;}
.shore .postcard-track {padding-block:28px;}
.album {background:#F7F4EE;}
.album .postcard-stage {padding:32px 24px;background:#fff;box-shadow:0 8px 40px rgba(0,30,97,.06);}
.album .postcard-stage:before {content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;background:linear-gradient(transparent,#ddd5c7,transparent);}
.album .postcard-track {grid-template-rows:repeat(2,100px);row-gap:40px;padding-block:16px;}
.album .postcard {box-shadow:3px 6px 14px rgba(0,30,97,.08);}
.atlas .postcard-stage {padding:48px 0;}
.island-sketch {position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#a85741;stroke-width:1;opacity:.12;pointer-events:none;}
.atlas .postcard-track li:nth-child(even) {margin-top:32px;}
.atlas .postcard-track {padding-bottom:40px;}
.postcard-detail {position:relative;display:flex;gap:28px;align-items:center;margin-top:32px;padding:24px 48px 24px 24px;background:#fff;border-top:1px solid rgba(168,87,65,.22);box-shadow:0 6px 24px rgba(0,30,97,.06);}
.postcard-detail[hidden] {display:none;}
.postcard-detail img {width:120px;height:120px;object-fit:cover;}
.postcard-detail h3 {font-size:18px;line-height:24px;margin:4px 0 12px;}
.detail-eyebrow {font-size:12px;color:var(--terracotta);text-transform:uppercase;letter-spacing:1px;}
.detail-body {font-size:18px;line-height:24px;max-width:650px;}
.detail-close {position:absolute;right:16px;top:12px;border:0;background:none;color:var(--terracotta);font-size:24px;cursor:pointer;width:32px;height:32px;}
@media(max-width:599px){.experiment-inner{padding:0 24px}.experiment-intro h2{font-size:20px;line-height:28px;letter-spacing:2px}.postcard-detail{align-items:flex-start;gap:16px}.postcard-detail img{width:60px;height:60px}.detail-body{font-size:16px;line-height:22px}.album .postcard-stage{padding-inline:12px}.postcard-toolbar p{max-width:150px}}
@media(prefers-reduced-motion:reduce){.postcard{transition:none}.postcard:hover{transform:none}}

/* Review: independent downward expansion, shown only for truncated copy. */
.postcard-track {align-items:start;}
.postcard {cursor:default;align-items:flex-start;}
.postcard:hover {transform:none;box-shadow:4px 6px 16px rgba(0,30,97,.10);}
.postcard.is-expanded {height:auto;min-height:100px;box-shadow:4px 8px 20px rgba(0,30,97,.12);}
.postcard.is-expanded .postcard-body {display:block;overflow:visible;-webkit-line-clamp:unset;}
.postcard-toggle {position:absolute;right:4px;bottom:2px;top:auto;width:28px;height:28px;padding:0;border:0;background:transparent;color:var(--terracotta);font:20px/28px var(--font-family);cursor:pointer;}
.postcard-toggle[hidden] {display:none;}
.postcard-toggle:hover {background:#F7F4EE;}
.postcard-toggle:focus-visible {outline:2px solid var(--terracotta);outline-offset:1px;}
.postcard:has(.postcard-toggle:not([hidden])) .postcard-body {padding-right:12px;}
.shore .postcard-stage:before {background:linear-gradient(90deg,rgba(247,244,238,.48),rgba(255,255,255,.30)),url('assets/joali-shore-background.webp') center 50%/cover;}
.atlas .island-sketch {width:140%;max-width:none;left:-15%;transform:translateX(var(--wave-offset,0px));will-change:transform;}
@media(prefers-reduced-motion:reduce){.atlas .island-sketch{transform:none;will-change:auto;}}
/* Crop below the villas, concentrating on the sandbank and shallow water. */
.shore .postcard-stage:before {background-size:auto,200% auto;background-position:center,left 70%;background-repeat:no-repeat;}
/* The shoreline canvas remains fixed as individual cards unfold. */
.shore .postcard-stage {min-height:280px;}
.shore .postcard-stage:before {bottom:auto;height:280px;}
.shore .postcard-track {min-height:200px;}
/* A restrained active-card outline accompanies the expanded state. */
.postcard.is-expanded {
 box-shadow:0 0 0 1px rgba(168,87,65,.40),4px 8px 20px rgba(0,30,97,.10);
}
/* Compact navigation sits between the introduction and card canvas. */
.experiment-intro {margin-bottom:20px;}
.postcard-toolbar {justify-content:flex-end;margin:0 0 20px;}
.postcard-count {font-size:14px;line-height:18px;min-width:44px;text-align:center;}
.postcard-play {border:1px solid rgba(168,87,65,.45);background:white;color:var(--terracotta);font:14px/18px var(--font-family);padding:10px 16px;cursor:pointer;}
.postcard-play:focus-visible {outline:2px solid var(--terracotta);outline-offset:3px;}
.postcard.is-active {box-shadow:0 0 0 1px rgba(168,87,65,.40),4px 8px 20px rgba(0,30,97,.10);}
.postcard.is-expanded:not(.is-active) {box-shadow:4px 6px 16px rgba(0,30,97,.10);}
.atlas .postcard-stage {padding:24px 0;}
.postcard-experiment {padding-block:56px;}
/* Compact arrow/count grouping inspired by the JOALI popup carousel. */
.postcard-nav {gap:12px;}
.postcard-nav .carousel-arrow {width:32px;height:32px;}
.postcard-nav .carousel-arrow svg {width:16px;height:16px;}
.postcard-count {min-width:38px;}
.postcard-play {width:32px;height:32px;border:1px solid rgba(168,87,65,.45);border-radius:50%;padding:0;display:grid;place-items:center;}
.postcard-play svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;}
.postcard-play:hover {background:#F7F4EE;}

/* Balance the shoreline space above and below the postcard row. */
.shore .postcard-track {align-content:center;}

/* Shoreline review: flat cards, with only the active-card outline. */
.shore .postcard, .shore .postcard:hover, .shore .postcard.is-expanded:not(.is-active) {box-shadow:none;}
.shore .postcard.is-active, .shore .postcard.is-expanded.is-active {box-shadow:0 0 0 1px rgba(168,87,65,.40);}
