:root {
  color-scheme: light;
  --canvas: #fff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --ink: #1d1d1f;
  --secondary: #333;
  --muted: #626267;
  --hairline: #e0e0e0;
  --blue: #0066cc;
  --focus: #0071e3;
  --radius-small: 8px;
  --radius-card: 8px;
  --space-section: 80px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 17px; line-height: 1.47; }
[hidden] { display: none !important; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
button:active, .button-primary:active { transform: scale(.97); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h2 { font-size: 40px; line-height: 1.1; }
svg { display: block; }
img { display: block; max-width: 100%; }
.shell, .nav-shell { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
section[id], .app-row[id], .project-anchor { scroll-margin-top: 88px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 100; top: 8px; left: 12px; background: var(--canvas); padding: 12px 20px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .94); border-bottom: 1px solid var(--hairline); backdrop-filter: saturate(180%) blur(20px); }
.nav-shell { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { color: var(--ink); font-size: 21px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.wordmark span { color: var(--muted); font-weight: 400; }
.wordmark:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--secondary); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.nav-links .nav-contact { color: var(--blue); }
.identity { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: min(420px, 60svh); padding-block: 64px 72px; background: var(--canvas); }
/* Layers: artwork behind content, masked only to protect the introduction. */
.identity-poster, .identity-network { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.identity-poster { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) invert(1); opacity: .14; }
.identity-network { opacity: 0; mask-image: linear-gradient(90deg, rgb(0 0 0 / .13), rgb(0 0 0 / .18) 32%, #000 68%); }
.identity-network canvas { display: block; width: 100%; height: 100%; }
.identity[data-network-ready="true"] .identity-network { opacity: 1; }
.identity[data-network-ready="true"] .identity-poster { opacity: 0; }
@media (max-width: 640px) {
  .identity-network { mask-image: linear-gradient(90deg, rgb(0 0 0 / .12), rgb(0 0 0 / .22) 55%, rgb(0 0 0 / .65)); }
}
.identity-content { position: relative; padding-bottom: 24px; }
.identity h1 { font-size: 56px; line-height: 1.07; }
.name-period { color: var(--blue); }
.identity-intro { font-size: 28px; line-height: 1.3; color: var(--secondary); margin-top: 24px; }
.identity-links { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.button-primary { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 44px; padding: 11px 22px; background: var(--blue); color: white; border-radius: 999px; }
.button-primary:hover { text-decoration: none; background: #0059b3; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.identity-utilities { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; align-items: center; justify-content: flex-end; gap: 16px; color: var(--muted); font-size: 12px; }
.network-controls { display: flex; align-items: center; gap: 20px; }
.network-toggle, .network-credit { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.network-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }
.clients-section { padding-block: 48px; background: var(--canvas); }
.clients-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.clients-layout h2 { color: var(--ink); font-size: 21px; line-height: 1.19; text-align: center; }
.client-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; gap: 24px; width: 100%; max-width: 960px; margin: 0 auto; padding: 0; list-style: none; }
.client-logos li { min-width: 0; }
.client-logo { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: var(--radius-small); opacity: .62; }
.client-logo:hover, .client-logo:focus-visible { opacity: 1; }
.client-logo:active { transform: scale(.95); }
.client-logo img { height: auto; object-fit: contain; }
.client-logo-deaf { width: 88px; filter: grayscale(1) invert(1); }
.client-logo-apple { width: 24px; }
.client-logo-berkeley { width: 120px; filter: grayscale(1); }
.client-logo-dominican { width: 120px; }
.client-logo-ocean { width: 96px; filter: brightness(0); }
.client-logo-infor { width: 72px; }
@media (max-width: 833px) {
  .client-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .clients-section { padding-block: 32px; }
  .client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; max-width: 360px; }
}
.apps-section { padding-block: 64px 80px; }
.section-heading { display: flex; flex-direction: column; gap: 12px; }
.section-heading > p, .section-heading > div > p { color: var(--muted); margin-top: 0; }
.project-anchor { display: block; }
.project-tabs { display: flex; gap: 32px; margin: 32px 0 0; padding: 0 3px; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--hairline); }
.project-tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 12px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 14px; }
.project-tab[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.project-tab:focus-visible { outline-offset: -4px; }
.project-tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; background: var(--parchment); color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.project-category { padding-top: 24px; }
.project-category + .project-category { margin-top: 40px; }
.project-tabs:not([hidden]) ~ .project-category { margin-top: 0; }
.project-category-heading { margin-bottom: 12px; font-size: 24px; }
.project-category-description { margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.app-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.app-row { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: start; column-gap: 16px; padding-block: 28px; border-top: 1px solid var(--hairline); }
.app-icon { display: grid; place-items: center; width: 48px; height: 48px; background: var(--parchment); border-radius: 8px; }
.app-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-copy h3 { font-size: 21px; line-height: 1.25; }
.app-copy p { margin-top: 8px; max-width: 55ch; font-size: 14px; line-height: 1.5; color: var(--muted); }
.app-label { display: inline-block; color: var(--muted); font-weight: 400; font-size: 12px; vertical-align: middle; }
.app-title-button { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: left; }
.app-title-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.app-link { display: inline-flex; gap: 5px; align-items: center; justify-content: flex-end; min-height: 44px; min-width: 44px; font-size: 14px; white-space: nowrap; }
.app-details { border: 0; background: none; padding: 0; color: var(--blue); }
.app-details:hover { text-decoration: underline; }
.app-credit { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; max-width: 100%; font-size: 12px; }
.private-label { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-size: 12px; color: var(--muted); }
.private-label svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.app-feature { grid-template-columns: minmax(0, 1fr) auto; align-content: start; padding: 0 0 32px; border: 0; }
.app-feature > .app-icon { display: none; }
.app-feature .app-copy h3 { font-size: 28px; }
.app-feature .app-copy p { max-width: 50ch; }
.app-preview { grid-column: 1 / -1; position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1.52; padding: 24px; margin-bottom: 24px; border: 0; border-radius: 8px; overflow: hidden; background: var(--parchment); }
.app-preview img { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; box-shadow: 3px 5px 30px rgb(0 0 0 / .1); transition: transform 250ms ease; }
.app-preview:hover img { transform: translateY(-4px); }
.app-preview:focus-visible { outline-offset: -4px; }
.preview-note { position: absolute; bottom: 6px; right: 12px; font-size: 10px; color: var(--muted); }
.about-section { background: var(--parchment); padding-block: var(--space-section); }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 96px; }
.bio { color: var(--secondary); margin-top: 24px; font-size: 17px; line-height: 1.6; }
.about-copy > .text-link { margin-top: 20px; font-size: 14px; }
.apps-footer { color: var(--muted); font-size: 14px; line-height: 1.6; padding-top: 8px; }
.apps-footer h3 { font-size: 24px; line-height: 1.3; color: var(--ink); margin-bottom: 24px; }
.apps-footer p + p { margin-top: 20px; }
.apps-footer p a { text-decoration: underline; text-underline-offset: 3px; }
.shop-section { padding-block: var(--space-section); }
.shop-heading { flex-direction: row; justify-content: space-between; align-items: end; margin-bottom: 40px; gap: 32px; }
.shop-heading > div > p { margin-top: 16px; }
.shop-heading > .text-link { flex-shrink: 0; font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card { min-width: 0; display: flex; flex-direction: column; }
.product-photo { display: block; overflow: hidden; border-radius: 8px; }
.product-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 300ms ease; }
.product-photo:hover img { transform: scale(1.025); }
.product-copy { padding: 24px 0 0; display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.product-material { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.product-copy h3 { font-size: 24px; line-height: 1.2; }
.product-copy > p:not(.product-material) { color: var(--muted); margin-top: 12px; margin-bottom: 12px; font-size: 17px; }
.product-copy .text-link { margin-top: auto; font-size: 14px; }
.github-section { padding-block: 64px; background: var(--parchment); --day-0: #e6e6eb; --day-1: #cce4ff; --day-2: #82b9f5; --day-3: #368be8; --day-4: #0066cc; }
.github-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.github-heading h2 { font-size: 28px; }
.github-heading .text-link { margin-top: 6px; font-size: 14px; }
.contribution-total { text-align: right; min-width: 200px; }
.contribution-total strong { display: block; font-size: 34px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; min-height: 38px; }
.contribution-total span { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; }
.calendar-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; padding-bottom: 12px; }
.calendar { width: 100%; min-width: 840px; border-spacing: 4px; table-layout: fixed; border-collapse: separate; font-size: 10px; line-height: 1; color: var(--muted); }
.calendar th { font-weight: 400; text-align: left; padding: 0; height: 20px; }
.calendar .weekday { width: 28px; font-size: 10px; vertical-align: middle; }
.calendar td { padding: 0; }
.calendar-day { display: block; width: 100%; aspect-ratio: 1; border-radius: 3px; background: var(--day-color, var(--day-0)); }
[data-level="0"] { --day-color: var(--day-0); }
[data-level="1"] { --day-color: var(--day-1); }
[data-level="2"] { --day-color: var(--day-2); }
[data-level="3"] { --day-color: var(--day-3); }
[data-level="4"] { --day-color: var(--day-4); }
.calendar-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 28px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.calendar-status { line-height: 1.5; }
.calendar-legend { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.calendar-legend span { margin-inline: 4px; }
.calendar-legend i { width: 11px; height: 11px; border-radius: 2px; background: var(--day-color); }
.no-script { margin-top: 16px; font-size: 14px; }
.contact-section { padding-block: var(--space-section); background: var(--canvas); }
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 96px; }
.contact-kicker { margin-bottom: 16px; color: var(--blue); font-size: 14px; }
.contact-copy h2 { max-width: 400px; }
.contact-copy > p:last-child { max-width: 380px; margin-top: 24px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.contact-form { display: grid; gap: 24px; }
.contact-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: grid; gap: 8px; color: var(--secondary); font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #86868b; border-radius: 8px; background: var(--canvas); color: var(--ink); font: inherit; font-weight: 400; font-size: 16px; line-height: 1.5; }
.contact-form select { appearance: auto; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form ::placeholder { color: var(--muted); opacity: 1; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 2px; }
.contact-note, .contact-actions [role="status"] { color: var(--muted); font-size: 12px; line-height: 1.5; }
.contact-actions { display: flex; align-items: center; gap: 16px; }
.contact-submit { min-height: 44px; flex-shrink: 0; padding: 11px 22px; border: 0; border-radius: 999px; background: var(--blue); color: white; font-size: 14px; }
.contact-submit:hover { background: #0059b3; }
.site-footer { background: var(--parchment); color: var(--muted); font-size: 12px; }
.footer-shell { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links > a { display: inline-flex; gap: 4px; align-items: center; min-height: 44px; }
.version { color: var(--ink); }
.archives { position: relative; }
.archives summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; gap: 8px; align-items: center; color: var(--blue); }
.archives summary::-webkit-details-marker { display: none; }
.archives nav { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 170px; padding: 8px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--canvas); z-index: 5; }
.archives nav a { display: flex; justify-content: space-between; align-items: center; gap: 32px; min-height: 44px; padding-inline: 12px; border-radius: 5px; font-size: 14px; }
.archives nav span { color: var(--muted); font-size: 12px; }
.project-modal-open { overflow: hidden; }
.project-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--hairline); border-radius: 8px; background: var(--canvas); color: var(--ink); box-shadow: none; }
.project-dialog::backdrop { background: rgb(29 29 31 / .3); backdrop-filter: blur(5px); }
.project-dialog-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 32px; background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.project-dialog-header h2 { font-size: 28px; line-height: 1.2; letter-spacing: 0; }
.dialog-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--parchment); color: var(--ink); cursor: pointer; }
.dialog-close:hover { background: #e8e8ed; }
.dialog-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.work-project { padding: 28px 32px 32px; }
.work-kind { margin-bottom: 8px; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.work-status { display: inline-block; padding: 6px 12px; border-radius: 8px; background: #e8f2ff; color: var(--blue); font-size: 12px; letter-spacing: 0; }
.work-description { max-width: 700px; margin-top: 20px; color: var(--secondary); }
.work-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 28px 0 0; }
.work-progress dt { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.work-progress dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.work-carousel { margin-top: 24px; }
.box-maker-preview { margin-top: 24px; }
.work-slide { min-width: 0; margin: 0; }
.payroll-gallery .preview-stage { height: auto; }
.payroll-gallery .preview-stage img { width: 100%; max-height: none; }
.payroll-gallery-nav, .project-gallery-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.payroll-gallery-nav button, .project-gallery-nav button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--hairline); border-radius: 22px; background: var(--canvas); color: var(--secondary); font: inherit; font-size: 14px; cursor: pointer; }
.payroll-gallery-nav button[aria-pressed="true"], .project-gallery-nav button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.native-app-gallery .preview-stage { height: auto; }
.native-app-gallery .preview-stage img { width: 100%; max-height: none; }
.payroll-pdf-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.payroll-pdf-toolbar a { font-size: 14px; }
.payroll-pdf .preview-stage img { max-width: 612px; border-radius: 0; box-shadow: 0 4px 20px rgb(0 0 0 / .08); }
.preview-stage { display: flex; align-items: center; justify-content: center; height: clamp(200px, 40vh, 440px); padding: 16px; border-radius: 8px; background: var(--parchment); }
.preview-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-small); }
.work-slide figcaption { margin-top: 16px; min-height: 48px; text-align: center; font-size: 12px; letter-spacing: 0; }
.work-slide figcaption strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 14px; font-weight: 600; }
.work-slide figcaption span { color: var(--muted); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }
.carousel-arrow { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--parchment); color: var(--ink); font: inherit; font-size: 21px; cursor: pointer; }
.carousel-dots { display: flex; }
.carousel-dots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.carousel-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b4b4ba; }
.carousel-dots button[aria-pressed="true"]::before { background: var(--blue); }
.work-note { margin-top: 24px; color: var(--muted); font-size: 12px; letter-spacing: 0; }

/* Site Control case study. */
#site-control-dialog { box-shadow: none; }
.site-control-privacy { margin-top: 20px; padding: 12px 16px; background: var(--parchment); border-radius: var(--radius-small); color: var(--muted); font-size: 12px; line-height: 1.5; letter-spacing: 0; }
.site-control-privacy strong { color: var(--secondary); font-weight: 600; }
.site-control-gallery .preview-stage { height: auto; padding: 0; overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--radius-small); }
.site-control-gallery .preview-stage img { width: 100%; max-height: none; border-radius: 0; }
.site-control-gallery figcaption a { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; width: max-content; margin-inline: auto; font-size: 12px; }
.site-control-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.site-control-section h3 { font-size: 21px; letter-spacing: 0; }
.site-control-section > p { margin-top: 16px; color: var(--secondary); font-size: 14px; line-height: 1.6; letter-spacing: 0; }
.site-control-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0 0; }
.site-control-features dt { margin-bottom: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
.site-control-features dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; letter-spacing: 0; }
.site-control-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 20px 0; list-style: none; background: var(--parchment); border-radius: var(--radius-small); }
.site-control-flow li { padding: 16px; border-right: 1px solid var(--hairline); }
.site-control-flow li:last-child { border: 0; }
.site-control-flow strong { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.site-control-flow span { color: var(--muted); font-size: 12px; line-height: 1.5; display: block; }
@media (max-width: 640px) {
  .site-control-features, .site-control-flow { grid-template-columns: 1fr; }
  .site-control-flow li { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .site-control-gallery .project-gallery-nav { gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding: 4px 0; }
  .site-control-gallery .project-gallery-nav button { padding: 8px 12px; font-size: 12px; flex-shrink: 0; }
}

/* Where's My Money portfolio screenshots */
.money-gallery { margin-top: 24px; }
.money-gallery .preview-stage { height: clamp(280px, 65dvh, 760px); padding: 16px; overflow: hidden; border: 1px solid var(--hairline); }
.money-gallery .preview-stage a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.money-gallery .preview-stage img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 0; }


@media (max-width: 1068px) {
  .shell, .nav-shell { width: calc(100% - 64px); }
  .about-layout, .contact-layout { gap: 48px; }
  .app-preview { padding: 16px; }
  .app-feature .app-copy h3 { font-size: 24px; }
  .app-row { column-gap: 12px; }
  .app-copy h3 { font-size: 17px; }
  .app-label { display: block; margin-top: 4px; }
}
@media (max-width: 833px) {
  h2 { font-size: 34px; }
  .shell, .nav-shell { width: calc(100% - 48px); }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-copy h2, .contact-copy > p:last-child { max-width: 620px; }
  .identity { min-height: 440px; }
  .app-list { column-gap: 24px; }
  .app-row { grid-template-columns: 40px minmax(0, 1fr); }
  .app-row > .app-link, .app-row > .private-label { grid-column: 2; justify-self: start; }
  .app-icon { width: 40px; height: 40px; }
  .app-icon svg { width: 26px; height: 26px; }
  .app-feature { grid-template-columns: minmax(0, 1fr); }
  .app-feature > .app-link { grid-column: 1; }
  .work-project { padding: 24px; }
  .work-progress { grid-template-columns: 1fr; gap: 20px; }
  .product-grid { gap: 20px; }
  .product-copy h3 { font-size: 21px; }
  .product-copy > p:not(.product-material) { font-size: 14px; }
  .identity-utilities { justify-content: flex-end; }
}
@media (max-width: 640px) {
  :root { --space-section: 56px; }
  h2 { font-size: 28px; }
  .nav-shell { min-height: 60px; gap: 16px; }
  .wordmark { font-size: 17px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 12px; }
  .nav-contact span { display: none; }
  .identity { min-height: 380px; padding-block: 48px 72px; }
  .identity h1 { font-size: 40px; }
  .identity-intro { font-size: 21px; margin-top: 20px; }
  .identity-links { margin-top: 28px; gap: 24px; font-size: 14px; }
  .identity-content { padding-bottom: 0; }
  .identity-utilities { bottom: 8px; justify-content: flex-start; }
  .network-controls { gap: 20px; }
  .network-toggle, .network-credit { font-size: 11px; }
  .apps-section { padding-block: 48px 56px; }
  .section-heading { gap: 12px; }
  .section-heading > p { font-size: 17px; }
  .project-tabs { gap: 24px; margin-top: 24px; }
  .project-tab { min-height: 52px; font-size: 12px; }
  .project-category-description { max-width: 40ch; font-size: 12px; margin-bottom: 20px; }
  .app-list { grid-template-columns: minmax(0, 1fr); }
  .app-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 0 12px; padding-block: 24px; }
  .app-row > .app-link, .app-row > .private-label { grid-column: 3; grid-row: 1; justify-self: end; }
  .app-feature { grid-template-columns: minmax(0, 1fr) auto; padding: 0 0 28px; margin-bottom: 4px; }
  .app-feature > .app-link { grid-column: 2; grid-row: 2; }
  .app-preview { padding: 16px; margin-bottom: 20px; }
  .app-feature .app-copy h3 { font-size: 24px; }
  .app-feature .app-copy p { font-size: 14px; }
  .about-layout, .contact-layout { gap: 40px; }
  .apps-footer { padding-top: 32px; border-top: 1px solid var(--hairline); }
  .apps-footer h3 { font-size: 21px; margin-bottom: 20px; }
  .bio { font-size: 17px; }
  .shop-heading { flex-direction: column; align-items: start; gap: 16px; margin-bottom: 28px; }
  .product-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-copy { padding-top: 20px; }
  .product-copy > p:not(.product-material) { font-size: 17px; }
  .github-section { padding-block: 48px; }
  .github-heading { flex-direction: column; gap: 20px; margin-bottom: 20px; }
  .github-heading h2 { font-size: 24px; }
  .contribution-total { text-align: left; }
  .contribution-total strong { font-size: 28px; min-height: 32px; }
  .calendar-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .calendar-legend { align-self: flex-end; }
  .contact-field-row { grid-template-columns: 1fr; gap: 24px; }
  .contact-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-shell { flex-wrap: wrap; gap: 0 20px; padding-block: 24px; }
  .footer-links { gap: 20px; }
  .archives nav { position: fixed; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: auto; min-width: 0; max-height: min(70dvh, 320px); overflow-y: auto; }
  .project-dialog-header { padding: 20px; }
  .project-dialog-header h2 { font-size: 24px; }
  .work-project { padding: 20px; }
  .preview-stage { padding: 8px; }
  .carousel-controls { gap: 8px; }
  .site-control-features, .site-control-flow { grid-template-columns: 1fr; }
}
@media (max-width: 359px) {
  .shell, .nav-shell { width: calc(100% - 32px); }
  .nav-links { gap: 12px; }
  .nav-shell { gap: 12px; }
  .app-row:not(.app-feature) { grid-template-columns: 36px minmax(0, 1fr); }
  .app-row:not(.app-feature) > .app-link, .app-row:not(.app-feature) > .private-label { grid-column: 2; grid-row: 2; justify-self: start; }
}
@media (max-height: 640px) and (min-width: 641px) {
  .identity { min-height: 260px; padding-block: 24px 52px; }
  .identity-content { padding-bottom: 0; }
  .identity h1 { font-size: 40px; }
  .identity-intro { margin-top: 12px; font-size: 17px; }
  .identity-links { margin-top: 16px; }
  .identity-utilities { bottom: 0; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--canvas); backdrop-filter: none; }
  .project-dialog::backdrop { backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .app-preview:hover img, .product-photo:hover img, button:active, .button-primary:active { transform: none; }
}

.contact-honey { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.contact-submit:disabled, .contact-form input:disabled, .contact-form textarea:disabled, .contact-form select:disabled { opacity:.6; cursor:default; }
[data-contact-status][data-error] { color:#b42318; }
