/* Monval Capital · homepage. Do the work others overlook. Build what lasts. Stay human. */
@font-face { font-family: 'Caslon Display'; src: url('/fonts/caslon-display.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caslon Text'; src: url('/fonts/caslon-text-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #F3EFE6; color: #16140F; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #B8894E; outline-offset: 4px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; background: #16140F; color: #F3EFE6; font: 13px 'Geist Mono', monospace; }
.skip:focus { top: 16px; }
.m { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; }

.q { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 45%, #F6F2EA 0%, #F3EFE6 55%, #ECE6DA 100%); }
.q::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url(/img/paper.webp) 0 0 / 512px 512px repeat; }

.q-nav, .q-cos { position: absolute; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 44px; padding: 0 24px; }
.q-nav { top: 44px; color: #6E675C; }
.q-cos { bottom: 52px; gap: 12px 40px; }
.q-nav a, .q-cos a { position: relative; padding: 6px 0; transition: color .3s, opacity .3s; }
.q-nav a::after, .q-cos a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.q-nav a:hover, .q-nav a:focus-visible { color: #16140F; }
.q-nav a:hover::after, .q-nav a:focus-visible::after, .q-cos a:hover::after, .q-cos a:focus-visible::after, .q-cos a.cur::after { transform: scaleX(1); }
.q-cos.on a { opacity: .35; }
.q-cos.on a.cur { opacity: 1; color: #8A6434; }

.q-ghost { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); height: min(62vh, 560px); display: flex; align-items: flex-end; justify-content: center; pointer-events: none; z-index: 0; }
.q-ghost img { display: block; height: 100%; width: auto; max-width: calc(100vw - 48px); object-fit: contain; object-position: 50% 100%; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.q-ghost img.on { opacity: .13; transform: none; }

.q-mid { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 46px; padding: 120px 24px; text-align: center; }
.q-mark { height: 52px; width: auto; animation: qMark 1.4s cubic-bezier(.2,.7,.2,1) both; }
.q-motto { margin: 0; font-family: 'Caslon Display', Georgia, serif; font-weight: 400; font-size: clamp(34px, 4vw, 58px); line-height: 1.08; letter-spacing: -.022em; font-feature-settings: "kern", "liga", "dlig"; }
.q-motto span { display: block; overflow: hidden; padding-bottom: .08em; }
/* hand-set: hang the periods so the words sit on true centre; tighten the long line, open the short one */
.q-motto .hp { font-weight: inherit; margin-right: -.26em; }
.q-motto span:nth-child(1) { letter-spacing: -.026em; word-spacing: -.03em; }
.q-motto span:nth-child(2) { letter-spacing: -.012em; word-spacing: -.01em; }
.q-motto em { letter-spacing: -.018em; word-spacing: -.04em; }
.q-motto em .hp { margin-right: -.2em; }
.q-motto i { display: block; font-style: normal; animation: qRise 1.15s cubic-bezier(.2,.75,.15,1) both; }
.q-motto em { font-family: 'Caslon Text', Georgia, serif; font-style: italic; color: #8A6434; }
.q-rule { width: 56px; height: 1px; background: #B8894E; animation: qDraw 1s 1.1s cubic-bezier(.2,.7,.2,1) both; }
.q-cap { margin: 0; min-height: 14px; color: #6E675C; animation: qFade 1s 1.4s both; transition: opacity .25s; }
.q-cap.swap { opacity: 0; }
.q-corner { position: absolute; bottom: 56px; z-index: 3; color: #736C5F; animation: qFade 1s 1.4s both; }
.q-l { left: 40px; } .q-r { right: 40px; }

@keyframes qMark { from { opacity: 0; transform: translateY(-8px) scale(.94); } }
@keyframes qRise { from { transform: translateY(105%); } }
@keyframes qDraw { from { transform: scaleX(0); } }
@keyframes qFade { from { opacity: 0; } }

@media (max-width: 1100px) { .q-corner { display: none; } }
@media (max-width: 760px) {
  .q-nav { top: 28px; gap: 10px 22px; font-size: 10px; }
  .q-cos { bottom: 32px; gap: 10px 22px; font-size: 10px; }
  .q-mid { gap: 34px; padding: 140px 24px 150px; }
  .q-mark { height: 42px; }
  .q-ghost { bottom: 130px; height: 38vh; }
}
@media (prefers-reduced-motion: reduce) {
  .q *, .q *::after { animation: none !important; transition: none !important; }
}
.q-letter { margin-top: -10px; color: #8A6434; position: relative; padding: 6px 0; animation: qFade 1s 1.6s both; }
.q-letter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.q-letter:hover::after, .q-letter:focus-visible::after { transform: scaleX(1); }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
@media (min-width: 761px) { .q-motto span { white-space: nowrap; } }
.q-motto span { padding-left: .35em; padding-right: .35em; margin-left: -.35em; margin-right: -.35em; }

/* phones: the menu folds into one button */
.q-menu { display: none; position: absolute; top: 18px; right: 14px; z-index: 5; min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; background: none; color: #16140F; cursor: pointer; }
.mnav { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 90px 24px 40px; background: #F3EFE6 url(/img/paper.webp) 0 0 / 512px 512px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.mnav.open { opacity: 1; visibility: visible; }
.mnav a { font: 400 40px/1.2 'Caslon Display', Georgia, serif; letter-spacing: -.02em; color: #16140F; }
.mnav a.m { font: 10.5px 'Geist Mono', monospace; letter-spacing: .2em; margin-top: 30px; color: #6E675C; }
.mnav-x { position: absolute; top: 18px; right: 14px; min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; background: none; color: #16140F; cursor: pointer; }
@media (max-width: 760px) { .q-nav { display: none; } .q-menu { display: block; } }
