/* Home page only. Product-range hero (hp-) and the design ideas gallery (di-).
   Limewash ground, plain photographs, hairline drawings. Gold is light, red is the WhatsApp button. */

/* design ideas: seven equal drawings and one heading cell */
.di{padding-top:clamp(40px,5vw,72px);padding-bottom:clamp(40px,5vw,72px)}
.di-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(32px,4vw,52px) clamp(16px,2vw,26px)}
.di-head h2{font-size:clamp(2rem,3.1vw,2.8rem);margin-bottom:14px}
.di-head p{max-width:24rem}
.di-head p+p{margin-top:12px;color:var(--ink);font-weight:500}
.di-card{display:flex;flex-direction:column;min-width:0}
.di-art{background:#fff;border:1px solid var(--light);border-radius:4px;overflow:hidden}
.di-art>svg{display:block;width:100%;height:auto;aspect-ratio:540/340}
.di-live{touch-action:pan-y;cursor:crosshair}
.di-card h3{margin:14px 0 4px;font-size:clamp(1.15rem,1.5vw,1.4rem);font-weight:500;letter-spacing:-.02em}
.di-card p{font-size:1rem;line-height:1.5}
.di-acts{display:flex;flex-wrap:wrap;align-items:center;gap:0 18px;margin-top:auto;padding-top:8px}
.di-acts .link{display:inline-block;padding:11px 0;line-height:22px;background-position:0 calc(100% - 9px)}
.di-toggle,.di-chip{min-height:44px;padding:8px 15px;border:2px solid var(--grey);border-radius:999px;background:#fff;color:var(--ink);font-family:inherit;font-size:.95rem;font-weight:700;line-height:1.2;cursor:pointer}
.di-toggle:hover,.di-chip:hover{background:var(--lime-2)}
.di-toggle[aria-expanded="true"],.di-chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.di-cta{margin-top:8px}
.di-cta .btn{width:100%}
.di-rowpanel{grid-column:1/-1;scroll-margin-bottom:96px}
.di-chip,.di-pend .btn{scroll-margin-bottom:96px}
.di-pbody{display:flex;flex-wrap:wrap;align-items:flex-end;gap:20px 40px;padding-top:22px;border-top:1px solid var(--light)}
.di-set{min-width:0;margin:0;padding:0;border:0}
.di-set legend{padding:0;margin-bottom:8px;font-size:.95rem;font-weight:700;color:var(--ink)}
.di-pills{display:flex;flex-wrap:wrap;gap:8px 6px}
.di-pend{display:grid;gap:10px;justify-items:start;flex:1 1 18rem;max-width:30rem}
.di-pend .btn{width:auto}
.di-fine{font-size:.9rem!important}

/* drawing language: hairlines and light. Gold is light, never a fill on the interface */
.di-art svg *{vector-effect:non-scaling-stroke}
.di-o2{fill:none;stroke:var(--ink);stroke-width:1.25}
.di-w1{fill:#EDEDE7;stroke:var(--ink);stroke-width:1}
.di-w0{fill:#fff;stroke:var(--ink);stroke-width:1}
.di-fb{fill:#E6E6E0;stroke:var(--ink);stroke-width:1}
.di-fr{fill:none;stroke:var(--ink);stroke-width:1.75}
.di-gi{fill:none;stroke:var(--gold);stroke-width:1.5}
.di-m{fill:none;stroke:var(--char);stroke-width:2.25;stroke-linejoin:round}
.di-b{stroke-width:1.5}
.di-mf{fill:var(--char);stroke:none}
.di-x{fill:none;stroke:var(--ink);stroke-width:.75}
.di-gl{fill:#fff;stroke:none}
.di-pg{fill:var(--gold);opacity:.3}
.di-pk{fill:var(--ink);opacity:.09}
.di-gate-static .di-gl{fill:var(--gold)}
.di-gate-static .di-glow{opacity:.28}
.di-plate{fill:var(--char);fill-rule:evenodd;stroke:var(--char);stroke-width:1;stroke-linejoin:round}
.di-lit-base{fill:var(--gold);opacity:.4}
.di-lamp{fill:url(#di-lg)}

@media (max-width:1099px){
  .di-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
}
@media (min-width:561px) and (max-width:1099px){
  .di-head{grid-column:1/-1}
  .di-head p{max-width:34rem}
}
@media (max-width:560px){
  .di-grid{gap:28px 14px}
  .di-pend .btn{width:100%}
  .di-card h3{font-size:1.1rem}
  .di-card p{font-size:.95rem}
  .di-head p{max-width:none;font-size:.95rem;line-height:1.5}
  .di-head h2{margin-bottom:10px}
  .di-head p+p{margin-top:8px}
}
@media (forced-colors:active){.di-plate{fill:CanvasText}}

/* leftover links lower on the page: 44px tap targets */
.contact .cta-row .link,.visit .cta-row .link{display:inline-block;padding:11px 0;line-height:22px;background-position:0 calc(100% - 9px)}
/* while the gate choices are open, the fixed bar would sit on top of the send button */
body.di-open .m-bar{display:none}

/* the drawings come in with the curtain: each one rises and fades on its own view timeline, left to right,
   then a warm gold light crosses it, one card after another. All of it sits inside @supports and the
   no-preference query, so without support, or with reduced motion, every drawing is simply there. */
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()){
    .di-head h2,.di-head p,.di-card{--cc:var(--c,0);animation:di-in cubic-bezier(.16,1,.3,1) both;animation-timeline:view();animation-range:entry calc(var(--cc) * 7%) entry calc(var(--cc) * 7% + 80%)}
    .di-head p{--cc:1}
    .di-head p+p{--cc:2}
    .di-art{position:relative}
    /* the drawing box clips (overflow hidden), and that would make it its own scroller, so the light follows the card's timeline instead */
    .di-card{view-timeline:--di block}
    .di-art::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;translate:-100% 0;background:linear-gradient(100deg,rgba(219,190,70,0) 36%,rgba(219,190,70,.07) 42%,rgba(219,190,70,.22) 48%,rgba(219,190,70,.3) 50%,rgba(219,190,70,.22) 52%,rgba(219,190,70,.07) 58%,rgba(219,190,70,0) 64%);animation:di-sheen linear both;animation-timeline:--di;animation-range:entry calc(45% + var(--cc) * 8%) cover calc(33% + var(--cc) * 4%)}
  }
}
@media (max-width:1099px){.di-card{--c:var(--d,0)}}
@keyframes di-in{from{opacity:0;translate:0 34px}to{opacity:1;translate:0 0}}
@keyframes di-sheen{0%{opacity:0;translate:-100% 0}22%{opacity:1}78%{opacity:1}100%{opacity:0;translate:100% 0}}
/* the foot of the section: a crisp hairline, and one thin gold light that runs along the edge as it rises into view,
   the same light as the seam on the rail. It sits on the limewash side, never on a photograph. */

@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()){
    #ideas{overflow-x:clip}
    #ideas::after{content:"";position:absolute;left:0;bottom:0;width:34%;height:44px;pointer-events:none;opacity:0;translate:-100% 0;transform:skewX(-16deg);transform-origin:0 100%;background:linear-gradient(90deg,rgba(219,190,70,0),rgba(219,190,70,1) 50%,rgba(219,190,70,0)) 0 100%/100% 2px no-repeat,radial-gradient(60% 100% at 50% 100%,rgba(219,190,70,.45),rgba(219,190,70,0));animation:di-foot linear both;animation-timeline:view();animation-range:entry 0% cover 55%}
  }
}
@keyframes di-foot{0%{opacity:0;translate:-100% 0}15%{opacity:1}85%{opacity:1}100%{opacity:0;translate:300% 0}}
html.static #ideas::after{display:none}
@media (forced-colors:active){#ideas::after{display:none}}
html.static .di-head h2,html.static .di-head p,html.static .di-card{animation:none}
html.static .di-art::after{display:none}
@media (forced-colors:active){.di-art::after{display:none}}

/* the grid of openings: room above the heading, a heading row with the note on the right, one fine brass line under it */
.op{padding-top:clamp(72px,9vw,132px)}
.op-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 40px;padding-bottom:clamp(20px,2.4vw,30px);margin-bottom:clamp(26px,3.4vw,44px);border-bottom:1px solid rgba(196,162,59,.5)}
.op-head h2{max-width:16ch;margin:0}
.op-head .note-line{margin:0 0 .35em;text-align:right}
@media (max-width:560px){.op-head .note-line{text-align:left}}
