/* Personal field guide. Layout and theme use tokens.css; interactions use native HTML. */
@import url("./tokens.css?v=20261105");
@import url("./base.css?v=20261105");

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-offset) + 24px); }
body { padding-top: var(--nav-offset); padding-bottom: var(--safe-bottom); color: var(--ink-2); font-size: var(--text-body); line-height: 1.6; font-optical-sizing: auto; transition: background-color var(--dur-long) var(--ease-out), color var(--dur-long) var(--ease-out); }

body::before { content: ""; position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: var(--grain-opacity); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
:root[data-theme="night"] body::before { mix-blend-mode: screen; }

h1, h2, h3 { color: var(--ink); font-weight: 400; }
h2 { font-size: var(--text-heading); line-height: 1.2; }
h2 em, h1 em { font-style: italic; color: var(--muted); }
em { font-style: italic; }
a { color: inherit; transition: color var(--dur-micro) var(--ease-out); }
a:hover { color: var(--accent); }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 400; padding: 8px 12px; background: var(--ink); color: var(--paper); }
.skip:focus { top: calc(var(--safe-top) + 12px); }

.label { font-family: var(--font-mono); font-size: var(--text-meta); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.label span { opacity: 0.6; margin-inline: 0.2em; }
p.label { margin-bottom: var(--space-md); }

.text-link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-2); padding-bottom: 2px; transition: border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.text-link:hover { border-color: var(--accent); }

.button { display: inline-flex; align-items: center; height: 46px; padding-inline: 20px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-family: var(--font-mono); font-size: var(--text-meta); letter-spacing: 0.1em; text-transform: uppercase; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.button:hover { background: var(--ink); color: var(--paper); }
.button:active { transform: translateY(1px); }
.button--primary { background: var(--ink); color: var(--paper); }
.button--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.band { background: var(--paper-2); border-block: 1px solid var(--rule); }

.nav { position: fixed; inset: 0 0 auto; z-index: var(--z-sticky-nav); padding-top: var(--safe-top); background: var(--paper); border-bottom: 1px solid var(--rule); }
/* iOS Safari can draw page content above a top-pinned header (status bar, collapsing toolbar, overscroll); the paper continues upward to cover it. */
.nav::before { content: ""; position: absolute; inset: auto 0 100%; height: 100vh; background: var(--paper); pointer-events: none; }
.nav__inner { display: flex; align-items: center; gap: 40px; height: var(--nav-height); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-family: var(--font-display); font-size: var(--text-body); font-weight: 400; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.wordmark__mark { display: block; flex-shrink: 0; width: 38px; height: 40px; background: currentColor; -webkit-mask: url("../assets/brand/rb-monogram-mask.svg?v=20261104141034") center / contain no-repeat; mask: url("../assets/brand/rb-monogram-mask.svg?v=20261104141034") center / contain no-repeat; }
.nav__links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__links a { font-family: var(--font-mono); font-size: var(--text-meta); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.nav__links a:hover { color: var(--accent); }
.nav__links .nav__contact { color: var(--paper); padding: 10px 16px; }
.nav__links .nav__contact:hover { color: var(--on-accent); }

.plate { margin: 0; }
.plate__frame { position: relative; display: grid; place-items: center; padding: clamp(20px, 3vw, 40px); border: 1px solid var(--rule-2); outline: 1px solid var(--rule); outline-offset: 5px; }
.plate__frame img { width: auto; max-width: 100%; height: auto; max-height: min(520px, 70vh); filter: var(--plate-filter); mix-blend-mode: var(--plate-blend); }

.mount { margin: 0; }
.mount figcaption { margin-top: 18px; font-size: var(--text-body); line-height: 1.5; }
.mount > img { border: 1px solid var(--rule-2); background: var(--paper-2); padding: 8px; }
.mount > img { display: block; width: 100%; height: auto; }


.section-head { padding-block: 0 56px; }
.section-head h2 { max-width: 24ch; }



.specimen { margin: 26px 0 0; border-top: 1px solid var(--rule); }
.specimen > div { display: grid; grid-template-columns: 7.5em 1fr; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.specimen dt { font-family: var(--font-mono); font-size: var(--text-meta); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.specimen dd { margin: 0; color: var(--ink); }




.section-head--flush { padding-bottom: 36px; }


.correspondence { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; padding-block: 112px; }
.correspondence .lead { margin-top: 18px; max-width: 40ch; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); max-width: 620px; }
.ledger li { border-bottom: 1px solid var(--rule); }
.ledger a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; text-decoration: none; color: var(--ink); }
.ledger a { font-size: var(--text-body); overflow-wrap: anywhere; }
.ledger a:hover span:last-child { color: var(--accent); }

.footer { display: block; padding-block: 0 40px; color: var(--ink-2); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__main { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 48px; padding-block: 48px; border-top: 1px solid var(--rule-2); }
.footer__brand { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); font-size: var(--text-heading); line-height: 1.2; letter-spacing: -0.03em; }
.footer__brand img { width: 48px; height: 48px; flex-shrink: 0; }
.footer__position { margin-top: 20px; font-size: var(--text-body); color: var(--ink); }
.footer__location { margin-top: 8px; font-size: var(--text-meta); }
.footer__links { display: flex; flex-direction: column; align-items: start; gap: 12px; }
.footer__links p.label { margin-bottom: 8px; }
.footer__links a, .footer__bottom { font-family: var(--font-mono); font-size: var(--text-meta); }
.footer__links a { font-size: var(--text-body); display: inline-flex; align-items: center; gap: 8px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--rule); padding-top: 24px; color: var(--muted); }
.footer__bottom a { font-size: var(--text-body); display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 60rem) {
  .footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer__identity { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .footer__main { padding-block: 32px; }
  .footer__brand { gap: 12px; }
  .footer__brand img { width: 40px; height: 40px; }
  .footer__bottom { align-items: start; flex-direction: column; gap: 16px; }
}

.film { margin: 0; }
.film__video { display: block; width: 100%; height: auto; border-radius: 10px; background: #141210; box-shadow: 0 30px 60px -28px rgba(18, 15, 12, 0.55); }
.film figcaption { margin-top: 18px; font-size: var(--text-body); line-height: 1.5; color: var(--ink-2); }
.film figcaption .label { margin-right: 0.6em; color: var(--accent); }

.snapshot { position: relative; margin: 0; padding: 12px 12px 0; background: var(--page); box-shadow: 0 10px 24px -14px rgba(46, 33, 23, 0.45); rotate: -3deg; max-width: 300px; justify-self: end; }
.snapshot img { display: block; width: 100%; height: auto; filter: var(--photo-filter); }
.snapshot::before { content: ""; position: absolute; z-index: 2; top: -13px; left: 50%; translate: -50% 0; rotate: 4deg; width: 110px; height: 26px; background: var(--tape); }
body::after { content: ""; top: 0; bottom: 0; left: calc(max(0px, (100vw - var(--container)) / 2) + var(--gutter) - 24px); width: 4px; border-inline: 1px solid var(--margin-line); pointer-events: none; position: fixed; z-index: 7; }
.section-head, .correspondence__body, .correspondence { position: relative; }


.stamp { position: absolute; top: -28px; right: -16px; z-index: 2; display: inline-flex; flex-direction: column; align-items: center; padding: 6px 12px 5px; border: 2px solid var(--accent); border-radius: 3px; outline: 1px solid var(--accent); outline-offset: 2px; color: var(--accent); font-family: var(--font-mono); font-size: var(--text-meta); letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.3; rotate: -7deg; opacity: 1; mix-blend-mode: multiply; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.stamp small { font-size: inherit; letter-spacing: 0.12em; opacity: 1; }
:root[data-theme="night"] .stamp { mix-blend-mode: normal; }
.mount { position: relative; }
.mount::before, .mount::after { content: ""; position: absolute; top: -12px; z-index: 3; width: 92px; height: 26px; background: var(--tape); border-inline: 1px dashed rgba(0, 0, 0, 0.06); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); pointer-events: none; }
.mount::before { left: -22px; rotate: -32deg; }
.mount::after { right: -22px; rotate: 32deg; }
.mount--phone::before, .mount--phone::after { display: none; }
.mount--phone::before { display: block; left: 50%; translate: -50% 0; rotate: -3deg; }



.plate--taped { rotate: 1.4deg; position: relative; }
.plate--taped::before { content: ""; position: absolute; top: -12px; left: 50%; translate: -50% 0; rotate: -4deg; z-index: 3; width: 110px; height: 26px; background: var(--tape); }


@media (max-width: 60rem) {
  .nav__links a:not(.nav__keep) { display: none; }
  body::after { left: calc(var(--gutter) - 14px); }
}
@media (max-width: 40rem) {
  .nav__inner { gap: 16px; }
  .wordmark__mark { width: 29px; height: 30px; }
  .wordmark__name { display: none; }
  .nav__links { gap: 16px; }
  .footer { flex-direction: column; }
  .stamp { position: relative; top: 0; right: 0; margin-bottom: 18px; }
}

.project-note + .project-note { border-top: 1px solid var(--rule); }
.project-note h4 { margin: 20px 0 12px; font-size: var(--text-body); font-weight: 400; color: var(--ink); }
.project-note p { padding-bottom: 18px; }
.correspondence__body { max-width: 620px; }
.correspondence__body .lead { margin-top: 24px; }
.correspondence__body .ledger { margin-top: 32px; }
.snapshot { padding-bottom: 12px; }



/* ==========================================================================
   Statements and exhibits: big serif type, a trail between sections, roomy projects
   ========================================================================== */
.hero { --portrait: clamp(220px, 22vw, 300px); position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 88px 0; }
.hero__kicker { grid-column: 1 / -1; }
.statement { grid-column: 1; position: relative; z-index: 1; margin-top: 8px; font-size: var(--text-statement); line-height: 0.98; letter-spacing: -0.035em; color: var(--ink); max-width: none; padding-right: calc(var(--portrait) + 48px); }
.statement__line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.statement__line > span { display: inline-block; }
.statement em { font-style: italic; color: var(--accent); }
.hero__portrait { position: absolute; top: 120px; right: var(--gutter); width: var(--portrait); rotate: 4deg; background: #fffdf8; }
.hero__portrait img { filter: none; }
.snapshot figcaption { padding: 10px 4px 2px; text-align: center; font-family: "Caveat", cursive; font-size: 1.5rem; line-height: 1; color: var(--ink-2); }
.hero__portrait figcaption { color: rgba(46, 33, 23, 0.75); }
.hero__foot { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: 32px 48px; margin-top: 72px; padding-bottom: 40px; }
.hero__foot > * { grid-column: 1; }
.hero__intro p + p { margin-top: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* Handwritten underline under one word; draws in after the line rises */
.scrawl { position: relative; }
.scrawl::after { content: ""; position: absolute; left: -2%; right: -3%; bottom: -0.04em; height: 0.16em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C40 3 90 4 130 6 S180 9 198 4' fill='none' stroke='%238a3b22' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; clip-path: inset(0 100% 0 0); transition: clip-path 900ms var(--ease-out) 900ms; }
.is-ready .statement .scrawl::after, .is-in .scrawl::after, html:not(.js) .scrawl::after { clip-path: inset(0 0 0 0); }
:root[data-theme="night"] .scrawl::after { filter: brightness(1.9); }

/* The trail: a dashed ink route between sections, revealed as you scroll */
.trail { position: relative; height: 340px; pointer-events: none; }
.trail svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 7 8; stroke-linecap: round; opacity: 0.85; }
.trail--down { margin-top: -40px; }

/* Projects */
.project { position: relative; padding-bottom: var(--section-gap); scroll-margin-top: 72px; }
.project__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.project__dek { max-width: 46ch; text-align: right; color: var(--ink-2); }
.project__visit { display: flex; width: fit-content; margin-top: 32px; gap: 10px; white-space: nowrap; }
.project__title--action { padding-bottom: 64px; }
.project__lede .project__dek { max-width: 46ch; margin-top: 64px; text-align: left; }
.project__title--action + .project__lede .project__dek { margin-top: 48px; }
.project__title { position: relative; margin-top: 24px; }
.poster { font-size: var(--text-poster); line-height: 0.86; letter-spacing: -0.055em; color: var(--ink); margin-left: -0.04em; white-space: nowrap; max-width: none; }
.project__title .stamp { position: absolute; top: 8%; right: var(--gutter); }
.project__title .poster { position: relative; z-index: 1; padding-block: 0.08em 0.24em; margin-block: -0.08em -0.24em; }
/* An engraved specimen resting in the space under the lead capture */
.project__intro .film--lead { grid-column: 1; grid-row: 1; }
.project__intro .project__story { grid-column: 2; grid-row: 1 / span 2; }
.project__specimen { grid-column: 1; grid-row: 2; justify-self: center; width: clamp(160px, 16vw, 240px); height: auto; margin-top: 56px; opacity: 0.5; filter: var(--plate-filter); mix-blend-mode: var(--plate-blend); pointer-events: none; }
.film--lead { position: relative; margin: 0; }
.film--lead .film__video { width: 100%; }
.scribble { position: absolute; z-index: 2; top: -44px; right: 8%; display: inline-flex; align-items: flex-start; gap: 4px; font-family: "Caveat", cursive; font-size: 1.75rem; line-height: 1; color: var(--accent); pointer-events: none; rotate: -3deg; }
.scribble--left { right: auto; left: 22%; }
.scribble--right { top: 10%; right: auto; left: calc(100% + 20px); flex-direction: row-reverse; align-items: flex-end; white-space: nowrap; }
.scribble--right svg { scale: -1 1; margin: 0 0 -26px; }
.js .scribble[data-pencil-note] { opacity: 1; transition: none; }
.scribble svg { width: 64px; height: 48px; margin-top: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.project__kicker { font-family: var(--font-mono); font-size: var(--text-meta); font-weight: 400; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
/* The story starts below the edge specimen, beside the lead capture. */
.project__intro { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; margin-top: 72px; }
.project__story { display: grid; gap: 64px; padding-top: max(31.2%, 240px); }
.project__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; }
.project__pull { margin: 0; padding-top: 28px; border-top: 1px solid var(--ink); }
.project__pull p { font-size: var(--text-heading); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); font-style: italic; }
.project__pull footer { margin-top: 20px; color: var(--ink-2); max-width: 44ch; }

.project__steps { margin-top: 140px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.steps figure { margin: 0; }
.steps img { display: block; width: 100%; height: auto; }
.steps figcaption { margin-top: 20px; color: var(--ink-2); }
.steps figcaption b { font-weight: 400; color: var(--ink); }
.steps__no { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: var(--text-meta); letter-spacing: 0.09em; color: var(--accent); }
.steps--phone { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps--phone img { border-radius: 22px; box-shadow: 0 22px 40px -28px rgba(46, 33, 23, 0.6); }
.steps--desktop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 48px; }
.steps--desktop img { border-radius: 10px; box-shadow: 0 26px 50px -30px rgba(18, 15, 12, 0.6); }

.project__feature { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; align-items: end; margin-top: 140px; }
.project__feature--notes { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.project__aside p { color: var(--ink-2); }

.project__notes { margin-top: 140px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; border-top: 1px solid var(--ink); }
.notes-grid .project-note { border-top: 0; }
.notes-grid .project-note h4 { margin-top: 24px; }

/* Micro-interactions (all skipped under reduced motion and without JavaScript) */
.text-link { background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat; transition: background-size var(--dur-long) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.text-link:hover { background-size: 100% 1px; border-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  @supports (mask-image: radial-gradient(black, transparent)) or (-webkit-mask-image: radial-gradient(black, transparent)) {
    .js [data-ink] { opacity: 0; }
    .js [data-ink].is-in { opacity: 1; animation: ink-reveal var(--dur-ink) var(--ease-menu) backwards; }
    @keyframes ink-reveal {
      0%, 100% {
        -webkit-mask-image:
          radial-gradient(ellipse at center, #000 40%, transparent 72%),
          radial-gradient(ellipse at center, #000 40%, transparent 72%),
          radial-gradient(ellipse at center, #000 40%, transparent 72%);
        mask-image:
          radial-gradient(ellipse at center, #000 40%, transparent 72%),
          radial-gradient(ellipse at center, #000 40%, transparent 72%),
          radial-gradient(ellipse at center, #000 40%, transparent 72%);
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        mask-mode: alpha;
        -webkit-mask-position: 12% 35%, 48% 70%, 85% 25%;
        mask-position: 12% 35%, 48% 70%, 85% 25%;
      }
      0% { -webkit-mask-size: 0% 0%; mask-size: 0% 0%; opacity: 0; filter: blur(clamp(1px, 0.035em, 8px)); }
      100% { -webkit-mask-size: 300% 300%; mask-size: 300% 300%; opacity: 1; filter: blur(0); }
    }
  }
  .js [data-rise] { translate: 0 105%; transition: translate 1000ms var(--ease-out); }
  .js .hero__kicker[data-rise] { translate: 0 12px; opacity: 0; transition: translate 700ms var(--ease-out), opacity 700ms var(--ease-out); }
  .js.is-ready [data-rise] { translate: 0 0; opacity: 1; }
  .js [data-settle] { opacity: 0; translate: 0 28px; transition: opacity 800ms var(--ease-out), translate 900ms var(--ease-out); }
  .js [data-settle].is-in { opacity: 1; translate: 0 0; }
  .js .project__specimen[data-settle].is-in { opacity: 0.5; }
  .js .steps li:nth-child(2)[data-settle] { transition-delay: 80ms; }
  .js .steps li:nth-child(3)[data-settle] { transition-delay: 160ms; }
  .js .steps li:nth-child(4)[data-settle] { transition-delay: 240ms; }
  .js [data-stamp] { opacity: 0; scale: 1.6; transition: opacity 240ms ease-out, scale 320ms cubic-bezier(0.3, 1.6, 0.5, 1); }
  .js [data-stamp].is-in { opacity: 1; scale: 1; transition-delay: 700ms; }
  .js .scribble { opacity: 0; transition: opacity 500ms var(--ease-out) 600ms; }
  .js .is-in > .scribble { opacity: 1; }
}

@media (max-width: 60rem) {
  .hero { padding-top: 56px; }
  .statement { padding-right: 0; }
  .hero__portrait { position: relative; top: auto; right: auto; justify-self: end; width: 200px; margin-top: 40px; grid-row: 4; }
  .hero__foot { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .project__head { flex-direction: column; gap: 12px; }
  .project__dek { text-align: left; }
  .project__title--action { padding-bottom: 0; }
  .project__title--action + .project__lede .project__dek { margin-top: 48px; }
  .project__title .stamp { position: relative; top: 0; right: 0; margin-top: 20px; display: inline-flex; }
  .project__intro .film--lead, .project__intro .project__story { grid-column: 1; grid-row: auto; }
  .project__specimen { grid-column: 1; grid-row: auto; width: 150px; margin-top: 0; justify-self: start; }
  .project__intro, .project__feature { grid-template-columns: 1fr; gap: 56px; }
  .project__feature { margin-top: 88px; }
  .project__story { padding-top: 0; gap: 48px; }
  .project__steps, .project__notes { margin-top: 96px; }
  .steps--phone { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
  .steps--desktop { grid-template-columns: 1fr; gap: 56px; }
  .notes-grid { grid-template-columns: 1fr; gap: 0; }
  .project { padding-bottom: var(--section-gap); }
  .scribble { display: none; }
  .scribble[data-pencil-note] { display: flex; position: relative; inset: auto; width: fit-content; max-width: 100%; margin-bottom: 16px; white-space: normal; }
  .trail { height: 200px; }
}
@media (max-width: 40rem) {
  .steps--phone { gap: 40px 16px; }
}


/* Trails draw in once, right to left, when they reach the viewport; then they stay still */
@media (prefers-reduced-motion: no-preference) {
  .js .trail svg { clip-path: inset(-10px -10px -10px 100%); transition: clip-path 1.6s var(--ease-in-out); }
  .js .trail--ltr svg { clip-path: inset(-10px 100% -10px -10px); }
  .js .trail.is-in svg { clip-path: inset(-10px); }
}

/* Lightbox, after angrove.app: hover tilts toward the cursor, click grows the media to fill the screen */
.lightbox-target { cursor: zoom-in; transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), scale 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.lightbox-target.is-hovered { scale: 1.01; }
.lightbox-target:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.lightbox { position: fixed; inset: 0; z-index: 2147483002; cursor: zoom-out; outline: none; }
.lightbox__shade { position: absolute; inset: 0; background: rgba(18, 15, 12, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox__media { transform: none; scale: none; transition: none; cursor: zoom-out; }
.lightbox--polaroid { perspective: 1600px; }
.lightbox__scene { position: absolute; z-index: 2; top: 50%; left: 50%; translate: -50% -50%; max-width: none; opacity: 0; pointer-events: none; touch-action: none; filter: drop-shadow(0 8px 10px rgba(35, 26, 18, 0.2)); }
.lightbox__scene.is-ready { opacity: 1; }
.lightbox .lightbox__scene { pointer-events: auto; cursor: grab; }
.lightbox--polaroid.is-rotating .lightbox__scene { cursor: grabbing; }
.snapshot.has-polaroid-mesh, .lightbox .has-polaroid-mesh { background: transparent; box-shadow: none; }
/* Drafting can force opacity to 1; visibility keeps the source print hidden
   while preserving its dimensions for the persistent 3D scene. */
.has-polaroid-mesh > img:first-child, .has-polaroid-mesh > figcaption { visibility: hidden; opacity: 0; pointer-events: none; }
.has-polaroid-mesh::before, .lightbox .lightbox__polaroid.has-polaroid-mesh::before, .lightbox .lightbox__polaroid.has-polaroid-mesh::after { display: none; }
.lightbox .lightbox__polaroid { transform-style: preserve-3d; background: transparent; box-shadow: none; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.lightbox .lightbox__polaroid.is-rotating { cursor: grabbing; }
.lightbox__polaroid > img, .lightbox__polaroid > figcaption { backface-visibility: hidden; transform: translateZ(1px); }
.lightbox .lightbox__polaroid::before, .lightbox .lightbox__polaroid::after { content: ""; display: block; position: absolute; inset: 0; width: auto; height: auto; translate: none; rotate: none; z-index: auto; backface-visibility: hidden; pointer-events: none; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); }
.lightbox .lightbox__polaroid::before { background: #fffdf8; transform: translateZ(0.7px); }
.lightbox .lightbox__polaroid::after { background: linear-gradient(#302f2b, #242420) center 36% / calc(100% - 32px) 65% no-repeat, #e9e5db; transform: rotateY(180deg) translateZ(0.7px); }
.lightbox__edge { position: absolute; display: block; background: #d1cbbf; pointer-events: none; }
.lightbox__edge--top, .lightbox__edge--bottom { left: 0; width: 100%; height: 1.4px; transform: rotateX(90deg); }
.lightbox__edge--top { top: -0.7px; }
.lightbox__edge--bottom { bottom: -0.7px; }
.lightbox__edge--left, .lightbox__edge--right { top: 0; height: 100%; width: 1.4px; transform: rotateY(90deg); }
.lightbox__edge--left { left: -0.7px; }
.lightbox__edge--right { right: -0.7px; }
.lightbox__hint { position: absolute; z-index: 10; bottom: 12px; left: 50%; translate: -50% 0; width: max-content; max-width: calc(100% - 32px) !important; padding: 6px 12px; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--page); text-align: center; font: 12px / 1.5 var(--font-mono); color: var(--ink-2); pointer-events: none; }
.lightbox__close { position: absolute; z-index: 10; top: 16px; right: 16px; border: 1px solid var(--rule-2); border-radius: 4px; padding: 8px 14px; background: var(--page); color: var(--ink); cursor: pointer; }
.lightbox__caption { position: fixed; translate: -50% 0; text-align: center; pointer-events: none; }
.lightbox__title { margin: 0 0 6px; font: 400 var(--text-meta) / 1.4 var(--font-mono); letter-spacing: 0.09em; text-transform: uppercase; color: #d08a62; }
.lightbox__text { margin: 0; font: 400 var(--text-body) / 1.55 var(--font-body); color: rgba(242, 236, 224, 0.82); }

/* Contact: one invitation, three actions, and a rooftop conversation. */
.contact { position: relative; padding-block: var(--section-gap); }
.contact__inner { position: relative; }
.contact__statement { font-size: var(--text-statement); line-height: 0.98; letter-spacing: -0.035em; max-width: none; }
.contact__statement em { font-style: italic; color: var(--accent); }
.contact__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; margin-top: 32px; }
.contact__lead { max-width: 48ch; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact__actions .button { gap: 10px; }
.contact__photo { margin: 12px 8px; width: calc(100% - 16px); max-width: 420px; padding: 16px 16px 80px; background: #fffdf8; box-shadow: 0 3px 6px rgba(35, 26, 18, 0.12), 0 18px 32px -12px rgba(35, 26, 18, 0.3); rotate: 3deg; }
.contact__photo::before { display: none; }
.contact__photo > img:first-child { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center; filter: grayscale(1); }
.contact__stamp { top: 12px; right: var(--gutter); }
@media (max-width: 60rem) {
  .contact { padding-block: var(--section-gap-s); }
  .contact__body { grid-template-columns: 1fr; gap: 40px; margin-top: 24px; }
  .contact__lead { max-width: 65ch; }
  .contact__stamp { position: relative; top: 0; right: 0; margin-top: 40px; display: inline-flex; }
}

/* Icons: one inline SVG set, so arrows never fall back to colour emoji on phones */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 0.8em; height: 0.8em; vertical-align: -0.05em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

/* Experience sits on ruled notebook paper, laid out like an exhibit */
html { overflow-x: clip; }
.record { position: relative; isolation: isolate; padding-block: var(--section-gap); }
@media (max-width: 60rem) { .record { padding-block: var(--section-gap-s); } }
.record::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); background-color: var(--paper-2); background-image: var(--ruling-image); background-repeat: repeat-y; background-size: 100% 32px; border-block: 1px solid var(--rule); }

/* Fixed, irregular edge placements keep the scatter stable and away from content.
   The ruler spans the content width; key 240px long, seal 64px across. */
.desk { position: absolute; z-index: 4; max-width: none; height: auto; pointer-events: none; user-select: none; filter: none; }
:root[data-theme="night"] .desk { filter: brightness(0.82); }
.hero__portrait::before { display: none; }
.hero__portrait { z-index: 2; }
.desk-rest { position: relative; width: 100%; max-width: none; height: 180px; padding: 0; margin-top: 48px; overflow: clip; }
.desk-rest .desk { position: absolute; }
/* The plate anchors the ruler below the inVectus illustration, with 75% off the left edge. */
.project__plate { position: relative; grid-column: 1; grid-row: 2; margin-bottom: 140px; }
.project__plate .project__specimen { display: block; margin-inline: auto; }
.desk--ruler {
  --ruler-width: calc(min(var(--container), 100vw) - max(var(--gutter), var(--safe-left)) - max(var(--gutter), var(--safe-right)));
  width: var(--ruler-width);
  left: calc((100vw - min(var(--container), 100vw)) / -2 - max(var(--gutter), var(--safe-left)) - var(--ruler-width) * 0.75);
  top: calc(100% + 36px);
  rotate: 192deg; /* Turn the image over, plus its 12-degree resting tilt. */
}
.desk--ruler.is-away { visibility: hidden; }
.desk--fern { width: 200px; right: calc((100% - 100vw) / 2 - 100px); top: -160px; rotate: -45deg; }
.desk--compass { width: 280px; right: calc((100% - 100vw) / 2 - 100px); top: -136px; rotate: -45deg; }
.desk--key { width: 240px; left: -30px; top: 48px; rotate: -16deg; }
.project:has(> .desk-rest:last-child) { padding-bottom: 64px; }
.desk--tape { width: 140px; right: calc((100% - 100vw) / 2 - 60px); top: 44%; rotate: 24deg; }
.desk--stamp { width: 64px; right: -12px; top: 42%; rotate: -18deg; }
.footer { position: relative; align-items: center; }
.footer .desk--wax-seal { position: absolute; left: calc((100% - 100vw) / 2 - 14px); top: 22px; width: 64px; rotate: -24deg; }

@media (max-width: 60rem) {
  .desk:not(.desk--ruler):not(.desk--tape), .desk-rest:not(.desk-rest--ruler) { display: none; }
  .project__plate { grid-row: auto; margin-bottom: 100px; }
  .project__plate .project__specimen { margin-inline: 0; }
  .desk--tape { width: 90px; right: calc((100% - 100vw) / 2 - 60px); top: 52px; }
}

/* ==========================================================================
   Expedition journal: nudgeable desk objects, marginalia,
   and the viewing-table lightbox. Behaviour lives in js/journal.js.
   ========================================================================== */

/* Marginalia: pencil notes under a passage, written in on hover (or on scroll for touch) */
.margin-note { display: flex; align-items: flex-start; gap: 6px; width: fit-content; margin-top: 14px; font-family: "Caveat", cursive; font-size: 1.5rem; line-height: 1.05; color: var(--pencil); rotate: -1.5deg; pointer-events: none; }
.margin-note svg { flex: none; width: 34px; height: 26px; margin-top: -8px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.project__pull .margin-note { margin: 0 0 14px auto; }
.project__pull .margin-note svg { order: 2; scale: -1 -1; margin: 6px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .margin-note > span { clip-path: inset(-0.2em 100% -0.3em 0); transition: clip-path 1100ms cubic-bezier(0.45, 0.05, 0.4, 1) 350ms; }
  .js .margin-note path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 450ms var(--ease-out); }
  .js .margin-note path + path { transition-delay: 300ms; }
  .js .margin-note.is-written > span { clip-path: inset(-0.2em -0.3em -0.3em -0.2em); }
  .js .margin-note.is-written path { stroke-dashoffset: 0; }
  .js .margin-note:not(.is-written) svg { opacity: 0; }
}

/* Lightbox as a viewing table: paper ground, a mount with crop marks and a scale, a label card */
.lightbox__shade { background: var(--table); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox__mount { position: fixed; background: var(--page); border: 1px solid var(--rule-2); box-shadow: 0 30px 60px -34px rgba(18, 15, 12, 0.5); pointer-events: none; }
.lightbox__mount::before { content: ""; position: absolute; inset: -16px; background:
  linear-gradient(var(--muted), var(--muted)) left top / 12px 1px, linear-gradient(var(--muted), var(--muted)) left top / 1px 12px,
  linear-gradient(var(--muted), var(--muted)) right top / 12px 1px, linear-gradient(var(--muted), var(--muted)) right top / 1px 12px,
  linear-gradient(var(--muted), var(--muted)) left bottom / 12px 1px, linear-gradient(var(--muted), var(--muted)) left bottom / 1px 12px,
  linear-gradient(var(--muted), var(--muted)) right bottom / 12px 1px, linear-gradient(var(--muted), var(--muted)) right bottom / 1px 12px; background-repeat: no-repeat; opacity: 0.7; }
.lightbox__scale { position: absolute; left: 0; right: 0; bottom: calc(100% + 22px); height: 12px; border-bottom: 1px solid var(--muted); opacity: 0.6;
  background: repeating-linear-gradient(to right, var(--muted) 0 1px, transparent 1px 50px) left bottom / 100% 12px no-repeat, repeating-linear-gradient(to right, var(--muted) 0 1px, transparent 1px 10px) left bottom / 100% 5px no-repeat; }
.lightbox__caption { padding: 12px 18px 14px; background: var(--page); border: 1px solid var(--rule-2); box-shadow: 0 12px 24px -18px rgba(18, 15, 12, 0.5); rotate: -0.6deg; }
.lightbox__title { color: var(--accent); }
.lightbox__text { color: var(--ink-2); }
@media (max-width: 40rem) { .lightbox__scale, .lightbox__mount::before { display: none; } }

/* Experience: an exhibit-style record. Title at statement size, the shells beside the practice
   and education, roles as a ruled ledger, tools in the shared notes grid. */
.record__title { font-size: var(--text-statement); line-height: 0.98; letter-spacing: -0.035em; color: var(--ink); padding-block: 0.06em 0.2em; margin-block: -0.06em -0.2em; }
.record__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; margin-top: 72px; }
.record__specimen { justify-self: center; width: clamp(220px, 26vw, 380px); height: auto; opacity: 0.6; filter: var(--plate-filter); mix-blend-mode: var(--plate-blend); pointer-events: none; }
.js .record__specimen[data-settle].is-in { opacity: 0.6; }
.record__about p + p { margin-top: 16px; }
.record__roles { margin-top: 140px; }
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.role { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 6fr); gap: 48px; align-items: baseline; padding-block: 28px; border-bottom: 1px solid var(--rule); }
.role__years { font-family: var(--font-mono); font-size: var(--text-meta); letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.role__name h4 { font-size: var(--text-heading); line-height: 1.2; letter-spacing: -0.02em; font-weight: 400; color: var(--ink); }
.role__name .label { margin: 8px 0 0; }
.role__about { color: var(--ink-2); max-width: 52ch; }
.record .project__notes { margin-top: 140px; }
@media (max-width: 60rem) {
  .record__intro { grid-template-columns: 1fr; gap: 48px; margin-top: 56px; }
  .record__specimen { justify-self: start; width: 200px; }
  .record__roles, .record .project__notes { margin-top: 96px; }
  .role { grid-template-columns: 1fr; gap: 10px; padding-block: 24px; }
}

/* Each block drafts itself (js/draft.js): construction guides, outlines, and line skeletons in
   heading ink at 50%, then each piece fills in. The opening is held by the head script's class;
   later blocks by data-draft-part, which the script sets and clears. */
[data-draft-part=""]:not(.is-drafted) { opacity: 0 !important; animation: none !important; }
.is-drafting .hero :is(.hero__kicker, .hero__intro p, .hero__actions > *):not(.is-drafted) { opacity: 0 !important; animation: none !important; }
/* Headings wait as outlined letters, then fill with ink. */
[data-draft-part="outline"], [data-draft-part="outline"] *, .is-drafting .hero .statement, .is-drafting .hero .statement * { transition: color 420ms var(--ease-menu), -webkit-text-stroke-color 420ms var(--ease-menu); }
:is([data-draft-part="outline"], .is-drafting .hero .statement):not(.is-drafted) { opacity: 1 !important; animation: none !important; }
:is([data-draft-part="outline"], .is-drafting .hero .statement):not(.is-drafted), :is([data-draft-part="outline"], .is-drafting .hero .statement):not(.is-drafted) * { color: transparent !important; -webkit-text-stroke: 1px var(--draft); }
:is([data-draft-part="outline"], .is-drafting .hero .statement):not(.is-drafted) .scrawl::after { opacity: 0; }
[data-draft-part="outline"].is-drafted, [data-draft-part="outline"].is-drafted * { -webkit-text-stroke-color: transparent; }
.is-inked { animation: none !important; opacity: 1 !important; }
/* Static sketches never transition into their outline state. Only the later
   fill animates; below the masthead, content is already composed on arrival. */
[data-draft-part]:not(.is-drafted), [data-draft-part]:not(.is-drafted) * { transition: none !important; }
.is-draft-ready { opacity: 1 !important; translate: none !important; scale: none !important; transition: none !important; animation: none !important; }
.draft { position: absolute; z-index: 5; pointer-events: none; }
.draft svg { position: absolute; inset: 0; overflow: visible; }
.draft svg path { fill: none; stroke: var(--draft); stroke-dasharray: 1; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.draft__guide { stroke-width: 0.8; opacity: 0.55; }
.draft__accent { stroke-width: 1; }
.is-pencil-underline::after { visibility: hidden !important; }
.draft__box { stroke-width: 1.1; }
.draft__hatch { stroke-width: 0.8; opacity: 0.5; }
.draft__letter { stroke-width: 0.7; opacity: 0.7; }
.draft__note { position: absolute; white-space: nowrap; font-family: "Caveat", cursive; font-size: 1.5rem; line-height: 1.1; color: var(--draft); }
.draft__smudge { position: absolute; border-radius: 40%; background: radial-gradient(closest-side, var(--rule), transparent); filter: blur(4px); opacity: 0; }
.draft__tool { position: absolute; inset: 0 auto auto 0; width: 0; height: 0; z-index: 2; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.draft__tool img { position: absolute; max-width: none; object-fit: fill; user-select: none; pointer-events: none; }
.draft__tool--pencil img { width: 6px; height: 66px; transform: translate(-50%, 0); }
.draft__tool--pen img { width: 13px; height: 144px; transform: translate(-50%, -100%); }
.draft__tool--eraser img { width: 44px; height: 27px; transform: translate(-50%, -50%); }
@media (max-width: 48rem), (pointer: coarse) {
  .draft__tool--pencil img { width: 4.5px; height: 48px; }
  .draft__tool--pen img { width: 10px; height: 110px; }
  .draft__tool--eraser img { width: 36px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .draft { display: none; }
  [data-draft-part=""]:not(.is-drafted) { opacity: 1 !important; }
}

/* Keep the pencil/ink sequence on touch screens without repainting blurred text
   and animated gradient masks across an entire section. */
@media (prefers-reduced-motion: no-preference) and (max-width: 48rem), (prefers-reduced-motion: no-preference) and (pointer: coarse) {
  .js [data-ink].is-in { animation: mobile-ink 360ms var(--ease-menu) backwards; }
  @keyframes mobile-ink { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  [data-draft-part="outline"], [data-draft-part="outline"] *, .is-drafting .hero .statement, .is-drafting .hero .statement * { transition: none; }
  .js [data-settle] { translate: 0 12px; transition-duration: 420ms, 480ms; }
  .js [data-stamp] { scale: 1.12; }
  .trail__note { filter: none; }
}

/* The portrait is slid in from the right, then placed, and a paperclip pins its top right. */
.hero__portrait .hero__clip, .contact__photo .contact__clip { position: absolute; z-index: 3; top: 6px; right: 6px; width: 54px; height: auto; rotate: 98deg; pointer-events: none; }
.hero__portrait > .portrait__writing-pencil { position: absolute; z-index: 4; width: 6px; height: 66px; opacity: 0; pointer-events: none; transform-origin: 50% 0; transform: translateX(-50%) rotate(150deg); }
:root[data-theme="night"] .hero__clip { filter: brightness(0.82); }
@media (prefers-reduced-motion: no-preference) {
  .js:not(.is-placed) .hero__portrait:not(.is-sliding):not(.is-landed) { visibility: hidden; }
  .js:not(.is-placed) .hero__portrait:not(.is-clipped) .hero__clip { opacity: 0; }
}

/* The drafting compass rules the line over inVectus (js/journal.js); the trail's own wipe
   gives way to a mask that follows the compass point. */
.trail--rule { height: 10px; margin-bottom: 40px; }
.trail--rule svg { left: max(var(--gutter), var(--safe-left)); right: max(var(--gutter), var(--safe-right)); width: auto; }
.trail--rule path { stroke: var(--ink); stroke-width: 1; stroke-dasharray: none; opacity: 1; }
.js .trail--compass.is-compass svg { clip-path: none !important; transition: none; }
.desk--compass.is-away { visibility: hidden; }
.hero__portrait.is-sliding:not(.is-landed) { z-index: 400; }
/* The rest of the opening waits for the portrait's first move after it slides in. */
.hero > :not(.hero__portrait) { transition: opacity 500ms var(--ease-out); }
.is-awaiting-photo .hero > :not(.hero__portrait) { visibility: hidden !important; opacity: 0 !important; }

/* The statement, a letter at a time (js/site.js); its own ink reveal gives way to the letters. */
.statement.is-lettered { animation: none !important; opacity: 1 !important; }
.statement.is-lettered .letter { opacity: 0; transition: opacity 360ms var(--ease-out), color 360ms var(--ease-menu), -webkit-text-stroke-color 360ms var(--ease-menu); transition-delay: calc(var(--i) * 45ms) !important; }
.statement.is-lettered.is-spelled .letter { opacity: 1; }

/* "eye trail": a pencil label on each dotted trail while it draws (js/journal.js). */
.trail__note { position: absolute; display: none; white-space: nowrap; font-family: "Caveat", cursive; font-size: 1.5rem; line-height: 1; color: var(--draft); rotate: -5deg; filter: url(#graphite); }
.trail__note.is-shown { display: block; }

/* Film playback remains explicit and keyboard-accessible beside the figure label. */
.film figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-md); }
.film__playback { padding: var(--space-xs) var(--space-sm); border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink); font: inherit; font-size: var(--text-meta); cursor: pointer; }
