/* =====================================================================
   Prakriti Services - the "stories" pages
   installations, gallery, blog, article, offers, pages the office writes

   Everything here stands on site.css (tokens, page head, chips, tiles,
   .prose, .offer, .gal, .lightbox ...). This file only adds what those
   seven pages need on top, every class prefixed st-.

     1  drawings (where there is no photograph)   6  blog list
     2  filter bar, status, live region           7  article and written pages
     3  installations: figures, feature, grid     8  offers
     4  installations: nothing listed yet         9  small screens
     5  gallery and its viewer
   ===================================================================== */

/* ------------------------------------------------------------ 1 drawings */
/* The house from the logo under an open sky, and a strip of the same day for
   an article with no picture. Drawings, so nobody takes them for a customer's roof. */
.st-scene,.st-cover{position:relative;display:block;width:100%;height:100%;overflow:hidden}
.st-scene svg,.st-cover svg{display:block;width:100%;height:100%}
.st-scene{background:linear-gradient(180deg,#A9D2F2 0,#DCEEF8 52%,#FBF1D6 80%)}
.st-scene--waiting{background:linear-gradient(180deg,#B9CCEA 0,#F4DFCB 50%,#FFD29A 78%)}
.st-scene__arc,.st-cover__arc{stroke:var(--ink);stroke-opacity:.3;stroke-width:1.4;stroke-dasharray:1.5 8;stroke-linecap:round}
.st-cover--morning{background:linear-gradient(180deg,#B7CFEE 0,#FAE2C6 60%,#FFD09B 100%)}
.st-cover--noon{background:linear-gradient(180deg,#96C8F0 0,#D7ECF9 68%,#F1F6EA 100%)}
.st-cover--evening{background:linear-gradient(180deg,var(--night) 0,#3A3A7A 46%,#E98B4B 100%)}
.st-cover__far{fill:#CFE3B4}
.st-cover__near{fill:#B3D48F}
.st-cover__sprig path{stroke:var(--leaf-deep)}
.st-cover--evening .st-cover__far{fill:#2B4667}
.st-cover--evening .st-cover__near{fill:#162F4B}
.st-cover--evening .st-cover__arc{stroke:#fff;stroke-opacity:.42}
.st-cover--evening .st-cover__sprig{filter:brightness(.42) saturate(.7)}
/* a page head whose frame holds a drawing rather than a photograph */
.st-head--art .phead__photo{background:#DCEEF8}

/* -------------------------------------------- 2 filter bar, status, live */
.filters .chip{min-height:44px;padding:8px 18px;font-size:15.5px}
.filters .chip i{font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;opacity:.58}
.filters .chip--on i{opacity:.72}
.st-bar{display:flex;flex-wrap:wrap;gap:14px 28px;align-items:center;justify-content:space-between;margin-bottom:clamp(20px,2.4vw,30px)}
.st-bar .filters{margin-bottom:0}
.st-bar__form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.st-pick select{min-height:44px;width:auto;max-width:15.5em;padding:8px 44px 8px 18px;border-radius:999px;font-size:15.5px;font-weight:650;background-color:transparent;
  border-color:color-mix(in srgb, var(--ink) 20%, transparent);background-position:right 15px center;background-size:16px;cursor:pointer;text-overflow:ellipsis}
.st-pick select:focus{background-color:var(--white)}
html.js .st-bar__go{display:none}
.st-status{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:baseline;color:var(--ink-3);font-weight:550;font-size:15px;margin:0 0 clamp(22px,2.6vw,34px)}
.st-status:not(.sr):empty{display:none}
.st-status .link{font-size:15px}
[data-st-live]{transition:opacity .25s}
[data-st-live].is-busy{opacity:.45;pointer-events:none}

/* ------------------------------- 3 installations: figures, feature, grid */
.st-figs-sec{padding-bottom:clamp(8px,1vw,16px)}
.st-figs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);margin:0;border-top:1.5px solid var(--ink)}
.st-figs>div{display:grid;align-content:start;gap:10px;padding:clamp(18px,2.2vw,30px) 24px 0 0}
.st-figs dd{order:-1}
.st-figs>div+div{padding-left:clamp(16px,2.4vw,36px);border-left:1px solid var(--line)}
.st-figs dd{margin:0;font:500 clamp(1.9rem,3.5vw,3.3rem)/1 var(--serif);letter-spacing:-.025em;font-variant-numeric:lining-nums tabular-nums;color:var(--ink)}
.st-figs dd b{font-weight:inherit}
.st-figs dd small{font-size:.42em;letter-spacing:0;margin-left:.22em;color:var(--sun-ink);font-weight:560}
.st-figs dt{color:var(--ink-3);font-size:15.5px;line-height:1.35;max-width:16em}
.st-figs__note{margin-top:20px;font-size:14px;color:var(--ink-3);max-width:46em}

.st-feat{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(28px,6vw,96px);align-items:center}
.st-feat__pic{aspect-ratio:4/4.5;width:100%;max-width:540px}
.st-feat__pic img{transition:transform 1.2s var(--ease)}
.st-feat:hover .st-feat__pic img{transform:scale(1.03)}
.st-feat__body{display:grid;gap:18px;justify-items:start}
.st-feat__eyebrow{margin:0}
.st-feat__kw{margin:0;font:520 clamp(4.4rem,9.4vw,8.4rem)/.82 var(--serif);letter-spacing:-.045em;color:var(--leaf-deep);font-variant-numeric:lining-nums}
.st-feat__kw b{font-weight:inherit}
.st-feat__kw small{font-size:.3em;letter-spacing:-.01em;margin-left:.14em;color:var(--sun-ink)}
.st-feat h2{font-size:clamp(1.8rem,3vw,2.7rem)}
.st-feat__text{margin:0;color:var(--ink-2);font-size:1.08rem;max-width:36em}
.st-feat .kv{width:100%;max-width:34em;margin:6px 0 0}

.st-projs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(40px,5vw,72px) clamp(22px,3vw,44px);
  margin-top:clamp(52px,7vw,104px);padding-top:clamp(44px,5.4vw,80px);border-top:1px solid var(--line)}
.st-proj{display:grid;gap:8px;align-content:start;justify-items:start}
.st-proj__pic{position:relative;width:100%;margin-bottom:18px}
.st-proj__pic .arch{aspect-ratio:4/4.3}
.st-proj__pic img{transition:transform 1.2s var(--ease)}
.st-proj:hover .st-proj__pic img{transform:scale(1.04)}
/* how big the plant is, said by the sun */
.st-proj__kw{position:absolute;right:16px;bottom:-16px;display:grid;place-content:center;justify-items:center;width:88px;height:88px;border-radius:50%;
  background:radial-gradient(circle at 38% 32%,#FFD95E,var(--sun-hot) 52%,var(--sun));color:var(--ink);box-shadow:0 0 0 6px var(--paper);
  font:650 13px/1 var(--sans);transition:transform .6s var(--ease)}
.st-proj__kw b{font:560 1.72rem/1 var(--serif);letter-spacing:-.03em;font-variant-numeric:lining-nums}
.st-proj:hover .st-proj__kw{transform:rotate(-8deg) scale(1.05)}
.st-proj h3{font-size:clamp(1.3rem,1.8vw,1.55rem);padding-right:8px}
.st-proj__meta{margin:0;color:var(--ink-3);font-weight:550;font-size:15px}
.st-proj__text{margin:4px 0 0;color:var(--ink-2);font-size:16px}
.st-proj .chips{margin-top:10px}
.st-proj .chip,.st-feat .chip{white-space:normal;min-height:30px;font-size:14px;padding:4px 12px}

/* ------------------------------------ 4 installations: nothing listed yet */
.st-await h2{margin-top:18px}
.st-await .lede{margin-top:20px}
.st-await .row{margin-top:30px}

/* -------------------------------------------------- 5 gallery and viewer */
.st-gal .gal__item{cursor:zoom-in}
.st-gal .gal__item img{height:auto;transition:opacity .6s var(--ease),transform 1.1s var(--ease)}
.st-gal .gal__item.is-wait img{opacity:0}
.st-gal .gal__item:focus-visible{outline-offset:4px}
.st-gal .gal__cap b{font-weight:650}

.st-lb{grid-template-rows:minmax(0,1fr) auto;gap:12px;padding:clamp(60px,7vh,84px) clamp(14px,5vw,88px) clamp(16px,3vh,30px);overscroll-behavior:contain}
.st-lb.is-open{transition:opacity .35s,visibility 0s}      /* seen at once, so the close button can take focus */
.st-lb__stage{position:relative;display:grid;place-items:center;width:100%;height:100%;min-height:0;touch-action:pinch-zoom;cursor:grab}
.st-lb__stage.is-drag{cursor:grabbing}
.st-lb__stage img{max-width:100%;max-height:calc(100svh - 200px);width:auto;height:auto;border-radius:14px;user-select:none;-webkit-user-drag:none;
  transition:opacity .3s;will-change:transform}
.st-lb.is-loading .st-lb__stage img{opacity:0}
.st-lb__wait{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;opacity:0;transition:opacity .2s .25s;pointer-events:none}
.st-lb__wait .sun{width:100%;height:100%}
.st-lb__wait .sun-rays{animation-duration:6s}
.st-lb.is-loading .st-lb__wait{opacity:1}
.st-lb__foot{min-height:54px;max-width:62ch;text-align:center;color:#fff}
.st-lb__foot .lightbox__cap{padding-top:0;margin:0}
.st-lb__foot b{display:block;font-weight:650}
.st-lb__count{position:absolute;left:clamp(18px,3vw,30px);top:28px;margin:0;font:italic 480 1.12rem/1 var(--serif);color:rgba(255,255,255,.82);font-variant-numeric:lining-nums}
.st-lb button:focus-visible{outline:3px solid var(--sun);outline-offset:3px;border-radius:50%}
.st-lb.is-single [data-prev],.st-lb.is-single [data-next],.st-lb.is-single .st-lb__count{display:none}

/* -------------------------------------------------------------- 6 blog list */
.st-lead{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(24px,4.6vw,72px);align-items:center;margin-bottom:clamp(40px,5vw,72px)}
.st-lead__pic{display:block;aspect-ratio:16/10.4;border-radius:var(--r-l);overflow:hidden;background:var(--paper-3)}
.st-lead__pic img{width:100%;height:100%;object-fit:cover;transition:transform 1.2s var(--ease)}
.st-lead__pic .st-cover svg{transition:transform 1.2s var(--ease)}
.st-lead:hover .st-lead__pic img,.st-lead:hover .st-cover svg{transform:scale(1.03)}
.st-lead__body{display:grid;gap:18px;justify-items:start}
.st-lead .post-meta{margin:0}
.st-lead h2{font-size:clamp(1.9rem,3.3vw,3.05rem);line-height:1.04}
.st-lead h2 a{background:linear-gradient(var(--sun),var(--sun)) 0 100%/0 2px no-repeat;transition:background-size .5s var(--ease)}
.st-lead:hover h2 a,.st-lead h2 a:focus-visible{background-size:100% 2px}
.st-lead__text{margin:0;color:var(--ink-2);font-size:1.1rem;max-width:34em}
/* the dot follows an item rather than leading the next, so a line that wraps never starts with one */
.post-meta{gap:6px 12px}
.post-meta>*{display:inline-flex;align-items:center;gap:12px}
.post-meta>:not(.chip):not(:last-child)::after{content:"";width:5px;height:5px;border-radius:50%;background:var(--sun);flex:none}

.st-posts .post-row{color:inherit}
.st-posts .post-row__date{display:grid;gap:5px;align-content:start}
.st-posts .post-row__date em{font:italic 480 1rem/1.25 var(--serif);color:var(--sun-ink)}
.st-posts .post-row p{margin-bottom:0}
.st-posts__read{white-space:nowrap;color:var(--ink-3);font-size:14.5px;font-weight:600;margin-left:6px}
.st-posts .post-row:focus-visible{outline-offset:6px;border-radius:12px}
.st-posts .post-row:focus-visible .post-row__go{background:var(--sun);box-shadow:none}

.st-pager{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:14px;align-items:center;margin-top:clamp(30px,4vw,52px)}
.st-pager__at{color:var(--ink-3);font:italic 480 1.08rem/1 var(--serif);text-align:center}
.st-pager__prev{justify-self:start}
.st-pager__next{justify-self:end}

/* --------------------------------------- 7 article and written pages */
.st-post-head h1{max-width:17em;font-size:clamp(2.3rem,4.6vw,4.1rem);line-height:1.02}
.st-post-head.phead--plain .phead__copy{max-width:1040px}

.st-article{display:grid;grid-template-columns:minmax(0,46rem) minmax(230px,300px);justify-content:space-between;gap:clamp(32px,6vw,96px);align-items:start}
.st-article--solo{grid-template-columns:minmax(0,46rem)}
.st-article__main{min-width:0}
.st-aside{position:sticky;top:calc(var(--head) + 26px)}
.st-aside__in{display:grid;gap:30px;justify-items:start}

.st-arc{width:100%;max-width:240px}
.st-arc svg{display:none}
.st-arc__way{stroke:var(--ink);stroke-opacity:.26;stroke-width:1.5;stroke-dasharray:1.5 7;stroke-linecap:round}
.st-arc__done{stroke:var(--sun);stroke-width:3;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1}
.st-arc__ground{stroke:var(--ink);stroke-opacity:.32;stroke-width:1.5;stroke-linecap:round;fill:none}
.st-arc p{margin:12px 0 0;font:italic 480 1.1rem/1.2 var(--serif);color:var(--ink-2);font-variant-numeric:lining-nums}
html:not(.js) .st-arc{display:none}

.st-toc{width:100%}
.st-toc h2{font:650 15px/1.2 var(--sans);letter-spacing:0;color:var(--ink-3);margin-bottom:12px}
.st-toc ol{display:grid;border-left:1.5px solid var(--line)}
.st-toc a{display:block;margin-left:-2px;padding:7px 0 7px 16px;border-left:2.5px solid transparent;color:var(--ink-2);font-size:15.5px;line-height:1.35;transition:color .2s,border-color .2s}
.st-toc a:hover{color:var(--ink);border-left-color:color-mix(in srgb, var(--ink) 40%, transparent)}
.st-toc a.is-on{color:var(--ink);font-weight:650;border-left-color:var(--sun)}
.st-toc--inline{display:none}

.st-prose{max-width:none;font-size:1.12rem;overflow-wrap:break-word}
.st-prose h2,.st-prose h3,.st-prose h4{scroll-margin-top:calc(var(--head) + 28px)}
.st-prose h2:focus{outline:0}
.st-prose h4{font-size:1.06rem}
.st-prose em{font-style:italic}
.st-prose img{max-width:100%;height:auto}
.st-prose figure img{margin-block:0}
.st-prose figcaption{font-style:italic}
.st-prose ol{padding-left:1.5em}
.st-prose ol li{padding-left:.3em}
.st-prose ol li::marker{font:560 1em var(--serif);color:var(--sun-ink)}
.st-prose ul ul,.st-prose ol ol,.st-prose ul ol,.st-prose ol ul{margin-top:.45em}
.st-prose blockquote p{margin:0}
.st-prose blockquote p+p{margin-top:.6em}
/* a rule in the text is a horizon with the sun on it */
.st-prose hr{position:relative;height:0;margin:2.6em 0;border:0;border-top:1px solid var(--line);overflow:visible}
.st-prose hr::after{content:"";position:absolute;left:50%;top:-6px;width:11px;height:11px;margin-left:-6px;border-radius:50%;background:var(--sun);box-shadow:0 0 0 8px var(--paper)}
/* the article opens a little larger */
.st-post-body>p:first-child{font-size:1.2em;line-height:1.6;color:var(--ink)}

/* a table keeps its shape and scrolls inside its own frame; the soft shadow
   at an edge says there is more that way */
.st-table{overflow-x:auto;margin-block:1.7em;border:1px solid var(--line);border-radius:var(--r);-webkit-overflow-scrolling:touch;
  background:linear-gradient(90deg,var(--white) 40%,transparent) left/44px 100% no-repeat local,
             linear-gradient(270deg,var(--white) 40%,transparent) right/44px 100% no-repeat local,
             radial-gradient(farthest-side at 0 50%,rgba(13,43,27,.2),transparent) left/14px 100% no-repeat scroll,
             radial-gradient(farthest-side at 100% 50%,rgba(13,43,27,.2),transparent) right/14px 100% no-repeat scroll,
             var(--white)}
.st-table:focus-visible{outline:3px solid var(--sun);outline-offset:3px;border-radius:var(--r)}
.st-prose .st-table table{margin:0;font-size:.95rem;line-height:1.45}
.st-prose .st-table caption{caption-side:top;text-align:left;padding:14px 16px 12px;font-weight:650;color:var(--ink)}
.st-prose .st-table th,.st-prose .st-table td{padding:.75em 1em;min-width:7.5em;vertical-align:top}
.st-prose .st-table thead th{background:color-mix(in srgb, var(--paper-2) 82%, transparent);white-space:nowrap;border-bottom:1.5px solid var(--ink)}
.st-prose .st-table tbody tr:last-child>*{border-bottom:0}
.st-prose .st-table tfoot>tr>*{border-top:1.5px solid var(--ink);border-bottom:0;font-weight:650;color:var(--ink)}
.st-prose .st-table tbody th{font-weight:650}

.st-post-foot{display:grid;gap:26px;margin-top:clamp(36px,4.4vw,60px);padding-top:28px;border-top:1.5px solid var(--ink)}
.st-share h2{font:italic 480 clamp(1.2rem,1.7vw,1.4rem)/1.3 var(--serif);letter-spacing:-.005em;max-width:22em}
.st-share ul{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.st-share a,.st-share button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:52px;height:52px;border-radius:999px;color:var(--ink);
  box-shadow:inset 0 0 0 1.5px var(--ink);font-weight:650;font-size:15.5px;transition:background-color .3s,box-shadow .3s,transform .4s var(--ease)}
.st-share button{padding:0 22px 0 18px}
.st-share .ic{width:22px;height:22px}
.st-share a:hover,.st-share button:hover,.st-share button.is-done{background:var(--sun);box-shadow:none}
.st-share a:hover{transform:translateY(-3px)}
html:not(.js) .st-share__copy{display:none}

.st-more .tile__pic{aspect-ratio:16/10}
.st-more .tile h3{font-size:1.32rem}
.st-more .tile__meta{margin:0}
.st-more a.tile:hover .st-cover svg{transform:scale(1.04)}
.st-more .st-cover svg{transition:transform 1.1s var(--ease)}

.st-draft{background:var(--sun-100);color:var(--sun-ink);font-weight:650;font-size:15px;line-height:1.35}
.st-draft .wrap{display:flex;gap:12px;align-items:center;padding-block:12px}
.st-draft .ic{flex:none}

/* ---------------------------------------------------------------- 8 offers */
.st-offer{scroll-margin-top:calc(var(--head) + 24px)}
.st-offer__top{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin:0}
.st-offer .offer__body{margin-bottom:0}
.st-offer__acts{margin-top:clamp(22px,2.6vw,32px)}
.st-offer .offer__terms{margin-top:22px;margin-bottom:0}
.st-offer .offer__terms b{color:var(--ink-2)}
.st-offer .offer__art .sun-rays{animation-duration:90s}

.st-standing{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);background:var(--white);border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden}
.st-standing__copy{padding:clamp(26px,4.4vw,64px)}
.st-standing__copy h2{font-size:clamp(1.9rem,3.4vw,3rem);margin-top:18px}
.st-standing__copy p{color:var(--ink-2);font-size:1.08rem;max-width:36em;margin:18px 0 28px}
.st-standing__slabs{display:grid;align-content:center;gap:14px;padding:clamp(26px,3.6vw,52px);color:#fff;
  background:radial-gradient(70% 60% at 88% 8%,color-mix(in srgb, var(--sun) 46%, transparent),transparent 70%),var(--leaf-deep)}
.st-standing__label{font-weight:650;color:rgba(255,255,255,.86)}
.st-standing__slabs .slabs{grid-template-columns:minmax(0,1fr);margin-top:0}
.st-standing__slabs .slab{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px 20px;background:rgba(255,255,255,.1);color:#fff}
.st-standing__slabs .slab span{color:rgba(255,255,255,.78)}
.st-standing__slabs .slab b{font-size:1.4rem}
.st-standing__slabs .slab.is-on{background:var(--sun);color:var(--ink);transform:none}
.st-standing__slabs .slab.is-on span{color:var(--ink)}
.st-standing__note{margin:4px 0 0;font-size:14px;color:rgba(255,255,255,.72);line-height:1.45}

/* --------------------------------------------------------- 9 small screens */
@media (max-width:1000px){
  .st-article{grid-template-columns:minmax(0,1fr)}
  .st-aside{display:none}
  .st-toc--inline{display:block;margin-bottom:clamp(26px,4vw,40px);padding:20px 22px;border-radius:var(--r);background:var(--paper-2)}
  .st-toc--inline ol{border-left-color:color-mix(in srgb, var(--ink) 18%, transparent)}
  .st-projs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .st-feat,.st-lead,.st-standing{grid-template-columns:minmax(0,1fr)}
  .st-feat__pic{max-width:420px;width:86%}
  .st-figs{grid-auto-flow:row;border-top:0}
  .st-figs>div{grid-template-columns:auto minmax(0,1fr);justify-content:space-between;align-items:baseline;gap:18px;padding:16px 0;border-top:1px solid var(--line)}
  .st-figs>div:first-child{border-top:1.5px solid var(--ink)}
  .st-figs>div+div{padding-left:0;border-left:0}
  .st-figs dt{text-align:right;justify-self:end;max-width:13em}
  .st-bar{align-items:stretch}
  .st-post-foot{gap:22px}
}
@media (max-width:640px){
  .st-projs{grid-template-columns:minmax(0,1fr);gap:44px}
  .st-proj__pic .arch{aspect-ratio:4/3.9}
  .st-bar__form{width:100%}
  .st-pick{flex:1 1 150px}
  .st-pick select{width:100%;max-width:none}
  .filters{flex-wrap:nowrap;overflow-x:auto;margin-inline:calc(var(--gutter) * -1);padding:3px var(--gutter);scrollbar-width:none;scroll-snap-type:x proximity}
  .filters::-webkit-scrollbar{display:none}
  .filters .chip{flex:none;scroll-snap-align:start}
  .st-bar .filters{width:calc(100% + var(--gutter) * 2)}
  /* two small columns: the title only; the rest is in the viewer */
  .st-gal .gal__cap{padding:34px 11px 10px;font-size:13.5px;line-height:1.3}
  .st-gal .gal__cap b{font-size:13.5px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .st-gal .gal__sub{display:none}
  .st-lb{padding:64px 12px 86px}
  .st-lb__stage img{max-height:calc(100svh - 230px);border-radius:10px}
  .st-lb__foot{position:absolute;left:84px;right:84px;bottom:14px;min-height:62px;display:grid;align-content:center;font-size:14px;line-height:1.3}
  .st-lb__foot span{font-size:13.5px}
  .st-pager{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .st-pager__at{grid-column:1/-1;grid-row:1}
  .st-pager .btn{width:100%}
  .st-prose{font-size:1.06rem}
  .st-share a,.st-share button{height:50px;min-width:50px}
  .st-standing__slabs .slab b{font-size:1.25rem}
}
@media print{
  .st-aside,.st-share,.st-bar,.st-pager,.st-lb,.st-draft{display:none!important}
  .st-article{display:block}
}
