:root {
  color-scheme: dark;
  font-family: Apparat, sans-serif;
  font-synthesis: none;
  font-kerning: normal;
  --page-width: 1280px;
  --gutter: clamp(24px, 5.5vw, 96px);
  --frame: min(calc(100% - 2 * var(--gutter)), var(--page-width));
}
* { box-sizing: border-box; }
html { background: #000; scroll-behavior: smooth; }
body { margin: 0; background: #000; color: #fff; font-weight: 500; line-height: 1.5; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { touch-action: manipulation; }
img, video, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 900; }
h1, h2 { text-wrap: balance; }
p { max-width: 66ch; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
main:focus { outline: none; }
main, .site-header, .site-footer { width: var(--frame); margin-left: auto; margin-right: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 104px; padding: 24px 0; }
.wordmark { font-size: 29px; font-weight: 900; line-height: 1; letter-spacing: -.015em; }
.portfolio-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.portfolio-nav a { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
.portfolio-nav [aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.home-hero { margin: 40px 0 64px; }
.home-hero h1 { font-size: clamp(58px, 8.2vw, 116px); line-height: .98; letter-spacing: -.015em; }
.home-hero > div { margin-top: 28px; }
.home-hero p { font-size: 19px; line-height: 1.45; max-width: 38ch; }
.home-hero a, .about-body a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.selected-projects > h2, .work-index > h2 { font-size: 26px; line-height: 1.15; letter-spacing: 0; margin-bottom: 28px; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 28px; }
.route-graphic-design .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-link { display: block; min-width: 0; }
.project-image { aspect-ratio: 4 / 3; }
.project-image img { width: 100%; height: 100%; object-fit: contain; }
.project-link h2, .project-link h3 { margin-top: 16px; font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: 0; }
.project-link:hover { text-decoration: none; }
.project-link:hover h2, .project-link:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.page-intro { margin: 40px 0 48px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }
.page-intro h1 { margin: 18px 0 24px; max-width: 24ch; font-size: clamp(38px, 5.4vw, 76px); line-height: 1.06; letter-spacing: -.012em; }
.page-intro > p { max-width: 64ch; font-size: 18px; line-height: 1.6; }
.about-intro h1 { font-size: clamp(44px, 6.5vw, 88px); }
.about-body { margin: 64px 0; }
.about-body > section { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; margin-bottom: 64px; }
.about-body h2 { font-size: 27px; line-height: 1.2; letter-spacing: 0; }
.about-body p { max-width: 58ch; margin-bottom: 20px; font-size: 19px; line-height: 1.6; }
.work-index { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; margin: 80px 0 0; padding-top: 32px; border-top: 1px solid #444; }
.work-index > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.work-index a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; font-size: 17px; line-height: 1.4; }
.project-content, .page-content, .modules { width: 100%; min-width: 0; }
.project-module { margin: 24px 0; }
.project-module-image img { width: 100%; height: auto; padding: 0 !important; background: transparent !important; }
.tree { display: block; }
.tree-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.tree-child-wrapper { min-width: 0; }
.tree-wrapper:has(> .tree-child-wrapper:only-child) { grid-template-columns: 1fr; }
.tree-child-wrapper .project-module { width: 100%; margin: 0; }
.embed-dimensions { width: 100%; max-width: none !important; max-height: none !important; margin: 0 !important; }
.embed-aspect-ratio { overflow: hidden; }
.local-video, .local-lottie { position: absolute; inset: 0; width: 100%; height: 100%; }
.local-video { object-fit: contain; background: #000; }
.local-lottie { overflow: hidden; }
.local-lottie svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lottie-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lottie-ready .lottie-fallback { visibility: hidden; }
.portrait-media { width: min(100%, 360px); margin: 32px 0; }
.project-copy { max-width: 760px; margin: 64px 0; }
.project-copy h2 { margin-bottom: 24px; font-size: 28px; line-height: 1.2; letter-spacing: 0; text-transform: uppercase; }
.project-copy p { margin-bottom: 18px; font-size: 18px; line-height: 1.65; }
.project-copy a { text-decoration: underline; }
.case-narrative { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; margin-top: 56px; }
.case-story { grid-column: 1; grid-row: 1; min-width: 0; }
.case-format { grid-column: 2; grid-row: 1; min-width: 0; }
.case-narrative .project-copy { margin: 0 0 48px; }
.case-format .portrait-media { width: 100%; margin: 0; }
.native-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: min(100%, 1040px); margin-top: 40px; }
.native-grid .project-module { width: 100%; margin: 0; }
.gallery-format { margin: 48px 0; }
.gallery-format > h2 { margin-bottom: 20px; font-size: 18px; line-height: 1.4; font-weight: 600; text-transform: uppercase; }
.work-grid { display: flex; flex-direction: column; gap: 20px; margin: 24px 0; }
.gallery-format .work-grid { margin: 0; }
.media-row { display: flex; align-items: flex-start; min-width: 0; }
.work-tile { position: relative; flex: 0 0 auto; min-width: 0; overflow: hidden; background: transparent; aspect-ratio: var(--aspect, auto); }
.work-preview { display: block; width: 100%; height: 100%; object-fit: contain; }
.work-grid:not(:has(.media-row)) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.work-grid:not(:has(.media-row)) .work-tile { width: 100%; aspect-ratio: attr(data-aspect type(<number>), 1); }
.work-grid:not(:has(.media-row)) .work-preview { height: auto; }
.preview-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.preview-loop[hidden] { display: none; }
.gallery-open { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.gallery-open:focus-visible { outline: 0; }
.gallery-open:focus-visible::after { content: ''; position: absolute; inset: 8px; border: 3px solid #fff; outline: 2px solid #000; pointer-events: none; }
.preview-error::before { content: 'Preview unavailable'; position: absolute; inset: 12px; display: grid; place-items: center; background: #000; color: #fff; }
.site-footer { margin-top: 88px; padding: 48px 0 24px; border-top: 1px solid #444; }
.footer-contact { display: inline-block; font-size: clamp(34px, 4.5vw, 64px); font-weight: 900; line-height: 1.08; letter-spacing: -.01em; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 40px; font-size: 13px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; clip-path: inset(50%); white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-200%); background: #fff; color: #000; padding: 12px 18px; }
.skip-link:focus { transform: none; }
.local-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 20px; border: 0; background: #000; color: #fff; overflow: hidden; overscroll-behavior: contain; }
.local-lightbox::backdrop { background: #000; }
.local-lightbox[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 16px; }
.lightbox-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.lightbox-toolbar h2 { font-size: clamp(18px,2vw,26px); line-height: 1.2; }
.lightbox-close { flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border: 1px solid #fff; background: #000; }
.lightbox-close svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; }
.lightbox-stage { display: grid; place-items: center; min-height: 0; min-width: 0; }
.lightbox-stage img, .lightbox-stage video { width: 100%; height: 100%; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-description { font-size: 14px; line-height: 1.5; max-width: 80ch; }
@media (max-width: 1024px) {
  .project-grid, .route-graphic-design .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .about-body > section, .work-index { grid-template-columns: 1fr; gap: 24px; }
  .case-narrative { grid-template-columns: minmax(0,1fr) 260px; gap: 32px; }
  .native-grid { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 760px; }
}
@media (max-width: 700px) {
  .tree-wrapper { grid-template-columns: 1fr; gap: 24px; }
  .case-narrative { display: flex; flex-direction: column; gap: 40px; margin-top: 32px; }
  .case-format { width: min(100%, 320px); }
  .case-story { width: 100%; }
}
@media (max-width: 600px) {
  .site-header { display: block; min-height: 0; padding: 24px 0; }
  .wordmark { font-size: 27px; }
  .portfolio-nav { justify-content: space-between; gap: 12px; margin-top: 12px; }
  .portfolio-nav a { min-height: 44px; font-size: 12px; }
  .home-hero { margin: 24px 0 48px; }
  .home-hero h1 { font-size: clamp(48px, 14vw, 72px); line-height: 1.04; }
  .home-hero p { font-size: 17px; }
  .project-grid, .route-graphic-design .project-grid { grid-template-columns: 1fr; gap: 32px; }
  .project-link { max-width: 420px; }
  .project-link h2, .project-link h3 { margin-top: 12px; font-size: 15px; }
  .selected-projects > h2, .work-index > h2 { font-size: 23px; }
  .page-intro { margin: 24px 0 32px; }
  .page-intro h1 { font-size: clamp(32px, 9vw, 48px); line-height: 1.12; margin: 16px 0 20px; }
  .page-intro > p { font-size: 17px; }
  .about-intro h1 { font-size: clamp(38px,11vw,56px); }
  .about-body { margin: 48px 0; }
  .about-body > section { margin-bottom: 40px; }
  .about-body h2 { font-size: 24px; }
  .about-body p { font-size: 17px; }
  .work-index { margin-top: 56px; }
  .work-index > div { grid-template-columns: 1fr; }
  .work-index a { font-size: 16px; }
  .work-grid { gap: 12px; }
  .work-grid:not(:has(.media-row)) { grid-template-columns: 1fr; }
  .project-copy { margin: 40px 0; }
  .project-copy h2 { font-size: 24px; margin-bottom: 20px; }
  .project-copy p { font-size: 17px; }
  .native-grid { grid-template-columns: 1fr; max-width: 360px; gap: 28px; }
  .site-footer { margin-top: 56px; padding-top: 32px; }
  .footer-bottom { gap: 12px 24px; margin-top: 28px; }
  .local-lightbox { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Author identity and direct contact */
.site-logo { display: block; width: 140px; height: auto; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: center; }
.home-hero > .home-introduction { min-width: 0; margin-top: 0; }
.home-introduction > div { margin-top: 28px; }
.portrait-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; width: 100%; aspect-ratio: 3 / 4; margin: 0; background: #343434; color: #fff; text-align: center; font-size: 14px; font-weight: 600; }
.portrait-dimensions { font-size: 12px; font-weight: 500; }
.footer-contact .footer-email { display: block; margin-top: 18px; font-size: 16px; font-weight: 500; letter-spacing: 0; line-height: 1.4; }
.contact-email { display: inline-flex; align-items: center; min-height: 44px; margin-top: 28px; font-size: clamp(27px, 4vw, 48px); font-weight: 600; line-height: 1.2; text-decoration: underline; text-underline-offset: 8px; overflow-wrap: anywhere; }
.contact-directory { margin-top: 64px; }
.contact-section { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; padding: 32px 0 48px; border-top: 1px solid #444; }
.contact-section > h2 { font-size: 27px; line-height: 1.2; }
.resource-list { min-width: 0; }
.resource-link { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 56px; padding: 14px 0; border-bottom: 1px solid #343434; font-size: 18px; line-height: 1.5; }
.resource-link:first-child { padding-top: 0; min-height: 42px; }
.resource-detail { flex-shrink: 0; color: #ccc; font-size: 14px; }
.resource-name { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.social-icon { display: block; width: 22px; height: 22px; flex: 0 0 22px; }
@media (max-width: 1024px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact-section { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .site-logo { width: 112px; }
  .home-hero { display: block; }
  .portrait-placeholder { width: 180px; margin-top: 32px; }
  .contact-directory { margin-top: 48px; }
  .contact-section { padding-bottom: 36px; }
  .contact-section > h2 { font-size: 24px; }
  .resource-link { align-items: flex-start; flex-direction: column; gap: 4px; font-size: 17px; }
  .resource-detail { font-size: 13px; }
  .resource-link--social .resource-detail { padding-left: 34px; }
}
/* Keep the portrait slot in the markup for later, but hide the placeholder for now. */
.home-hero { grid-template-columns: minmax(0, 1fr); gap: 0; }
.portrait-placeholder { display: none; }
