/* Notebook paper: pinpoints at the intersections, with a much lighter ruled lattice. */
body {
  --paper-ink: rgb(145 109 51 / 32%);
  --paper-rule: rgb(151 121 73 / 8%);
  --paper-diagonal: rgb(151 121 73 / 5%);
  --paper-pitch: 36px;
  --paper-grid:
    radial-gradient(circle at 50% 50%, var(--paper-ink) .72px, transparent 1.18px),
    linear-gradient(90deg, transparent calc(50% - .6px), var(--paper-rule) 50%, transparent calc(50% + .6px)),
    linear-gradient(0deg, transparent calc(50% - .6px), var(--paper-rule) 50%, transparent calc(50% + .6px)),
    linear-gradient(45deg, transparent calc(50% - .5px), var(--paper-diagonal) 50%, transparent calc(50% + .5px)),
    linear-gradient(135deg, transparent calc(50% - .5px), var(--paper-diagonal) 50%, transparent calc(50% + .5px));
  --near-travel: 17px;
  --sub-travel: 6px;
  --copy-travel: 2px;
  --picture-travel: 4px;
}
@media (max-width:680px), (max-height:510px) {
  body {--paper-pitch:30px;--near-travel:8px;--sub-travel:3.5px;--copy-travel:1.25px;--picture-travel:2.5px}
}
@media screen and (forced-colors:none) {
  body {background-color:#faf6ed;background-image:var(--paper-grid);background-size:var(--paper-pitch) var(--paper-pitch);background-position:center top}
}
@supports (animation-timeline:view()) and (animation-timeline:scroll(root block)) {
  @media screen and (prefers-reduced-motion:no-preference) and (forced-colors:none) {
    /* One viewport of paper. The negative margin leaves the navigation and page geometry intact. */
    body {background-image:none}
    body > .daylight {
      display:block;position:sticky;inset:auto;top:0;z-index:-1;
      height:100vh;height:100lvh;margin:0 0 -100vh;margin-bottom:-100lvh;
      width:100%;overflow:hidden;pointer-events:none;container-type:normal;background:none;
    }
    body > .daylight::after {content:none;display:none}
    body > .daylight::before {
      content:"";position:absolute;inset:calc(-1 * var(--paper-pitch)) 0;
      background-image:var(--paper-grid);background-size:var(--paper-pitch) var(--paper-pitch);background-position:center top;
      animation:ltb-paper-depth auto linear both;animation-timeline:scroll(root block);
    }
    @keyframes ltb-paper-depth {from{translate:0 0}to{translate:0 calc(-1 * var(--paper-pitch))}}

    /* Each group supplies a stable timeline for its copy. Never translate an interactive control. */
    body :is(.home-welcome,.home-menu-heading,.menu-group,.menu-product-group,.menu-service,.menu-addon,.menu-product figcaption,.home-section-copy,.visit-payments,.review-heading,.review-deck,.studio-gallery-feature,.book-hero) {view-timeline-name:--ltb-copy-view}
    body :is(.home-welcome,.home-menu-heading,.home-section-copy,.review-heading,.book-hero) > :is(h1,h2),
    body .studio-gallery-feature > .studio-photo-title {
      --ltb-travel:var(--near-travel);
    }
    body :is(.menu-group,.menu-product-group,.menu-service,.menu-addon,.visit-payments,.menu-product figcaption) :is(h3,h4),
    body :is(.home-welcome,.home-section-copy,.book-hero) > .eyebrow {
      --ltb-travel:var(--sub-travel);
    }
    body :is(.menu-service,.menu-addon) > div > p,
    body .review-deck :is(blockquote,figcaption),
    body :is(.home-welcome,.home-section-copy,.menu-service,.menu-addon,.menu-group,.menu-product-group,.menu-product figcaption,.visit-payments,.book-hero) > p:not(.eyebrow) {
      --ltb-travel:var(--copy-travel);
    }
    body :is(.home-welcome,.home-menu-heading,.home-section-copy,.review-heading,.book-hero) > :is(h1,h2),
    body .studio-gallery-feature > .studio-photo-title,
    body :is(.menu-group,.menu-product-group,.menu-service,.menu-addon,.visit-payments,.menu-product figcaption) :is(h3,h4),
    body :is(.home-welcome,.home-section-copy,.book-hero) > .eyebrow,
    body :is(.menu-service,.menu-addon) > div > p,
    body .review-deck :is(blockquote,figcaption),
    body :is(.home-welcome,.home-section-copy,.menu-service,.menu-addon,.menu-group,.menu-product-group,.menu-product figcaption,.visit-payments,.book-hero) > p:not(.eyebrow) {
      animation:ltb-type-depth auto linear both;animation-timeline:--ltb-copy-view;animation-range:entry 0% exit 100%;
    }
    /* Keep inline links, product specifications and appointment controls directly on their hit targets. */
    body :is(.home-section-copy,.book-hero,.menu-product figcaption) > p:has(:is(a,button,input)) {animation:none}
    @keyframes ltb-type-depth {from{translate:0 var(--ltb-travel)}to{translate:0 calc(-1 * var(--ltb-travel))}}

    /* Source and glass sample follow the same camera, so the rim never slides off the hero. */
    body .home-hero {view-timeline-name:--ltb-hero-depth}
    body .home-hero :is(.home-photo,.welcome-rim,.ltb-edge-aperture) img {
      animation:ltb-depth-hero auto linear both;animation-timeline:--ltb-hero-depth;animation-range:entry 0% exit 100%;
    }
    @keyframes ltb-depth-hero {
      from{transform:translateY(calc(-50% - var(--hero-travel)))}
      to{transform:translateY(calc(-50% + var(--hero-travel)))}
    }
    body .studio-cover-window {view-timeline-name:--ltb-room-depth}
    body .studio-cover-window img {animation:ltb-depth-hero auto linear both;animation-timeline:--ltb-room-depth;animation-range:entry 0% exit 100%;--hero-travel:clamp(8px,1.5vw,18px)}
    body :is(.menu-product,.studio-photo) {view-timeline-name:--ltb-still-depth}
    body :is(.menu-product > .menu-product-photo,.studio-photo > .photo-window) {animation:ltb-still-depth auto linear both;animation-timeline:--ltb-still-depth;animation-range:entry 0% exit 100%}
    @keyframes ltb-still-depth {from{translate:0 calc(-1 * var(--picture-travel))}to{translate:0 var(--picture-travel)}}
  }
}
@media print, (forced-colors:active), (prefers-contrast:more) {
  body {background-image:none}
  body > .daylight {visibility:hidden}
}
