* { box-sizing: border-box; }
:root { color-scheme: light; --paper: #fff; --card: #484848; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--paper); }
body { font-family: Arial, Helvetica, sans-serif; overscroll-behavior: none; }
button { -webkit-tap-highlight-color: transparent; }
#gallery { position: fixed; inset: 0; overflow: clip; touch-action: pinch-zoom; user-select: none; }
#rings { position: absolute; inset: 0; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-origin: 0 0; }
.tile { position: absolute; width: 160px; height: 160px; padding: 0; border: 0; border-radius: 0; background: var(--card); cursor: pointer; transform: translate(-50%, -50%) rotate(var(--angle)) scale(var(--hover, 1)); outline: 0; }
.tile.is-hovered, .tile:not(.camera-card):focus-visible { z-index: 2; }
.tile:not(.camera-card):focus-visible { outline: 3px solid #111; outline-offset: 8px; }
.ring:not(.interactive) { pointer-events: none; }
.vignette { position: fixed; inset: -1px; z-index: 200; pointer-events: none; background: radial-gradient(ellipse 60% 60% at 50% 50%, #ffffff00 0%, #ffffff00 40%, #ffffff08 55%, #ffffff1a 70%, #ffffff4d 85%, #ffffff99 100%, #ffffffdb 115%, #fff 130%); }
.hint { position: absolute; z-index: 201; left: 0; right: 0; bottom: max(23px, env(safe-area-inset-bottom)); margin: 0; color: #858585; font-size: 11px; font-weight: 400; letter-spacing: .025em; text-align: center; pointer-events: none; visibility: hidden; }
.hint.visible { visibility: visible; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; margin: 0; border: 0; overflow: hidden; background: transparent; color: #fff; }
#viewer::backdrop { background: transparent; }
.viewer-shade { position: absolute; inset: 0; background: #ffffff00; }
.expanded-card { position: absolute; background: #fff; box-shadow: 0 4px 45.8px #00000040; transform-origin: center; overflow: hidden; }
.expanded-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.close-button { position: absolute; width: 100px; height: 40px; border: 0; padding: 0 8px; display: flex; align-items: center; justify-content: center; gap: 6px; font: 500 12px Inter, Arial, sans-serif; color: #595959; background: transparent; cursor: pointer; }
.close-button[hidden] { display: none; }
.close-button kbd { padding: 0; border: 0; font: inherit; font-size: 11px; color: #858585; }
.close-separator { color: #a3a3a3; }
.close-button:hover { color: #111; }
.close-button:focus-visible { outline: 1px solid #595959; outline-offset: -4px; }
.no-script { position: absolute; left: 24px; right: 24px; top: 45%; text-align: center; color: #484848; }


#rings { transform-origin: 50% 50%; will-change: transform; }
#field { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.field-cell { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.layout-morph { position: absolute; inset: 0; z-index: 140; pointer-events: none; }
.morph-card { position: absolute; left: 0; top: 0; background-position: center; background-size: cover; will-change: transform, width, height; }
.view-toggle:disabled { cursor: default; }
.field-tile { background-size: contain !important; background-repeat: no-repeat; background-color: transparent; }
#gallery[data-view="field"] { cursor: grab; }
#gallery.is-dragging, #gallery.is-dragging .tile { cursor: grabbing; }
#gallery.is-dragging .tile { pointer-events: none; }
.view-control { position: fixed; top: 70px; right: 22px; z-index: 220; }
.view-toggle { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #d2d2d2; border-radius: 50%; color: #555; background: #ffffffed; cursor: pointer; transform: scale(.01); pointer-events: none; transition: transform 350ms cubic-bezier(.22,.7,.25,1), border-color 180ms; }
.view-control.is-visible .view-toggle, .view-control:focus-within .view-toggle { transform: scale(1); pointer-events: auto; }
.view-toggle:hover { border-color: #777; }
.view-toggle:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
.view-field-icon { display: none; }
.view-toggle[data-view="orbit"] .view-orbit-icon { display: none; }
.view-toggle[data-view="orbit"] .view-field-icon { display: block; }
@media (hover: none) { .view-toggle { transform: scale(1); pointer-events: auto; } }
@media (max-width: 760px) { .view-control { top: calc(min(487px, 100vw - 40px) * 76 / 487 + 72px); right: 20px; } .view-toggle { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .view-toggle { transition: none; } }
.expanded-card { display: none; }

.camera-card { z-index: 150 !important; }

@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url('./branding/inter-medium.ttf') format('truetype'); }
.portfolio-chrome { position: fixed; inset: 32px; z-index: 210; pointer-events: none; color: #000; font-family: Inter, Arial, sans-serif; font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: -.32px; }
.portfolio-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.brand-name { position: relative; flex: none; width: 487px; height: 76px; margin: 0; }
.brand-name.is-revealing img { visibility: hidden; }
.brand-reveal-text { position: absolute; left: 0; top: 0; width: max-content; white-space: nowrap; font-size: 80px; font-weight: 600; line-height: 76px; letter-spacing: -3px; transform-origin: top left; pointer-events: none; }
.scramble-character { display: inline-block; white-space: pre; text-align: center; }
.brand-name img { display: block; max-width: none; transform: scale(var(--brand-scale, 1)); transform-origin: top left; }
.portfolio-chrome a { pointer-events: auto; color: inherit; text-decoration: none; }
.portfolio-email { white-space: nowrap; }
.portfolio-email:hover { text-decoration: underline; text-underline-offset: 4px; }
.portfolio-chrome a:focus-visible { outline: 2px solid #111; outline-offset: 6px; }
.portfolio-footer { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.portfolio-description { margin: 0; }
.portfolio-socials { position: relative; isolation: isolate; pointer-events: auto; display: flex; gap: 8px; align-items: center; }
.portfolio-socials::before { content: ''; position: absolute; inset: -24px -32px -32px -24px; z-index: -1; }
.portfolio-socials a { position: relative; display: grid; place-items: center; width: 20px; height: 20px; flex: none; }
.portfolio-socials img { display: block; max-width: none; }
.portfolio-socials a { transition: transform 220ms cubic-bezier(.2,.65,.3,1); transform-origin: center; }
@media (hover: hover) {
  .portfolio-socials a:hover { transform: translateY(-3px) scale(1.16); }
}
.portfolio-socials a:focus-visible { transform: translateY(-3px) scale(1.16); }
@media (prefers-reduced-motion: reduce) {
  .portfolio-socials a { transition: none; }
}
.social-x-art { position: absolute; left: 2px; top: 2.75px; width: 16px; height: 14.5px; mask-image: url('./branding/x-mask.svg'); mask-position: 0 -.75px; mask-size: 16px 16px; mask-repeat: no-repeat; }
.hint { bottom: 64px; }
@media (max-width: 760px) {
  .portfolio-chrome { inset: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); font-size: 14px; letter-spacing: -.28px; }
  .portfolio-header { flex-direction: column; gap: 16px; }
  .brand-name { width: min(487px, calc(100vw - 40px)); height: calc(min(487px, 100vw - 40px) * 76 / 487); }
  .portfolio-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .portfolio-description { max-width: 320px; line-height: 1.3; }
  .portfolio-socials { align-self: flex-end; margin-right: -12px; margin-bottom: -12px; }
  .portfolio-socials a { width: 44px; height: 44px; }
  .social-x-art { left: 14px; top: 14.75px; }
  .hint { bottom: 115px; }
}

