/* Portfolio styles: base, surfaces, responsive states and motion. */
/* Font metrics, Panel settings and grid are resolved before the first paint. */
html.portfolio-preparing body { visibility: hidden; opacity: 0; pointer-events: none; }
  .project-inline-gallery.touch-gallery:not(.gallery-thumbs-visible) .project-inline-gallery-thumbs {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
/* Smartphone editorial baseline; Home Panel overrides retain priority. */
html.iphone-smartphone { --smartphone-title-cap: 34px; }
html.home-smartphone #home-view .home-copy :is(h1, h2),
html.home-smartphone #projects-view .project-inline-title,
html.home-smartphone #thesis-view .thesis-page-copy :is(h1, h2),
html.home-smartphone #thesis-view .thesis-story-copy :is(h1, h2),
html.home-smartphone #contacts-view :is(h1, h2, h3) { font-size: min(34px, var(--smartphone-title-cap, 100px)); }
html.home-smartphone #home-view .home-copy p,
html.home-smartphone #projects-view .project-inline-text,
html.home-smartphone #thesis-view .thesis-page-copy p,
html.home-smartphone #thesis-view .thesis-story-copy p,
html.home-smartphone #contacts-view p,
html.home-smartphone #contacts-view .contact-email,
html.home-smartphone #contacts-view .contact-links { font-size: 14px; }
/* Keep the contact shortcut visible when its text is hidden on mobile. */
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  .masthead-right #nav-contacts span[aria-hidden="true"] { display: inline; }
}
.site-scrollbar:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.project-inline-slide video { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-inline-gallery-thumb.is-video { position: relative; }
.project-inline-gallery-thumb.is-video::after { content: 'â–¶'; position: absolute; right: 5px; bottom: 4px; color: white; font-size: 10px; text-shadow: 0 1px 3px black; pointer-events: none; }
:root {
  --projects-entry-gap: 80ms;
  --mobile-first-screen: 100vh;
  --mobile-scroll-screen: 100vh;
  --muted: #747474;
  --line: #dedede;
  --font: "early-sans-variable", sans-serif;
  --mono: "early-sans-variable", sans-serif;
  --line-width: 1px;
  --paper: #fff;
  --ink: #181818;
  --preview: #e9e9e9;
  --mobile-screen: 100svh;
}
* {
  box-sizing: border-box;
}
html {
  color: var(--ink);
  font-size: 16px;
  font-synthesis: weight style;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
body {
  margin: 0;
}
p {
  text-wrap: pretty;
}
.paragraph-tail {
  display: inline-block;
  max-width: 100%;
  text-wrap: balance;
  vertical-align: baseline;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.27;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 0;
  height: 84px;
  padding: 25px 34px;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.identity-short { display: none; }
.identity {
  white-space: nowrap;
  font-size: 18px;
  letter-spacing: -0.045em;
}
.masthead-right {
  display: flex;
  align-items: center;
  line-height: 1.3;
  gap: 30px;
  font-size: 13px;
}
.contact {
  padding: 12px 0;
}
.contact:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.finder {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 94px calc(clamp(30px, 5vw, 90px)) 45px;
}
.toolbar {
  display: flex;
  align-items: center;
  min-height: 0;
  border: 0;
  padding: 0 0 32px;
  gap: 14px;
}
.history-controls {
  display: flex;
  flex-shrink: 0;
  gap: 0;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  padding: 6px;
  border-radius: 3px;
}
.icon-button svg {
  width: 20px;
  height: 20px;
}
.icon-button:not(:disabled):hover {
  background: #00000009;
}
#breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  line-height: 1.6;
  font-size: 12px;
  gap: 8px;
}
#breadcrumbs a {
  color: var(--muted);
}
#breadcrumbs a:hover,
#breadcrumbs a[aria-current] {
  color: var(--ink);
}
.crumb-separator {
  color: #aaa;
}
.directory {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 0;
}
.preview {
  min-width: 0;
  background: var(--preview);
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  position: relative;
  overflow: hidden;
}
.preview-stage {
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  padding: 0;
  display: block;
}
.preview-stage > img {
  display: block;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  position: absolute;
  bottom: 20px;
  left: 25px;
  right: 24px;
  padding: 0;
  min-height: 34px;
  color: #fff;
  mix-blend-mode: difference;
}
.preview-caption > div > span {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
}
.slideshow-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.counter {
  font-size: 12px;
  font-family: var(--mono);
  white-space: nowrap;
  color: var(--muted);
}
.gallery-empty,
.preview-empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.gallery-empty svg,
.preview-empty svg {
  width: 75px;
  color: #aaa;
  margin-bottom: 12px;
}
.directory-empty {
  padding: 32px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.cursor-preview {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 196px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: hsla(0, 0%, 100%, 0.22);
  box-shadow:
    0 16px 38px hsla(0, 0%, 7%, 0.16),
    inset 0 1px hsla(0, 0%, 100%, 0.72);
  backdrop-filter: blur(12px) saturate(1.14);
  -webkit-backdrop-filter: blur(12px) saturate(1.14);
  isolation: isolate;
}
.cursor-preview img {
  display: block;
  width: 196px;
  height: 132px;
  object-fit: cover;
  background: transparent;
  position: relative;
  z-index: 1;
}
.cursor-preview > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  position: relative;
  z-index: 3;
  padding: 8px 9px 9px;
  background: hsla(0, 0%, 100%, 0.34);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}
#cursor-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#cursor-count {
  margin-left: auto;
  font-family: var(--mono);
  white-space: nowrap;
  color: var(--muted);
}
#project-path {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-button {
  display: flex;
  align-items: center;
  background: transparent;
  border: 0;
  padding: 10px 0;
  font-size: 18px;
  gap: 13px;
}
.text-button span {
  font-size: 12px;
}
.text-button:not(:disabled):hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.eyebrow {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}
.project-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  :root {
    --mobile-first-screen: 100svh;
    --mobile-scroll-screen: 100lvh;
  }
  .role {
    display: none;
  }

  .preview {
    border: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  :after,
  :before {
    animation: none !important;
    transition: none !important;
  }
}
@media (hover: none) {
  .cursor-preview {
    display: none !important;
  }
}
body,
button,
html,
input,
select,
textarea {
  font-family: early-sans-variable, sans-serif;
}
.masthead a {
  pointer-events: auto;
}
.masthead-right a {
  padding: 5px 0;
}
.masthead-right a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.contact span {
  margin-left: 5px;
  font-size: 15px;
}
.home-section {
  height: 100svh;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.home-media {
  position: relative;
  overflow: hidden;
  background: #e9e9e9;
  min-width: 0;
  min-height: 0;
}
.home-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-media > img.changed,
.thesis-story-media > img.changed {
  animation: home-reveal 0.65s ease both;
}
@keyframes home-reveal {
  0% {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}
.home-image-caption {
  z-index: 2;
  pointer-events: none;
  position: absolute;
  bottom: 25px;
  left: 32px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #fff;
  mix-blend-mode: difference;
  font-size: 12px;
}
.home-image-link { position: absolute; inset: 0; z-index: 1; }
.home-image-link:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.home-image-caption button { pointer-events: auto; }
.thesis-story-media .thesis-story-pause { margin-left: auto; }
.home-copy {
  padding: 110px calc(clamp(38px, 6.3vw, 120px)) 75px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.home-copy h1,
.home-copy h2 {
  font-size: calc(clamp(32px, 3.2vw, 56px));
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 0 0 30px;
}
.home-copy h2 {
  font-size: calc(clamp(42px, 4.5vw, 76px));
  margin-bottom: var(--baseline-step, 21.7px);
}
.home-copy p {
  max-width: 440px;
  margin: 0 0 35px;
  font-size: calc(clamp(16px, 1.35vw, 21px));
  line-height: 1.55;
  letter-spacing: -0.015em;
}
.home-link {
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid;
}
.home-link span {
  display: inline-block;
  margin-left: 30px;
}
.thesis-copy {
  background: #f3f3f3;
}
.thesis-media,
.thesis-media video {
  background: transparent;
}
.thesis-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-pending {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 13px;
}
.workspace {
  margin: 0;
  border: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  height: 100svh;
}
.history-controls .icon-button {
  width: 23px;
  height: 25px;
  padding: 3px;
}
.history-controls .icon-button svg {
  width: 15px;
  height: 15px;
}
.directory-heading,
.finder-bottom,
.preview-heading,
.view-icon {
  display: none;
}
.preview-stage > img.changed {
  animation: home-reveal 0.65s ease both;
}
.preview-caption p {
  font-size: 12px;
  margin: 0;
  letter-spacing: 0;
}
#preview-category,
#preview-counter {
  display: none;
}
.preview-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.preview-empty svg {
  display: none;
}
.gallery-nav,
.project-bar,
.project-description,
.project-description dl,
dialog {
  border: 0;
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 1fr 1fr;
  }
  .home-copy {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  .masthead {
    top: 0;
    height: calc(64px + env(safe-area-inset-top, 0px));
    padding: calc(18px + env(safe-area-inset-top, 0px))
      max(18px, env(safe-area-inset-right, 0px)) 18px
      max(18px, env(safe-area-inset-left, 0px));
  }
  .identity {
    font-size: 16px;
  }
  .home-section {
    min-height: 620px;
    height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: 50% 50%;
  }
  .home-copy {
    padding: 28px;
  }
  .home-copy h1 {
    font-size: 28px;
    margin-bottom: 18px;
  }
  .home-copy h2 {
    font-size: 36px;
    margin-bottom: var(--baseline-step, 21.7px);
  }
  .home-copy p {
    font-size: 15px;
    margin-bottom: 16px;
    max-width: 500px;
  }
  .home-link {
    font-size: 12px;
    padding: 5px 0;
  }
  .home-image-caption {
    bottom: 12px;
    left: 18px;
    right: 14px;
    font-size: 11px;
  }
  .thesis-copy {
    grid-row: 2;
  }
  .thesis-media {
    grid-row: 1;
  }

  #projects-view {
    --projects-mobile-safe-top: env(safe-area-inset-top, 0px);
    --projects-mobile-gutter: 28px;
    --projects-mobile-toolbar-top: calc(42px + var(--projects-mobile-safe-top));
    --projects-mobile-toolbar-height: 16px;
    --projects-mobile-toolbar-gap: 15px;
    --projects-mobile-content-row-top: calc(
      var(--projects-mobile-toolbar-top) + var(--projects-mobile-toolbar-height) + var(--projects-mobile-toolbar-gap)
    );
    --projects-mobile-first-text-top: calc(var(--projects-mobile-content-row-top) + 15px);
  }
  .workspace {
    box-sizing: border-box;
    grid-template-columns: 1fr;
    grid-template-rows: calc(0.5 * var(--mobile-screen)) calc(0.5 * var(--mobile-screen));
    height: var(--mobile-first-screen);
    min-height: var(--mobile-first-screen);
    max-height: var(--mobile-first-screen);
    transition-property: none;
  }
  .finder {
    box-sizing: border-box;
    height: calc(0.5 * var(--mobile-screen));
    min-height: calc(0.5 * var(--mobile-screen));
    max-height: calc(0.5 * var(--mobile-screen));
    padding: var(--projects-mobile-toolbar-top) var(--projects-mobile-gutter) 16px;
    overflow: hidden;
  }
  .toolbar {
    padding: 0 0 var(--projects-mobile-toolbar-gap);
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }
  .history-controls {
    width: auto;
    height: var(--projects-mobile-toolbar-height);
    margin: 0;
    display: flex;
    align-items: center;
  }
  #breadcrumbs {
    min-width: 0;
    height: var(--projects-mobile-toolbar-height);
    padding-top: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    font-size: 10px;
    line-height: var(--projects-mobile-toolbar-height);
    gap: 4px;
  }
  #breadcrumbs > * {
    flex: 0 0 auto;
  }
  #breadcrumbs > [aria-current="page"] {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #breadcrumbs.breadcrumb-motion-in .glyph-letter,
  #breadcrumbs .breadcrumb-segment-motion-in .glyph-letter {
    animation-duration: var(--projects-enter-duration, 0.88s);
  }
  
  .preview {
    box-sizing: border-box;
    height: calc(0.5 * var(--mobile-screen));
    min-height: calc(0.5 * var(--mobile-screen));
    max-height: calc(0.5 * var(--mobile-screen));
    padding: 0;
  }
  .preview-stage {
    padding: 0;
  }
  .preview-caption {
    left: 13px;
    right: 8px;
    top: var(--preview-caption-top, 12px);
    bottom: var(--preview-caption-bottom, auto);
    gap: 4px;
  }
  html.home-smartphone .preview {
    --preview-caption-top: auto;
    --preview-caption-bottom: 12px;
  }
  @media (orientation: landscape) {
    .preview {
      --preview-caption-top: auto;
      --preview-caption-bottom: 12px;
    }
  }
  .preview-caption p {
    font-size: 11px;
  }
  .preview-caption .icon-button {
    width: 28px;
  }
}
.video-sound {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  width: 40px;
  height: 40px;
  color: #fff;
  mix-blend-mode: difference;
}
.video-sound svg {
  width: 22px;
  height: 22px;
}
.thesis-media video::-webkit-media-controls {
  display: none !important;
}
/* One full-screen moodboard; the original photo ratios guide minimal cropping. */
#home-view #moodboard {
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 0;
  max-height: none;
  padding: 0;
  border: 0;
  background: #fff;
  overflow: hidden;
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  #home-view #moodboard { height: var(--mobile-scroll-screen); min-height: 0 !important; }
}
.moodboard-row { width: 100%; flex: 1 1 0; position: relative; perspective: 1200px; overflow: hidden; min-height: 0; }
.moodboard-tile {
  display: block;
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #fff;
  text-decoration: none;
}
.moodboard-tile figure { position: relative; margin: 0; width: 100%; height: 100%; overflow: hidden; }
.moodboard-tile img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.moodboard-caption {
  position: absolute;
  left: 24px;
  right: 18px;
  bottom: 20px;
  margin: 0;
  color: #fff;
  mix-blend-mode: difference;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.moodboard-tile:focus-visible { outline: 2px solid #fff; outline-offset: -4px; z-index: 1; }
@media (max-width: 760px) {
  .moodboard-caption { left: 12px; right: 10px; bottom: 12px; font-size: 12px; }
}
#gallery-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

#gallery-video::-webkit-media-controls {
  display: none !important;
}
#project-meta,
#project-path,
#project-type {
  display: none;
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  #project-dialog {
    position: fixed;
    z-index: 10;
    top: 64px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: calc(-20px + var(--mobile-screen));
    max-height: calc(-20px + var(--mobile-screen));
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 28px;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
    transition-property: none;
  }
  #project-dialog .project-bar {
    position: absolute;
    z-index: 5;
    top: 13px;
    right: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
    gap: 15px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    box-shadow: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    mix-blend-mode: difference;
  }
  #project-dialog .project-body {
    position: relative;
    display: block;
    grid-template-columns: minmax(0, 69fr) minmax(260px, 31fr);
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid hsla(0, 0%, 100%, 0.42);
    border-radius: 20px;
    background: hsla(0, 0%, 100%, 0.26);
    box-shadow:
      0 24px 75px rgba(28, 28, 28, 0.12),
      inset 0 1px hsla(0, 0%, 100%, 0.68);
    backdrop-filter: blur(19px) saturate(1.16) contrast(0.95);
    -webkit-backdrop-filter: blur(19px) saturate(1.16) contrast(0.95);
  }
  #project-dialog .project-gallery {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: auto;
    height: calc(0.6 * var(--mobile-screen));
    min-width: 0;
    min-height: 0;
    max-height: calc(0.6 * var(--mobile-screen));
    overflow: hidden;
    border-radius: 19px 19px 0 0;
    background: hsla(0, 0%, 100%, 0.1);
    aspect-ratio: var(--media-ratio, 4/5);
    transition: aspect-ratio 0.68s cubic-bezier(0.22, 0.72, 0.18, 1);
  }
  #project-dialog .gallery-stage {
    position: relative;
    isolation: isolate;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    touch-action: pan-y;
  }
  #project-dialog .gallery-stage > img,
  #project-dialog .gallery-stage > video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  #project-dialog .gallery-nav {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
    gap: 16px;
    padding: 0 10px;
    border: 0;
    color: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
  }
  #project-dialog .gallery-nav .text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 5px;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    pointer-events: auto;
  }
  #project-dialog #gallery-counter,
  #project-dialog .gallery-nav .text-button span {
    display: none;
  }

  #project-dialog .project-description {
    position: relative;
    z-index: 1;
    overflow: visible;
    padding: 30px 27px 45px;
    border: 0;
    border-radius: 0 0 19px 19px;
    background: hsla(0, 0%, 100%, 0.72);
    text-align: left;
    box-shadow: inset 1px 0 hsla(0, 0%, 100%, 0.48);
    backdrop-filter: blur(18px) saturate(1.05);
    -webkit-backdrop-filter: blur(18px) saturate(1.05);
  }
  #project-dialog .project-description h1 {
    margin: 0 0 24px;
    font-size: calc(clamp(26px, 2.45vw, 40px));
    line-height: 1.1;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
  }
  #project-dialog #project-text {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: normal;
    overflow-wrap: break-word;
  }
  #project-dialog #project-text p {
    margin: 0 0 17px;
  }
}
.contacts-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.contact-cv,
.contact-intro {
  padding: 140px calc(clamp(32px, 6.3vw, 110px)) 70px;
}
.contact-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.contact-intro h1 {
  margin: 0 0 48px;
  font-size: calc(clamp(44px, 5vw, 76px));
  letter-spacing: -0.055em;
}
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.contact-links a {
  font-size: 16px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.contact-links a:hover {
  text-decoration: underline;
}
.contact-links .contact-email {
  font-size: calc(clamp(18px, 1.65vw, 26px));
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}
.contact-languages {
  margin-top: 66px;
}
.contacts-page h2 {
  margin: 0 0 22px;
  font: 12px var(--mono);
  color: var(--muted);
}
.contacts-page h3 {
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 6px;
  font-weight: 400;
}
.contacts-page p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}
.contact-cv {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f3f3f3;
}
#contact-education {
  list-style: none;
  padding: 0;
  margin: 0;
}
#contact-education li {
  margin: 0 0 24px;
}
#contact-education p {
  color: #626262;
}
.contact-exhibition {
  margin-top: 24px;
}
.contact-exhibition p {
  max-width: 420px;
  color: #626262;
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  .masthead-right .contact {
    display: inline-block;
  }
  .masthead-right .contact span {
    display: none;
  }
  .contacts-page {
    grid-template-columns: 1fr;
  }
  .contact-intro {
    padding: 120px 28px 55px;
  }
  .contact-cv {
    padding: 50px 28px;
  }
  .contact-intro h1 {
    margin-bottom: 34px;
  }
  .contact-languages {
    margin-top: 44px;
  }
}
.filter-defs {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}
.finder-columns {
  position: relative;
  isolation: isolate;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
}
.finder-column {
  flex: 0 0 calc(clamp(190px, 15vw, 270px));
  min-width: 0;
  padding: 0 8px;
  overflow-y: auto;
  animation: none;
  filter: none;
}
.finder-column .directory-row {
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
  min-height: calc(clamp(48px, 4.2vw, 60px));
  gap: clamp(10px, 0.8vw, 14px);
  padding: 10px 3px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  transition:
    background-color 0.24s,
    color 0.24s,
    transform 0.24s;
}
.finder-column .directory-row:hover {
  transform: translateX(2px);
}
.finder-column .directory-row.is-selected,
.finder-column .directory-row.is-selected:hover {
  background: transparent;
  color: inherit;
  transform: none;
  box-shadow: none;
}
.finder-column .row-name {
  display: inline-block;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font-size: calc(clamp(16px, 1.28vw, 21px));
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
}
.finder-column .icon-dissolve {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}
.finder-column .row-icon {
  display: block;
  width: calc(clamp(17px, 1.25vw, 20px));
  height: calc(clamp(17px, 1.25vw, 20px));
  margin: 0;
  stroke-width: 1.6;
}
.glyph-word {
  white-space: nowrap;
}
.glyph-letter {
  display: inline-block;
  transform-origin: center;
}
.glyph-letter[data-motion-in="1"] {
  --letter-in-x: -0.75em;
  --letter-in-y: -0.55em;
  --letter-in-rotation: -68deg;
  --letter-in-scale: 0.64;
}
.glyph-letter[data-motion-in="2"] {
  --letter-in-x: 0.65em;
  --letter-in-y: -0.7em;
  --letter-in-rotation: 54deg;
  --letter-in-scale: 0.7;
}
.glyph-letter[data-motion-in="3"] {
  --letter-in-x: -0.85em;
  --letter-in-y: 0.2em;
  --letter-in-rotation: 82deg;
  --letter-in-scale: 0.76;
}
.glyph-letter[data-motion-in="4"] {
  --letter-in-x: 0.75em;
  --letter-in-y: 0.4em;
  --letter-in-rotation: -60deg;
  --letter-in-scale: 0.62;
}
.glyph-letter[data-motion-in="5"] {
  --letter-in-x: -0.35em;
  --letter-in-y: 0.82em;
  --letter-in-rotation: 42deg;
  --letter-in-scale: 0.68;
}
.glyph-letter[data-motion-in="6"] {
  --letter-in-x: 0.42em;
  --letter-in-y: -0.95em;
  --letter-in-rotation: -83deg;
  --letter-in-scale: 0.7;
}
.glyph-letter[data-motion-in="7"] {
  --letter-in-x: -1.1em;
  --letter-in-y: -0.15em;
  --letter-in-rotation: 58deg;
  --letter-in-scale: 0.6;
}
.glyph-letter[data-motion-in="8"] {
  --letter-in-x: 1.05em;
  --letter-in-y: -0.4em;
  --letter-in-rotation: 77deg;
  --letter-in-scale: 0.75;
}
.glyph-letter[data-motion-out="1"] {
  --letter-out-x: 0.9em;
  --letter-out-y: -0.75em;
  --letter-out-rotation: 90deg;
  --letter-out-scale: 0.65;
}
.glyph-letter[data-motion-out="2"] {
  --letter-out-x: -1em;
  --letter-out-y: 0.5em;
  --letter-out-rotation: -90deg;
  --letter-out-scale: 0.7;
}
.glyph-letter[data-motion-out="3"] {
  --letter-out-x: 0.35em;
  --letter-out-y: 1.1em;
  --letter-out-rotation: 120deg;
  --letter-out-scale: 0.55;
}
.glyph-letter[data-motion-out="4"] {
  --letter-out-x: -0.4em;
  --letter-out-y: -0.95em;
  --letter-out-rotation: -110deg;
  --letter-out-scale: 0.7;
}
.glyph-letter[data-motion-out="5"] {
  --letter-out-x: 1.2em;
  --letter-out-y: 0.2em;
  --letter-out-rotation: 75deg;
  --letter-out-scale: 0.6;
}
.glyph-letter[data-motion-out="6"] {
  --letter-out-x: -1.1em;
  --letter-out-y: -0.3em;
  --letter-out-rotation: -75deg;
  --letter-out-scale: 0.65;
}
.glyph-letter[data-motion-out="7"] {
  --letter-out-x: 0.6em;
  --letter-out-y: 1em;
  --letter-out-rotation: -135deg;
  --letter-out-scale: 0.55;
}
.glyph-letter[data-motion-out="8"] {
  --letter-out-x: -0.7em;
  --letter-out-y: 0.8em;
  --letter-out-rotation: 110deg;
  --letter-out-scale: 0.6;
}
.finder-column .project-row .row-icon {
  width: calc(clamp(15px, 1.1vw, 18px));
  height: calc(clamp(18px, 1.35vw, 21px));
}
.finder-column .directory-row.is-selected .row-name {
  font-weight: 600;
}
.finder-column .directory-row.is-selected .row-icon {
  stroke-width: 2.8;
}
.finder-column .directory-row:not(.is-selected) .row-name {
  font-weight: 400;
  text-decoration: none;
}
.finder-exit-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  pointer-events: none;
}
.finder-exit-layer .finder-column {
  display: block;
  grid-row: 1;
  width: auto;
  min-width: 0;
  overflow: hidden;
}
.finder-exit-layer .directory-row {
  pointer-events: none;
}
.finder-column:not(.column-enter) .row-icon,
.finder-column:not(.column-enter) .row-name {
  opacity: 1;
  filter: none;
  transform: none;
  animation: none;

}
.finder-column .directory-row.selection-in .row-icon,
.finder-column.column-enter .row-icon {
  opacity: 0;
  filter: blur(8px) url(#column-grain);
  transform: translate3d(9px, 1px, 0) scale(0.88);
  animation: glyph-in var(--projects-enter-duration, 0.88s) cubic-bezier(0.12, 0.78, 0.16, 1) forwards;
  animation-delay: var(--projects-entry-gap, 80ms);
}
.finder-column .directory-row.selection-in .row-name .glyph-letter,
.finder-column.column-enter .row-name .glyph-letter {
  animation: finder-letter-in var(--projects-enter-duration, 0.88s) cubic-bezier(0.12, 0.78, 0.16, 1)
    both;
  animation-delay: calc(var(--projects-entry-gap, 80ms) + var(--projects-letter-stagger, 5ms) * var(--letter-index, 0));
}
.finder-column .directory-row.selection-out .row-icon,
.finder-column.column-exit .row-icon {
  animation: glyph-out var(--projects-exit-duration, 0.46s) cubic-bezier(0.5, 0, 0.8, 0.3) forwards;
  animation-delay: 0ms;
}
.finder-column .directory-row.selection-out .row-name .glyph-letter,
.finder-column.column-exit .row-name .glyph-letter {
  animation: finder-letter-out var(--projects-exit-duration, 0.46s) cubic-bezier(0.5, 0, 0.8, 0.3) both;
  animation-delay: calc(var(--projects-letter-stagger, 5ms) * var(--letter-index, 0));
}
#projects-view.projects-page-exit {
  pointer-events: none;
}
#projects-view.projects-page-exit .directory-heading,
#projects-view.projects-page-exit .finder-bottom,
#projects-view.projects-page-exit .preview-heading,
#projects-view.projects-page-exit .preview-caption,
#projects-view.projects-page-exit #preview-empty p,
#projects-view.projects-page-exit .finder-column.column-exit .directory-empty,
#project-dialog.projects-page-exit #project-path,
#project-dialog.projects-page-exit .project-description,
#project-dialog.projects-page-exit .gallery-nav,
#project-dialog.projects-page-exit .gallery-empty p {
  animation: projects-interface-out var(--projects-exit-duration, 0.46s) cubic-bezier(0.5, 0, 0.8, 0.3) both;
}
@keyframes projects-interface-out {
  from {
    opacity: 1;
    filter: none;
    transform: none;
  }
  to {
    opacity: 0;
    filter: blur(5px);
    transform: translate3d(0, -7px, 0);
  }
}
@keyframes glyph-in {
  0% {
    opacity: 0;
    filter: blur(8px) url(#column-grain);
    transform: translate3d(9px, 1px, 0) scale(0.88);
  }
  54% {
    opacity: 0.78;
    filter: blur(2px) url(#column-grain);
    transform: translate3d(-1px, 0, 0) scale(1.03);
  }
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
@keyframes finder-letter-in {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translate3d(var(--letter-in-x), var(--letter-in-y), 0) rotate(var(--letter-in-rotation))
      scale(var(--letter-in-scale));
  }
  72% {
    opacity: 1;
    filter: blur(0.4px);
    transform: translateZ(0) rotate(-4deg) scale(1.08);
  }
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
@keyframes finder-letter-out {
  0% {
    opacity: 1;
    filter: none;
    transform: none;
  }
  to {
    opacity: 0;
    filter: blur(5px);
    transform: translate3d(var(--letter-out-x), var(--letter-out-y), 0) rotate(var(--letter-out-rotation))
      scale(var(--letter-out-scale));
  }
}
#breadcrumbs.breadcrumb-motion-in,
#breadcrumbs.breadcrumb-motion-out {
  pointer-events: none;
}
#breadcrumbs.breadcrumb-motion-in .glyph-letter,
#breadcrumbs .breadcrumb-segment-motion-in .glyph-letter {
  animation: finder-letter-in var(--projects-enter-duration, 0.88s) cubic-bezier(0.12, 0.78, 0.16, 1) both;
  animation-delay: calc(var(--projects-entry-gap, 80ms) + var(--projects-letter-stagger, 5ms) * var(--letter-index, 0));
}
#breadcrumbs.breadcrumb-motion-out .glyph-letter,
#breadcrumbs .breadcrumb-segment-motion-out .glyph-letter {
  animation: finder-letter-out var(--projects-exit-duration, 0.46s) cubic-bezier(0.5, 0, 0.8, 0.3) both;
  animation-delay: calc(var(--projects-letter-stagger, 5ms) * var(--letter-index, 0));
}

@keyframes glyph-out {
  0% {
    opacity: 1;
    filter: none;
    transform: none;
  }
  42% {
    opacity: 0.8;
    filter: blur(2px) url(#column-grain);
    transform: translate3d(-2px, 1px, 0) scale(1.04);
  }
  to {
    opacity: 0;
    filter: blur(11px) contrast(1.3) url(#column-grain);
    transform: translate3d(38px, -18px, 0) rotate(22deg) scale(0.3);
  }
}
html[data-projects-animation="none"] .finder-column .directory-row.selection-in .row-icon,
html[data-projects-animation="none"] .finder-column .directory-row.selection-in .row-name,
html[data-projects-animation="none"] .finder-column .directory-row.selection-out .row-icon,
html[data-projects-animation="none"] .finder-column .directory-row.selection-out .row-name,
html[data-projects-animation="none"] .finder-column .glyph-letter,
html[data-projects-animation="none"] .finder-column.column-enter .row-icon,
html[data-projects-animation="none"] .finder-column.column-enter .row-name,
html[data-projects-animation="none"] .finder-column.column-exit .row-icon,
html[data-projects-animation="none"] .finder-column.column-exit .row-name,
html[data-projects-animation="none"] #breadcrumbs .glyph-letter,
html[data-projects-animation="none"] .history-controls #back.breadcrumb-back-motion-in,
html[data-projects-animation="none"] .history-controls #back.breadcrumb-back-motion-out {
  animation: none !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;

}
html[data-projects-animation="none"] .finder-column .glyph-letter {
  clip-path: none !important;
}
@media (min-width: 1101px) and (pointer: fine) and (not (any-pointer: coarse)), (min-width: 1601px) {
  #projects-view {
    --projects-desktop-gutter: clamp(34px, 4.6vw, 82px);
    --projects-desktop-breadcrumb-font-size: clamp(11px, 0.84vw, 13px);
    --projects-desktop-breadcrumb-line-box: calc(var(--projects-desktop-breadcrumb-font-size) * 1.2);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  #projects-view > .finder {
    padding-left: var(--projects-desktop-gutter);
    padding-right: var(--projects-desktop-gutter);
  }
  html.mac-desktop #projects-view > .finder {
    padding-right: 8px;
  }
  html.mac-desktop #projects-view .finder-columns {
    grid-template-columns: repeat(2, minmax(0, calc((100% - var(--projects-desktop-gutter) + 8px) / 3))) minmax(0, 1fr);
  }
  html.mac-desktop #projects-view .finder-column:last-child,
  html.mac-desktop #projects-view .finder-column:last-child .directory-row {
    padding-right: 0;
  }
  #projects-view .toolbar {
    position: relative;
    gap: 22px;
  }
  #projects-view #directory {
    margin-left: 40px;
    width: calc(100% - 40px);
  }
  #projects-view .history-controls {
    position: static;
    display: flex;
    align-items: center;
    height: 28px;
    flex: 0 0 18px;
    width: 18px;
    transform: none;
  }
  #projects-view .history-controls #forward {
    display: none;
  }
  #projects-view .history-controls #back {
    position: relative;
    overflow: visible;
    width: 18px;
    height: 28px;
    flex: 0 0 18px;
    padding: 0;
  }
  #projects-view .history-controls #back::before {
    content: "";
    position: absolute;
    width: 44px;
    height: 44px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  #projects-view .history-controls #back svg {
    width: 26px;
    height: 26px;
    max-width: none;
    flex-shrink: 0;
  }
  #projects-view .finder-column:first-child {
    padding-left: 0;
  }
  #projects-view .finder-column:first-child .directory-row {
    padding-left: 0;
  }
  .finder-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: column;
    width: 100%;
    overflow: hidden;
  }
  .finder-column {
    grid-row: 1;
    width: auto;
    padding: 0 calc(clamp(5px, 0.65vw, 10px));
  }
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  .finder-columns {
    display: block;
    overflow: hidden;
  }
  .finder-column {
    display: none;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }
  #directory .finder-column:only-child,
  #directory.finder-columns .finder-column-current {
    display: block;
  }
  .finder-column .directory-row {
    min-height: 46px;
    gap: 10px;
    padding: 8px 0;
  }
  .finder-column .row-name {
    font-size: 14px;
    line-height: 1.18;
    letter-spacing: -0.02em;
  }
  .finder-column .row-icon {
    width: 16px;
    height: 16px;
  }
  .finder-column .project-row .row-icon {
    width: 14px;
    height: 16px;
  }
  .finder-column .directory-row.is-selected {
    transform: none;
  }
  #directory .finder-exit-layer {
    display: block;
  }
  #directory .finder-exit-layer .finder-column {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
  }
  #directory.has-mobile-overflow .finder-column-current {
    -webkit-mask-image: linear-gradient(180deg, #000, #000 calc(100% - 76px), transparent);
    mask-image: linear-gradient(180deg, #000, #000 calc(100% - 76px), transparent);
  }
  #directory .finder-column .directory-row.selection-in .row-name .glyph-letter,
  #directory .finder-column.column-enter .row-name .glyph-letter {
    animation-duration: var(--projects-enter-duration, 0.88s);
    animation-delay: calc(var(--projects-entry-gap, 80ms) + var(--projects-letter-stagger, 5ms) * var(--letter-index, 0));
  }
  #directory .finder-column .directory-row.selection-in .row-icon,
  #directory .finder-column.column-enter .row-icon {
    animation-duration: var(--projects-enter-duration, 0.88s);
    animation-delay: var(--projects-entry-gap, 80ms);
  }
}
@media (prefers-reduced-motion: reduce) {
  .finder-column .directory-row {
    transition: none;
  }
  .finder-column .glyph-letter {
    clip-path: none;
  }
  .finder-column .directory-row.selection-in .row-icon,
  .finder-column .directory-row.selection-in .row-name,
  .finder-column .directory-row.selection-out .row-icon,
  .finder-column .directory-row.selection-out .row-name,
  .finder-column .glyph-letter,
  .finder-column.column-enter .row-icon,
  .finder-column.column-enter .row-name,
  .finder-column.column-exit .row-icon,
  .finder-column.column-exit .row-name,
  #breadcrumbs.breadcrumb-motion-in .glyph-letter,
  #breadcrumbs.breadcrumb-motion-out .glyph-letter,
  #breadcrumbs .breadcrumb-segment-motion-in .glyph-letter,
  #breadcrumbs .breadcrumb-segment-motion-out .glyph-letter,
  .history-controls #back.breadcrumb-back-motion-in,
  .history-controls #back.breadcrumb-back-motion-out {
    animation: none !important;
    opacity: 1;
    filter: none;
    transform: none;
  
}
}
html::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.site-scrollbar {
  position: fixed;
  z-index: 120;
  top: 7px;
  right: 5px;
  bottom: 7px;
  width: 7px;
  border-radius: 999px;
  pointer-events: auto;
  touch-action: none;
  opacity: 0.82;
}
.site-scrollbar[hidden] {
  display: none;
}
.site-scroll-thumb {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  min-height: 34px;
  border-radius: 999px;
  background: #111;
  cursor: grab;
  transition: opacity 0.18s;
}
.site-scrollbar.is-dragging .site-scroll-thumb,
.site-scrollbar:hover .site-scroll-thumb {
  opacity: 0.58;
}
.site-scrollbar.is-dragging .site-scroll-thumb {
  cursor: grabbing;
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  .site-scrollbar {
    right: 3px;
    width: 5px;
  }

  .history-controls #forward {
    display: none;
  }
  .history-controls #back {
    width: 16px;
    height: 16px;
    margin-top: 0;
    padding: 0;
  }
  .history-controls #back svg {
    width: 13px;
    height: 13px;
  }
  .history-controls #back:not(:disabled) {
    color: #111;
  }
}
body,
html {
  min-height: 100%;
  background: var(--paper);
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  @supports (height: 100dvh) {
    #home-view .home-section {
      height: 100dvh;
      min-height: 100dvh;
    }
  }

  #project-dialog .gallery-stage > .gallery-outgoing {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    object-fit: contain;
  }
  #project-dialog.viewport-opening,
  #project-dialog.viewport-opening .project-body {
    transition: none !important;
  }

  #project-dialog #gallery-image {
    transform-origin: 50% 50%;
    will-change: transform;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-y;
    transition: transform 0.3s cubic-bezier(0.22, 0.72, 0.18, 1);
  }
  #project-dialog .gallery-stage.is-zoomed #gallery-image {
    cursor: grab;
    touch-action: none;
  }
  #project-dialog .gallery-stage.zoom-interacting #gallery-image {
    transition: none;
  }
  #project-dialog .gallery-stage.is-zoomed.zoom-interacting #gallery-image {
    cursor: grabbing;
  }
  @media (hover: none), (pointer: coarse) {
    #project-dialog #gallery-image,
    #project-dialog .gallery-stage.is-zoomed #gallery-image,
    #project-dialog .gallery-stage.is-zoomed.zoom-interacting #gallery-image {
      cursor: default;
    }
  }
}
.thesis-page {
  min-height: 100svh;
  background: var(--paper);
}
.thesis-page-copy {
  padding: 110px calc(clamp(38px, 6.3vw, 120px)) 75px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: #f3f3f3;
}
.thesis-page-copy .eyebrow {
  margin: 0 0 26px;
  font: 12px var(--mono);
  color: var(--muted);
  letter-spacing: 0;
}
.thesis-page-copy h1 {
  font-size: calc(clamp(42px, 4.5vw, 76px));
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.thesis-page-copy > p:last-child {
  max-width: 440px;
  margin: 0;
  font-size: calc(clamp(16px, 1.35vw, 21px));
  line-height: 1.55;
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  .masthead-right {
    gap: 10px;
    font-size: 13px;
  }
  .thesis-page-copy {
    grid-row: 2;
    padding: 28px;
  }
  .thesis-page-copy .eyebrow {
    font-size: 11px;
  }
  .thesis-page-copy h1 {
    font-size: 36px;
  }
  .thesis-page-copy > p:last-child {
    font-size: 15px;
    line-height: 1.5;
  }
}
@supports (height: 100dvh) {
  .thesis-page {
    min-height: 100dvh;
  }
}
.thesis-interactive {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #d9e5e7;
}
.thesis-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #d9e5e7;
}
.thesis-particles canvas {
  position: absolute !important;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  pointer-events: none;
}
.thesis-font-credits {
  position: absolute;
  inset-inline: max(22px, env(safe-area-inset-left)) max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  color: #111;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  pointer-events: none;
}
.thesis-font-credits span:last-child {
  text-align: left;
}
@media (max-width: 760px) {
  #thesis-interactive {
    --thesis-text-gutter: 28px;
  }
  #thesis-interactive .thesis-title-overlay {
    padding-left: max(var(--thesis-text-gutter), env(safe-area-inset-left, 0px)) !important;
    padding-right: max(var(--thesis-text-gutter), env(safe-area-inset-right, 0px)) !important;
  }
  #thesis-interactive .thesis-font-credits {
    left: max(var(--thesis-text-gutter), env(safe-area-inset-left, 0px));
    right: max(var(--thesis-text-gutter), env(safe-area-inset-right, 0px));
  }
}
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .thesis-font-credits {
    font-size: 14px;
  }
}
.thesis-camera {
  position: absolute;
  width: 2px;
  height: 2px;
  left: -10px;
  top: -10px;
  opacity: 0;
  pointer-events: none;
}
@supports (height: 100dvh) {
  .thesis-interactive {
    height: 100dvh;
    min-height: 100dvh;
  }
}
@font-face {
  font-family: ABCHelveestiSpikes;
  src: url("assets/fonts/ABCHelveestiSpikesMonoTrial-Black.otf") format("opentype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
.thesis-interactive .thesis-particles {
  z-index: 1;
}
.thesis-title-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: calc(clamp(22px, 3.2vh, 46px)) calc(clamp(16px, 2.2vw, 42px));
  gap: calc(clamp(20px, 2.8vh, 42px));
  overflow: hidden;
  color: #0a0d0f;
  text-align: center;
  font-family: ABCHelveestiSpikes, monospace !important;
  font-weight: 900 !important;
  font-synthesis: none;
  font-kerning: var(--thesis-poster-kerning, normal);
}
.thesis-title-overlay span {
  display: block;
  flex: 0 0 auto;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  font-size: var(--title-font-size, 240px);
  line-height: 0.82;
  letter-spacing: var(--thesis-poster-tracking, -0.025em);
  word-spacing: var(--thesis-poster-word-spacing, 0em);
  transform: scaleX(var(--title-fit-x, 1));
  transform-origin: center center;
  will-change: transform;
}
/* Shared consent card typography and numbered instructions on every device. */
.thesis-rotation-popup-card {
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(1.05);
  text-align: left;
  animation: thesis-sheet-in 0.48s cubic-bezier(0.2, 0.78, 0.2, 1) both;
  width: min(480px, 100%);
  max-width: 520px;
  padding: 28px;
  border: 1px solid hsla(0, 0%, 100%, 0.72);
  border-radius: 28px;
  background: hsla(0, 0%, 100%, 0.9);
  box-shadow: 0 20px 80px rgba(10, 13, 15, 0.2),
    inset 0 1px hsla(0, 0%, 100%, 0.9);
  color: #0a0d0f;
}
  @keyframes thesis-sheet-in {
    0% {
      opacity: 0;
      transform: translateY(calc(100% + 28px));
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .thesis-sheet-kicker {
    margin: 0 0 10px;
    color: rgba(10, 13, 15, 0.52);
    font: 10px/1.1 var(--mono, monospace);
    letter-spacing: 0.08em;
  }
  .thesis-rotation-popup-card h2 {
    margin: 0;
    font-family: var(--font, Arial, Helvetica, sans-serif);
    font-size: calc(clamp(27px, 8.4vw, 36px));
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.052em;
  }
  .thesis-rotation-popup-text {
    margin: 17px 0 0;
    max-width: 34ch;
    color: rgba(10, 13, 15, 0.68);
    font: 14px/1.42 var(--font, Arial, Helvetica, sans-serif);
    letter-spacing: -0.015em;
  }
  .thesis-sheet-steps {
    margin-top: 20px;
    border-top: 1px solid rgba(10, 13, 15, 0.12);
  }
  .thesis-sheet-steps > div {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(10, 13, 15, 0.12);
  }
  .thesis-sheet-steps span {
    color: rgba(10, 13, 15, 0.44);
    font: 10px/1.35 var(--mono, monospace);
  }
  .thesis-sheet-steps p {
    margin: 0;
    font: 13px/1.35 var(--font, Arial, Helvetica, sans-serif);
    letter-spacing: -0.01em;
  }
  .thesis-rotation-popup-card #thesis-rotation-popup-close {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    padding: 12px 16px;
    border: 0;
    border-radius: 999px;
    background: #0a0d0f;
    color: #fff;
    font: 11px/1 var(--font, Arial, Helvetica, sans-serif);
    letter-spacing: 0.045em;
    cursor: pointer;
  }

@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  .thesis-interactive {
    height: 100svh !important;
    min-height: 100svh !important;
  }
  body,
  html {
    min-height: var(--mobile-screen);
  }
  #home-view .home-section:first-child {
    box-sizing: border-box !important;
    grid-template-rows: calc(0.5 * var(--mobile-screen)) calc(0.5 * var(--mobile-screen)) !important;
    height: var(--mobile-first-screen) !important;
    min-height: var(--mobile-first-screen) !important;
    max-height: var(--mobile-first-screen) !important;
  }
  #home-view .home-section:first-child > .home-copy,
  #home-view .home-section:first-child > .home-media {
    box-sizing: border-box !important;
    height: calc(0.5 * var(--mobile-screen)) !important;
    min-height: calc(0.5 * var(--mobile-screen)) !important;
    max-height: calc(0.5 * var(--mobile-screen)) !important;
  }
  #home-view .home-section:not(:first-child):not(#data-in-the-mirror):not(.moodboard) {
    box-sizing: border-box !important;
    height: 100lvh !important;
    max-height: 100lvh !important;
    grid-template-rows: 50lvh 50lvh !important;
  }
  #home-view .home-section:not(:first-child):not(#data-in-the-mirror):not(.moodboard) > .home-copy,
  #home-view .home-section:not(:first-child):not(#data-in-the-mirror):not(.moodboard) > .home-media {
    box-sizing: border-box !important;
    height: 50lvh !important;
    min-height: 50lvh !important;
    max-height: 50lvh !important;
  }
  #home-view .home-media > img,
  #home-view .home-media > video {
    width: 100% !important;
    height: 100% !important;
  }
  #thesis-view.thesis-page {
    min-height: var(--mobile-screen) !important;
  }
  #thesis-interactive,
  #thesis-view .thesis-page-copy,
  #thesis-view .thesis-page-media {
    box-sizing: border-box !important;
  }
  .thesis-title-overlay {
    padding: 20px calc(clamp(12px, 3vw, 22px)) !important;
    gap: 18px !important;
  }
  #contacts-view.contacts-page {
    box-sizing: border-box !important;
    min-height: var(--mobile-screen) !important;
  }
  #contacts-view.contacts-page,
  #home-view .home-section,
  #thesis-interactive,
  #thesis-view .thesis-page-hero,
  #thesis-view.thesis-page,
  body {
    transition-property: none !important;
  }
}
@supports (-webkit-touch-callout: none) {
  :root {
    --mobile-screen: 100svh;
  }
  @media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
    .thesis-rotation-popup-card {
      max-height: 100%;
      overflow-y: auto;
      overscroll-behavior: contain;
    }

    #project-dialog {
      top: calc(64px + env(safe-area-inset-top, 0px));
      height: calc(100svh - 64px - env(safe-area-inset-top, 0px));
      max-height: calc(100svh - 64px - env(safe-area-inset-top, 0px));
    }
    #project-dialog .project-description {
      padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
    }
    .contact-cv {
      padding-bottom: max(50px, env(safe-area-inset-bottom, 0px));
    }
  }
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  .thesis-rotation-popup-card.is-dragging {
    transition: none;
  }
}
.thesis-rotation-popup {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 13, 15, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.thesis-rotation-popup.is-dismissed {
  display: none;
}

.thesis-popup-desktop-copy {
  display: block;
}
.thesis-popup-mobile-copy {
  display: none;
}
.thesis-popup-actions {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.thesis-popup-actions button {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: #0a0d0f;
  color: #fff;
  font: 11px/1 var(--font, Arial, sans-serif);
  letter-spacing: 0.045em;
  cursor: pointer;
}
.thesis-popup-actions .thesis-popup-decline {
  background: rgba(10, 13, 15, 0.1);
  color: #0a0d0f;
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  .thesis-rotation-popup {
    position: absolute;
    align-items: flex-end;
    padding: 0 10px max(10px, env(safe-area-inset-bottom));
    background: rgba(13, 18, 20, 0.08);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .thesis-popup-desktop-copy {
    display: none;
  }
  .thesis-popup-mobile-copy {
    display: block;
  }
  .thesis-popup-actions {
    margin-top: 18px;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
    .thesis-rotation-popup {
      position: fixed;
      padding: max(12px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px))
        max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    }
  }
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: auto;
}
.language-switch button {
  border: 0;
  padding: 5px 2px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  opacity: 0.55;
}
.language-switch button[aria-pressed="true"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.language-switch button:focus-visible,
.home-image-caption button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.thesis-story {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.thesis-story-reverse .thesis-story-media {
  order: 2;
}
.thesis-story-reverse .thesis-story-copy {
  order: 1;
}
.thesis-story-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #dfe8e9;
  display: grid;
  place-items: center;
}
.thesis-story:nth-child(2n) .thesis-story-media {
  background: #dedcea;
}
.thesis-story-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thesis-story-media .home-image-caption[hidden],
.thesis-story-media img[hidden] {
  display: none;
}
.thesis-story-pending {
  padding: 28px;
  font: 12px var(--mono);
  color: #505759;
  text-align: center;
}
.thesis-story-copy {
  min-width: 0;
  padding: calc(clamp(84px, 10vw, 150px)) calc(clamp(38px, 6.3vw, 120px)) 75px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: #f3f3f3;
}
.thesis-story-copy .eyebrow {
  margin: 0 0 26px;
  font: 12px var(--mono);
  color: var(--muted);
}
.thesis-story-copy h2,
.thesis-page-copy h1 {
  max-width: 11ch;
  margin: 0 0 32px;
  font-size: calc(clamp(36px, 4.3vw, 72px));
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.thesis-story-copy > p:not(.eyebrow) {
  max-width: 52ch;
  margin: 0 0 1.15em;
  font-size: calc(clamp(16px, 1.25vw, 20px));
  line-height: 1.5;
}
.thesis-story-copy > p:last-child {
  margin-bottom: 0;
}
.contact-cv h2,
.contact-intro h1,
.home-copy h1,
.home-copy h2,
.project-description h1,
.thesis-page-copy h1,
.thesis-story-copy h2 {
  text-wrap: balance;
}
.contact-cv p,
.contact-intro p,
.home-copy p,
.project-description p,
.thesis-page-copy p,
.thesis-rotation-popup p,
.thesis-story-copy p {
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  .masthead .language-switch {
    position: static;
    inset: auto;
    margin: 0;
    font-size: 12px;
  }
  .thesis-story {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    height: var(--mobile-scroll-screen);
    overflow: hidden;
  }
  .thesis-story-media,
  .thesis-story-reverse .thesis-story-media {
    order: 0;
    grid-row: 1;
    height: 100%;
    min-height: 0;
  }
  .thesis-story-copy,
  .thesis-story-reverse .thesis-story-copy {
    order: 1;
    grid-row: 2;
    height: 100%; min-height: 0;
    padding: 24px 28px;
     justify-content: safe center;
  }
  .thesis-story-copy .eyebrow,
  .thesis-page-copy .eyebrow {
    margin-bottom: 18px;
  }
  .thesis-story-copy h2,
  .thesis-page-copy h1 {
    font-size: calc(clamp(34px, 10vw, 49px));
    margin-bottom: 22px;
  }
  .thesis-story-copy > p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.52;
  }
}
@media (prefers-reduced-motion: reduce) {
  .thesis-story-media img {
    transition: none;
  }
}
.masthead-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  pointer-events: auto;
}
.masthead-actions .language-switch,
.masthead-actions .masthead-right {
  margin-left: 0;
}
#thesis-view .thesis-page-copy {
  min-height: 72svh;
  padding: calc(clamp(72px, 10vw, 170px)) calc(clamp(38px, 8vw, 150px));
  background: #f3f3f3;
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  .masthead-actions {
    gap: 10px;
    min-width: 0;
  }
  .masthead-actions .masthead-right {
    gap: 10px;
  }
  #thesis-view .thesis-page-copy {
    min-height: 70svh !important;
    height: auto !important;
    max-height: none !important;
    padding: 52px 28px 70px;
  }
}
@media (min-width: 1101px) and (pointer: fine) and (not (any-pointer: coarse)), (min-width: 1601px) {
  #home-view #data-in-the-mirror {
    grid-template-columns: minmax(0, 1fr) calc(min(56.25svh, 34vw)) minmax(0, 1fr);
    grid-template-rows: 100%;
  }
  #home-view #data-in-the-mirror .home-copy {
    min-width: 0;
    width: 100%;
    height: 100%;
  }
  #home-view #data-in-the-mirror .thesis-copy-primary {
    grid-column: 1;
  }
  #home-view #data-in-the-mirror .thesis-media {
    grid-column: 2;
    width: 100%;
    height: 100svh;
    aspect-ratio: 9/16;
    justify-self: center;
    background: #050505;
  }
  #home-view #data-in-the-mirror .thesis-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #050505;
  }
  #home-view #data-in-the-mirror .thesis-copy-secondary {
    grid-column: 3;
    background: #f3f3f3;
  }
}
#thesis-view .thesis-page-intro-section {
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #f3f3f3;
}
#thesis-view .thesis-page-intro-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #dfe8e9;
}
#thesis-view .thesis-page-intro-image-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #e9e9e9;
}
#thesis-view .thesis-page-intro-image-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#thesis-view .thesis-page-intro-section .thesis-page-copy {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  padding: calc(clamp(84px, 10vw, 150px)) calc(clamp(38px, 6.3vw, 120px)) 75px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: #f3f3f3;
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  #thesis-view .thesis-page-intro-section {
    height: var(--mobile-scroll-screen);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
  #thesis-view .thesis-page-intro-media {
    min-height: 0;
    width: 100%;
  }
  #thesis-view .thesis-page-intro-image-frame {
    width: 100%;
  }
  #thesis-view .thesis-page-intro-section .thesis-page-copy {
    height: 100%;
    padding: 64px 28px 32px;
    min-height: 0;  justify-content: safe center;
  }
}
#home-view #data-in-the-mirror .thesis-copy-secondary {
  justify-content: center;
}
#home-view #data-in-the-mirror .thesis-copy-secondary > p:not(.eyebrow) {
  max-width: 420px;
  margin: 0;
  font-size: calc(clamp(15px, 1.15vw, 19px));
  line-height: 1.55;
  letter-spacing: -0.012em;
}
.thesis-video-fullscreen {
  display: none;
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  #home-view #data-in-the-mirror {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  #home-view #data-in-the-mirror > .home-copy {
    height: auto; min-height: 0; max-height: none;
    padding: 42px 28px; justify-content: center;
  }
  #home-view #data-in-the-mirror .thesis-copy-primary { grid-row: 1; min-height: 50svh; padding-top: 52px; }
  #home-view #data-in-the-mirror .thesis-media {
    grid-row: 2; position: relative; width: 100%; height: auto;
    min-height: 0; max-height: none; aspect-ratio: 9 / 16; margin: 0;
    padding: 0; overflow: hidden; background: #000;
  }
  #home-view #data-in-the-mirror .thesis-media video {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: contain; object-position: center; background: #000;
  }
  #home-view #data-in-the-mirror .thesis-copy-secondary { grid-row: 3; min-height: 55svh; }
  #home-view #data-in-the-mirror .thesis-copy-secondary > p:not(.eyebrow) { max-width: 520px; font-size: 16px; }
}
#thesis-view .thesis-page-intro-media:has(.thesis-page-intro-image-frame:empty) {
  display: none !important;
}
#thesis-view .thesis-page-intro-section:has(.thesis-page-intro-image-frame:empty) {
  height: 100svh;
  min-height: 0;
  display: block;
}
:-webkit-full-screen #thesis-page-video,
:fullscreen #thesis-page-video {
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  transform-origin: center center !important;
}
#thesis-view .thesis-page-hero {
  display: block;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  margin: 0;
  overflow: hidden;
}
#thesis-view .thesis-page-media.thesis-custom-player {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: auto;
  background: #050505;
  color: #fff;
}
#thesis-view .thesis-page-media.thesis-custom-player > video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  background: #050505;
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-controls-bottom,
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-controls-top {
  position: absolute;
  bottom: calc(clamp(16px, 2vw, 34px));
  display: flex;
  align-items: center;
  pointer-events: none;
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-controls-bottom {
  left: calc(clamp(16px, 2vw, 34px));
  right: calc(106px + clamp(16px, 2vw, 34px));
  gap: calc(clamp(12px, 1.4vw, 22px));
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-controls-top {
  right: calc(clamp(16px, 2vw, 34px));
  justify-content: flex-end;
  gap: 9px;
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-button {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 9px;
  border: 1px solid hsla(0, 0%, 100%, 0.3);
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.28);
  color: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  pointer-events: auto;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-button:hover {
  background: rgba(12, 12, 12, 0.5);
  border-color: hsla(0, 0%, 100%, 0.5);
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-button:active {
  transform: scale(0.95);
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-button:focus-visible,
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-progress:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-progress {
  --video-progress: 0%;
  position: static;
  display: block;
  width: 100%;
  height: 26px;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  accent-color: #fff;
  -webkit-appearance: none;
  appearance: none;
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-progress::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #fff 0 var(--video-progress),
    hsla(0, 0%, 100%, 0.36) var(--video-progress) 100%
  );
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-progress::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-progress::-moz-range-track {
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: hsla(0, 0%, 100%, 0.36);
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-progress::-moz-range-progress {
  height: 2px;
  border-radius: 999px;
  background: #fff;
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
#thesis-view .thesis-custom-player:-webkit-full-screen,
#thesis-view .thesis-custom-player:fullscreen {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
  background: #000 !important;
}
#thesis-page-video:-webkit-full-screen,
#thesis-view .thesis-custom-player:-webkit-full-screen > video,
#thesis-view .thesis-custom-player:fullscreen > video {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #000 !important;
}
html.ios-liquid-glass #thesis-view .thesis-page-hero {
  height: 100lvh;
  min-height: 100lvh;
  max-height: 100lvh;
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  #thesis-view .thesis-page-hero,
  #thesis-view .thesis-page-media.thesis-custom-player {
    width: 100vw;
  }
  :is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-controls-bottom {
    left: 12px;
    right: 104px;
    bottom: max(12px, env(safe-area-inset-bottom));
    gap: 10px;
  }
  :is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-controls-top {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    gap: 8px;
  }
  :is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    padding: 8px;
  }
  :is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-button svg {
    width: 18px;
    height: 18px;
  }
  #thesis-view .thesis-video-fullscreen {
    display: inline-flex;
  }
  #home-view #data-in-the-mirror,
  #home-view .home-section:not(:first-child) {
    min-height: var(--mobile-scroll-screen) !important;
  }
  #thesis-interactive {
    height: var(--mobile-first-screen) !important;
    min-height: var(--mobile-first-screen) !important;
    max-height: var(--mobile-first-screen) !important;
  }
  #thesis-view .thesis-page-hero {
    height: var(--mobile-scroll-screen);
    min-height: var(--mobile-scroll-screen);
    max-height: var(--mobile-scroll-screen);
  }
  #thesis-view .thesis-page-media.thesis-custom-player {
    height: 100%;
    min-height: 100%;
    max-height: 100%;
  }
  #thesis-view .thesis-page-intro-section,
  .thesis-story {
    min-height: var(--mobile-scroll-screen) !important;
  }
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 18px;
  pointer-events: none;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-overlay-panel {
  width: min(520px, 100% - 20px);
  padding: 18px;
  border: 1px solid hsla(0, 0%, 100%, 0.34);
  border-radius: 16px;
  background: rgba(12, 12, 12, 0.68);
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  pointer-events: auto;
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-overlay-kicker {
  margin: 0 0 7px;
  font: 10px/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.68);
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-overlay-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: #fff;
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-overlay-text {
  margin: 0;
  max-width: 48ch;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0;
  color: hsla(0, 0%, 100%, 0.86);
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-overlay-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-overlay-action {
  min-height: 39px;
  padding: 9px 11px;
  border: 1px solid hsla(0, 0%, 100%, 0.3);
  border-radius: 9px;
  background: hsla(0, 0%, 100%, 0.08);
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-overlay-action-primary {
  background: #fff;
  border-color: #fff;
  color: #111;
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-overlay-action:active {
  transform: scale(0.985);
}
@media (min-width: 1101px) and (pointer: fine) and (not (any-pointer: coarse)), (min-width: 1601px) {
  :is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-overlay {
    display: none;
  }
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  :is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-overlay {
    padding: max(70px, env(safe-area-inset-top)) 12px max(76px, env(safe-area-inset-bottom));
  }
  :is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-overlay-panel {
    width: min(420px, 100% - 8px);
    padding: 15px;
    border-radius: 14px;
  }
  :is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-overlay-title {
    font-size: 18px;
  }
  :is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-overlay-text {
    font-size: 11.5px;
  }
  :is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-overlay-actions {
    grid-template-columns: 1fr;
  }
}
:is(#thesis-view, #projects-view, #project-dialog) .thesis-custom-player .thesis-video-overlay[hidden] {
  display: none;
}
.contact-intro h1,
.home-copy h1,
.home-copy h2,
.identity,
.project-description h1,
.thesis-page-copy h1,
.thesis-story-copy h2,
.thesis-video-overlay-title {
  font-weight: 500 !important;
}
.home-link,
.language-switch,
.masthead-right,
.project-link,
.row-name,
.text-button,
.thesis-video-overlay-action {
  font-weight: 500;
}
#project-path,
.counter,
.directory-heading,
.eyebrow,
.finder-bottom,
.preview-caption > div > span,
.thesis-video-overlay-kicker {
  font-weight: 400;
}
@media (min-width: 1101px) and (pointer: fine) and (not (any-pointer: coarse)), (min-width: 1601px) {
  .masthead-right .contact {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
  }
  .masthead-right .contact span {
    margin-left: 0;
    font-size: inherit;
    line-height: inherit;
  }
  .masthead-right .contact span[aria-hidden="true"] {
    font-size: 0.95em;
  }
  #projects-view.project-inline-active {
    --project-swap-letter-stagger: var(--projects-letter-stagger, 5ms);
    --project-enter-duration: var(--projects-enter-duration, 0.88s);
    --project-exit-duration: var(--projects-exit-duration, 0.46s);
  }
  #projects-view.project-inline-switching {
    --project-switch-delay: calc(100ms + var(--project-exit-duration));
  }
  #projects-view.project-inline-active .project-row.selection-in .row-name .glyph-letter {
    animation-duration: var(--project-enter-duration, 0.88s);
    animation-timing-function: cubic-bezier(0.12, 0.78, 0.16, 1);
    animation-delay: calc(var(--projects-entry-gap, 80ms) + 
      var(--letter-index, 0) *
        var(--project-swap-letter-stagger)
    );
  }
  #projects-view.project-inline-switching .project-row.selection-in .row-icon {
    animation-delay: var(--projects-entry-gap, 80ms);
  }
  #projects-view.project-inline-active .project-row.selection-out .row-name .glyph-letter {
    animation-duration: var(--project-exit-duration, 0.46s);
    animation-timing-function: cubic-bezier(0.5, 0, 0.8, 0.3);
    animation-delay: calc(var(--letter-index, 0) * var(--project-swap-letter-stagger));
  }
  html[data-project-inline="true"],
  html[data-project-inline="true"] body {
    height: 100%;
    overflow: hidden !important;
  }
  html[data-project-inline="true"] #site-scrollbar,
  html[data-project-inline="true"] .site-scrollbar {
    display: none !important;
  }
  #projects-view.project-inline-active {
    height: 100svh;
    min-height: 0;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 38% 62%;
  }
  #projects-view.project-inline-active > .finder {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    padding-bottom: 12px;
  }
  #projects-view.project-inline-active > .finder .directory,
  #projects-view.project-inline-active > .finder .finder-column {
    scrollbar-width: none;
  }
  #projects-view.project-inline-active > .finder .directory::-webkit-scrollbar,
  #projects-view.project-inline-active > .finder .finder-column::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
  #projects-view.project-inline-active > .preview {
    display: none;
  }
  .project-inline-details {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-top: 1px solid var(--line, #dedede);
    background: var(--paper, #fff);
  }
  .project-inline-details[hidden],
  .project-inline-gallery[hidden] {
    display: none;
  }
  .project-inline-details-scroll {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    column-gap: calc(clamp(38px, 4.6vw, 82px));
    padding: calc(clamp(34px, 3.6vw, 58px)) var(--projects-desktop-gutter) calc(clamp(30px, 3.2vw, 50px));
  }
  .project-inline-title {
    align-self: start;
    font-weight: 600;
    hyphens: none;
    overflow-wrap: normal;
    grid-column: 1/-1;
    grid-row: 1;
    max-width: 100%;
    margin: 0 0 calc(clamp(28px, 3.2vh, 46px));
    font-size: calc(clamp(46px, 5.15vw, 88px));
    line-height: 0.9;
    letter-spacing: -0.065em;
    text-wrap: balance;
    white-space: normal;
    word-break: normal;
  }
  .project-inline-meta {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    display: grid;
    align-content: start;
    gap: calc(clamp(16px, 2vh, 25px));
    margin: 0;
    padding: 0;
    font-size: calc(clamp(14px, 1.15vw, 18px));
    line-height: 1.18;
  }
  .project-inline-meta > div {
    display: grid;
    grid-template-columns: minmax(86px, 0.34fr) minmax(0, 1fr);
    gap: calc(clamp(18px, 2.3vw, 38px));
    padding: 0;
  }
  .project-inline-meta dd,
  .project-inline-meta dt {
    margin: 0;
  }
  .project-inline-meta dt {
    color: var(--muted, #747474);
    font-size: calc(clamp(11px, 0.84vw, 13px));
    line-height: 1.25;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    hyphens: none;
    overflow-wrap: normal;
  }
  .project-inline-meta dd {
    font-size: calc(clamp(16px, 1.28vw, 21px));
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.025em;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: auto;
    hyphenate-character: "-";
  }
  .project-inline-link {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    justify-self: start;
    margin: calc(clamp(20px, 2.5vh, 34px)) 0 0;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
  }
  .project-inline-text {
    --copy-motion-bleed: 2em;
    grid-column: 1;
    grid-row: 2 / span 2;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    width: calc(100% + 2 * var(--copy-motion-bleed));
    height: calc(100% + 2 * var(--copy-motion-bleed));
    margin: calc(-1 * var(--copy-motion-bleed));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    border: 0;
    padding: var(--copy-motion-bleed) var(--copy-motion-bleed)
      calc(var(--copy-motion-bleed) + clamp(10px, 1.4vh, 18px));
    font-size: calc(clamp(16px, 1.28vw, 20px));
    line-height: 1.5;
    letter-spacing: -0.018em;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-character: "-";
    text-align: left;
  }
  .project-inline-text::-webkit-scrollbar {
    width: 0;
  }
  .project-inline-text p {
    position: relative;
    max-width: 44em;
    margin: 0 0 1.08em;
    font-kerning: none;
    font-variant-ligatures: none;
  }
  .project-inline-text p:last-child {
    margin-bottom: 0;
  }
  .project-inline-gallery {
    position: relative;
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: var(--preview, #e9e9e9);
  }
  .project-inline-gallery-track {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: default;
    touch-action: pan-x;
  }
  .project-inline-gallery-track.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
  .project-inline-gallery-track:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: -1px;
  }
  .project-inline-gallery-track::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
  .project-inline-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    background: var(--preview, #e9e9e9);
  }
  .project-inline-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
  }
  .project-inline-empty {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    color: var(--muted, #747474);
    font-size: 12px;
  }
  .project-inline-empty,
  .project-inline-gallery-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .project-inline-gallery-arrow {
    position: absolute;
    z-index: 12;
    top: 50%;
    width: 44px;
    height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    mix-blend-mode: difference;
    font: 400 31px/1 var(--sans, inherit);
    cursor: pointer;
    transform: translateY(-50%);
    transition:
      opacity 0.18s,
      transform 0.18s;
  }
  .project-inline-gallery-arrow-prev {
    left: 18px;
  }
  .project-inline-gallery-arrow-next {
    right: 18px;
  }
  .project-inline-gallery-arrow:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.12);
  }
  .project-inline-gallery-arrow:disabled {
    opacity: 0.2;
    cursor: default;
  }
  .project-inline-gallery-thumbs {
    position: absolute;
    z-index: 14;
    left: 50%;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 112px);
    padding: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 12px;
    background: rgba(18, 18, 18, 0.28);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    transform: translateX(-50%);
    scrollbar-width: none;
  }
  .project-inline-gallery-thumbs::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
  .project-inline-gallery-thumb {
    flex: 0 0 auto;
    width: 54px;
    height: 42px;
    padding: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    opacity: 0.58;
    cursor: pointer;
    transition: opacity 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
  }
  .project-inline-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .project-inline-gallery-thumb:hover,
  .project-inline-gallery-thumb:focus-visible,
  .project-inline-gallery-thumb.is-active {
    opacity: 1;
  }
  .project-inline-gallery-thumb.is-active {
    border-color: rgba(255, 255, 255, 0.95);
  }
  .project-inline-gallery-thumb:hover {
    transform: translateY(-1px);
  }
  .project-inline-gallery-thumb:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.95);
    outline-offset: 2px;
  }
  #projects-view.project-inline-active .project-row.is-selected .row-name {
    font-weight: 500;
  }
  #breadcrumbs {
    min-height: var(--projects-desktop-breadcrumb-line-box);
    font-size: var(--projects-desktop-breadcrumb-font-size);
    line-height: var(--projects-desktop-breadcrumb-line-box);
  }
  .project-inline-details-ghost {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    z-index: 9;
    min-width: 0;
    min-height: 0;
    pointer-events: none;
  }
  .project-inline-details-ghost,
  .project-inline-details-ghost .project-inline-details-scroll {
    background: transparent;
  }
  .project-inline-details.inline-copy-preparing {
    visibility: hidden;
  }
  .project-inline-details.inline-copy-motion {
    position: relative;
    z-index: 8;
    isolation: isolate;
    contain: style;
  }
  .project-inline-details.inline-copy-exit {
    pointer-events: none;
  }
  .project-inline-details.inline-copy-enter .glyph-letter {
    animation: finder-letter-in var(--project-enter-duration, 0.88s) cubic-bezier(0.12, 0.78, 0.16, 1) both;
    animation-delay: calc(var(--projects-entry-gap, 80ms) + 
      var(--project-switch-delay, 0ms) + var(--letter-index, 0) *
        var(--project-swap-letter-stagger, 5ms)
    );
  }
  .project-inline-details.inline-copy-exit .glyph-letter {
    animation: finder-letter-out var(--project-exit-duration, 0.46s) cubic-bezier(0.5, 0, 0.8, 0.3) both;
    animation-delay: calc(
      var(--letter-index, 0) * var(--project-swap-letter-stagger, 5ms)
    );
  }
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  html[data-project-inline="true"],
  html[data-project-inline="true"] body {
    height: 100%;
    overflow: hidden !important;
  }
  html[data-project-inline="true"] #site-scrollbar,
  html[data-project-inline="true"] .site-scrollbar {
    display: none !important;
  }
  #projects-view.project-inline-active {
    --project-swap-letter-stagger: var(--projects-letter-stagger, 5ms);
    --project-enter-duration: var(--projects-enter-duration, 0.88s);
    --project-exit-duration: var(--projects-exit-duration, 0.46s);
    box-sizing: border-box;
    grid-template-columns: 1fr;
    grid-template-rows: calc(0.5 * var(--mobile-screen)) calc(0.5 * var(--mobile-screen));
    width: 100%;
    height: var(--mobile-first-screen);
    min-height: var(--mobile-first-screen);
    max-height: var(--mobile-first-screen);
    overflow: hidden;
  }
  #projects-view.project-inline-active {
    position: relative;
  }
  #projects-view.project-inline-active > .preview {
    display: none;
  }
  #projects-view.project-inline-active > .finder {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: var(--projects-mobile-toolbar-top) var(--projects-mobile-gutter) 0;
    overflow: visible;
    pointer-events: none;
  }

  #projects-view.project-inline-active > .finder > :not(.toolbar) {
    display: none;
  }
  #projects-view.project-inline-active > .finder .toolbar {
    position: relative;
    z-index: 1;
    padding-bottom: 0;
    pointer-events: auto;
  }
  /* During mobile project opening/closing, keep the Finder in its original
     upper-half geometry so Finder and passport can cross-animate in parallel. */
  #projects-view.project-inline-active.project-inline-opening > .finder,
  #projects-view.project-inline-active.project-inline-closing > .finder {
    position: relative;
    z-index: 10;
    grid-column: 1;
    grid-row: 1;
    display: flex;
    width: 100%;
    height: calc(0.5 * var(--mobile-screen));
    min-height: calc(0.5 * var(--mobile-screen));
    max-height: calc(0.5 * var(--mobile-screen));
    padding: var(--projects-mobile-toolbar-top) var(--projects-mobile-gutter) 16px;
    overflow: hidden;
    pointer-events: none;
  }

  #projects-view.project-inline-active.project-inline-opening > .finder > .directory,
  #projects-view.project-inline-active.project-inline-closing > .finder > .directory {
    display: block;
  }
  #projects-view.project-inline-active.project-inline-opening > .finder .toolbar,
  #projects-view.project-inline-active.project-inline-closing > .finder .toolbar {
    padding-bottom: 15px;
    pointer-events: auto;
  }
  .project-inline-details,
  .project-inline-gallery {
    min-width: 0;
    min-height: 0;
  }
  .project-inline-details {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
    border-bottom: 1px solid var(--line, #dedede);
    background: var(--paper, #fff);
  }
  .project-inline-details[hidden],
  .project-inline-gallery[hidden] {
    display: none;
  }
  .project-inline-details-scroll {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: calc(var(--projects-mobile-first-text-top) + var(--baseline-project-top-gap, 0px)) var(--projects-mobile-gutter) 28px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .project-inline-details-scroll::-webkit-scrollbar {
    width: 0;
  }
  .project-inline-title {
    max-width: 100%;
    margin: 0 0 20px;
    font-size: calc(clamp(30px, 9.2vw, 40px));
    line-height: 0.94;
    font-weight: 600;
    letter-spacing: -0.055em;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }
  .project-inline-meta {
    display: grid;
    gap: 8px;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
  }
  .project-inline-meta > div {
    display: grid;
    grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
    align-items: baseline;
    gap: 18px;
    width: 100%;
  }
  .project-inline-meta dt,
  .project-inline-meta dd {
    margin: 0;
  }
  .project-inline-meta dt {
    color: var(--muted, #747474);
    font-size: 10px;
    line-height: 1.25;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: left;
    white-space: nowrap;
  }
  .project-inline-meta dd {
    min-width: 0;
    font-size: 14px;
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: right;
    overflow-wrap: break-word;
  }
  .project-inline-text {
    --copy-motion-bleed: 1.3em;
    width: calc(100% + 2 * var(--copy-motion-bleed));
    margin: calc(-1 * var(--copy-motion-bleed));
    padding: var(--copy-motion-bleed);
    border: 0;
    overflow: visible;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -0.012em;
    text-align: left;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  .project-inline-text p {
    position: relative;
    max-width: none;
    margin: 0 0 1em;
    font-kerning: none;
    font-variant-ligatures: none;
  }
  .project-inline-text p:last-child {
    margin-bottom: 0;
  }
  .project-inline-link {
    align-self: flex-start;
    margin: 0 0 18px;
    padding: 5px 0;
    font-size: 12px;
    font-weight: 600;
  }
  .project-inline-gallery {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--preview, #e9e9e9);
  }
  .project-inline-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    touch-action: pan-x;
  }
  .project-inline-gallery-track::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
  .project-inline-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    background: var(--preview, #e9e9e9);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .project-inline-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
  }
  .project-inline-empty {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--muted, #747474);
    font-size: 12px;
  }
  .project-inline-gallery-arrow {
    position: absolute;
    z-index: 12;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    mix-blend-mode: difference;
    font: 400 27px/1 var(--sans, inherit);
    transform: translateY(-50%);
  }
  .project-inline-gallery-arrow-prev {
    left: 8px;
  }
  .project-inline-gallery-arrow-next {
    right: 8px;
  }
  .project-inline-gallery-arrow:disabled {
    opacity: 0.2;
  }
  .project-inline-gallery-thumbs {
    position: absolute;
    z-index: 14;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: calc(100% - 80px);
    padding: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 10px;
    background: rgba(18, 18, 18, 0.28);
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px) saturate(1.08);
    -webkit-backdrop-filter: blur(12px) saturate(1.08);
    transform: translateX(-50%);
    scrollbar-width: none;
  }
  .project-inline-gallery-thumbs::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
  .project-inline-gallery-thumb {
    flex: 0 0 auto;
    width: 46px;
    height: 34px;
    padding: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    opacity: 0.58;
  }
  .project-inline-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .project-inline-gallery-thumb.is-active,
  .project-inline-gallery-thumb:focus-visible {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.95);
  }
  .project-inline-details.inline-copy-preparing {
    visibility: hidden;
  }
  .project-inline-details.inline-copy-motion {
    position: relative;
    z-index: 8;
    isolation: isolate;
    contain: style;
  }
  .project-inline-details.inline-copy-exit {
    pointer-events: none;
  }
  .project-inline-details.inline-copy-enter .glyph-letter {
    animation: finder-letter-in var(--project-enter-duration, 0.88s) cubic-bezier(0.12, 0.78, 0.16, 1) both;
    animation-delay: calc(var(--projects-entry-gap, 80ms) + 
      var(--letter-index, 0) * var(--project-swap-letter-stagger, 5ms)
    );
  }
  .project-inline-details.inline-copy-exit .glyph-letter {
    animation: finder-letter-out var(--project-exit-duration, 0.46s) cubic-bezier(0.5, 0, 0.8, 0.3) both;
    animation-delay: calc(
      var(--letter-index, 0) * var(--project-swap-letter-stagger, 5ms)
    );
  }
}
@media (min-width: 1101px) and (max-width: 1600px) and (pointer: fine) and (not (any-pointer: coarse)) {
  .project-inline-details-scroll {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    column-gap: 30px;
  }
  .project-inline-title {
    font-size: calc(clamp(40px, 5.4vw, 62px));
  }
  .project-inline-meta dd {
    font-size: calc(clamp(15px, 1.45vw, 18px));
  }
  .project-inline-text {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-inline-details .glyph-letter {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    clip-path: none !important;
    transform: none !important;
  }
  html { scroll-behavior: auto; }
}

/* Shared compact layout: phones and tablets, with a column Finder on tablets. */

@supports not (height: 100svh) {
  :root { --mobile-screen: 100vh; --mobile-first-screen: 100vh; --mobile-scroll-screen: 100vh; }
}
/* Keep the consent copy inside every viewport, including low landscape screens. */
.thesis-rotation-popup-card {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
@supports (height: 100svh) {
  .thesis-rotation-popup-card { max-height: calc(100svh - 48px); }
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  .thesis-rotation-popup-card { max-height: calc(100vh - 20px); }
  @supports (height: 100svh) {
    .thesis-rotation-popup-card { max-height: calc(100svh - 20px); }
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .thesis-rotation-popup { padding: 10px; }
  .thesis-rotation-popup-card {
    max-height: calc(100vh - 20px);
    max-width: 760px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    padding: 20px;
  }
  .thesis-sheet-kicker { grid-column: 1 / -1; margin: 0; }
  .thesis-rotation-popup-card h2 { grid-column: 1; font-size: 28px; }
  .thesis-rotation-popup-text { grid-column: 1; margin: 0; }
  .thesis-sheet-steps { grid-column: 2; grid-row: 2; margin-top: 0; }
  .thesis-sheet-steps > div { padding: 8px 0; }
  .thesis-popup-actions { grid-column: 2; grid-row: 3; align-self: end; }
  .thesis-rotation-popup-card #thesis-rotation-popup-close { margin-top: 0; min-height: 44px; }
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  .masthead { gap: 12px; }
  .masthead-right a { min-height: 40px; min-width: 24px; display: inline-flex; align-items: center; justify-content: center; }
  .language-switch button { min-width: 24px; min-height: 40px; }

  #projects-view { --mobile-first-screen: var(--mobile-screen); }
  #projects-view .project-inline-text { font-size: 16px; line-height: 1.52; }
  #projects-view .project-inline-details-scroll { scrollbar-width: thin; scrollbar-color: #b6b6b6 transparent; }
  #projects-view .project-inline-details-scroll::-webkit-scrollbar { width: 3px; }
  #projects-view .project-inline-details-scroll::-webkit-scrollbar-thumb { background: #b6b6b6; border-radius: 3px; }
}
@media (min-width: 600px) and (min-height: 501px) and (max-width: 1100px), (min-width: 600px) and (min-height: 501px) and (max-width: 1600px) and (any-pointer: coarse) {
  :root { --tablet-heading-size: calc(clamp(44px, 5vmin, 60px) * var(--tablet-text-scale, 1)); }
  #projects-view {
    --projects-mobile-gutter: clamp(28px, 4vw, 44px);
    --projects-mobile-toolbar-top: calc(64px + var(--projects-mobile-safe-top));
    --tablet-finder-font-size: clamp(16px, 2.35vmin, 21px);
    --tablet-breadcrumb-font-size: clamp(12px, 1.75vmin, 20px);
  }
  #projects-view .finder-column .row-name { font-size: var(--tablet-finder-font-size); }
  #projects-view #directory .finder-column .icon-dissolve {
    width: calc(var(--tablet-finder-font-size) * 1.125);
    min-width: calc(var(--tablet-finder-font-size) * 1.125);
    height: calc(var(--tablet-finder-font-size) * 1.25);
  }
  #projects-view #directory .finder-column .row-icon {
    width: calc(var(--tablet-finder-font-size) * 1.125);
    height: calc(var(--tablet-finder-font-size) * 1.125);
  }
  #projects-view #directory .finder-column .project-row .row-icon {
    width: var(--tablet-finder-font-size);
    height: calc(var(--tablet-finder-font-size) * 1.25);
  }
  #projects-view #breadcrumbs {
    font-size: var(--tablet-breadcrumb-font-size);
    min-height: calc(var(--tablet-breadcrumb-font-size) * 1.3);
    height: auto;
    line-height: 1.3;
  }
  #projects-view .history-controls #back {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
  }
  #projects-view .toolbar .history-controls #back svg {
    width: clamp(26px, 3.4vmin, 34px);
    height: clamp(26px, 3.4vmin, 34px);
    max-width: none;
    flex-shrink: 0;
  }
  #projects-view .history-controls #back::before {
    content: "";
    position: absolute;
    width: 44px;
    height: 44px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  #home-view .home-copy :is(h1, h2) { font-size: var(--tablet-heading-size); }
  #home-view .home-copy p { font-size: calc(clamp(16px, 1.35vw, 21px) * var(--tablet-text-scale, 1)); }
  #projects-view .project-inline-title { font-size: calc(clamp(40px, 6vw, 52px) * var(--tablet-text-scale, 1)); }
  #projects-view .project-inline-text { font-size: calc(16px * var(--tablet-text-scale, 1)); }
  #projects-view .project-inline-meta dt { font-size: calc(10px * var(--tablet-text-scale, 1)); }
  #projects-view .project-inline-meta dd { font-size: calc(14px * var(--tablet-text-scale, 1)); }
  #contacts-view .contact-intro h1 { font-size: calc(clamp(44px, 5vw, 76px) * var(--tablet-text-scale, 1)); }
  #contacts-view h2 { font-size: calc(12px * var(--tablet-text-scale, 1)); }
  #contacts-view h3 { font-size: calc(17px * var(--tablet-text-scale, 1)); }
  #contacts-view p,
  #contacts-view .contact-links a { font-size: calc(16px * var(--tablet-text-scale, 1)); }
  #contacts-view .contact-email { font-size: calc(clamp(18px, 1.65vw, 26px) * var(--tablet-text-scale, 1)); }
  .masthead .identity,
  .masthead .masthead-right { font-size: calc(14px * var(--tablet-text-scale, 1)); }
  .masthead .language-switch,
  main .home-link,
  #projects-view .project-inline-link,
  .thesis-font-credits { font-size: calc(12px * var(--tablet-text-scale, 1)); }
  .home-image-caption,
  .moodboard-caption { font-size: calc(12px * var(--tablet-text-scale, 1)); }

  #directory.finder-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: column;
    width: 100%;
    overflow: hidden;
  }
  #directory.finder-columns > .finder-column {
    display: block;
    grid-row: 1;
    width: auto;
    padding: 0 10px;
    height: 100%;
    overflow-y: auto;
  }
  #directory.finder-columns > .finder-column:first-child { padding-left: 0; }
  #directory .finder-exit-layer { display: grid; }
  #directory .finder-exit-layer .finder-column {
    position: static;
    inset: auto;
    grid-row: 1;
    width: auto;
    padding: 0 10px;
  }
  #projects-view.project-inline-active.project-inline-opening > .finder > .directory,
  #projects-view.project-inline-active.project-inline-closing > .finder > .directory { display: grid; }
}

/* Give moving breadcrumb letters room without changing the resting path layout. */
#breadcrumbs {
  padding: 18px 18px;
  margin: -18px -18px;
  box-sizing: content-box;
  pointer-events: none;
}
#breadcrumbs .crumb-item { pointer-events: auto; }
#breadcrumbs .breadcrumb-segment-motion-in,
#breadcrumbs .breadcrumb-segment-motion-out {
  overflow: visible;
  text-overflow: clip;
}

.moodboard-rotor {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: translateZ(calc(-1 * var(--moodboard-depth, 0px)));
}
.moodboard-face {
  position: absolute;
  inset: -0.5px 0;
  display: flex;
  backface-visibility: hidden;
  background: #fff;
}
.moodboard-face-front { transform: translateZ(var(--moodboard-depth, 0px)); }
.moodboard-face-next { transform: rotateX(var(--moodboard-side, -90deg)) translateZ(var(--moodboard-depth, 0px)); }
.moodboard-face-future { transform: rotateX(180deg) translateZ(var(--moodboard-depth, 0px)); }
.moodboard-face-previous { transform: rotateX(var(--moodboard-previous-side, 90deg)) translateZ(var(--moodboard-depth, 0px)); }
/* Move only the path controls; the Finder's layout and column origin stay fixed. */
.project-custom-player { position: relative; }
@media (min-width: 1101px) and (pointer: fine) and (not (any-pointer: coarse)), (min-width: 1601px) {
#projects-view .project-inline-gallery:is(:not(.touch-gallery), .gallery-thumbs-visible):has(.project-inline-gallery-thumbs:not([hidden])) .thesis-video-controls-bottom,
#projects-view .project-inline-gallery:is(:not(.touch-gallery), .gallery-thumbs-visible):has(.project-inline-gallery-thumbs:not([hidden])) .thesis-video-controls-top { bottom: 84px; }
}
.project-custom-player:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  margin: 0;
  background: #050505;
}
.project-custom-player:fullscreen > video { width: 100%; height: 100%; object-fit: contain; }
#projects-view .project-custom-player:fullscreen .thesis-video-controls-bottom,
#projects-view .project-custom-player:fullscreen .thesis-video-controls-top { bottom: 16px; }
#projects-view .toolbar { transform: translateY(14px); }
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  #projects-view .toolbar { transform: translateY(9px); }
}

/* Liquid Glass uses the available browser viewport, without screen-height estimates. */
html.ios-liquid-glass {
  --mobile-screen: 100svh;
  --mobile-first-screen: 100svh;
  --mobile-scroll-screen: 100svh;
}
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  html.ios-liquid-glass #projects-view {
    --mobile-screen: 100svh;
    --mobile-first-screen: 100svh;
  }
  html.ios-liquid-glass #home-view #moodboard,
  html.ios-liquid-glass #thesis-view .thesis-page-hero {
    height: var(--mobile-scroll-screen) !important;
    min-height: var(--mobile-scroll-screen) !important;
    max-height: var(--mobile-scroll-screen) !important;
  }
  html.ios-liquid-glass #thesis-interactive .thesis-particles,
  html.ios-liquid-glass #thesis-interactive .thesis-title-overlay {
    top: 0;
    bottom: 0;
    height: 100%;
  }
  html.ios-liquid-glass #contacts-view.contacts-page {
    height: var(--mobile-screen);
    min-height: var(--mobile-screen) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  html.ios-liquid-glass #contacts-view .contact-intro,
  html.ios-liquid-glass #contacts-view .contact-cv {
    min-height: 0;
    
    justify-content: safe center;
  }
}
html.safari-header-groups .masthead { display: contents; }
html.safari-header-groups .masthead > .identity,
html.safari-header-groups .masthead > .masthead-actions {
  position: fixed;
  top: var(--safari-group-top);
  left: var(--safari-group-left);
  width: var(--safari-group-width);
  height: var(--safari-group-height);
  z-index: 20;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: auto;
}
@media (orientation: landscape) and (max-width: 1100px),
  (orientation: landscape) and (max-width: 1600px) and (any-pointer: coarse) {
  html.home-smartphone {
    --mobile-scroll-screen: 100lvh;
    --smartphone-text-gutter: 28px;
  }
  html.home-smartphone #home-view { --mobile-screen: var(--mobile-scroll-screen); }
  html.home-smartphone #thesis-interactive { --mobile-first-screen: 100lvh; }
  html.ios-liquid-glass #contacts-view.contacts-page {
    grid-template-rows: minmax(0, 1fr);
  }
}
/* Camera clearance comes from the browser, including when its own UI already
   excludes the cutout. Do not add the iPhone fallback to the masthead. */
@media (max-width: 760px), (max-width: 1100px) and (max-height: 500px) and (pointer: coarse) {
  .masthead {
    top: calc(max(16px, env(safe-area-inset-top, 0px)) - 15px);
    height: 40px;
    padding: 0 max(18px, env(safe-area-inset-right, 0px))
      0 max(18px, env(safe-area-inset-left, 0px));
    gap: 16px;
    align-items: center;
  }
  .masthead .identity-full { display: none; }
  .masthead .identity-short { display: inline; }
  .masthead .identity {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    height: 40px;
    font-size: 16px;
    line-height: 20px;
  }
  .masthead .masthead-actions { position: relative; top: -1px; flex-shrink: 0; gap: 10px; }
  .masthead .masthead-actions .masthead-right { font-size: 13px; line-height: 20px; gap: 12px; }
  .masthead .language-switch { font-size: 12px; line-height: 20px; }
}
@media (max-width: 359px) {
  .masthead { gap: 8px; }
  .masthead .masthead-actions, .masthead .masthead-actions .masthead-right { gap: 7px; }
}
/* Rotated compact devices keep their Finder/passport behavior in side-by-side panels. */
@media (orientation: landscape) and (max-width: 1100px),
  (orientation: landscape) and (max-width: 1600px) and (any-pointer: coarse) {
  #home-view .home-section:not(.moodboard),
  #home-view .home-section:first-child {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) !important;
    height: var(--mobile-screen) !important;
    min-height: var(--mobile-screen) !important;
    max-height: var(--mobile-screen) !important;
  }
  #home-view .home-section > .home-copy,
  #home-view .home-section > .home-media,
  #home-view .home-section:first-child > .home-copy,
  #home-view .home-section:first-child > .home-media {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    grid-row: 1;
  }
  #home-view .home-section:first-child > .home-media { grid-column: 1; }
  #home-view .home-section:first-child > .home-copy { grid-column: 2; }
  #home-view .home-copy,
  #thesis-view .thesis-page-intro-section .thesis-page-copy,
  .thesis-story-copy {
    padding: 64px clamp(22px, 3vw, 44px) 28px;
    padding-left: max(var(--smartphone-text-gutter, clamp(22px, 3vw, 44px)), env(safe-area-inset-left, 0px));
    padding-right: max(var(--smartphone-text-gutter, clamp(22px, 3vw, 44px)), env(safe-area-inset-right, 0px));
    
    justify-content: safe center;
  }
  #home-view #data-in-the-mirror {
    grid-template-columns: minmax(0, 1fr) min(56.25svh, 28vw) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    height: var(--mobile-screen) !important;
    min-height: var(--mobile-screen) !important;
    max-height: var(--mobile-screen) !important;
    overflow: hidden !important;
  }
  #home-view #data-in-the-mirror > .home-copy,
  #home-view #data-in-the-mirror .thesis-media {
    grid-row: 1 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 64px clamp(18px, 2.5vw, 36px) 28px;
    padding-left: max(clamp(18px, 2.5vw, 36px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(18px, 2.5vw, 36px), env(safe-area-inset-right, 0px));
  }
  #home-view #data-in-the-mirror .thesis-copy-primary { grid-column: 1; }
  #home-view #data-in-the-mirror .thesis-media { grid-column: 2; padding: 0; aspect-ratio: auto !important; }
  #home-view #data-in-the-mirror .thesis-copy-secondary { grid-column: 3; }
  #thesis-view .thesis-page-intro-section:not(:has(.thesis-page-intro-image-frame:empty)),
  .thesis-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    height: var(--mobile-screen);
    min-height: var(--mobile-screen) !important;
    max-height: var(--mobile-screen);
  }
  #thesis-view .thesis-page-intro-section > .thesis-page-copy,
  .thesis-story-copy,
  .thesis-story-media,
  .thesis-story-reverse .thesis-story-copy,
  .thesis-story-reverse .thesis-story-media {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100%;
    grid-row: 1;
  }

  .thesis-story-media { grid-column: 1; order: 0; }
  .thesis-story-copy { grid-column: 2; order: 0; }
  .thesis-story-reverse .thesis-story-media { grid-column: 2; }
  .thesis-story-reverse .thesis-story-copy { grid-column: 1; }
  #contacts-view.contacts-page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    height: var(--mobile-screen);
    min-height: var(--mobile-screen) !important;
  }
  #contacts-view .contact-intro,
  #contacts-view .contact-cv {
    min-width: 0;
    min-height: 0;
    padding: 64px clamp(22px, 3vw, 44px) 28px;
    padding-left: max(clamp(22px, 3vw, 44px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(22px, 3vw, 44px), env(safe-area-inset-right, 0px));
    
    overflow-wrap: anywhere;
    justify-content: safe center;
  }
  #projects-view,
  #projects-view.project-inline-active {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    height: var(--mobile-screen);
    min-height: var(--mobile-screen);
    max-height: var(--mobile-screen);
  }
  #projects-view > .finder,
  #projects-view.project-inline-active.project-inline-opening > .finder,
  #projects-view.project-inline-active.project-inline-closing > .finder {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    min-height: 0;
    max-height: none;
    width: 100%;
  }
  #projects-view > .preview,
  #projects-view .project-inline-gallery {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    min-height: 0;
    max-height: none;
  }
  #projects-view .project-inline-details {
    grid-column: 1;
    grid-row: 1;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  #projects-view.project-inline-active > .finder {
    width: 50%;
    height: auto;
  }
  #projects-view.project-inline-active.project-inline-opening > .finder,
  #projects-view.project-inline-active.project-inline-closing > .finder { width: 100%; height: 100%; }
}
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1100px) and (pointer: coarse) {
  #home-view .home-copy :is(h1, h2) { font-size: clamp(26px, 3vw, 36px); }
  #contacts-view .contact-intro h1 { font-size: clamp(32px, 4vw, 44px); }
  #projects-view { --projects-mobile-gutter: max(22px, env(safe-area-inset-left, 0px)); --projects-mobile-toolbar-top: calc(42px + var(--projects-mobile-safe-top)); }
  #directory.finder-columns,
  #projects-view.project-inline-active.project-inline-opening > .finder > .directory,
  #projects-view.project-inline-active.project-inline-closing > .finder > .directory {
    display: block;
  }
  #directory.finder-columns > .finder-column { display: none; width: 100%; padding: 0; }
  #directory.finder-columns > .finder-column-current,
  #directory.finder-columns > .finder-column:only-child { display: block; }
  #directory .finder-exit-layer { display: block; }
  #directory .finder-exit-layer .finder-column {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
  }
  #projects-view .project-inline-title { font-size: clamp(30px, 5vw, 40px); }
}
@supports not (height: 100svh) {
  #home-view #moodboard { height: 100vh !important; }
}

/* Direct entry prepares all text before launching one shared frame. */
#projects-view.project-entry-preparing .toolbar,
#projects-view.project-entry-preparing #directory { visibility: hidden; }
#moodboard { position: relative; }
.moodboard-pause { position: absolute; right: 18px; bottom: 18px; z-index: 15; color: white; mix-blend-mode: difference; }
.navigation-notice { position: fixed; z-index: 100; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 36px); padding: 12px 16px; margin: 0; background: #fff; color: #171717; border: 1px solid #ddd; font: 14px/1.4 var(--sans); }
/* Every Finder layout includes the same hierarchical back control. */
#projects-view .history-controls { display: flex; }

/* Projects is an app-like surface: scroll its columns, passport and gallery,
   never the outer document. */
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  html[data-surface="projects"],
  html[data-surface="projects"] body {
    height: 100%;
    min-height: 0;
    overflow: hidden !important;
  }
  html[data-surface="projects"] #projects-view {
    --mobile-screen: var(--project-visible-height, 100dvh);
    --mobile-first-screen: var(--mobile-screen);
    height: var(--mobile-screen) !important;
    min-height: var(--mobile-screen) !important;
    max-height: var(--mobile-screen) !important;
  }
}
/* One composited description block, independent of text length. */
.project-inline-details.inline-copy-enter .project-inline-text {
  animation: mobile-project-copy-in var(--project-enter-duration, .88s)
    cubic-bezier(.12,.78,.16,1) calc(var(--projects-entry-gap, 80ms) + var(--project-switch-delay, 0ms)) both;
}
.project-inline-details.inline-copy-exit .project-inline-text {
  animation: mobile-project-copy-out var(--project-exit-duration, .46s)
    cubic-bezier(.5,0,.8,.3) both;
}
@keyframes mobile-project-copy-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes mobile-project-copy-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-8px); }
}
@media (max-width: 760px), (max-width: 1100px) and (max-height: 500px) and (pointer: coarse) {
  #projects-view #directory { overflow: visible; }
  #projects-view #directory .finder-column,
  #projects-view .finder-exit-layer .finder-column {
    box-sizing: border-box;
    margin-inline: -16px;
    padding-inline: 16px;
    width: calc(100% + 32px);
  }
  #projects-view .finder-exit-layer { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .project-inline-details .project-inline-text { animation: none !important; }
}
@media (max-width: 760px), (max-width: 1100px) and (max-height: 500px) and (pointer: coarse) {
  #projects-view .finder-column.column-enter .row-name,
  #projects-view .finder-column.column-exit .row-name,
  #projects-view .directory-row.selection-in .row-name,
  #projects-view .directory-row.selection-out .row-name {
    overflow: visible;
    text-overflow: clip;
  }
}

/* The passport copy scrolls under a stationary white, blurred navigation
   cover. It belongs to the details panel, so rotated layouts keep it over
   the text half only. Finder and masthead remain above it and clickable. */
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  #projects-view.project-inline-active .project-inline-details::after {
    content: "";
    position: absolute;
    z-index: 9;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--projects-mobile-first-text-top) - var(--baseline-step, 21.7px));
    pointer-events: none;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(to bottom, #000, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to bottom, #000, #000 calc(100% - 24px), transparent);
  }
}

/* Keep browser chrome visually continuous with the current page on Safari 26+. */
html.ios-liquid-glass,
html.ios-liquid-glass body { background-color: var(--liquid-edge-bg, #fff); }
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  html.ios-liquid-glass #thesis-interactive { overflow: hidden; }
}
@media (orientation: portrait) and (max-width: 1100px) {
  #home-view .home-section:first-child > .home-copy {
    grid-row: 1; grid-column: 1;
  }
  #home-view .home-section:first-child > .home-media {
    grid-row: 2; grid-column: 1;
  }
}

/* A vector arrow avoids platform-dependent emoji and baseline metrics. */
.masthead-right #nav-contacts { display: inline-flex; align-items: center; justify-content: center; }
.masthead-right #nav-contacts .contact-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1em; height: 1em; flex: 0 0 1em; margin-left: 0; font-size: inherit; line-height: 1;
}
.masthead-right #nav-contacts .contact-arrow svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  #projects-view .finder-column .icon-dissolve { overflow: visible; width: 18px; min-width: 18px; height: 20px; }
  #projects-view .finder-column .row-icon { width: 18px; height: 18px; flex-shrink: 0; overflow: visible; transform-origin: center; }
  #projects-view .finder-column .project-row .row-icon { width: 16px; height: 20px; }
  #projects-view .finder-column.column-enter .row-icon,
  #projects-view .finder-column .directory-row.selection-in .row-icon {
    filter: none; animation: mobile-finder-icon-in var(--projects-enter-duration, .88s) cubic-bezier(.16,1,.3,1) var(--projects-entry-gap, 80ms) both;
  }
  #projects-view .finder-column.column-exit .row-icon,
  #projects-view .finder-column .directory-row.selection-out .row-icon {
    filter: none; animation: mobile-finder-icon-out var(--projects-exit-duration, .46s) cubic-bezier(.4,0,.7,1) both;
  }
  #projects-view .project-inline-gallery-thumbs { top: 10px; bottom: auto; }
  #projects-view .project-inline-gallery-arrow { top: 10px; height: 44px; transform: none; }
  #projects-view .project-inline-gallery .thesis-video-controls-bottom,
  #projects-view .project-inline-gallery .thesis-video-controls-top { bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
}
@keyframes mobile-finder-icon-in {
  from { opacity: 0; transform: translate3d(5px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes mobile-finder-icon-out {
  from { opacity: 1; transform: translate3d(0, 0, 0); }
  to { opacity: 0; transform: translate3d(-5px, 0, 0); }
}
/* Extend only the Projects media surface; its controls stay in the visible viewport. */
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  html.ios-liquid-glass[data-surface="projects"] #projects-view {
    --project-browser-underlay: max(0px, calc(100lvh - var(--project-visible-height, 100dvh)));
    height: 100lvh !important; min-height: 100lvh !important; max-height: 100lvh !important;
  }
  html.ios-liquid-glass #projects-view .project-inline-gallery .thesis-video-controls-bottom,
  html.ios-liquid-glass #projects-view .project-inline-gallery .thesis-video-controls-top {
    bottom: calc(var(--project-browser-underlay, 0px) + max(12px, env(safe-area-inset-bottom, 0px)));
  }
}
@media (orientation: portrait) and (max-width: 1100px) {
  html.ios-liquid-glass[data-surface="projects"] #projects-view,
  html.ios-liquid-glass[data-surface="projects"] #projects-view.project-inline-active {
    grid-template-rows: calc(var(--project-visible-height, 100dvh) * .5) calc(100lvh - var(--project-visible-height, 100dvh) * .5);
  }
}
@media (orientation: landscape) and (max-width: 1100px), (orientation: landscape) and (max-width: 1600px) and (any-pointer: coarse) {
  html.ios-liquid-glass #projects-view > .finder,
  html.ios-liquid-glass #projects-view .project-inline-details { max-height: var(--project-visible-height, 100dvh); }
}
@media (prefers-reduced-motion: reduce) {
  #projects-view .finder-column .row-icon { animation: none !important; transform: none !important; opacity: 1; filter: none; }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 1100px) and (pointer: coarse) {
  #home-view .home-section:first-child > .home-copy { grid-column: 1; grid-row: 1; }
  #home-view .home-section:first-child > .home-media { grid-column: 2; grid-row: 1; }
}

@media (orientation: landscape) and (max-width: 1100px), (orientation: landscape) and (max-width: 1600px) and (any-pointer: coarse) {
  #projects-view .project-inline-gallery-thumbs,
  #projects-view .project-inline-gallery-arrow { top: calc(56px + env(safe-area-inset-top, 0px)); }
}

/* Slides keep their fixed geometry, while offscreen content can skip rendering. */
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  #projects-view .project-inline-slide {
    content-visibility: auto;
    contain-intrinsic-size: auto 100%;
  }

/* Prepare temporary compositor layers only for Android project transitions. */

  html.android-project-motion .project-inline-details:is(.inline-copy-primed, .inline-copy-motion) .glyph-letter {
    will-change: transform, opacity;
    backface-visibility: hidden;
  }
  html.android-project-motion .project-inline-details:is(.inline-copy-primed, .inline-copy-motion) .project-inline-text {
    will-change: transform, opacity;
  }
  html.android-project-motion .project-inline-details.inline-copy-primed { visibility: hidden; }
  html.android-project-motion .project-inline-details.inline-copy-enter.inline-copy-primed { visibility: visible; }
}

.link-arrow { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; flex: 0 0 1em; vertical-align: -.12em; margin-left: .2em; }
.link-arrow svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  html.android-project-motion .project-inline-details.inline-copy-enter .glyph-letter { animation-name: android-detail-letter-in; }
  html.android-project-motion .project-inline-details.inline-copy-exit .glyph-letter { animation-name: android-detail-letter-out; }
  html.android-project-motion .project-inline-details:is(.inline-copy-primed, .inline-copy-motion) :is(.project-inline-title, .project-inline-meta > div, .project-inline-link) { will-change: filter; }
  html.android-project-motion .project-inline-details.inline-copy-enter :is(.project-inline-title, .project-inline-meta > div, .project-inline-link) {
    animation: android-detail-blur-in var(--project-enter-duration, .88s) cubic-bezier(.12,.78,.16,1) var(--projects-entry-gap, 80ms) both;
  }
  html.android-project-motion .project-inline-details.inline-copy-exit :is(.project-inline-title, .project-inline-meta > div, .project-inline-link) {
    animation: android-detail-blur-out var(--project-exit-duration, .46s) cubic-bezier(.5,0,.8,.3) both;
  }
}
@keyframes android-detail-letter-in {
  0% { opacity: 0; transform: translate3d(var(--letter-in-x), var(--letter-in-y), 0) rotate(var(--letter-in-rotation)) scale(var(--letter-in-scale)); }
  72% { opacity: 1; transform: translateZ(0) rotate(-4deg) scale(1.08); }
  to { opacity: 1; transform: none; }
}
@keyframes android-detail-letter-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translate3d(var(--letter-out-x), var(--letter-out-y), 0) rotate(var(--letter-out-rotation)) scale(var(--letter-out-scale)); }
}
@keyframes android-detail-blur-in { 0% { filter: blur(4px); } 72% { filter: blur(.4px); } to { filter: none; } }
@keyframes android-detail-blur-out { from { filter: none; } to { filter: blur(5px); } }
@media (prefers-reduced-motion: reduce) {
  html.android-project-motion .project-inline-details :is(.project-inline-title, .project-inline-meta > div, .project-inline-link) { animation: none !important; filter: none !important; will-change: auto; }
}

/* Hierarchical back navigation on phones and tablets. */
@media (max-width: 1100px), (max-width: 1600px) and (any-pointer: coarse) {
  #projects-view .history-controls { display: flex !important; align-items: center; overflow: visible; flex: 0 0 18px; width: 18px; margin: 0; }
  #projects-view .history-controls #forward { display: none; }
  #projects-view .history-controls #back { width: 18px; height: 28px; padding: 0; flex: 0 0 18px; }
  #projects-view .history-controls #back svg { width: 18px; height: 18px; }
}


/* The hierarchical back arrow stays still while browsing the Finder. */
#projects-view .history-controls #back:not(:disabled) svg { stroke-width: 2.4; }
#projects-view .history-controls #back:disabled svg { stroke-width: 1.35; }
/* Animate the SVG independently so the button retains its disabled opacity. */
@keyframes back-arrow-in {
  from { opacity: 0; transform: translateX(9px) scale(.88); }
  54% { opacity: .78; transform: translateX(-1px) scale(1.03); }
  to { opacity: 1; transform: none; }
}
@keyframes back-arrow-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateX(12px) scale(.88); }
}
#projects-view .history-controls #back.breadcrumb-back-motion-in,
#projects-view .history-controls #back.breadcrumb-back-motion-out {
  animation: none;
  transform: none;
  filter: none;
}
#projects-view .history-controls #back svg { transform-box: fill-box; transform-origin: center; }
#projects-view .history-controls #back.breadcrumb-back-motion-in svg {
  animation: back-arrow-in var(--projects-enter-duration, .88s) cubic-bezier(.12,.78,.16,1) both;
  animation-delay: var(--projects-entry-gap, 80ms);
}
#projects-view .history-controls #back.breadcrumb-back-motion-out svg {
  animation: back-arrow-out var(--projects-exit-duration, .46s) cubic-bezier(.5,0,.8,.3) both;
}
@media (prefers-reduced-motion: reduce) {
  #projects-view .history-controls #back.breadcrumb-back-motion-in svg,
  #projects-view .history-controls #back.breadcrumb-back-motion-out svg { animation: none; }
}

/* Editorial blocks grow with their copy instead of creating nested scroll areas. */
#home-view .home-section:not(.moodboard),
#thesis-view .thesis-page-intro-section,
.thesis-story,
#contacts-view.contacts-page {
  height: auto !important;
  max-height: none !important;
  min-height: var(--mobile-screen, 100svh) !important;
  grid-template-rows: auto !important;
  overflow: visible !important;
}
#home-view .home-section .home-copy,
#thesis-view .thesis-page-intro-section .thesis-page-copy,
.thesis-story .thesis-story-copy,
#contacts-view .contact-intro,
#contacts-view .contact-cv {
  height: auto !important;
  max-height: none !important;
  min-height: min-content !important;
  overflow: visible !important;
  justify-content: center;
  padding-top: max(64px, 8svh);
  padding-bottom: max(32px, 6svh);
}
@media (orientation: portrait) and (max-width: 1100px),
  (orientation: portrait) and (max-width: 1600px) and (any-pointer: coarse) {
  #home-view .home-section:not(.moodboard),
  #thesis-view .thesis-page-intro-section,
  .thesis-story,
  #contacts-view.contacts-page { grid-template-rows: auto auto !important; }
  #home-view .home-section .home-copy,
  #thesis-view .thesis-page-intro-section .thesis-page-copy,
  .thesis-story .thesis-story-copy,
  #contacts-view .contact-intro,
  #contacts-view .contact-cv { min-height: 50svh !important; }
  #home-view .home-section .home-media,
  .thesis-story .thesis-story-media,
  #thesis-view .thesis-page-intro-media { min-height: 50svh; }
}
/* Phone portraits read the copy first, then show its image. */
@media (max-width: 760px) and (orientation: portrait) {
  #thesis-view .thesis-page-intro-section > .thesis-page-copy,
  #thesis-view .thesis-story > .thesis-story-copy {
    grid-row: 1;
    grid-column: 1;
    order: 0;
  }
  #thesis-view .thesis-page-intro-media,
  #thesis-view .thesis-story > .thesis-story-media {
    grid-row: 2;
    grid-column: 1;
    order: 1;
  }
  #thesis-view .thesis-story > .thesis-story-copy {
    padding-top: max(0px, calc(max(64px, 8svh) - var(--baseline-step, 21.7px)));
  }
}
@media (min-width: 1101px) and (pointer: fine) and (not (any-pointer: coarse)), (min-width: 1601px) {
  #projects-view .project-inline-meta dd { text-align: right; }
}

/* Mac browsers keep letter motion without expensive per-letter SVG filters. */
html.mac-desktop #projects-view .project-inline-meta dd {
  font-size: clamp(14px, calc(1.28vw - 2px), 19px);
}
html.mac-desktop #projects-view .finder-column .row-name {
  font-size: clamp(12px, calc(1.28vw - 4px), 17px);
}
html.mac-desktop #projects-view :is(.glyph-letter, .row-icon, .icon-dissolve, .finder-column, .project-inline-meta > div) {
  filter: none !important;
}
/* Thesis shares Home typography and paragraph measure; title widths stay independent. */
#thesis-view :is(.thesis-page-copy, .thesis-story-copy) > p:not(.eyebrow) {
  font-size: calc(var(--home-paragraph-size, 14px) * var(--tablet-text-scale, 1)) !important;
  line-height: calc(var(--home-paragraph-leading, 21.7px) * var(--tablet-text-scale, 1));
  width: min(100%, var(--home-paragraph-width, 440px));
  max-width: 100%;
}
#thesis-view :is(.thesis-page-copy, .thesis-story-copy) :is(h1, h2) {
  font-size: calc(var(--home-heading-size, 34px) * var(--tablet-text-scale, 1)) !important;
  line-height: calc(var(--home-heading-leading, 38.08px) * var(--tablet-text-scale, 1));
  max-width: min(100%, 18ch);
  white-space: pre-line;
  text-wrap: wrap;
}

/* Consent copy follows the actual input mode, independently of window width. */
#thesis-rotation-popup .thesis-sheet-steps { display: grid; gap: 0; }
#thesis-rotation-popup .thesis-sheet-steps > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 10px;
  padding: 10px 0;
}
#thesis-rotation-popup .thesis-sheet-steps > div > span {
  grid-column: 1;
  grid-row: 1;
  font: 500 11px/1.35 var(--font);
  color: var(--muted);
}
#thesis-rotation-popup .thesis-sheet-steps > div > p {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font: 400 13px/1.35 var(--font);
  translate: none;
}
html:not(.thesis-motion-input) #thesis-rotation-popup .thesis-popup-desktop-copy,
html.thesis-motion-input #thesis-rotation-popup .thesis-popup-mobile-copy { display: block; }
html:not(.thesis-motion-input) #thesis-rotation-popup .thesis-popup-mobile-copy,
html.thesis-motion-input #thesis-rotation-popup .thesis-popup-desktop-copy { display: none; }

/* iPhone introduction: complete copy first, carousel in the remaining viewport. */
html.iphone-smartphone #home-view .home-section:not(:first-child) {
  min-height: var(--mobile-scroll-screen) !important;
}
@media (orientation: portrait) {
  html.iphone-smartphone #home-view .home-section:first-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--iphone-home-copy-height, max-content) var(--iphone-home-carousel-height, 0px) !important;
    align-content: start;
    height: max(var(--iphone-home-viewport, 100dvh), var(--iphone-home-copy-height, 0px)) !important;
    min-height: var(--iphone-home-viewport, 100dvh) !important;
    max-height: none !important;
  }
  html.iphone-smartphone #home-view .home-section:first-child > .home-copy {
    order: 0;
    grid-column: 1;
    grid-row: 1;
    flex: 0 0 auto;
    min-height: 0 !important;
    max-height: none !important;
    justify-content: flex-start;
    padding-top: calc(var(--iphone-home-header-bottom, 48px) + 0.5 * var(--baseline-step, 21.7px)) !important;
    padding-bottom: calc(1.5 * var(--baseline-step, 21.7px)) !important;
  }
  html.iphone-smartphone #home-view .home-section:first-child > .home-media {
    order: 1;
    grid-column: 1;
    grid-row: 2;
    flex: 1 1 0px;
    height: var(--iphone-home-carousel-height, 0px) !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden;
  }
}

/* Shared smartphone text margins and separated Finder navigation targets. */
@media (max-width: 760px), (max-width: 1100px) and (max-height: 500px) and (pointer: coarse) {
  :root { --smartphone-text-gutter: 28px; }
  #home-view .home-section .home-copy,
  #thesis-view .thesis-page-intro-section .thesis-page-copy,
  #thesis-view .thesis-story-copy,
  #contacts-view .contact-intro,
  #contacts-view .contact-cv {
    padding-left: max(var(--smartphone-text-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--smartphone-text-gutter), env(safe-area-inset-right, 0px));
  }
  #projects-view {
    --projects-mobile-gutter: max(var(--smartphone-text-gutter), env(safe-area-inset-left, 0px));
    --projects-mobile-toolbar-top: calc(42px + var(--projects-mobile-safe-top));
    --projects-mobile-toolbar-gap: calc(15px + var(--baseline-step, 21.7px));
  }
  #projects-view #directory {
    position: relative;
    margin-left: 40px;
  }
  #projects-view .toolbar {
    gap: 22px;
    /* The two-line baseline interval includes the row's own inset. */
    padding-bottom: 15px;
  }
  #projects-view .project-inline-details-scroll {
    padding-top: calc(var(--projects-mobile-first-text-top) + var(--baseline-project-top-gap, 0px) - 2 * var(--baseline-step, 21.7px));
  }
  #projects-view .history-controls #back svg {
    width: 26px;
    height: 26px;
    max-width: none;
    flex-shrink: 0;
  }
  #projects-view .history-controls #back {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
  }
  #projects-view .history-controls #back::before {
    content: "";
    position: absolute;
    width: 44px;
    height: 44px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  #thesis-interactive .thesis-title-overlay {
    padding-left: max(var(--smartphone-text-gutter), env(safe-area-inset-left, 0px)) !important;
    padding-right: max(var(--smartphone-text-gutter), env(safe-area-inset-right, 0px)) !important;
  }
  #thesis-interactive .thesis-font-credits {
    left: max(var(--smartphone-text-gutter), env(safe-area-inset-left, 0px));
    right: max(var(--smartphone-text-gutter), env(safe-area-inset-right, 0px));
  }
}
/* Let Safari hyphenate continuous copy using the active document language. */
@media (max-width: 760px), (max-width: 1100px) and (max-height: 500px) and (pointer: coarse) {
  #home-view .home-copy p,
  #thesis-view .thesis-page-copy p,
  #thesis-view .thesis-story-copy p,
  #projects-view .project-inline-text,
  #projects-view .project-inline-text p,
  #projects-view .project-inline-meta dd,
  #contacts-view p {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    text-wrap: wrap;
  }
  #home-view .home-copy :is(h1, h2),
  #thesis-view .thesis-page-copy :is(h1, h2),
  #thesis-view .thesis-story-copy :is(h1, h2),
  #projects-view .project-inline-title,
  #contacts-view :is(h1, h2, h3) {
    white-space: pre-line;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}
/* Landscape tablets browse one Finder column, just like phones. */
@media (orientation: landscape) and (min-width: 600px) and (max-width: 1600px) and (any-pointer: coarse) and (min-height: 501px) {
  #projects-view .toolbar { gap: 22px; }
  #directory.finder-columns,
  #projects-view.project-inline-active.project-inline-opening > .finder > .directory,
  #projects-view.project-inline-active.project-inline-closing > .finder > .directory {
    display: block;
    width: auto;
    margin-left: 40px;
  }
  #directory.finder-columns > .finder-column { display: none; width: 100%; padding: 0; }
  #directory.finder-columns > .finder-column-current,
  #directory.finder-columns > .finder-column:only-child { display: block; }
  #directory .finder-exit-layer { display: block; }
  #directory .finder-exit-layer .finder-column {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
  }
}
/* Portrait tablets align Finder folders with the breadcrumb text. */
@media (orientation: portrait) and (min-width: 600px) and (max-width: 1100px), (orientation: portrait) and (min-width: 600px) and (max-width: 1600px) and (any-pointer: coarse) {
  #projects-view .toolbar {
    gap: 22px;
  }
  #projects-view #directory {
    margin-left: 40px;
    width: calc(100% - 40px);
    grid-template-columns: minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1.3fr);
  }
  #projects-view #directory > .finder-column,
  #projects-view #directory .finder-exit-layer .finder-column {
    padding-inline: 6px;
  }
  #projects-view #directory > .finder-column:first-child {
    padding-left: 0;
  }
  #projects-view #directory .finder-exit-layer {
    grid-template-columns: minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1.3fr);
  }
  /* The portrait passport keeps description and metadata side by side. */
  #projects-view :is(.project-inline-text, .project-inline-meta, .project-inline-link) {
    position: relative;
    top: calc(-1 * var(--baseline-step, 21.7px));
  }
  #projects-view .project-inline-details-scroll {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
    align-content: start;
    column-gap: clamp(24px, 3vw, 40px);
  }
  #projects-view .project-inline-title {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  #projects-view .project-inline-text {
    grid-column: 1;
    grid-row: 2 / 4;
    align-self: stretch;
    min-height: 0;
    height: calc(100% + var(--baseline-step, 21.7px));
    margin: 0;
    padding: 0 0 24px;
    width: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-mask-image: linear-gradient(to bottom, #000, #000 calc(100% - var(--passport-bottom-fade, 0px)), transparent);
    mask-image: linear-gradient(to bottom, #000, #000 calc(100% - var(--passport-bottom-fade, 0px)), transparent);
  }
  #projects-view .project-inline-meta {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin-bottom: 0;
  }
  #projects-view .project-inline-meta dd { text-align: right; }
  #projects-view .project-inline-link {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    justify-self: start;
    margin-top: var(--baseline-step, 21.7px);
  }
}
/* Scroll hints only appear while more passport copy remains below. */
.project-inline-text.has-more-copy { --passport-bottom-fade: 24px; }
.project-inline-details.has-more-passport::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32px;
  z-index: 9;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}
@media (min-width: 1101px) and (pointer: fine) and (not (any-pointer: coarse)), (min-width: 1601px) {
  #projects-view .project-inline-text {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--copy-motion-bleed, 2em), #000 calc(100% - var(--passport-bottom-fade, 0px)), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 var(--copy-motion-bleed, 2em), #000 calc(100% - var(--passport-bottom-fade, 0px)), transparent);
  }
}
/* Landscape tablets retain stacked passport content; only the paragraph scrolls. */
@media (orientation: landscape) and (min-width: 600px) and (max-width: 1600px) and (min-height: 501px) and (any-pointer: coarse) {
  #projects-view .project-inline-details-scroll {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  #projects-view :is(.project-inline-title, .project-inline-meta, .project-inline-link) {
    flex-shrink: 0;
  }
  #projects-view .project-inline-text {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    width: 100%;
    margin: 0;
    padding: 0 0 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-mask-image: linear-gradient(to bottom, #000, #000 calc(100% - var(--passport-bottom-fade, 0px)), transparent);
    mask-image: linear-gradient(to bottom, #000, #000 calc(100% - var(--passport-bottom-fade, 0px)), transparent);
  }
}
