/* ONDULÉ builder */
.bld { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 3.4vw, 60px); align-items: start; }
.bld-stage { position: sticky; top: 96px; aspect-ratio: 1; border-radius: 26px; overflow: hidden; background: #e9e2d7 url('/templates/assets/no9/99-ondule/bld/fam-classic.jpg') center / cover; box-shadow: 0 40px 80px -50px rgba(34, 22, 15, .55); }
.bld-c { position: absolute; inset: 0; width: 100%; height: 100%; }
.bld-top { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: circle(0% at 50% 42%); transition: clip-path 1.2s var(--slow); pointer-events: none; }
.from-above .bld-top { clip-path: circle(75% at 50% 42%); }
.bld-read { position: absolute; left: 18px; top: 18px; display: flex; gap: 6px; }
.bld-read > div { background: rgba(251, 248, 243, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 14px; padding: 8px 14px 7px; min-width: 76px; }
.bld-read b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.bld-read small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.bld-tools { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 8px; }
.bld-tools .btn { min-height: 46px; }
.bld-view { --fg: var(--ink); background: rgba(251, 248, 243, .7); }
.bld-view[disabled] { opacity: .5; }
.bld-cap { position: absolute; left: 20px; bottom: 22px; right: 300px; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); background: rgba(251, 248, 243, .78); padding: 8px 12px; border-radius: 12px; line-height: 1.35; }
.bld-err::after { content: 'The glass did not load. Reload the page to try again.'; position: absolute; inset: auto 20px 50% 20px; text-align: center; font-weight: 700; }
.bld-g { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.bld-g legend { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 0 0 12px; font-family: var(--serif); font-size: 30px; line-height: 1; }
.bld-g legend small { font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); font-weight: 600; text-align: right; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.opts-n { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bld-row .opts-n { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
.opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-height: 54px; padding: 8px 14px; border: 0; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--stone-2); cursor: pointer; text-align: left; transition: box-shadow .25s, background-color .25s, color .25s, transform .3s var(--ease); }
.opt:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.opt[disabled] { opacity: .38; cursor: not-allowed; }
.opt .nm { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.opt .pr { font-size: 12.5px; opacity: .78; font-variant-numeric: tabular-nums; }
.opts-sw .opt { padding-left: 56px; }
.opts-sw .opt::before { content: ''; position: absolute; left: 10px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: var(--sw) center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.bld-note { font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; min-height: 1.3em; }
.bld-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 6px; }
.bld-act .btn { min-height: 56px; padding: 0 30px; font-size: 16px; }
@media (max-width: 980px) {
  .bld { grid-template-columns: 1fr; }
  .bld-stage { position: relative; top: 0; }
  .bld-cap { right: 20px; bottom: 80px; }
}
@media (max-width: 520px) {
  .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bld-read { left: 10px; top: 10px; gap: 4px; }
  .bld-read > div { padding: 6px 10px 5px; min-width: 0; }
  .bld-read b { font-size: 21px; }
  .bld-read small { font-size: 9.5px; }
  .bld-tools { right: 10px; bottom: 10px; left: 10px; }
  .bld-tools .btn { flex: 1; padding: 0 12px; min-height: 42px; font-size: 14px; }
  .bld-cap { display: none; }
  .bld-g legend { font-size: 25px; }
}
