/* Local fonts use optional display: a slow font request never swaps an already painted page. */
@font-face { font-family: Manrope; src: url('/fonts/manrope.woff2') format('woff2'); font-style: normal; font-weight: 400 800; font-display: optional; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/plex-mono.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: optional; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: optional; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-italic.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: optional; }

/* Shared geometry and interaction tokens. Each brand owns its palette and typographic treatment. */
:root { --font-sans: Manrope, Arial, sans-serif; --font-mono: 'Plex Mono', monospace; --font-serif: 'Instrument Serif', Georgia, serif; --page-width: 1320px; --page-gutter: clamp(24px, 5.1vw, 80px); --motion: 220ms; --ease: cubic-bezier(.22, 1, .36, 1); --header-layer: 10; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; background: var(--paper); color: var(--ink); }
body { margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button, input { font: inherit; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 2px; }
#main:focus { outline: none; }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - var(--page-gutter) * 2), var(--page-width)); margin-inline: auto; }
.section-space { padding-block: clamp(76px, 8vw, 124px); }
.eyebrow, .mono { font-family: var(--font-mono); font-size: 10px; font-weight: 400; line-height: 1.6; letter-spacing: .09em; }
.eyebrow { text-transform: uppercase; }
.muted { color: var(--muted); }
.body-copy { color: var(--muted); font-size: 15px; line-height: 1.85; max-width: 49ch; }
.visually-hidden, .experience-selector input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; inset: 12px auto auto 12px; padding: 12px 20px; background: var(--accent); color: var(--on-accent); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.button { min-height: 52px; padding: 14px 23px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; font-size: 12px; font-weight: 700; line-height: 1.5; border: 1px solid transparent; transition: background var(--motion), transform var(--motion) var(--ease), border-color var(--motion); }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button span, .text-link span, .header-action span { font-size: 19px; font-weight: 400; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; padding-block: 10px; }
.text-link:hover { text-decoration: underline; }
.text-link span { transition: transform var(--motion) var(--ease); }
.text-link:hover span { transform: translate(2px, -2px); }
.site-header { position: relative; z-index: var(--header-layer); display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 104px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 12px; align-items: center; line-height: 1; }
.desktop-nav { display: flex; align-items: center; gap: 35px; }
.desktop-nav a { position: relative; padding-block: 15px; font-size: 12px; color: var(--muted); transition: color var(--motion); }
.desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--ink); }
.desktop-nav a::after { content: ''; position: absolute; bottom: 9px; left: 0; right: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--motion) var(--ease); }
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-action { font-size: 11px; font-weight: 600; min-height: 43px; display: flex; align-items: center; gap: 24px; border: 1px solid var(--line); padding: 10px 16px; transition: border-color var(--motion); }
.header-action:hover { border-color: var(--ink); }
.mobile-navigation { display: none; }
.site-footer { border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 20px; padding-block: 43px; }
.footer-top p { font-size: 12px; color: var(--muted); }
.footer-bottom { display: flex; align-items: center; gap: 28px; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 24px; color: var(--muted); font-size: 10px; }
.footer-bottom nav { display: flex; gap: 25px; flex-wrap: wrap; }
.footer-bottom nav a { padding-block: 8px; }
.footer-bottom nav a:hover { color: var(--ink); text-decoration: underline; }
.back-top { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 17px; }

/* Long-form pages keep reading order intact when the index collapses on small screens. */
.document-page { padding-block: 82px 110px; }
.document-header { max-width: 780px; margin-bottom: 72px; }
.document-header h1, .contact-page h1 { font-size: clamp(52px, 7vw, 90px); letter-spacing: -.055em; line-height: 1.06; margin-block: 26px 28px; }
.document-header h1 em, .contact-page h1 em { font-style: normal; color: var(--muted); }
.document-header > p:last-child { font-size: 17px; color: var(--muted); max-width: 55ch; }
.document-grid { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: 80px; padding-top: 38px; border-top: 1px solid var(--line); }
.document-index { align-self: start; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 35px; font-size: 12px; }
.document-index .eyebrow { color: var(--muted); margin-bottom: 13px; }
.document-index a { padding-block: 6px; }
.document-index a:hover { text-decoration: underline; }
.document-body section + section { padding-top: 46px; margin-top: 46px; border-top: 1px solid var(--line); }
.document-body h2 { font-size: 30px; letter-spacing: -.035em; line-height: 1.3; margin-bottom: 20px; }
.document-body h3 { font-size: 17px; margin-block: 25px 10px; }
.document-body p, .document-body li { color: var(--muted); font-size: 14px; line-height: 1.9; }
.document-body p + p { margin-top: 15px; }
.document-body p a { color: var(--ink); text-decoration: underline; }
.document-body ul { padding-left: 20px; margin-block: 20px; }
.document-body li { padding-left: 4px; margin-bottom: 9px; }
.document-body .button, .document-body .text-link { margin-top: 22px; }
.document-control { padding-block: 4px 12px; }
.contact-page { padding-block: 95px 110px; }
.contact-page-intro { color: var(--muted); font-size: 17px; max-width: 60ch; }
.contact-email { display: inline-flex; gap: 50px; align-items: center; font-size: clamp(23px, 4vw, 50px); letter-spacing: -.035em; border-bottom: 1px solid var(--accent); padding-block: 16px; margin-top: 32px; }
.contact-email:hover { color: var(--accent); }
.contact-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; margin-top: 95px; }
.contact-routes > a { border-top: 1px solid var(--line); padding-top: 23px; }
.contact-routes h2 { font-size: 19px; line-height: 1.5; margin-block: 20px 10px; }
.contact-routes h2 span { float: right; }
.contact-routes p { color: var(--muted); font-size: 13px; }
.contact-routes a:hover h2 { text-decoration: underline; }
.error-page { min-height: 65vh; padding-block: 120px; }
.error-page h1 { font-size: clamp(40px, 6vw, 74px); line-height: 1.2; letter-spacing: -.05em; margin-block: 20px; }
.error-page p { color: var(--muted); max-width: 55ch; }
.error-page .button { margin-top: 30px; }
@media (max-width: 1050px) {
  .document-grid { grid-template-columns: 200px minmax(0, 1fr); gap: 45px; }
  .desktop-nav { gap: 23px; }
  .footer-top { grid-template-columns: 1fr auto; }
  .footer-top p { grid-row: 2; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-bottom nav { gap: 20px; }
}
@media (max-width: 720px) {
  .site-header { min-height: 84px; gap: 14px; }
  .desktop-nav { display: none; }
  .header-action { margin-left: auto; font-size: 10px; gap: 13px; padding: 8px 12px; min-height: 39px; }
  .mobile-navigation { display: block; }
  .mobile-navigation > summary { display: grid; place-items: center; width: 40px; min-height: 44px; list-style: none; }
  .mobile-navigation > summary::-webkit-details-marker { display: none; }
  .menu-lines { width: 19px; height: 10px; border-block: 1px solid var(--ink); }
  .mobile-navigation[open] .menu-lines { transform: rotate(-45deg); height: 0; border-bottom: 0; }
  .mobile-navigation[open] .menu-lines::after { content: ''; display: block; border-top: 1px solid var(--ink); transform: rotate(90deg); }
  .mobile-navigation nav { position: absolute; top: calc(100% - 1px); inset-inline: calc(-1 * var(--page-gutter)); background: var(--paper); border-block: 1px solid var(--line); padding: 24px var(--page-gutter); display: flex; flex-direction: column; gap: 5px; box-shadow: 0 20px 30px #00000010; }
  .mobile-navigation nav a { padding-block: 12px; font-size: 16px; }
  .footer-top { padding-block: 32px; }
  .footer-bottom { gap: 15px; padding-block: 22px; }
  .footer-bottom nav { order: 3; width: 100%; gap: 10px 20px; }
  .document-page { padding-top: 55px; }
  .document-header { margin-bottom: 45px; }
  .document-grid { grid-template-columns: 1fr; gap: 42px; }
  .document-index { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 20px; }
  .document-index .eyebrow { width: 100%; }
  .document-body h2 { font-size: 27px; }
  .document-body .button { gap: 15px; }
  .contact-page { padding-block: 60px 85px; }
  .contact-routes { grid-template-columns: 1fr; gap: 34px; margin-top: 70px; }
}
/* Content is visible from the first paint; motion never gates reading or navigation. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
