
    :root { color-scheme: light; font-family: Georgia, 'Times New Roman', serif; color: #282c29; background: #fcfcfa; }
    * { box-sizing: border-box; }
    body { margin: 0; }
    html { scroll-behavior: smooth; }
    section[id] { scroll-margin-top: 40px; }
    .site-header { padding-top: 32px; }
    .site-nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 28px; }
    .site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #535a53; font-size: 1.125rem; line-height: 1.5; text-decoration: none; }
    .site-nav a:hover { color: #bd2e4f; }
    .site-nav a:focus-visible { outline: 2px solid #bd2e4f; outline-offset: 4px; }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
    ::selection { color: #20362c; background: #dce8df; }
    .page { width: min(100% - 112px, 1328px); margin-inline: auto; min-height: 100svh; display: flex; flex-direction: column; }
    main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 140px 0 100px; }
    article { width: min(calc(100% - clamp(0px, 10vw, 142px)), 770px); margin-left: clamp(0px, 10vw, 142px); }
    h1 { margin: 0 0 49px; font-size: clamp(48px, 6.1vw, 82px); line-height: 1.09; font-weight: 400; letter-spacing: -.055em; }
    .intro { font-size: clamp(1.375rem, 2.15vw, 1.75rem); line-height: 1.55; letter-spacing: -.022em; }
    .career-description, .intro.homes-intro { font-size: 1.5rem; line-height: 1.55; letter-spacing: -.022em; }
    .intro { max-width: 650px; }
    .career > h2, .career-step h2, .interests h2, .hobby-projects h2 { font-size: 2rem; line-height: 1.2; font-weight: 400; letter-spacing: -.035em; }
    p { margin: 0 0 25px; }
    p:last-child { margin-bottom: 0; }
    em { font-weight: 400; }
    .uprent-link { color: #bd2e4f; text-decoration: none; }
    .uprent-link:hover { color: #a82946; }
    .uprent-link:focus-visible { outline: 2px solid #bd2e4f; outline-offset: 4px; }
    .social-links { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
    .social-links a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #535a53; text-decoration: none; border-radius: 4px; }
    .social-links a:hover { color: #bd2e4f; }
    .social-links a:focus-visible { outline: 2px solid #bd2e4f; outline-offset: 4px; }
    .social-links svg { width: 24px; height: 24px; fill: currentColor; }
    .career { margin-top: 132px; }
    .career > h2 { margin: 0 0 42px; }
    .career-timeline { display: grid; grid-template-columns: 1fr; gap: 0; width: 100%; list-style: none; padding: 0; margin: 0; }
    .career-step { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: min-content 1fr; column-gap: 48px; min-width: 0; padding: 0 0 128px 36px; }
    .career-step:last-child { padding-bottom: 0; }
    .career-heading-row, .career-description { grid-column: 1; }
    .career-heading-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
    .career-step::before { content: ''; position: absolute; top: 14px; left: 0; width: 11px; height: 11px; border: 1px solid #93998f; border-radius: 50%; background: #fcfcfa; z-index: 1; }
    .career-step:last-child::before { background: #bd2e4f; border-color: #bd2e4f; }
    .career-step:not(:last-child)::after { content: ''; position: absolute; top: 27px; left: 5px; width: 0; height: calc(100% - 13px); border-left: 1px dashed #b9beb6; }
    .career-era { margin: 0; white-space: nowrap; color: #666c66; font-size: 1.125rem; line-height: 1.5; }
    .career-step h2 { margin: 0; }
    .career-description { margin: 0; }
    .career-photo { grid-column: 2; grid-row: 1 / 3; align-self: start; width: 100%; margin: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; background: #f2f3ef; border: 1px solid #e2e5de; border-radius: 2px; }
    .career-photo figcaption { color: #6b7269; font-size: 1rem; line-height: 1.5; }
    .career-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
    .story-source { color: inherit; text-decoration: none; }
    .story-source:hover { text-decoration: underline; text-underline-offset: .15em; }
    #c4 { scroll-margin-top: 36px; }
    .story-gallery { grid-column: 2; grid-row: 1 / 3; align-self: start; position: sticky; top: 32px; min-width: 0; padding: 0; }
    .gallery-stage { display: block; position: relative; width: 100%; aspect-ratio: var(--gallery-ratio, 1.5); padding: 0; overflow: hidden; border: 0; border-radius: 11px; background: transparent; cursor: zoom-in; }
    .gallery-stage img { width: 100%; height: 100%; object-fit: contain; object-position: center top; display: block; transition: opacity .2s; }
    .gallery-expand { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fcfcfaeb; color: #282c29; transition: transform .2s; }
    .gallery-stage:hover .gallery-expand { transform: scale(1.1); }
    .gallery-expand svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
    .gallery-thumbs { display: flex; gap: 10px; padding: 4px; margin: 8px -4px 0; overflow-x: auto; scrollbar-width: thin; }
    .gallery-thumb { flex: 0 0 72px; width: 72px; height: 54px; padding: 3px; border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
    .gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
    .gallery-thumb:hover, .gallery-thumb[aria-pressed="true"] { opacity: 1; }
    .gallery-thumb[aria-pressed="true"] { border-color: #bd2e4f; }
    button { font: inherit; }
    button:focus-visible, .story-source:focus-visible { outline: 2px solid #bd2e4f; outline-offset: 4px; }
    .photo-viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 24px; border: 0; margin: 0; background: #161917; color: #fcfcfa; }
    .photo-viewer::backdrop { background: #161917; }
    .photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px; }
    .viewer-top, .viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
    .viewer-top p, .viewer-bottom p { margin: 0; font-size: 1rem; }
    .viewer-top p { color: #c1c6c0; }
    .photo-viewer button { min-height: 44px; padding: 8px 16px; color: inherit; background: transparent; border: 1px solid #ffffff38; border-radius: 24px; cursor: pointer; }
    .photo-viewer button:hover { background: #ffffff15; }
    .viewer-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
    .viewer-controls { display: flex; align-items: center; gap: 12px; }
    .viewer-bottom { justify-content: center; }
    @media (prefers-reduced-motion: reduce) { .story-gallery * { transition: none; } }
    .interests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 72px; }
    .interests h2 { margin: 0 0 14px; }
    .hobby-projects { margin-top: 72px; }
    .hobby-projects h2 { margin: 0; }
    .interests p { color: #666c66; font-size: 18px; line-height: 1.6; }
    @media (min-width: 1600px) { main { padding-block: 160px 150px; } }
    @media (max-width: 640px) {
      .page { width: calc(100% - 48px); }
      .site-header { padding-top: 20px; }
      .site-nav { gap: 0 20px; }
      .site-nav a { font-size: 1rem; }
      main { padding-block: 88px 80px; }
      article { width: 100%; margin-left: 0; }
      h1 { margin-bottom: 34px; }
      .intro { font-size: 1.375rem; }
      .career { margin-top: 88px; }
      .career > h2 { margin-bottom: 32px; }
      .career-step { display: flex; flex-direction: column; padding-left: 28px; padding-bottom: 96px; }
      .career-photo { margin-top: 24px; }
      .story-gallery { position: static; width: 100%; margin-top: 28px; }
      .photo-viewer { padding: 16px; }
      .viewer-bottom { flex-direction: column; align-items: stretch; }
      .viewer-controls { justify-content: center; }
      .interests { grid-template-columns: 1fr; gap: 36px; margin-top: 56px; }
    }
  
    .home-main { --hero-top: clamp(32px, 7svh, 80px); justify-content: flex-start; padding-block: var(--hero-top) 32px; }
    .hero-menu { justify-content: flex-start; margin-top: 40px; gap: 8px 28px; }
    .subpage-main { justify-content: flex-start; padding-top: 24px; }
    .back-home { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 56px; color: #666c66; font-size: 1.125rem; text-decoration: none; }
    .back-home:hover { color: #bd2e4f; }
    .back-home:focus-visible { outline: 2px solid #bd2e4f; outline-offset: 4px; }
    .subpage-main .career { margin-top: 0; }
    .subpage-main .career > h1 { margin-bottom: 64px; }
    .detail-page { width: min(100%, 770px); }
    .detail-page p { font-size: clamp(1.375rem, 2.15vw, 1.75rem); line-height: 1.55; letter-spacing: -.022em; color: #666c66; }
    @media (max-width: 640px) {
      .home-main { padding-top: 96px; }
      .hero-menu { margin-top: 32px; gap: 8px 22px; }
      .subpage-main { padding-top: 16px; }
      .back-home { margin-bottom: 36px; }
      .subpage-main .career > h1 { margin-bottom: 40px; }
    }

    #bob-the-sheep { scroll-margin-top: 36px; }

    #c4 .career-heading-row h2 { color: #2468ba; }
    #bob-the-sheep .career-heading-row h2 { color: #ce70b6; }
    .career-heading-row .hello-move-title { color: #7352ea; }

    .hero-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4vw, 56px); width: 100%; margin-left: 0; }
    .hero-copy { min-width: 0; }
    .hero-portrait { display: block; width: 100%; max-width: 420px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45.5% center; justify-self: start; border-radius: 11px; }
    @media (max-width: 900px) {
      .hero-layout { grid-template-columns: 1fr; gap: 48px; }
      .hero-portrait { justify-self: start; max-width: 420px; }
    }

    .site-footer { margin-top: auto; padding: 28px 0 40px; border-top: 1px solid #e2e5de; }
    .footer-nav { justify-content: flex-start; }
    .footer-nav a[aria-current="page"] { color: #282c29; text-decoration: underline; text-underline-offset: .22em; }
    @media (max-width: 640px) {
      .site-footer { padding: 24px 0 32px; }
      .footer-nav { gap: 4px 22px; }
    }

    .page-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px 40px; margin-bottom: 96px; }
    .page-heading h1 { margin: 0; flex-shrink: 0; }
    .header-nav { margin-left: auto; }
    .site-nav a[aria-current="page"] { color: #282c29; text-decoration: underline; text-underline-offset: .22em; }
    @media (max-width: 1100px) {
      .page-heading { flex-wrap: wrap; }
    }
    @media (max-width: 640px) {
      .page-heading { margin-bottom: 64px; gap: 20px; }
      .header-nav { margin-left: 0; justify-content: flex-start; }
    }

    @media (min-width: 901px) {
      .home-main { --hero-top: 32px; justify-content: center; padding-block: 32px; }
      .home-main .hero-portrait { width: min(100%, 420px, calc((100svh - var(--hero-top) - 32px) * .8)); }
    }

    .home-step h2 { color: #bd2e4f; }
    .home-step .career-era { white-space: normal; }
    .home-step time { white-space: nowrap; }
    .home-step .career-description p { margin: 0 0 24px; }
    .home-step .career-description p:last-child { margin-bottom: 0; }
    .homes .career-step:last-child::before { background: #fcfcfa; border-color: #93998f; }
    .homes .career-step.home-step--current::before { background: #bd2e4f; border-color: #bd2e4f; }
    .gallery-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; border: 1px solid #e2e5de; border-radius: 11px; background: #f2f3ef; color: #6b7269; font-size: 1rem; }


    .home-step .career-heading-row { flex-direction: column; align-items: flex-start; gap: 8px; }

/* Movie snapshot from KisKis OS. */
.films { font-family: system-ui, sans-serif; border: 1px solid #e3e5e1; border-radius: 10px; overflow: hidden; background: #fff; }
.films-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px; }
.films-toolbar h1 { font: 600 20px/1.3 system-ui, sans-serif; letter-spacing: -.02em; margin: 0; }
.films-tabs { display: flex; gap: 4px; padding: 4px; background: #f3f4f2; border-radius: 8px; }
.films-tabs button { border: 0; background: transparent; color: #666c66; padding: 9px 14px; border-radius: 6px; font: inherit; font-size: 14px; cursor: pointer; }
.films-tabs button[aria-pressed="true"] { background: white; color: #282c29; box-shadow: 0 1px 3px #00000014; }
#film-count { font-size: 13px; color: #666c66; }
#film-search { margin-left: auto; width: 260px; max-width: 100%; border: 1px solid #e3e5e1; border-radius: 6px; padding: 11px 12px; font: 14px system-ui, sans-serif; }
.films :focus-visible { outline: 2px solid #bd2e4f; outline-offset: -2px; }
.films-scroll { overflow-x: auto; }
.films-table { width: 100%; min-width: 1240px; table-layout: fixed; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.films-table th, .films-table td { text-align: left; padding: 15px 14px; border-bottom: 1px solid #e3e5e1; }
.films-table th { border-top: 1px solid #e3e5e1; background: #f8f9f7; font-weight: 500; color: #666c66; white-space: nowrap; }
.films-table tbody tr:nth-last-child(1 of :not([hidden])) td { border-bottom: 0; }
.films-table tr[hidden], .film-title img[hidden] { display: none; }
.films-table tr[data-film] { cursor: pointer; }
@media (hover: hover) { .films-table tr[data-film]:hover { background: #f4f5f2; } }
.films-table th:nth-child(3), .films-table td:nth-child(3) { padding-left: 8px; padding-right: 8px; }
.films-table a { color: inherit; text-decoration: none; }
.films-table a:hover { color: #bd2e4f; }
.film-title { display: flex; align-items: center; gap: 12px; }
.film-title img { width: 36px; height: 50px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.film-title small { display: block; font-size: 12px; color: #777d77; margin-top: 3px; }
.film-title:hover [data-film-name] { text-decoration: underline; text-underline-offset: .18em; }
.film-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.film-chip { display: inline-block; padding: 3px 7px; border-radius: 4px; background: #f3f4f2; white-space: nowrap; }
.film-rating { display: inline-block; padding: 2px 9px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.film-rating--high { color: #166534; background: #dcfce7; }
.film-rating--good { color: #3f6212; background: #ecfccb; }
.film-rating--medium { color: #854d0e; background: #fef9c3; }
.film-rating--low { color: #9a3412; background: #ffedd5; }
.film-rating--lowest { color: #991b1b; background: #fee2e2; }
@media (max-width: 600px) { .films-toolbar { gap: 12px; padding: 16px; } #film-search { width: 100%; margin: 0; } }

.film-watches { display: grid; gap: 8px; }
.film-watch { display: grid; grid-template-columns: max-content max-content; align-items: center; gap: 8px; }
.film-watch time { white-space: nowrap; }

html:has(.movie-detail[open]) { overflow: hidden; }
.movie-detail {
  box-sizing: border-box;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #161917;
  color: #fcfcfa;
  font: 16px/1.55 system-ui, sans-serif;
}
.movie-detail::backdrop { background: #161917; }
.movie-detail-bar {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: max(24px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) 16px max(32px, env(safe-area-inset-left));
  background: #161917;
}
.movie-detail-bar p { margin: 0 auto 0 0; color: #b9c0ba; font-size: 14px; }
.movie-detail-bar button, .movie-detail [data-detail-source] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #ffffff38;
  border-radius: 24px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.movie-detail-bar button:hover, .movie-detail [data-detail-source]:hover { background: #ffffff15; }
.movie-detail-bar .movie-detail-mobile-source, .movie-detail-close-icon { display: none; }
.movie-detail :focus-visible { outline: 2px solid #fcfcfa; outline-offset: 3px; }
.movie-detail-layout {
  display: grid;
  grid-template: "heading poster" auto "details poster" 1fr / minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(40px, 8vw, 128px);
  max-width: 1260px;
  margin: 24px auto 0;
  padding: 0 clamp(32px, 6vw, 96px) max(40px, env(safe-area-inset-bottom));
}
.movie-detail-layout:has(.movie-detail-poster[hidden]) { display: block; max-width: 640px; }
.movie-detail-heading { grid-area: heading; padding-top: clamp(8px, 3vw, 48px); }
.movie-detail-heading h1 { margin: 8px 0; font-size: clamp(40px, 4.7vw, 72px); line-height: 1.04; overflow-wrap: anywhere; }
.movie-detail-heading p { margin: 0; color: #c0c6c0; }
.movie-detail-heading [data-detail-original] { font-size: 19px; }
.movie-detail-info { grid-area: details; min-width: 0; }
.movie-detail-info dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 14px 22px; margin: 28px 0; }
.movie-detail-info dl:empty { display: none; }
.movie-detail-info dt { color: #b9c0ba; }
.movie-detail-info dd { margin: 0; overflow-wrap: anywhere; }
.movie-detail-info .film-chip { background: #ffffff13; white-space: normal; }
.movie-detail-poster { grid-area: poster; display: grid; justify-items: center; align-self: start; margin: 0; }
.movie-detail-poster img { display: block; max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 4px; object-fit: contain; }
.movie-detail [hidden] { display: none; }
@media (max-width: 760px) {
  .movie-detail[open] { display: grid; grid-template: minmax(0, 1fr) auto / minmax(0, 1fr); overflow: hidden; }
  .movie-detail-bar {
    position: relative;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-top: 1px solid #ffffff24;
  }
  .movie-detail-bar p {
    position: absolute;
    right: 12px;
    bottom: 100%;
    left: 12px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 8px 8px 0 0;
    background: #242824;
    text-align: center;
  }
  .movie-detail-bar p:empty { padding: 0; }
  .movie-detail-bar button, .movie-detail-bar [data-detail-source] { min-height: 42px; padding-inline: 10px; font-size: .875rem; }
  .movie-detail-bar [data-copy-link] { grid-area: 1 / 1; justify-self: start; }
  .movie-detail-bar .movie-detail-mobile-source:not([hidden]) { grid-area: 1 / 2; display: inline-flex; }
  .movie-detail-bar [data-close-movie] { grid-area: 1 / 3; justify-self: end; justify-content: center; width: 42px; padding: 0; }
  .movie-detail-close-label, .movie-detail .movie-detail-info [data-detail-source] { display: none; }
  .movie-detail-close-icon { display: inline; font-size: 24px; line-height: 1; }
  .movie-detail-layout {
    grid-row: 1;
    grid-template: "heading" "poster" "details" / minmax(0, 1fr);
    align-content: start;
    row-gap: 20px;
    margin: 0;
    padding: max(16px, env(safe-area-inset-top)) 20px 24px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .movie-detail-heading h1 { font-size: clamp(36px, 10vw, 48px); }
  .movie-detail-poster { justify-items: start; }
  .movie-detail-poster img { max-height: 46dvh; }
  .movie-detail-info dl { gap: 12px 16px; margin: 0 0 20px; }
  .movie-detail-layout:has(.movie-detail-poster[hidden]) .movie-detail-info { margin-top: 24px; }
}

.films-intro { max-width: 780px; margin-bottom: 40px; }

.film-sort { display:inline-flex; align-items:center; gap:6px; padding:0; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; text-align:left; }
.film-sort span { font-size:12px; opacity:.5; }
th[aria-sort] .film-sort span { opacity:1; }
.film-sort:hover { color:#bd2e4f; }

.movie-filter-button { display:inline-flex; align-items:center; gap:6px; padding:0; border:0; background:transparent; color:inherit; font:inherit; font-weight:inherit; cursor:pointer; white-space:nowrap; }
.movie-filter-button svg { width:13px; height:13px; opacity:.65; }
.movie-filter-button.is-active { color:#bd2e4f; }
.movie-filter-button [data-filter-count]:empty { display:none; }
.movie-filter-button [data-filter-count] { font-size:11px; }
.movie-filter-button:focus-visible { outline:2px solid #bd2e4f; outline-offset:4px; border-radius:2px; }
.movie-filter-menu { position:fixed; inset:auto; margin:0; padding:12px; box-sizing:border-box; border:1px solid #e5e7eb; border-radius:8px; background:white; color:#374151; box-shadow:0 8px 24px #0002; font:14px/1.4 Arial,sans-serif; z-index:1000; overflow:auto; }
.movie-filter-menu[hidden] { display:none; }
.movie-filter-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:10px; }
.movie-filter-heading button { padding:0; border:0; background:none; color:#bd2e4f; font:inherit; cursor:pointer; }
.movie-filter-heading button:disabled { color:#9ca3af; cursor:default; }
.movie-filter-menu input[type="search"] { width:100%; box-sizing:border-box; padding:8px 10px; border:1px solid #e5e7eb; border-radius:6px; font:inherit; margin-bottom:8px; }
.movie-filter-options { display:grid; gap:2px; }
.movie-filter-options label { display:flex; align-items:center; gap:9px; padding:7px 4px; cursor:pointer; border-radius:4px; }
.movie-filter-options label:hover { background:#f3f4f6; }
.movie-filter-options input { width:16px; height:16px; margin:0; accent-color:#bd2e4f; flex-shrink:0; }

/* Fixed header widths keep filtering and empty results from resizing columns. */
.films-table th:nth-child(1) { width: 20%; }
.films-table th:nth-child(2) { width: 7%; }
.films-table th:nth-child(3) { width: 10%; }
.films-table th:nth-child(4) { width: 6%; }
.films-table th:nth-child(5) { width: 17%; }
.films-table th:nth-child(6) { width: 11%; }
.films-table th:nth-child(7) { width: 15%; }
.films-table th:nth-child(8) { width: 14%; }
.films-table td { overflow-wrap: anywhere; }
.film-title > span { min-width: 0; }
.film-chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
html { scrollbar-gutter: stable; }

.visited-table { min-width:540px; }
.place-public-lived { font-weight:600; margin-bottom:6px; }
.visited-table th:nth-child(1) { width:45%; }
.visited-table th:nth-child(2) { width:30%; }
.visited-table th:nth-child(3) { width:25%; }
#place-count { font-size:13px; color:#666c66; }
#place-search { margin-left:auto; width:260px; max-width:100%; border:1px solid #e3e5e1; border-radius:6px; padding:11px 12px; font:14px system-ui,sans-serif; }
@media (max-width:600px) { #place-search { width:100%; margin:0; } }

.homes-intro { max-width: 850px; margin: 0; }
.homes-intro + .homes { margin-top: 64px; }
.homes .home-step--compact { padding-bottom: 48px; }

/* Responsive reading and touch controls. */
.mobile-filters { display: none; }
main, .films, .films-scroll, .career-timeline { min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
.movie-filter-heading strong { margin-right: auto; }
.movie-filter-heading button { min-height: 44px; min-width: 44px; }
.movie-filter-menu input[type="search"] { font-size: 16px; min-height: 44px; }
.movie-filter-options label { min-height: 44px; }
.movie-filter-menu { overscroll-behavior: contain; }
.photo-viewer { padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.viewer-top p { min-width: 0; overflow-wrap: anywhere; }
.viewer-top button { flex-shrink: 0; }
.gallery-thumbs { overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.gallery-thumb { scroll-snap-align: center; }
@media (min-width: 641px) and (max-width: 900px) {
  .page { width: calc(100% - 64px); }
  .career-step { display: flex; flex-direction: column; padding-left: 28px; padding-bottom: 72px; }
  .story-gallery { position: static; width: 100%; margin-top: 28px; }
}
@media (max-width: 760px) {
  .page { width: auto; margin-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
  .home-main { padding-top: 40px; padding-bottom: 40px; }
  .hero-layout { gap: 28px; }
  h1 { font-size: clamp(38px, 10.5vw, 58px); margin-bottom: 24px; }
  .intro, .detail-page p { font-size: 20px; line-height: 1.55; }
  .career-description, .intro.homes-intro { font-size: 20px; }
  .social-links { margin-top: 16px; }
  .hero-menu { margin-top: 20px; gap: 4px 20px; }
  .hero-portrait { max-width: none; justify-self: stretch; }
  .page-heading { gap: 16px; margin-bottom: 36px; }
  .header-nav { justify-content: flex-start; margin-left: 0; }
  .site-nav { gap: 0 18px; }
  .site-nav a { font-size: 16px; min-height: 44px; }
  .subpage-main { padding-block: 12px 48px; }
  .career-step { padding-left: 22px; padding-bottom: 60px; }
  .career-step h2 { font-size: 28px; }
  .career-heading-row { gap: 6px 12px; }
  .career-era { font-size: 16px; white-space: normal; }
  .story-gallery { margin-top: 20px; }
  .homes-intro + .homes { margin-top: 36px; }
  .homes .home-step--compact { padding-bottom: 32px; }
  .gallery-placeholder { aspect-ratio: auto; min-height: 88px; }
  .films-intro { margin-bottom: 24px; }
  .films-toolbar { padding: 16px; gap: 12px; }
  .films-tabs button { min-height: 44px; padding: 10px 12px; font-size: 15px; }
  #film-search, #place-search { margin: 0; width: 100%; min-height: 46px; font-size: 16px; }
  .mobile-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
  .mobile-filters .movie-filter-button { padding: 8px 12px; min-height: 44px; border: 1px solid #e3e5e1; border-radius: 8px; font-size: 14px; }
  .mobile-filters .movie-filter-button.is-active { border-color: #bd2e4f; background: #fff6f8; }
  .films-scroll { overflow: visible; }
  .films-table { display: block; min-width: 0; width: 100%; font-size: 14px; }
  .films-table thead { display: none; }
  .films-table tbody { display: block; }
  .films-table tr[data-film], .films-table tr[data-place] { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px 16px; padding: 20px 16px; border-top: 1px solid #e3e5e1; }
  .films-table tr[hidden] { display: none; }
  .films-table td, .films-table td:nth-child(3) { display: block; padding: 0; border: 0; min-width: 0; }
  .films-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #666c66; font-size: 12px; }
  .films-table td:first-child { grid-column: 1 / -1; font-size: 17px; font-weight: 500; }
  .films-table td:first-child::before { display: none; }
  .films-table [data-film] td:last-child { grid-column: 1 / -1; }
  .films-table [data-film] td:nth-child(4):empty { display: none; }
  .film-title { align-items: flex-start; }
  .film-title img { width: 44px; height: 62px; }
  .film-title { min-height: 44px; }
  .film-title small { font-weight: 400; }
  .film-watch { gap: 12px; }
  .film-watches { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .films-table #films-empty td, .films-table #places-empty td { padding: 24px 16px; }
  .films-table #films-empty td::before, .films-table #places-empty td::before { display: none; }
  .movie-filter-menu { border-radius: 14px; padding: 16px; }
}
@media (max-width: 360px) {
  .page { margin-inline: 16px; }
  .films-toolbar, .mobile-filters { padding-left: 12px; padding-right: 12px; }
  .films-table tr[data-film], .films-table tr[data-place] { padding-inline: 12px; gap: 12px; }
}

/* Hobby projects. */
.hobby-project-card { display: block; width: min(100%, 560px); padding: 24px; border: 1px solid #e3e5e1; border-radius: 8px; background: #fff; color: #282c29; font-size: 24px; line-height: 1.3; text-decoration: none; }
.hobby-project-heading { margin: 0 0 16px; color: #282c29; font-size: 24px; font-weight: 400; line-height: 1.3; }
.hobby-project-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: #bd2e4f; font-size: 18px; text-underline-offset: .18em; }
.hobby-project-link:hover { color: #a82946; }
.hobby-project-link:focus-visible { outline: 2px solid #bd2e4f; outline-offset: 4px; }
.hobby-project-description { color: #535a53; font-size: 18px; line-height: 1.55; }
.hobby-project-description p { margin: 0 0 16px; }
.hobby-project-description p:last-child { margin-bottom: 0; }
