/* Figma black frame 29:125, calibrated at 1440 × 900. */
.site-header-inner { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 9px 24px; }
.site-wordmark { display: block; width: 88px; height: 22px; font-family: 'OlderNew TRIAL', Georgia, serif; font-size: 16px; font-weight: 400; line-height: 22px; letter-spacing: 0; color: var(--ink); }
.site-header .header-nav { gap: 40px; }
.site-header .pf-header-link { font-family: 'Test Untitled Sans', Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 17px; padding-bottom: 0; }
/* Blend the navigation ink with the content scrolling behind the header. */
html[data-theme] .portfolio-page .site-header {
  --ink: #fff; --accent: #fff; --muted: rgba(255,255,255,.7);
  color: var(--ink); background: transparent; mix-blend-mode: difference;
}
html[data-theme] .portfolio-page .site-header .site-wordmark,
html[data-theme] .portfolio-page .site-header .hamburger-circle { color: #fff; }
.portfolio-page.home-page.black-home { --paper: #000; --ink: #fff; --muted: rgba(255,255,255,.7); --accent: #fff; --gutter: 48px; color: #fff; background: #000; font-family: 'Test Untitled Sans', Arial, sans-serif; }
:is(.black-home, .pf-playground-page) .grain { display: none; }
.black-home .site-wordmark, .black-home .hamburger-circle { color: #fff; }
.black-home .home-first-screen { position: relative; display: block; height: 100svh; min-height: 600px; }
.black-home #film-strip { position: absolute; top: 135px; left: 0; width: 100%; height: 215px; padding: 0; overflow: visible; clip-path: inset(-40px 0); isolation: isolate; background: #000; }
.black-home .film-surface { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.black-home #film-strip.has-film-surface .film-surface { opacity: 1; }
.black-home #film-strip.has-film-surface .film-scene { opacity: 0; }
.black-home #film-track { --film-start: 0px; position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 0; width: max-content; height: 215px; padding: 0; animation: home-film-scroll 28s linear infinite; }
.black-home .film-group { display: flex; align-items: flex-start; gap: 14px; flex: none; padding: 0 9px 0 5px; }
.black-home .film-card { position: relative; flex: none; width: 192px; margin: 0; padding-top: 29px; }
.black-home .film-number { position: absolute; top: 4px; right: 0; margin: 0; color: #fff; font-family: 'OlderNew TRIAL', Georgia, serif; font-size: 12px; font-weight: 400; font-style: normal; line-height: 12px; letter-spacing: 0; }
.black-home .film-scene { position: relative; width: 100%; overflow: hidden; }
.black-home .film-layer { position: absolute; inset: 0; overflow: hidden; }
.black-home .film-layer img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; }
.black-home .home-hero { position: absolute; top: auto; bottom: -13px; left: 24px; height: 310px; padding: 0; display: block; }
.black-home.home-page .home-title { width: 728px; max-width: calc(100vw - 48px); height: 310px; color: #f7f6f0; font-family: 'OlderNew TRIAL', Georgia, serif; font-size: clamp(76px, 7.638889vw, 110px); font-weight: 400; font-style: normal; letter-spacing: 0; line-height: 1; }
.black-home .home-title-mask, .black-home .home-title-mask + .home-title-mask { display: block; height: 1em; margin: 0; overflow: visible; clip-path: inset(0 -.12em -.2em 0); }
.black-home .home-title-line { font: inherit; line-height: 1; }
.black-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 44px 24px 24px; font-family: 'Test Untitled Sans', Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 17px; color: #fff; background: #000; }
.black-footer .pf-backtop { display: inline-flex; align-items: center; gap: 8px; font: inherit; white-space: nowrap; }
html[data-theme] .portfolio-page .pf-mobile-menu { background: #000; color: #fff; font-family: 'Test Untitled Sans', Arial, sans-serif; }
.portfolio-page .pf-mobile-menu nav a { font-family: 'OlderNew TRIAL', Georgia, serif; }

@media (max-width: 767px) {
  .site-header-inner { padding-inline: 20px; }
  .black-home .home-first-screen { min-height: 680px; }
  .black-home #film-strip { top: 135px; }
  .black-home .home-hero { bottom: 80px; left: 20px; height: auto; }
  .black-home.home-page .home-title { width: auto; max-width: calc(100vw - 40px); height: auto; font-size: clamp(40px, 12.571429vw, 60px); }
  .black-footer { padding: 32px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .black-home #film-strip.has-film-surface .film-surface { opacity: 0; }
  .black-home #film-strip.has-film-surface .film-scene { opacity: 1; }
  .black-home #film-track { animation-play-state: paused; }
}

/* layout1: light homepage, existing carousel, and the Plyn work grid. */
.portfolio-page:is(.home-page, .pf-playground-page).layout1-home {
  --paper: #fafafa; --ink: #121212; --muted: rgba(18,18,18,.5);
  --accent: #121212; --rule: rgba(18,18,18,.1); --home-title: #202020;
  --work-space: clamp(10.5px, .7291667vw, 14px);
  color: var(--ink); background: var(--paper);
}
html[data-theme="dark"] .portfolio-page:is(.home-page, .pf-playground-page).layout1-home {
  --paper: #121212; --ink: #fafafa; --muted: rgba(250,250,250,.5);
  --accent: #fafafa; --rule: rgba(250,250,250,.1); --home-title: #f7f6f0;
}
.layout1-home .site-header-inner { margin-top: 12px; }
.layout1-home .home-brand { display: flex; align-items: center; gap: 6px; }
.layout1-home .site-wordmark { width: 142px; }
.layout1-home .home-theme-toggle {
  position: relative; display: block; flex: none; width: 16px; height: 16px;
  padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* Plyn's 500ms spring, sampled from its icon transition. */
  --theme-spring: linear(0, .0183, .0666, .1357, .2181, .3078, .3997, .4901, .5763, .6561, .7285, .7926, .8483, .8956, .935, .967, .9924, 1.0118, 1.026, 1.0358, 1.042, 1.0452, 1.046, 1.045, 1.0427, 1.0394, 1.0356, 1.0314, 1.0272, 1.0231, 1.0191, 1.0155, 1.0122, 1.0093, 1.0068, 1.0046, 1.0028, 1.0014, 1.0003, .9994, .9988, .9983, .9981, .9979, .9979, .9979, .9981, .9982, .9984, 1);
}
.layout1-home .home-theme-icon {
  position: absolute; left: 1px; top: 1px; width: 14px; height: 14px;
  max-width: none; pointer-events: none; transform-origin: center;
  transition: transform 500ms var(--theme-spring), opacity 500ms var(--theme-spring);
}
.layout1-home .home-theme-sun { opacity: 0; transform: scale(.5) rotate(120deg); }
.layout1-home .home-theme-moon { opacity: 1; transform: scale(1) rotate(0); }
html[data-theme="dark"] .layout1-home .home-theme-sun { opacity: 1; transform: scale(1) rotate(0); }
html[data-theme="dark"] .layout1-home .home-theme-moon { opacity: 0; transform: scale(.5) rotate(120deg); }
.layout1-home .home-theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
@media (prefers-reduced-motion: reduce) {
  .layout1-home .home-theme-icon { transition: none; }
}
html[data-theme] .portfolio-page.layout1-home #film-strip { background: var(--paper); }
.layout1-home .film-number { color: var(--ink); }
html[data-theme] .portfolio-page.layout1-home .home-title { color: var(--home-title); }
html[data-theme] .portfolio-page.layout1-home .pf-mobile-menu { background: var(--paper); color: var(--ink); }
.layout1-home #work {
  width: 100%; max-width: none; margin: 120px 0 0;
  padding: 0 var(--work-space) 220px; scroll-margin-top: 74px;
  color: var(--ink); background: var(--paper);
}
.layout1-home .home-work-heading {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  gap: var(--work-space); padding: var(--work-space) 0;
  box-shadow: inset 0 -.75px var(--rule); color: var(--muted);
  font: 400 var(--work-space)/calc(var(--work-space) * 1.42857143) 'OlderNew TRIAL',Georgia,serif;
}
.layout1-home .home-work-heading h2, .layout1-home .home-work-heading p { margin: 0; font: inherit; }
.layout1-home .home-work-heading p:last-child { text-align: right; }
.layout1-home .home-work-grid {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: start; gap: var(--work-space); padding-top: var(--work-space);
}
.layout1-home .home-work-card {
  display: flex; flex-direction: column; gap: 0; min-width: 0;
  color: inherit; text-decoration: none; border-radius: 0;
}
.layout1-home .home-work-media {
  position: relative; width: 100%; aspect-ratio: var(--work-ratio);
  overflow: hidden; border-radius: 0;
}
.layout1-home .home-work-media-float { position: absolute; inset: 0; }
.layout1-home .home-work-media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.layout1-home .home-work-caption {
  --project-caption-size: var(--work-space);
  padding: calc(var(--work-space) / 2) 0 var(--work-space);
}
@media (min-width:810px) and (max-width:1199.98px) {
  .layout1-home .home-work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:1199.98px) {
  .portfolio-page.home-page.layout1-home { --work-space: 14px; }
}
@media (max-width:809.98px) {
  .layout1-home #work { margin-top: 100px; padding-bottom: 100px; }
  .layout1-home .home-work-grid { grid-template-columns: minmax(0,1fr); }
  .layout1-home .home-work-heading { grid-template-columns: 1fr 1fr; }
  .layout1-home .home-work-heading p:nth-child(2) { display: none; }
}
