/* eMotion Pictures: shared styles for the R (ribbon) mockups */
/* Instrument Serif (SIL OFL 1.1, fonts/OFL.txt), served from this site instead of Google Fonts: no extra connection, no CSS @import
   chain, preloaded from index.html, long-cached. Same files and subsets (latin, latin-ext) Google serves. */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-ext-400-italic.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-400-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #fff; --ink: #0c0c0d; --mute: #77777b; --line: #e6e6e2;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --pad: clamp(18px, 2.6vw, 40px);
  --ease: cubic-bezier(.2, .9, .2, 1);
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 13px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; -webkit-tap-highlight-color: transparent; transition: background-color .6s ease, color .6s ease; }
body.r-fixed { overflow: hidden; height: 100dvh; overscroll-behavior: none; touch-action: none; }
body.r-modal { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; z-index: 0; touch-action: pan-y; opacity: 0; transition: opacity .9s ease; }
body.r-fixed #gl { touch-action: none; }
body[data-ready] #gl { opacity: 1; }

/* nav */
.r-nav { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: baseline; padding: calc(var(--pad) * .8) var(--pad); pointer-events: none; }
.r-nav > * { pointer-events: auto; }
.r-mark { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; line-height: 1; transition: opacity .5s ease; }
.r-mark i, .r-word i { font-style: italic; padding-right: .02em; }
.r-links { display: flex; gap: clamp(16px, 2vw, 30px); }
.r-links > * { position: relative; font-size: 13px; padding: 6px 0; }
.r-links > *::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.r-links > *:hover::after { transform: scaleX(1); transform-origin: left; }
.r-links > *:active { opacity: .55; }

.r-eyebrow { font-size: 12px; color: var(--mute); letter-spacing: .01em; }
.r-serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: .95; }

/* open a card in place */
.r-lb { position: fixed; inset: 0; z-index: 60; background: rgba(255, 255, 255, 0); display: grid; place-items: center; padding: 64px var(--pad) 56px; transition: background-color .45s ease; color: #0c0c0d; }
.r-lb[hidden] { display: none; }
.r-lb.on { background: rgba(255, 255, 255, .965); }
.r-lb-fig { width: min(1080px, 100%, calc((100dvh - 210px) * 1.6)); opacity: 0; transition: opacity .3s ease; }
.r-lb.on .r-lb-fig { opacity: 1; }
.r-lb-frame { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #eee; transform-origin: center; will-change: transform; }
.r-lb-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r-lb figcaption { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 16px; padding-top: 16px; }
.r-lb-num, .r-lb-meta { font-size: 12px; color: #77777b; }
.r-lb-meta { text-align: right; }
.r-lb-title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.02em; line-height: 1; text-align: center; }
.r-lb-close, .r-sheet-close { position: absolute; top: calc(var(--pad) * .8); right: var(--pad); display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; }
.r-lb-close:active, .r-sheet-close:active, .r-lb-step button:active { opacity: .5; }
.r-lb-step { position: absolute; bottom: calc(var(--pad) * .8); left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; opacity: 0; transition: opacity .3s ease; }
.r-lb.on .r-lb-step { opacity: 1; }
.r-lb-step button { font-size: 13px; padding: 6px 0; }

/* sheets: About / Contact / Work index over a no-scroll home */
.r-scrim { position: fixed; inset: 0; z-index: 39; background: rgba(255, 255, 255, .55); opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.r-scrim.on { opacity: 1; pointer-events: auto; }
.r-sheet { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: #fff; border-left: 1px solid var(--line); transform: translateX(102%); transition: transform .7s var(--ease), visibility 0s .7s; visibility: hidden; display: flex; overflow: auto; }
.r-sheet.on { transform: none; visibility: visible; transition: transform .7s var(--ease); }
.r-sheet-in { margin-top: auto; padding: 96px var(--pad) calc(var(--pad) * 1.2); width: 100%; }
.r-big { font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); line-height: 1.04; letter-spacing: -.02em; margin-top: 14px; text-wrap: balance; }
.r-mail { margin-top: 18px; font-size: 14px; }
.r-index { list-style: none; padding: 0; margin-top: 14px; }
.r-index button { width: 100%; display: grid; grid-template-columns: 30px 1fr auto 44px; gap: 10px; align-items: baseline; text-align: left; padding: 11px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); transition: padding .4s var(--ease); }
.r-index b { font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--ink); letter-spacing: -.01em; }
.r-index em { font-style: normal; }
.r-index button > :last-child { text-align: right; }
.r-index button:hover { padding-left: 8px; }

/* scroll one-pagers: simple sections */
.r-sec { position: relative; z-index: 2; padding: clamp(90px, 16vh, 180px) var(--pad); pointer-events: none; }
.r-sec > * { pointer-events: auto; }
.r-sec .r-big { font-size: clamp(34px, 5.2vw, 84px); max-width: 16em; line-height: 1; }
.r-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; padding: var(--pad); font-size: 12px; color: var(--mute); }

@media (max-width: 700px) {
  .r-mark { font-size: 20px; }
  .r-sheet { top: auto; left: 0; height: auto; max-height: 86dvh; border-left: 0; border-top: 1px solid var(--line); transform: translateY(102%); border-radius: 14px 14px 0 0; }
  .r-sheet-in { padding-top: 64px; }
  .r-lb { padding: 60px 16px 56px; }
  .r-lb figcaption { grid-template-columns: 1fr auto; }
  .r-lb-num { display: none; }
  .r-lb-title { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
