:root {
  --paper: #f5f5f2;
  --ink: #111110;
  --muted: #73736e;
  --blend-ink: #fff;
  --edge: clamp(18px, 2.2vw, 40px);
  --info-size: 32px;
  --font: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .75, .2, 1);
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  letter-spacing: -.015em;
}
:root[data-theme="black"] { --paper: #111110; --ink: #f5f5f2; --muted: #a4a49e; color-scheme: dark; }
:root[data-theme="gray"] { --paper: #d6d6d2; --ink: #111110; --muted: #62625e; }
:root[data-theme="green"] { --paper: #ccff00; --ink: #111110; --muted: #475500; --blend-ink: #ccff00; }
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3, ol, ul { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Theme ink blends with the pixels behind the entire fixed header. */
.site-header { position: fixed; z-index: 100; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding: 22px var(--edge) 0; color: var(--blend-ink); mix-blend-mode: difference; pointer-events: none; transition: opacity .7s ease; }
.site-header button { pointer-events: auto; }
.brand { max-width: min(930px, calc(100% - 290px)); font-size: var(--info-size); line-height: 1.02; letter-spacing: -.025em; text-align: left; }
.brand-word { white-space: nowrap; }
.brand-continuation { white-space: normal; }
.site-nav { position: absolute; top: 26px; right: var(--edge); display: flex; gap: 26px; font-size: 16px; letter-spacing: -.015em; line-height: 1.2; }
.site-nav button { min-height: 24px; }
.site-nav button { text-decoration: none; }
.site-nav .theme-toggle { display: grid; place-items: center; width: 24px; height: 24px; }
.theme-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: currentColor; transition: transform .2s ease; }
.theme-toggle:hover .theme-dot { transform: scale(1.12); }
.theme-toggle:focus-visible { border-radius: 50%; }
.index-page { min-height: 100svh; padding: 0 var(--edge) 32px; }
.work-list { position: relative; z-index: 3; width: 100%; margin-top: 110px; padding: 0; list-style: none; mix-blend-mode: difference; color: var(--blend-ink);  }
.work-list li { margin: 0; padding: 0; }
.work-link { position: relative; display: block; width: 100%; padding: 2px 0 3px; }
.work-link:focus-visible { outline: none; }
.work-title { display: block; width: fit-content; max-width: calc(100% - 46px); font-size: clamp(28px, 4.8vw, 76px); font-weight: 400; letter-spacing: -.035em; line-height: .98; overflow-wrap: anywhere; }
.work-link::before { content: ""; position: absolute; left: 0; top: calc(50% - 3px); width: 0; height: 6px; background: currentColor; transition: width .5s cubic-bezier(.075,.82,.165,1); }
.work-link .work-title { transition: transform .5s cubic-bezier(.075,.82,.165,1), opacity .35s ease; }
.work-list.is-previewing .work-link:not(.is-selected) .work-title { opacity: .55; }
.work-list.is-previewing .work-link.is-selected::before { width: 36px; }
.work-list.is-previewing .work-link.is-selected .work-title { transform: translateX(46px); }
/* Only selection pushes the title sideways; scrolling never moves the image stage. */
.work-preview { position: fixed; z-index: 2; top: 22vh; right: var(--edge); width: 41vw; margin: 0; transition: opacity .2s ease; pointer-events: none; }
.work-preview.is-hidden, .work-preview.is-outside-index { opacity: 0; pointer-events: none; }
.preview-button { display: flex; align-items: center; justify-content: center; width: 100%; height: 61vh; cursor: crosshair; }
.preview-button img { width: 100%; height: 100%; object-fit: contain; transition: opacity .16s ease; }
.preview-button img.is-changing { opacity: 0; }
.type-field { position: relative; z-index: 4; margin: 0 calc(-1 * var(--edge)); padding: clamp(100px, 12svh, 140px) 0 0; display: grid; align-content: start; overflow: clip; background: var(--paper);  }
.type-row { min-width: 0; overflow: visible; font-size: clamp(48px, 5.3vw, 82px); font-weight: 400; letter-spacing: -.04em; line-height: 1.03; }
.type-track { display: flex; width: max-content; }
.type-row.is-in-view .type-track { will-change: transform; }
.type-sequence { display: flex; flex: 0 0 auto; white-space: nowrap; gap: .4em; padding-right: .4em; }
.site-footer { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 60px; margin-top: 100px; padding: 20px 0 0; font-size: var(--info-size); letter-spacing: -.025em; line-height: 1.1; background: var(--paper); }
.site-footer > div { display: flex; flex-direction: column; }
.site-footer time { font-variant-numeric: tabular-nums; }
.footer-credit { align-self: end; }
.no-script { padding-top: 50px; }
.entry-screen { display: none; position: fixed; z-index: 1000; inset: 0; padding: 24px var(--edge); color: var(--paper); background: var(--ink); clip-path: inset(0); transition: clip-path .6s var(--ease); }
.intro-pending .entry-screen { display: flex; flex-direction: column; justify-content: center; }
.intro-pending { overflow: hidden; }
.entry-screen.is-leaving { clip-path: inset(0 0 100% 0); }
.entry-type { display: flex; flex-direction: column; font-size: clamp(54px, 9.4vw, 165px); line-height: .96; letter-spacing: -.04em; }
.entry-role { display: block; min-height: 1.14em; margin-top: .12em; overflow: hidden; font-size: clamp(34px, 6.1vw, 115px); line-height: 1.1; letter-spacing: -.025em; }
.entry-role-word { display: block; }
.page-layer { position: fixed; z-index: 80; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: transparent; scrollbar-width: thin; scrollbar-gutter: stable; }
.page-backdrop { z-index:79; position: fixed; inset: 0; pointer-events: none; background: #000; opacity: 0; transition: opacity .65s var(--ease); }
.page-backdrop.is-open { opacity: .7; }
.layer-sheet { position: relative; min-height: calc(100svh - 72px); margin: 72px 0 0 10.5vw; padding: 48px clamp(24px, 4.8vw, 88px) 56px; color: var(--ink); background: var(--paper); }
.layer-close { position: fixed; top: 103px; right: calc(var(--edge) + 12px); z-index: 4; display: block; width: 32px; height: 32px; mix-blend-mode: difference; color: var(--blend-ink); opacity: 0; transition: opacity .3s ease; }
.page-layer.is-open .layer-close { opacity: 1; }
.close-glyph { display: block; position: relative; width: 100%; height: 100%; }
.close-glyph::before, .close-glyph::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.close-glyph::after { transform: rotate(-45deg); }
.layer-kicker { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; padding-right: 70px; margin-bottom: 40px; font-size: var(--info-size); line-height: 1.1; letter-spacing: -.025em; }
.layer-title { max-width: 100%; margin: 0 0 48px; font-size: clamp(64px, 8.9vw, 150px); font-weight: 400; line-height: .96; letter-spacing: -.02em; overflow-wrap: anywhere; }
.layer-title:focus { outline: none; }
.project-lead { max-width: 770px; margin: 0 0 60px auto; font-size: var(--info-size); letter-spacing: -.025em; line-height: 1.12; }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px 30px; margin: 0 -2.4vw 70px; }
.project-figure:first-child, .project-figure:only-child { grid-column: 1 / -1; }
.project-figure:last-child:nth-child(even) { grid-column: 1 / -1; width: 84%; margin-left: auto; }
.project-image-button { display: block; width: 100%; cursor: crosshair; }
.project-image-button img { width: 100%; height: auto; background: #eaeae5; }
.project-figure figcaption { display: flex; justify-content: space-between; gap: 25px; margin-top: 16px; font-size: var(--info-size); line-height: 1.1; letter-spacing: -.025em; }
.project-concept { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin: 70px 0 110px; }
.project-concept h3 { font-size: var(--info-size); font-weight: 400; letter-spacing: -.025em; line-height: 1.12; }
.project-concept p { font-size: var(--info-size); letter-spacing: -.025em; line-height: 1.12; }
.project-concept p + p { margin-top: 1em; }
.project-pagination { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.project-pagination > span { font-size: var(--info-size); line-height: 1.1; }
.next-project { text-align: left; font-size: clamp(32px, 4.6vw, 70px); letter-spacing: -.035em; line-height: 1.02; }
.next-project span:last-child { display: block; margin-top: 16px; font-size: var(--info-size); letter-spacing: -.025em; }
.about-intro { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; margin: 65px 0 110px; }
.about-portrait { width: 100%; max-height: 650px; object-fit: cover; }
.about-intro-copy, .about-section { font-size: var(--info-size); line-height: 1.12; letter-spacing: -.025em; }
.about-lead { margin-bottom: 65px; }
.about-section { display: grid; grid-template-columns: minmax(150px, .6fr) 2fr; gap: 48px; }
.about-section + .about-section { margin-top: 110px; }
.about-section h3 { font-size: inherit; font-weight: 400; line-height: inherit; }
.about-intro .about-section { display: block; }
.about-intro .about-section h3 { margin-bottom: 25px; }
.about-section ul { padding: 0; list-style: none; }
.about-section li { display: grid; grid-template-columns: minmax(160px, .8fr) 2fr; gap: 30px; }
.about-section li + li { margin-top: 48px; }
.about-section li p + p { margin-top: 25px; }
.about-date { font-variant-numeric: tabular-nums; }
.contact-mail { display: block; margin: 80px 0 90px; font-size: clamp(40px, 6.5vw, 110px); line-height: 1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; margin-bottom: 110px; font-size: var(--info-size); line-height: 1.12; letter-spacing: -.025em; }
.contact-grid > div { display: flex; flex-direction: column; gap: 6px; }
.contact-grid h3 { margin-bottom: 25px; font-size: inherit; line-height: inherit; font-weight: 400; }
.contact-services { display: grid; grid-template-columns: 1fr 2fr; gap: 38px; font-size: var(--info-size); line-height: 1.12; letter-spacing: -.025em; }
.contact-services h3 { font-size: inherit; font-weight: 400; }
.contact-services ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 38px; padding: 0; list-style: none; }
.contact-time { font-variant-numeric: tabular-nums; }
.image-viewer { position: fixed; inset: 0; max-width: none; max-height: none; width: 100%; height: 100dvh; margin: 0; padding: 58px 70px 54px; border: 0; color: var(--ink); background: var(--paper); }
.image-viewer::backdrop { background: var(--paper); }
.image-viewer[open] { display: flex; align-items: center; justify-content: center; }
.image-viewer > img { width: 100%; height: 100%; object-fit: contain; }
.viewer-close { position: absolute; top: 20px; right: var(--edge); font-size: var(--info-size); }
.viewer-close span { margin-left: 20px; font-size: 25px; vertical-align: middle; }
.viewer-caption { position: absolute; left: var(--edge); right: var(--edge); bottom: 20px; display: flex; justify-content: space-between; gap: 30px; font-size: var(--info-size); line-height: 1.1; }
.viewer-arrow { position: absolute; top: 50%; padding: 15px; font-size: 30px; }
.viewer-prev { left: 8px; }
.viewer-next { right: 8px; }
@media (min-width: 1800px) {
  .index-page { padding-top: 0; }
  .work-link { padding-bottom: 3px; }
}
@media (max-width: 1000px) {
  .brand { max-width: calc(100% - 255px); }
  .site-nav { gap: 20px; }
  .work-list { width: 100%; }
  .work-preview { width: 45vw; }
  .project-concept { grid-template-columns: 1fr 3fr; gap: 30px; }
  .about-intro { gap: 35px; }
  .about-section { grid-template-columns: 1fr; gap: 35px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-services { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --info-size: 29px; }
  .site-header { padding-top: 20px; gap: 14px; }
  .brand { max-width: calc(100% - 210px); }
  .brand-continuation { display: none; }
  .site-nav { top: 25px; gap: 15px; font-size: 14px; }
  .site-nav .theme-toggle { width: 18px; }
  .theme-dot { width: 14px; height: 14px; }
  .index-page { padding-top: 0; }
  .work-list { width: 100%; }
  .work-link { padding: 3px 0 4px; }
  .work-title { font-size: clamp(27px, 6.8vw, 46px); letter-spacing: -.025em; line-height: 1; }
  .work-preview { top: 25vh; right: 0; width: 75vw; pointer-events: none; }
  .preview-button { height: 48vh; }
  .type-field { margin-top: 0; min-height: 0; padding: 104px 0 0; }
  .type-row { font-size: clamp(32px, 8.4vw, 46px); line-height: 1.06; }
  .site-footer { grid-template-columns: 1fr; gap: 38px; margin-top: 65px; }
  .footer-credit { grid-column: 1 / -1; }
  .entry-type { font-size: clamp(44px, 11vw, 80px); }
  .entry-role { font-size: clamp(24px, 7.2vw, 48px); min-height: 2.2em; }
  .layer-sheet { margin: 75px 0 0 18px; padding: 36px 22px 45px; }
  .layer-close { width: 26px; height: 26px; top: 99px; right: 26px; }
  .layer-kicker { padding-right: 40px; margin-bottom: 36px; }
  .layer-title { font-size: clamp(51px, 12.8vw, 86px); margin-bottom: 36px; }
  .project-lead { margin-bottom: 38px; }
  .project-gallery { grid-template-columns: 1fr; gap: 30px; margin-left: -10px; margin-right: -10px; margin-bottom: 44px; }
  .project-figure:last-child:nth-child(even) { width: 100%; }
  .project-concept { grid-template-columns: 1fr; gap: 20px; margin: 42px 0 70px; }
  .project-figure figcaption { flex-direction: column; gap: 6px; }
  .project-pagination { grid-template-columns: 1fr; gap: 24px; }
  .next-project { font-size: 39px; }
  .about-intro { grid-template-columns: 1fr; gap: 40px; margin: 45px 0 80px; }
  .about-lead { margin-bottom: 45px; }
  .about-portrait { width: 100%; }
  .about-section { gap: 32px; }
  .about-section + .about-section { margin-top: 80px; }
  .about-section li { grid-template-columns: 1fr; gap: 14px; }
  .contact-mail { font-size: clamp(33px, 8.8vw, 60px); margin: 70px 0 60px; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; margin-bottom: 80px; }
  .contact-services { gap: 32px; }
  .contact-services ul { grid-template-columns: 1fr; }
  .image-viewer { padding: 78px 22px 130px; }
  .viewer-caption { flex-direction: column; gap: 8px; }
  .viewer-arrow { top: auto; bottom: 65px; font-size: 26px; }
}
@media (hover: none) {
  .brand-continuation { display: none; }
  .work-list.is-previewing .work-link:not(.is-selected) .work-title { opacity: 1; }
  .work-link::before { display: none; }
  .work-list.is-previewing .work-link.is-selected .work-title { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .entry-screen { display: none !important; }
  .layer-sheet { transform: none; }
}

html { scrollbar-color:var(--muted) var(--paper); }
.page-layer { overflow-anchor:none; }
@media(prefers-reduced-motion:reduce){ :root { transition:none; } }

/* Keep blending inside the captured pages, never between the old/new snapshots. */
::view-transition-group(root) { animation:none; }
::view-transition-image-pair(root) { isolation:isolate; }
::view-transition-old(root) { mix-blend-mode:normal; animation:theme-page-out .42s ease both; z-index:2; }
::view-transition-new(root) { mix-blend-mode:normal; animation:none; z-index:1; }
::view-transition { pointer-events:none; }
@keyframes theme-page-out { to { opacity:0; } }
