/* vespercontinuum.com · Vesper for Residences. The home page's grammar (site.css: the told-in-full scenes .rv, openers on
   photographs, full-bleed stages, the display serif) carried to one invented community, Juniper Row, and one house in it,
   no. 12: move-in night, the house that knows itself, the first week, the house that looks after itself, the neighborhood,
   the builder's console, and who owns what. Loaded after for.css. */

/* ——— the opening: the same photograph, her display face */
.res-hero .words > * { max-width: 900px; }
.res-hero h1 { font-family: var(--font-display); font-weight: var(--w-regular); font-size: clamp(50px, 3.4vw + 22px, 116px); line-height: 1; letter-spacing: -.008em; text-shadow: 0 2px 40px rgba(0, 0, 0, .45); max-width: 12.5em; }
.res-hero .lede { max-width: 36em; text-shadow: 0 1px 20px rgba(0, 0, 0, .6); }
.res-hero .eyebrow { margin-bottom: 26px; }
.res-hero .pill { background: rgba(10, 9, 8, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ——— the chapter column stays out of the opening (residences.html, last script) */
.chapters.res-away { opacity: 0; pointer-events: none; }

/* ——— the scenes told in full: their words a touch wider here, and a phone keeps them in a column */
.res-rv .rv-w { width: min(33rem, 40vw); }
#move-in .rv-shot[data-on="0"] > i { background-position: 40% center; }
@media (min-width: 761px) { #move-in { height: 320vh; } #care { height: 460vh; } }

/* her ring on a photograph, as she marks things at home: a bright ring inside a faint one, drawn once when the picture arrives */
.res-ring { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); transform: translate(-50%, -50%); pointer-events: none; }
.res-ring::before, .res-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.res-ring::before { box-shadow: 0 0 0 1.6px rgba(239, 220, 170, .95), 0 0 18px 2px rgba(239, 220, 170, .35), inset 0 0 18px rgba(239, 220, 170, .18);
  clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(.45, .1, .3, 1) 1s; }
.res-ring::after { inset: -22%; box-shadow: 0 0 0 1px rgba(239, 220, 170, .28); opacity: 0; transition: opacity 1s ease 1.8s; }
.rv-shot.show .res-ring::before { clip-path: inset(0 0 0 0); }
.rv-shot.show .res-ring::after { opacity: 1; }
.res-ring.small::before { transition-delay: 1.6s; }
.res-ring.small::after { transition-delay: 2.4s; inset: -40%; }

/* her cards over the photographs: the moisture she watched, and the storm */
.res-rv .watch { pointer-events: auto; }
.res-trace .trace { display: block; width: 100%; height: 108px; margin: 18px 0 0; overflow: visible; }
.res-trace .trace .grid { stroke: rgba(255, 248, 235, .07); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.res-trace .trace .limit { stroke: rgba(226, 194, 126, .5); stroke-width: 1; stroke-dasharray: 4 4; fill: none; vector-effect: non-scaling-stroke; }
.res-trace .trace .area { fill: url(#none); fill: rgba(170, 214, 232, .08); }
.res-trace .trace .line { stroke: #aad6e8; stroke-width: 1.8; fill: none; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.res-trace.show .trace .line { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(.45, .1, .3, 1) .6s; }
.res-trace .trace path.line { stroke-dasharray: 600; stroke-dashoffset: 600; }
.res-trace.show .trace path.line { stroke-dashoffset: 0; }
.res-trace .trace circle { fill: #e2c27e; filter: drop-shadow(0 0 6px rgba(226, 194, 126, .9)); opacity: 0; transition: opacity .6s ease 2.6s; }
.res-trace.show .trace circle { opacity: 1; }
.trace-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: var(--t-caption); color: var(--ink-4); font-variant-numeric: tabular-nums; }
.res-trace dl div { grid-template-columns: 7.6em minmax(0, 1fr); }
.res-storm { top: auto; bottom: 9vh; margin: 0; width: min(430px, 33vw); }
.res-storm .chk { list-style: none; margin: 16px 0 0; padding: 0; }
.res-storm .chk li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid rgba(255, 248, 235, .08); font-size: var(--t-caption); line-height: 1.45; color: var(--ink-3); }
.res-storm .chk li b { display: block; font-weight: var(--w-regular); font-size: var(--t-small); color: var(--ink); }
.res-storm .chk li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 11px; height: 6px; border: solid #b9d2a6; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.res-storm .chk li.ask::before { width: 7px; height: 7px; left: 3px; top: 15px; border: 0; border-radius: 50%; transform: none; background: #e2c27e; box-shadow: 0 0 10px rgba(226, 194, 126, .8); }
.res-storm .chk li.ask b { color: #efdcaa; }

/* the claim she filed, on paper under her lamp */
.res-claim { position: absolute; right: var(--edge); top: 0; bottom: 0; margin: auto 0; height: max-content; width: min(470px, 36vw); padding: 28px 30px 24px; border-radius: 6px;
  background: #f6f1e6; color: #2b2620; box-shadow: 0 0 0 1px rgba(255, 248, 235, .06), 0 60px 120px -40px rgba(0, 0, 0, .95), 0 2px 0 rgba(255, 255, 255, .5) inset;
  opacity: 0; transform: translateY(18px) rotate(.6deg); transition: opacity .9s ease .25s, transform 1.2s cubic-bezier(.2, .7, .2, 1) .25s; pointer-events: auto; }
.res-claim.show { opacity: 1; transform: rotate(.6deg); }
.res-claim header { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid rgba(43, 38, 32, .14); }
.res-claim header span { font-size: var(--t-label); font-weight: var(--w-strong); letter-spacing: var(--tr-label); text-transform: uppercase; color: #8a6a2c; }
.res-claim header b { font: 500 13px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; color: #5a5348; }
.res-claim h4 { margin: 16px 0 0; font-family: var(--font-display); font-weight: var(--w-strong); font-size: clamp(26px, .6vw + 18px, 34px); line-height: 1.08; color: #1f1c17; }
.res-claim dl { margin: 14px 0 0; }
.res-claim dl div { display: grid; grid-template-columns: 6.4em minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid rgba(43, 38, 32, .08); }
.res-claim dt { font-size: var(--t-caption); color: #877f71; }
.res-claim dd { margin: 0; font-size: var(--t-small); line-height: 1.4; color: #35302a; }
.res-claim dd em { font-style: normal; color: #4f7a3a; font-weight: var(--w-strong); }
.res-claim .appt { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: baseline; margin: 16px 0 0; padding: 14px 16px; border-radius: 10px; background: rgba(154, 122, 60, .1); }
.res-claim .appt span { font-size: var(--t-label); font-weight: var(--w-strong); letter-spacing: var(--tr-label); text-transform: uppercase; color: #8a6a2c; }
.res-claim .appt b { font-family: var(--font-display); font-weight: var(--w-strong); font-size: 24px; color: #1f1c17; }
.res-claim .appt small { grid-column: 2; font-size: var(--t-caption); color: #6a6357; }
.res-claim footer { margin-top: 14px; font-size: var(--t-caption); color: #8a7c62; font-family: var(--font-serif); font-style: italic; }

/* ——— the house, introduced: the plan fills the window as the home page's house does */
.res-plan .stage.full, .res-week .stage.full { background: #09090b; }
.res-facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 64px); max-width: 1320px; margin: 9vh auto 0; padding: 0; text-align: left; }
.res-facts li { padding-top: 18px; border-top: 1px solid rgba(213, 184, 120, .4); }
.res-facts b { display: block; font-family: var(--font-display); font-weight: var(--w-light); font-size: clamp(44px, 3.2vw, 80px); line-height: 1; letter-spacing: -.01em; color: var(--ink-title); }
.res-facts span { display: block; margin-top: 10px; font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* ——— the first week: a still from the third morning, words on the dark of the kitchen */
.res-still .opener-photo::after { background: linear-gradient(90deg, rgba(6, 6, 8, .7), rgba(6, 6, 8, .25) 46%, rgba(6, 6, 8, 0) 70%); }
.res-still .opener-words { align-self: center; justify-self: start; max-width: 620px; margin: 0 0 0 var(--edge); padding: 0; text-align: left; }
.res-still h2, .res-opener h2 { font-family: var(--font-display); font-weight: var(--w-regular); letter-spacing: -.006em; }
.res-still .lede { margin-left: 0; }
.res-week { padding-top: 16vh; }
.res-vows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 60px); max-width: 1420px; margin: 10vh auto 0; text-align: left; }
.res-vows p, .res-pts p { margin: 0; padding-top: 16px; border-top: 1px solid rgba(213, 184, 120, .42); font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-2); text-wrap: pretty; }
.res-vows b, .res-pts b { display: block; margin-bottom: 8px; font-family: var(--font-display); font-weight: var(--w-strong); font-size: clamp(22px, .893vw + 11px, 32px); line-height: 1.1; color: var(--ink-title); }

/* ——— the neighborhood and the builders: openers on their photographs */
.res-opener .opener-words { margin-top: max(17vh, 140px); }
.res-gallery .opener-photo i { background-position: center 62%; }
.res-gallery .opener-photo::after { background: linear-gradient(90deg, rgba(6, 6, 8, .82), rgba(6, 6, 8, .5) 34%, rgba(6, 6, 8, 0) 58%), linear-gradient(transparent 60%, rgba(6, 6, 8, .4)); }
.res-gallery .opener-words { align-self: center; justify-self: start; max-width: 500px; margin: 0 0 0 var(--edge); padding: 0; text-align: left; }
.res-gallery .lede { margin-left: 0; }
.res-community { padding-top: 4vh; }
.res-community .stage.full { margin-top: 0; background: #08090c; }

/* what passes between Vespers, and what never does */
.res-relay { max-width: 1320px; margin: 12vh auto 0; text-align: left; }
.res-relay header { text-align: center; }
.res-relay h3 { font-family: var(--font-display); font-weight: var(--w-regular); font-size: var(--t-h2s); line-height: 1.12; max-width: 20em; margin: 0 auto; }
.res-relay table { width: 100%; margin-top: 6vh; border-collapse: collapse; }
.res-relay th { padding: 0 20px 14px 0; text-align: left; font-size: var(--t-label); font-weight: var(--w-strong); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--el); }
.res-relay th:last-child { color: var(--ink-3); }
.res-relay td { padding: 20px 24px 20px 0; vertical-align: top; border-top: 1px solid rgba(255, 248, 235, .09); font-size: var(--t-body); line-height: 1.5; color: var(--ink-2); }
.res-relay td:first-child { width: 38%; font-family: var(--font-serif); font-style: italic; color: var(--ink-title); }
.res-relay td:nth-child(2) { width: 36%; }
.res-relay td:last-child { color: var(--ink-3); font-size: var(--t-small); }
.res-relay td:last-child::before { content: ""; display: inline-block; width: 12px; height: 1px; margin: 0 10px 4px 0; background: var(--ink-4); }
.res-relay-note { margin: 5vh auto 0; max-width: 34em; text-align: center; font-family: var(--font-serif); font-style: italic; font-size: var(--t-verse); line-height: 1.38; color: var(--ink-title); text-wrap: balance; }

/* ——— the console, in its window */
.res-console { padding-top: 6vh; }
.res-win { width: min(100%, max(1240px, 62vw)); margin: 0 auto; display: block; }
.res-win .win-cap { max-width: none; }
.res-pts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 60px); max-width: 1420px; margin: 11vh auto 0; text-align: left; }
.res-numbers { max-width: 1320px; margin: 12vh auto 0; }
.res-numbers .eyebrow { margin-bottom: 4vh; }
.res-numbers ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 64px); margin: 0; padding: 0; text-align: left; }
.res-numbers li { padding-top: 18px; border-top: 1px solid rgba(213, 184, 120, .4); }
.res-numbers b { display: block; font-family: var(--font-display); font-weight: var(--w-light); font-size: clamp(44px, 3.4vw, 84px); line-height: 1; letter-spacing: -.01em; color: var(--ink-title); white-space: nowrap; }
.res-numbers span { display: block; margin-top: 10px; font-size: var(--t-small); line-height: 1.45; color: var(--ink-2); }

/* ——— owned by the people who live there */
.res-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px); max-width: 1180px; margin: 8vh auto 0; text-align: left; }
.res-split > div { padding: 30px 32px 28px; border-radius: 26px; box-shadow: inset 0 0 0 1px var(--rim); background: rgba(9, 8, 7, .62); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1); }
.res-split > div.theirs { box-shadow: inset 0 0 0 1px rgba(213, 184, 120, .45); background: linear-gradient(rgba(213, 184, 120, .07), rgba(213, 184, 120, .02)), rgba(9, 8, 7, .62); }
.res-owned .vow { background: rgba(9, 8, 7, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.res-split h3 { font-family: var(--font-display); font-weight: var(--w-regular); font-size: clamp(26px, .8vw + 16px, 36px); line-height: 1.1; }
.res-split ul { list-style: none; margin: 16px 0 0; padding: 0; }
.res-split li { padding: 12px 0; border-top: 1px solid rgba(255, 248, 235, .08); font-size: var(--t-body); line-height: 1.5; color: var(--ink-2); }
.res-split .theirs li { color: var(--ink); }
.res-owned .deploy { margin-top: 28px; max-width: 1180px; }

/* ——— talk to us */
.res-talk h2 { font-size: calc(var(--t-h1) * 1.02) !important; }

/* ——— a phone: everything in one column, the told-in-full scenes as a sequence of pictures and words */
@media (max-width: 1000px) {
  .res-facts, .res-numbers ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .res-vows, .res-pts { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .res-split { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 760px) {
  .res-hero h1 { font-size: 46px; }
  /* the told-in-full scenes become a column: picture, its words, her card, the next picture */
  .res-rv { height: auto !important; }
  .res-rv .rv-pin { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; }
  .res-rv .rv-stage, .res-rv .rv-words { display: contents; }
  .res-rv .rv-shot { position: relative; left: auto; top: auto; width: 100%; height: auto; aspect-ratio: 1672 / 941; opacity: 1; flex: none; }
  .res-rv .rv-shot.dim { display: none; }
  .res-rv .rv-shot > i { transform: none !important; }
  .res-rv .rv-screen > img.ready { opacity: 1; }
  .res-rv .rv-w { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; height: auto; margin: 0; padding: 22px var(--gutter) 44px; opacity: 1; transform: none; text-align: left; }
  .res-rv .rv-w::before { display: none; }
  .res-rv .watch, .res-rv .res-claim { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 0 var(--gutter) 44px; width: auto; height: auto; opacity: 1; transform: none; }
  .res-rv .res-ring::before { clip-path: none; } .res-rv .res-ring::after { opacity: 1; }
  .res-trace .trace path.line { stroke-dashoffset: 0; } .res-trace .trace circle { opacity: 1; }
  #move-in .rv-shot[data-on="0"] { order: 0; } #move-in .rv-w[data-on="0"] { order: 1; } #move-in .rv-shot[data-on="1"] { order: 2; } #move-in .rv-w[data-on="1"] { order: 3; }
  #move-in .rv-shot[data-on="2"] { order: 4; } #move-in .rv-w[data-on="2"] { order: 5; }
  #care .rv-shot[data-on="0"] { order: 0; } #care .rv-w[data-on="0"] { order: 1; } #care .res-trace { order: 2; } #care .rv-w[data-on="1"] { order: 3; }
  #care .res-claim { order: 4; } #care .rv-w[data-on="2"] { order: 5; } #care .rv-shot[data-on="3 4"] { order: 6; } #care .rv-w[data-on="3"] { order: 7; } #care .res-storm { order: 8; } #care .rv-w[data-on="4"] { order: 9; }
  .res-still .opener-words, .res-gallery .opener-words { margin: 0 var(--gutter); align-self: end; padding-bottom: 10vh; }
  .res-still .opener-photo i { background-position: 72% center; }
  .res-plan .stage.full, .res-week .stage.full { height: calc(100vw * 880 / 420); }
  .res-community .stage.full { height: min(calc(100vw * 760 / 420), 92svh); }
  .res-relay table, .res-relay tbody, .res-relay tr, .res-relay td { display: block; width: auto !important; }
  .res-relay thead { display: none; }
  .res-relay tr { padding: 18px 0; border-top: 1px solid rgba(255, 248, 235, .1); }
  .res-relay td { border: 0; padding: 4px 0; }
  .res-numbers b, .res-facts b { font-size: 40px; }
}
