/* Shared site chrome: floating logo + menu launcher/panel, identical across all pages. */
.scramble-char{display:inline-block}
@font-face{font-family:"Inter";font-weight:400;font-style:normal;font-display:swap;src:url(assets/fonts/Inter-Regular.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-weight:200 800;font-style:normal;font-display:swap;src:url(assets/fonts/Manrope-Variable.woff2) format("woff2")}
@font-face{font-family:'Lower Pixel';src:url('assets/fonts/LowresPixel-Regular.woff') format('woff');font-weight:400;font-style:normal;font-display:swap;ascent-override:106.6%;descent-override:30%;line-gap-override:0%}
/* Title entrance (scramble-title.js): the whole title rises in letter by letter, and a few letters flicker through the pixel font
   ("cyber" glyphs) before decoding into the real letter. `title-motion` is set in the head unless reduced motion is on; the title stays
   hidden only until the script has split it, and unhides itself after 3s if the script never runs. The rise uses `translate` so a
   glyph's own transform (the pixel letters' scaleY) is left alone. The script locks each flickering letter to its own measured
   width (`.is-cyber`, `overflow:hidden` here clips any glyph wider than that) so the title's own box never changes size mid-animation
   and can't shift layout around it (e.g. a sibling column sized off the title's min-content width). */
.title-motion .scramble-title:not(.is-split){visibility:hidden;animation:title-unhide 0s 3s forwards}
@keyframes title-unhide{to{visibility:visible}}
.title-motion .is-split .scramble-char{opacity:0;translate:0 .45em}
.title-motion .is-split.is-in .scramble-char{opacity:1;translate:0 0;transition:opacity .55s ease-out var(--d,0ms),translate .9s cubic-bezier(.16,1,.3,1) var(--d,0ms)}
/* Stroke match between the pixel letters and the Manrope letters (measured at 200px: pixel stroke .10em on a .70em cap; Manrope 500 stroke .09em on a .725em cap, 600 .105em).
   At 500 the pixel letters looked ~20% heavier, so display titles are set at --title-weight (600) and the pixel letters at 1em, stretched by .725/.70 = 1.036 to reach the same cap height.
   To lighten the titles again, lower --title-weight; the pixel letters then read heavier by roughly 2% per 10 weight units. */
:root{--title-weight:600}
.scramble-title.scramble-title{font-weight:var(--title-weight)}
.pixel-x{font-family:'Lower Pixel',Arial,Helvetica,sans-serif;font-weight:400;font-size:1em;transform-origin:bottom;transform:scaleY(1.036)}
.scramble-char.is-cyber{font-family:'Lower Pixel',Arial,Helvetica,sans-serif;font-weight:400;transform-origin:bottom;transform:scaleY(1.036);overflow:clip}
/* Lower Pixel's O renders ~30% narrower than Manrope 600's O at the same font-size (measured: 34.3px vs 44.6px box at
   63.6px font-size, e.g. YourCondos's h1). scaleX widens it, but unlike the cap-height scaleY above (which the codebase
   deliberately keeps as the ONLY scale, matching --title-weight instead of stretching, precisely to avoid distorting
   stroke weight — see the stroke-match note above), scaleX is not weight-neutral: the O's left/right strokes are
   measured horizontally, so scaleX thickens them directly, while its top/bottom strokes (measured vertically) don't
   move — full 1.3x (exact width match) made the sides read visibly heavier than the top/bottom and than every other
   letter. Full font-design parity isn't reachable without a real width axis (Lower Pixel doesn't have one), so this
   settles for a partial correction (1.13x) that narrows the width gap without the stroke mismatch being legible.
   Scoped to O only via the char's original data-content, so no other pixel letter (W, X, A, I, E, D, S...) is
   affected. `margin-inline` gives back the ~6.5% a side the stretch now overflows its own layout box by, so the
   letter's spacing to its neighbours still looks right; applied to both `.pixel-x` (settled) and `.is-cyber`
   (mid-flicker) so it's present from the very first paint and never toggles — keeping the title's total width
   constant through the whole entrance, per the title-entrance rule above. */
.scramble-char[data-content="o" i]:is(.pixel-x,.is-cyber){transform:scaleY(1.036) scaleX(1.13);margin-inline:.035em}
.scramble-word{display:inline-block;white-space:nowrap}
/* Explicit font-family/weight/transform throughout so this renders the same regardless of the host page's own type styles (e.g. project.html's bare `nav` selector). */
.floating-logo{position:fixed;left:var(--space);top:22px;z-index:21;display:block;width:48px;mix-blend-mode:difference}
.floating-logo img{display:block;width:100%;height:auto;filter:invert(1)}
.menu-launcher,.menu-panel{--btn-h:45px;--btn-top:22px;--btn-w:calc(var(--btn-h)*382/379);--btn-c:calc(var(--btn-h)*117/379)}
.menu-launcher{font-family:"Inter",Arial,Helvetica,sans-serif;font-weight:400}
.menu-panel{font-family:"Manrope",Arial,Helvetica,sans-serif;font-weight:500;letter-spacing:-.02em}
.menu-launcher{position:fixed;right:var(--space);top:var(--btn-top);z-index:20;mix-blend-mode:difference}
.menu-close{font:inherit;font-weight:400;text-transform:none;border:0;cursor:pointer;display:flex;align-items:center;gap:24px;font-size:13px;padding:12px 18px;background:#111;color:white;clip-path:polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px)}
/* Plain wordmark, no button chrome: mix-blend-mode:difference on .menu-launcher gives it adaptive contrast the same way the floating logo gets it. */
.menu-open{font:inherit;font-weight:500;font-family:"Manrope",Arial,Helvetica,sans-serif;text-transform:none;border:0;cursor:pointer;display:flex;align-items:center;height:auto;width:auto;padding:0;background:none;color:#fff;font-size:30px;letter-spacing:0;text-decoration:none}
.menu-open:hover{background:none;color:#fff}
.about-launcher{position:fixed;left:var(--space);bottom:22px;z-index:20;display:flex;align-items:center;font:500 30px/1 "Manrope",Arial,Helvetica,sans-serif;color:#fff;mix-blend-mode:difference;text-decoration:none}
.about-launcher:focus-visible{outline:2px solid currentColor;outline-offset:5px}
@media(max-width:650px){.about-launcher{bottom:20px}}
.menu-open .pixel-x{transform:scaleY(1.036) scaleX(1.13);margin-inline:.035em}
.menu-close{position:absolute;top:var(--btn-top);right:var(--space);z-index:2;height:var(--btn-h);width:var(--btn-w);padding:0;gap:0;justify-content:center;background:#000;color:#fff;clip-path:polygon(30.63% 0,100% 0,100% 69.13%,69.37% 100%,0 100%,0 30.87%)}
.menu-open svg,.menu-close svg{display:block;width:100%;height:100%}
.menu-close svg{rotate:0deg;transition:rotate .45s cubic-bezier(.76,0,.24,1)}
.menu-panel.is-open .menu-close svg{rotate:45deg;transition:rotate .8s cubic-bezier(.16,1,.3,1) .05s}
.menu-open:focus-visible{outline:2px solid #fff;outline-offset:4px}
.menu-panel{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-height:100dvh;max-width:100%;border:0;padding:0;background:transparent;color:#111;overflow:hidden}
.menu-panel[open]{display:block}
/* The sheet is clipped to the button's own chamfered shape (same spot, same size, black) and, when opened, the clip grows to the whole
   panel while the fill goes from black to paper; closing runs it back into the button. Both polygons have six points so they interpolate. */
.menu-panel{--lag:.45s}
.menu-sheet{--bl:calc(100% - var(--space) - var(--btn-w));--br:calc(100% - var(--space));--bb:calc(var(--btn-top) + var(--btn-h));
  position:absolute;inset:0 0 0 auto;width:min(720px,100%);display:flex;flex-direction:column;padding:var(--btn-top) var(--space) 32px clamp(24px,4vw,60px);background:#000;overflow-y:auto;
  clip-path:polygon(calc(var(--bl) + var(--btn-c)) var(--btn-top),var(--br) var(--btn-top),var(--br) calc(var(--bb) - var(--btn-c)),calc(var(--br) - var(--btn-c)) var(--bb),var(--bl) var(--bb),var(--bl) calc(var(--btn-top) + var(--btn-c)));
  transition:clip-path .8s cubic-bezier(.76,0,.24,1) .15s,background-color .3s ease}
.menu-panel.is-open .menu-sheet{background:#f5f5f2;clip-path:polygon(0 0,100% 0,100% 100%,100% 100%,0 100%,0 0);transition:clip-path .95s cubic-bezier(.76,0,.24,1),background-color .5s ease .38s}
.menu-panel::backdrop{background:rgba(0,0,0,0);backdrop-filter:blur(0);-webkit-backdrop-filter:blur(0);transition:background .5s ease,backdrop-filter .5s ease,-webkit-backdrop-filter .5s ease}
.menu-panel.is-open::backdrop{background:rgba(0,0,0,.28);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);transition-duration:.7s}
.menu-top{display:flex;justify-content:space-between;align-items:center;gap:20px;height:var(--btn-h);font-size:12px;font-weight:500;text-transform:none}
.menu-panel nav{margin:auto 0;padding:60px 0;display:flex;flex-direction:column;font-weight:500;text-transform:uppercase;letter-spacing:normal}
.menu-panel nav a{position:relative;font-family:"Manrope",Arial,Helvetica,sans-serif;font-weight:var(--title-weight,600);display:flex;align-items:baseline;gap:24px;padding:22px 0;font-size:clamp(30px,4vw,56px);line-height:1.15;letter-spacing:-.04em}
.menu-panel nav a>span:first-child{font-size:11px;color:#777;letter-spacing:0}
.menu-panel nav i{font-size:.65em;font-style:normal;margin-left:auto;align-self:center;width:.75em;height:.75em;transition:transform .2s}
.menu-panel nav a:hover i{transform:translate(4px,-4px)}
.menu-bottom{display:flex;flex-direction:column;gap:12px;padding-top:24px;font-size:18px}
.menu-bottom>span{font-size:12px;color:#777}
/* Open/close motion (menu.js toggles .is-open): the panel slides in, the rules draw across, the labels rise in letter by letter
   (same rise as the title entrance) and the small copy fades up behind them. Row/letter delays come from --row and --i. */
.menu-top,.menu-bottom{opacity:0;translate:0 14px;transition:opacity .25s ease,translate .25s ease}
.menu-panel.is-open .menu-top{opacity:1;translate:0 0;transition:opacity .7s ease var(--lag),translate .9s cubic-bezier(.16,1,.3,1) var(--lag)}
.menu-panel.is-open .menu-bottom{opacity:1;translate:0 0;transition:opacity .7s ease calc(var(--lag) + .32s),translate .9s cubic-bezier(.16,1,.3,1) calc(var(--lag) + .32s)}
.menu-panel nav a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:#ccc;transform:scaleX(0);transform-origin:left;transition:transform .3s ease}
.menu-panel.is-open nav a::after{transform:none;transition:transform 1s cubic-bezier(.16,1,.3,1) calc(var(--lag) + var(--row,0)*.08s)}
.menu-panel nav a>span:first-child,.menu-panel nav i{opacity:0;transition:opacity .25s ease,transform .2s}
.menu-panel.is-open nav a>span:first-child,.menu-panel.is-open nav i{opacity:1;transition:opacity .6s ease calc(var(--lag) + .15s + var(--row,0)*.08s),transform .2s}
.menu-label .menu-char{display:inline-block;opacity:0;translate:0 .5em;transition:opacity .2s ease,translate .2s ease}
.menu-panel.is-open .menu-label .menu-char{opacity:1;translate:0 0;transition:opacity .55s ease-out calc(var(--lag) + var(--row,0)*.08s + var(--i,0)*.022s),translate .9s cubic-bezier(.16,1,.3,1) calc(var(--lag) + var(--row,0)*.08s + var(--i,0)*.022s)}
.menu-label .menu-word{display:inline-block;white-space:nowrap}
body.menu-visible{overflow:hidden}
@media(max-width:650px){.floating-logo{top:20px;width:40px}.menu-launcher,.menu-panel{--btn-h:41px;--btn-top:18px}.menu-sheet{padding:var(--btn-top) var(--space) 22px}.menu-panel nav a{font-size:36px;gap:16px;padding:20px 0}}
/* Keep the three persistent mobile links at the same viewport coordinates on every page. */
@media(max-width:650px){
  .floating-logo{left:18px;view-transition-name:site-logo}
  .menu-launcher{right:18px;view-transition-name:site-work}
  .about-launcher{left:18px;view-transition-name:site-about}
}
@media(prefers-reduced-motion:reduce){.menu-panel,.menu-panel *,.menu-panel::backdrop,.menu-panel nav a::after{transition:none!important}.menu-sheet{clip-path:none;background:#f5f5f2}.menu-close svg{rotate:45deg}.menu-top,.menu-bottom,.menu-panel nav a>span:first-child,.menu-panel nav i,.menu-label .menu-char{opacity:1;translate:none}.menu-panel nav a::after{transform:none}.menu-panel::backdrop{background:rgba(0,0,0,.28)}}

/* Work thumbnail caption (work-meta.js): title + dot-matrix arrow, hairline, tags and year. */
.work-meta{display:block;color:#080808}
.work-meta-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0 17px;border-bottom:1px solid #d4d4d4}
.work-meta-title{margin:0;font-family:var(--title-font,var(--display,"Manrope",Arial,Helvetica,sans-serif));font-weight:500;font-size:clamp(16px,1.4vw,20px);line-height:1.15;letter-spacing:-.02em;text-transform:uppercase}
.work-meta-origin{display:inline-block;vertical-align:middle;margin-left:10px;padding:4px 7px;border:1px solid #bcbcbc;color:#555;font:500 10px/1 "Inter",Arial,sans-serif;letter-spacing:.04em;white-space:nowrap}
.work-arrow{flex:none;display:block;width:18px;height:18px;transition:transform .35s cubic-bezier(.22,1,.36,1)}
a:hover>.work-meta .work-arrow,a:focus-visible>.work-meta .work-arrow{transform:translate(3px,-3px)}
.work-meta-foot{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding-top:10px;font:400 12px/1.3 "Inter",Arial,Helvetica,sans-serif;letter-spacing:0;text-transform:uppercase;color:#555}
.work-meta-foot i{font-style:normal;color:#bbb;margin:0 .55em}
.work-meta-year{flex:none}
@media(prefers-reduced-motion:reduce){.work-arrow{transition:none}}

/* Dot-matrix arrow as a mask, for links whose arrow is a plain <i class="dot-arrow"> (menu email link, nav rows): same 5x5 dots as work-meta.js. */
.dot-arrow,.menu-panel nav i{display:inline-block;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-.1 -.1 5.2 5.2'%3E%3Ccircle cx='0.5' cy='0.5' r='.58'/%3E%3Ccircle cx='2.5' cy='0.5' r='.58'/%3E%3Ccircle cx='4.5' cy='0.5' r='.58'/%3E%3Ccircle cx='4.5' cy='2.5' r='.58'/%3E%3Ccircle cx='4.5' cy='4.5' r='.58'/%3E%3Ccircle cx='3.5' cy='1.5' r='.58'/%3E%3Ccircle cx='2.5' cy='2.5' r='.58'/%3E%3Ccircle cx='1.5' cy='3.5' r='.58'/%3E%3Ccircle cx='0.5' cy='4.5' r='.58'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-.1 -.1 5.2 5.2'%3E%3Ccircle cx='0.5' cy='0.5' r='.58'/%3E%3Ccircle cx='2.5' cy='0.5' r='.58'/%3E%3Ccircle cx='4.5' cy='0.5' r='.58'/%3E%3Ccircle cx='4.5' cy='2.5' r='.58'/%3E%3Ccircle cx='4.5' cy='4.5' r='.58'/%3E%3Ccircle cx='3.5' cy='1.5' r='.58'/%3E%3Ccircle cx='2.5' cy='2.5' r='.58'/%3E%3Ccircle cx='1.5' cy='3.5' r='.58'/%3E%3Ccircle cx='0.5' cy='4.5' r='.58'/%3E%3C/svg%3E") center/contain no-repeat}
.dot-arrow{width:.72em;height:.72em;margin-left:.3em;vertical-align:-.02em}
.scramble-char.scramble-space{display:inline}
