*{ box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ---------- Fonts ----------
   One typeface for the whole site: Inter, bundled in /fonts (the variable
   font, all weights; SIL Open Font License — see fonts/Inter-LICENSE.txt),
   so it looks the same everywhere and doesn't depend on Google Fonts being
   reachable. No other typeface is used anywhere. */
@font-face{
  font-family:"Inter";
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Inter";
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:"Inter";
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('../fonts/inter-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

:root{
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: var(--font);
  --yellow: #FFE033;

  /* Everything below comes from the 451 x 310 mockup (Frame_8.pdf) and is
     scaled to the real screen: 1 mockup unit = 100vw / 451.
     Text: titles and descriptions share ONE size (4 units). */
  --text-size: clamp(10px, calc(100vw * 4 / 451 - 1px), 18px);     /* titles */
  --size-title: var(--text-size);
  --size-body: clamp(11px, calc(100vw * 3.5 / 451 + 1px), 18px);   /* running text */
  --size-meta: clamp(9px, calc(100vw * 3.2 / 451), 14px);    /* year, type — smaller than title */
  --size-label: 12px;
  --about-size: var(--size-body);                             /* About: same as all running text */
  --lh-title: 1.65;
  --lh-body: 2.0;
  --lh-list: 1.85;

  /* the whole site is dark: near-black background, white text */
  --bg: #151515;
  --fg: #ffffff;

  /* the grey text (descriptions, Notes, year / type): white at 58% opacity */
  --text-soft: rgba(255,255,255,.58);

  /* gap between two entries in the right column (7 units in the mockup) */
  --entry-gap: calc(100vw * 7 / 451);

  /* width of the left menu column (the right column is positioned from the
     screen edge, so this is only used to offset it) */
  --menu-w: 220px;

  /* the same starting offset for the first line of content in every
     scrollable pane and every page */
  --content-top: calc(100vw * 16.9 / 451);   /* 16.9 mockup units: the same on every page */
}

/* smooth cross-page navigation where the browser supports it — a soft
   crossfade + subtle slide instead of a hard reload flash. Ignored harmlessly in
   browsers that don't support the View Transitions API yet. */
@view-transition{
  navigation: auto;
}

/* Forward navigation: gentle fade in */
::view-transition-new(root){
  animation: fade-in .15s ease forwards;
}
::view-transition-old(root){
  animation: fade-out .1s ease forwards;
}
@keyframes fade-in{  from{ opacity:0; } to{ opacity:1; } }
@keyframes fade-out{ from{ opacity:1; } to{ opacity:0; } }

/* Back/forward navigation: no animation — let the browser handle it */
@media (prefers-reduced-motion: no-preference){
  html[data-nav-type="back-forward"] ::view-transition-new(root),
  html[data-nav-type="back-forward"] ::view-transition-old(root){
    animation: none;
  }
}

html, body{
  margin:0;
  padding:0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
}

a{ color: var(--fg); }
a:hover,
a:focus-visible{ color: var(--yellow); }

::selection{
  background: var(--yellow);
  color:#000;
}

/* ---------- Custom dot cursor (non-touch devices only) ---------- */
html.has-dot-cursor,
html.has-dot-cursor *{
  cursor:none !important;
}

#cursor-dot{
  position:fixed;
  top:0; left:0;
  width:10px;
  height:10px;
  margin:-5px 0 0 -5px;
  border-radius:50%;
  background:#fff;
  mix-blend-mode: difference;
  pointer-events:none;
  z-index:9999;
  opacity:0;
  transform:translate(-100px,-100px);
  transition: opacity .15s ease, width .15s ease, height .15s ease, margin .15s ease;
}

#cursor-dot.show{
  opacity:1;
}

#cursor-dot.cursor-hover{
  width:26px;
  height:26px;
  margin:-13px 0 0 -13px;
}

/* ---------- Top nav — used by project.html only now; the main app shell
   below replaces it on index.html / about.html ---------- */
#top-nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:50;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 30px 40px;
  mix-blend-mode: difference;
  font-family: var(--font-heading);
}

#top-nav a{
  color:#fff;
}

.nav-icons{
  display:flex;
  align-items:center;
  gap:12px;
}
.nav-icons a{
  display:flex;
  align-items:center;
  text-decoration:none;
  font-size: var(--size-label);
  letter-spacing:.04em;
}
.nav-icons svg{ display:block; }

.nav-pages{
  display:flex;
  gap:26px;
}
.nav-pages a{
  text-decoration:none;
  font-size: var(--size-label);
  letter-spacing:.06em;
  text-transform:uppercase;
}
.nav-pages a.current{
  text-decoration:underline;
}
.nav-pages a:hover,
.nav-icons a:hover{
  opacity:.7;
}

/* ---------- Hero: pinned in place while you scroll through it, then
   releases naturally into the app shell below — no scroll-jacking, this
   is just position:sticky doing the work. Single photo, no menu here. ---------- */
#hero-pin-wrap{
  position:relative;
  height:220vh;
}

#hero{
  position:sticky;
  top:0;
  width:100%;
  height:100vh;
  min-height:560px;
  overflow:hidden;
  background: var(--bg);
}

/* the strip is stretched tall; JS moves background-position-y directly in
   response to scroll, so the film only "flips" as you actually scroll */
.film-bg{
  position:absolute;
  inset:0;
  background-image: url('../images/film-strip.jpg');
  background-repeat:no-repeat;
  background-position: 50% 0%;
  background-size: 100% auto;
}

/* film grain: several distinct real noise photographs, flipped through
   one at a time — the only texture effect kept, since the source photo
   already carries its own real film character */
.film-grain{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
}

.grain-frame{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  mix-blend-mode: overlay;
  opacity:0;
  animation-name: grain-frame-cycle;
  animation-timing-function: steps(1);
  animation-iteration-count: infinite;
}

@keyframes grain-frame-cycle{
  0%{     opacity:.5; }
  12.4%{  opacity:.5; }
  12.5%{  opacity:0; }
  100%{   opacity:0; }
}

#hero-name{
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%, -50%);
  margin:0;
  display:block;
  color: var(--yellow);
  font-family: var(--font-heading);
  text-decoration:none;
  font-size:clamp(11px, 1.3vw, 15px);
  font-weight:400;
  letter-spacing:.04em;
  text-align:center;
  white-space:nowrap;
  opacity:0;
  z-index:2;
  transition: opacity .6s ease;
  /* a soft dark halo so the yellow still reads over the bright frames of the scan */
  text-shadow: 0 0 10px rgba(0,0,0,.7), 0 0 2px rgba(0,0,0,.6);
}
/* the name surfaces while the cursor moves (hero.js adds .show) and stays
   while you hover it */
#hero-name.show,
#hero-name:hover,
#hero-name:focus-visible{
  opacity:1;
}
#hero-name:hover,
#hero-name:focus-visible{
  text-decoration:none;
}

#scroll-cue{
  position:absolute;
  left:50%;
  bottom:36px;
  transform:translateX(-50%);
  color:#fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  z-index:2;
  transition: opacity .3s ease;
  font-family: var(--font-heading);
}
#scroll-cue span{
  font-size: var(--size-label);
  letter-spacing:.12em;
  text-transform:uppercase;
  animation: scroll-cue-pulse 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-pulse{
  0%, 100%{ opacity:1; }
  50%{ opacity:.4; }
}

@media (prefers-reduced-motion: reduce){
  .film-bg{ background-position: 50% 20%; }
  .grain-frame{ animation: none; opacity:0; }
  #scroll-cue span{ animation: none; }
}

/* ---------- App shell: fixed menu on the left, a scrollable pane on the
   right. Used on index.html (Notes / Selected Works) and about.html. ---------- */
#app{
  display:flex;
  height:100vh;
}

#app-menu{
  flex:0 0 var(--menu-w);
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding: 48px 32px;
  font-family: var(--font-heading);
  overflow-y:auto;
}

.menu-links{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.menu-link{
  display:block;
  background:none;
  border:none;
  padding:0;
  text-align:left;
  text-decoration:none;
  color: rgba(255,255,255,.6);
  font-size: var(--size-label);
  letter-spacing:.02em;
  cursor:pointer;
  transition: color .15s ease;
}

.menu-link.active{
  color: rgba(255,224,51,.6);   /* #FFE033 at 60% */
}
.menu-link:hover,
.menu-link:focus-visible{
  color: rgba(255,224,51,.6);
}

.menu-icons{
  display:flex;
  align-items:center;
  gap:16px;
}
.menu-icons a{
  display:flex;
  align-items:center;
  color: var(--text-soft);
  text-decoration:none;
  font-size: var(--size-label);
}
.menu-icons a:hover{ color: var(--yellow); }
.menu-icons svg{ display:block; }

#app-content{
  flex:1 1 auto;
  height:100%;
  overflow-y:auto;
  min-width:0;
}

.app-pane{
  display:none;
  height:100%;
  opacity:0;
}
.app-pane.active{
  display:block;
  animation: pane-in .18s ease forwards;
}
@keyframes pane-in{
  from{ opacity:0; }
  to{   opacity:1; }
}

/* ---------- Right-hand column for Notes and Selected Works, laid out
   exactly like the mockup: its left edge sits at 309/451 of the screen
   width and it is 100/451 wide; title in black, everything under it in
   soft grey, one text size, loose line spacing. ---------- */
.app-notes-list{
  list-style:none;
  margin:0 0 0 calc(100vw * 360 / 451 - var(--menu-w));
  padding: var(--content-top) 0 var(--content-top);
  width: calc(100vw * 100 / 451);
  position:relative;
  z-index:2;            /* text stays above the centered photo, as in the mockup */
}
.app-notes-list li{
  padding: 0 0 var(--entry-gap);
  cursor:default;
  font-size: var(--size-body);   /* keeps the line height of run-in notes even */
  line-height: var(--lh-list);
}
.app-notes-list li:last-child{
  padding-bottom:0;
}
/* A note reads as one running sentence: the code (A001) is black, the note
   follows on the same line in the soft grey, both in the same size */
.app-notes-list .notes-date{
  display:inline;
  font-family: var(--font-heading);
  font-size: var(--size-body);
  line-height: var(--lh-list);
  letter-spacing:0;
  color: var(--fg);
  margin:0;
  transition: color .15s ease;
}
.app-notes-list li:hover .notes-date{
  color: var(--yellow);
}
.app-notes-list .notes-text{
  display:none;
}

/* the photo shown on hover: centered horizontally, a little above the
   middle (as in the mockup), at the photo's own proportions, BEHIND the text.
   The stacked-frame logic lives in the new .notes-popup-frame rules above. */

/* ---------- Selected Works pane: the same right-hand column as Notes —
   title, year, type, description. Hovering an entry shows its photo in the
   middle of the screen (the shared #notes-popup). ---------- */
/* Selected Works entries are short (title, year, type), so they get more
   air between them than the Notes entries */
#works-list li{
  padding-bottom: calc(100vw * 11 / 451);
}
#works-list li:last-child{
  padding-bottom:0;
}

.work-heading{
  margin:0 0 calc(100vw * 0.3 / 451);
  font-size: var(--size-title);
  font-weight:400;
  line-height: var(--lh-title);
}

.work-heading a{
  color: var(--fg);
  text-decoration:none;
  font-family: var(--font-heading);
  font-size: var(--size-title);
  font-weight:400;
  letter-spacing:0;
  line-height: var(--lh-title);
}

.work-heading a:hover,
.work-heading a:focus-visible{
  color: var(--yellow);
}
/* hovering anywhere on a works entry lights up its title */
#works-list li:hover .work-heading a{
  color: var(--yellow);
}

/* year and type: two small soft lines under the title — no description */
.work-meta{
  display:block;
  margin:0;
  font-size: var(--size-meta);
  line-height: 1.5;
  color: var(--text-soft);
}
.work-year,
.work-medium{
  display:inline;
  font-family: var(--font-heading);
  font-size: inherit;
  letter-spacing:0;
  text-transform:none;
  color: inherit;
}
.work-year + .work-medium::before{
  content: ', ';
}

/* ---------- About page (uses the same #app shell, single pane) ---------- */
.page-content{
  max-width:560px;
  padding: var(--content-top) 48px 48px 140px;
}

.about-columns{
  max-width:1100px;
  display:grid;
  grid-template-columns: 2.2fr 1fr 0.8fr;
  gap:80px;
}

/* all running text on About is one size (--about-size, 14px) — the bio, the
   exhibitions / education and the contact lines — and the name matches it */
.about-col-bio .page-title{
  font-size: var(--about-size);
  margin-bottom: calc(100vw * 2 / 451);
}
.about-col-bio .about-text{
  font-size: var(--about-size);
  margin-bottom: calc(var(--about-size) * var(--lh-list));
}
.about-col-bio .about-text:last-child{
  margin-bottom:0;
}
.about-col-exhibitions .fact-text,
.about-col-contact .about-text{
  font-size: var(--about-size);
}

.about-col-exhibitions .section-heading:first-child,
.about-col-contact .section-heading:first-child{
  margin-top:0;
}

.about-col-contact .about-text{
  margin-bottom: calc(var(--size-body) * var(--lh-list) * 0.6);
}

/* About is dressed like the other pages: the name is the only black text,
   everything else is the soft grey */
.page-title{
  margin:0 0 calc(100vw * 2 / 451);
  font-family: var(--font-heading);
  font-size: var(--size-title);
  font-weight:400;
  letter-spacing:0;
  line-height: var(--lh-title);
  color: var(--fg);
}

.about-text{
  font-size: var(--size-body);
  font-weight:400;
  font-style:normal;
  line-height: var(--lh-list);
  color: var(--text-soft);
  margin:0 0 calc(var(--size-body) * var(--lh-list));   /* one blank line between paragraphs */
}

.text-link{
  color: var(--text-soft);
  text-decoration:underline;
  text-underline-offset:2px;
}
.text-link:hover{ color: var(--yellow); }

.section-heading{
  margin: calc(var(--entry-gap) * 2) 0 calc(100vw * 3 / 451);
  font-family: var(--font-heading);
  font-size: var(--size-meta);
  font-weight:400;
  line-height:1.5;
  letter-spacing:0;
  text-transform:none;
  color: var(--fg);
}

.fact-list{
  list-style:none;
  margin:0;
  padding:0;
}
.fact-list li{
  margin-bottom: var(--entry-gap);
}
.fact-date{
  display:block;
  font-family: var(--font-heading);
  font-size: var(--size-meta);
  line-height:1.5;
  color: var(--text-soft);
  margin-bottom: calc(100vw * 1 / 451);
}
.fact-text{
  display:block;
  font-size: var(--size-body);
  font-weight:400;
  font-style:normal;
  line-height: var(--lh-list);
  color: var(--text-soft);
}

/* ---------- Menu hover image (main.html only) ---------- */
#menu-hover-img{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  pointer-events:none;
  z-index:10;
  opacity:0;
  transition: opacity .25s ease;
}
#menu-hover-img.show{
  opacity:1;
}
#menu-hover-img img{
  display:block;
  width:auto;
  height:auto;
  max-width:64vw;
  max-height:76vh;
  object-fit:contain;
}

/* ---------- Notes popup: images stack on top of each other ---------- */
#notes-popup,
#works-popup{
  position:fixed;
  top:50%;
  left:50vw;
  transform:translate(-50%, -50%);
  width:max-content;
  max-width:44vw;   /* narrower container */
  pointer-events:none;
  z-index:1;
  opacity:0;
  transition: opacity .2s ease;
  display:flex;
  flex-direction:column;
  align-items:center;  /* image always centred */
}
#notes-popup img,
#works-popup img{
  display:block;
  width:auto;
  height:auto;
  max-width:44vw;
  max-height:62vh;
  vertical-align:bottom;
}
#notes-popup.show,
#works-popup.show{
  opacity:1;
}

/* Caption under note image (or standalone text when no image) */
.notes-popup-caption{
  display:none;
  margin:10px 0 0;
  font-family: var(--font);
  font-size: calc(var(--size-body) * 0.85);
  font-style:italic;
  font-weight:400;
  line-height:1.45;
  color: var(--text-soft);
  max-width:36vw;   /* narrower than image */
  text-align:left;
}

/* ---------- Lightbox (still used by project.html) ---------- */
#lightbox{
  position:fixed;
  inset:0;
  z-index:200;
  background: rgba(21,21,21,.96);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
  opacity:0;
  visibility:hidden;
  transition: opacity .25s ease;
}

#lightbox.show{
  opacity:1;
  visibility:visible;
}

#lightbox img,
#lightbox video{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

#lightbox video{
  display:none;
}

#lightbox-close{
  position:fixed;
  top:24px; right:28px;
  background:none;
  border:none;
  color:#fff;
  font-size:32px;
  line-height:1;
  cursor:pointer;
  padding:8px;
}

/* ---------- Individual project page ----------
   Laid out after Project_page.pdf (a 1728-wide frame; every position below is
   that frame's number / 1728, so it scales with the screen). The photo
   column in the middle is the only thing that scrolls; the text column on
   the right is pinned. Type sizes and spacing are the site's own. ---------- */
.project-gallery{
  margin-left: max(24px, calc(100vw * 345 / 1728 - var(--menu-w)));
  width: calc(100vw * 848 / 1728);
  padding: calc(100vw * 118 / 1728) 0 calc(100vw * 118 / 1728);
  display:flex;
  flex-direction:column;
  gap: calc(100vw * 26.8 / 1728);
}

.gallery-item{
  display:block;
  width:100%;
  padding:0;
  border:none;
  background:transparent;
  cursor:pointer;
}
.gallery-item img,
.gallery-item video{
  display:block;
  width:100%;
  height:auto;          /* each photo keeps its own proportions */
}
.gallery-video{
  background: var(--bg);
  cursor:auto;
}

.project-info{
  position:fixed;
  top: var(--content-top);
  left: calc(100vw * 1239 / 1728);
  width: calc(100vw * 340 / 1728);
  max-height: calc(100vh - var(--content-top) - 24px);
  overflow-y:auto;
  scrollbar-width:none;
  z-index:2;
}
.project-info::-webkit-scrollbar{ display:none; }

.project-title{
  margin:0 0 calc(100vw * 2 / 451);
  font-family: var(--font-heading);
  font-size: var(--size-title);
  font-weight:400;
  line-height: var(--lh-title);
  color: var(--fg);
}

.project-meta{
  margin:0 0 calc(100vw * 3 / 451);
  font-family: var(--font-heading);
  font-size: var(--size-meta);
  line-height:1.5;
  color: var(--text-soft);
}
.project-year + .project-medium::before{
  content:", ";
}
.project-medium:empty{ display:none; }

.project-text p{
  margin:0 0 calc(var(--size-body) * var(--lh-list));
  font-size: var(--size-body);
  font-weight:400;
  font-style:normal;
  line-height: var(--lh-list);
  color: var(--text-soft);
}
.project-text p:last-child{ margin-bottom:0; }

/* ---------- Fullscreen photo viewer (Archive) ---------- */
#viewer{
  position:relative;
  width:100vw;
  height:100vh;
  overflow:hidden;
  background: var(--bg);
}

.viewer-slide{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transition: opacity .35s ease;
}
.viewer-slide.active{
  opacity:1;
  visibility:visible;
}
.viewer-slide img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

.viewer-nav{
  position:fixed;
  top:0;
  bottom:0;
  width:50%;
  background:none;
  border:none;
  cursor:pointer;
  z-index:5;
}
.viewer-nav.prev{ left:0; }
.viewer-nav.next{ right:0; }

.viewer-counter{
  position:fixed;
  bottom:28px;
  left:50%;
  transform:translateX(-50%);
  color:#fff;
  font-family: var(--font-heading);
  font-size: var(--size-label);
  letter-spacing:.06em;
  z-index:6;
  pointer-events:none;
}

/* a hairline cross: two 1px strokes, nothing else */
.viewer-close{
  position:fixed;
  top:20px; right:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  color:#fff;
  text-decoration:none;
  filter: drop-shadow(0 0 3px rgba(0,0,0,.45));
  z-index:6;
}
.viewer-close svg{ display:block; }
.viewer-close:hover,
.viewer-close:focus-visible{ color: var(--yellow); }

/* narrow desktop windows: pull the photo column in so it stays clear of the text */
@media (max-width: 1100px) and (min-width: 901px){
  .project-gallery{
    margin-left:24px;
    width: calc(100vw * 0.44);
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px){

  /* ============================================================
     APP SHELL — left sidebar menu like PC, but narrower
     ============================================================ */
  :root{
    --menu-w: 120px;   /* narrower than PC's 220px but same structure */
  }

  #app{
    display: flex;
    flex-direction: row;       /* side by side: menu | content */
    height: 100svh;
    overflow: hidden;
  }

  #app-menu{
    flex: 0 0 var(--menu-w) !important;
    height: 100% !important;
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    padding: 24px 16px !important;
    border: none;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .menu-links{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 14px;
    width: 100%;
    overflow: visible;
  }

  .menu-link{
    display: block;
    font-size: 11px;
    letter-spacing: .04em;
    line-height: 1.3;
    padding: 0;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .menu-icons{ display: none; }

  #app-content{
    flex: 1;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .app-pane{
    height: auto !important;
    display: none;
    min-height: 100%;
  }
  .app-pane.active{ display: block; }

  /* Popups off on touch */
  #notes-popup,
  #works-popup,
  #menu-hover-img{ display: none !important; }

  /* Notes pane hidden on mobile */
  #pane-notes{ display: none !important; }
  /* If someone lands on #notes hash — redirect to works */

  /* ============================================================
     Hero (index.html) — film scrolls via page scroll
     hero is position:fixed, pinwrap is tall
     ============================================================ */
  #hero-pin-wrap{ height: 350dvh; }
  #hero{
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100dvh !important;
    min-height: 0;
    z-index: 0;
  }
  .film-bg{
    background-size: 220% auto;
    background-position: center 0%;
  }
  #hero-name{
    font-size: clamp(11px, 3.5vw, 15px);
    white-space: nowrap;
    opacity: 1 !important;
    z-index: 2;
  }
  #scroll-cue{ bottom: 24px; z-index: 2; }

  /* ============================================================
     Shared mobile typography
     ============================================================ */
  :root{
    --mob-size:  13px;
    --mob-lh:    1.7;
    --mob-meta:  11px;
    --mob-title: 14px;
  }

  /* ============================================================
     NOTES pane — full width of content column
     ============================================================ */
  .app-notes-list{
    margin: 0 !important;
    width: auto !important;
    padding: 24px 16px 60px;
  }
  .app-notes-list li{
    padding: 0 0 12px;
    font-size: var(--mob-size);
    line-height: var(--mob-lh);
  }
  .app-notes-list li:last-child{ padding-bottom: 0; }
  .app-notes-list .notes-date{ font-size: var(--mob-size); }

  /* Inline notes photos on mobile */
  .notes-inline-img{
    display: block;
    width: 100%;
    height: auto;
    margin-top: 10px;
    vertical-align: bottom;
    line-height: 0;
    background: var(--bg);
  }
  /* dark background on list items so no flash between photos */
  .app-notes-list li{
    background: var(--bg);
  }
  .notes-inline-text{
    font-size: var(--mob-size);
    line-height: var(--mob-lh);
    margin-top: 8px;
    color: var(--text-soft);
  }

  /* ============================================================
     SELECTED WORKS pane
     ============================================================ */
  #works-list{
    list-style: none;
    margin: 0 !important;
    width: auto !important;
    padding: 24px 16px 60px;
  }
  #works-list li{ padding: 0 0 24px; }
  #works-list li:last-child{ padding-bottom: 0; }
  .work-heading{ margin-bottom: 2px; }
  .work-heading a{ font-size: var(--mob-title); line-height: 1.4; }
  .work-meta{ font-size: var(--mob-meta); line-height: 1.4; margin-top: 2px; }

  /* ============================================================
     ABOUT page
     ============================================================ */
  .page-content{ padding: 24px 16px 60px !important; }
  .about-columns{ grid-template-columns: 1fr !important; gap: 32px; }
  .page-title{ font-size: var(--mob-title); margin-bottom: 14px; line-height: 1.4; }
  .about-text{ font-size: var(--mob-size); line-height: var(--mob-lh); }
  .section-heading{ font-size: var(--mob-meta); margin-top: 0; margin-bottom: 8px; }
  .fact-list{ padding: 0; }
  .fact-date{ font-size: var(--mob-meta); line-height: var(--mob-lh); margin-bottom: 2px; }
  .fact-text{ font-size: var(--mob-size); line-height: var(--mob-lh); }
  .fact-list li{ margin-bottom: 12px; }
  .text-link{ font-size: var(--mob-size); }

  /* ============================================================
     PROJECT page — top nav + content scrolls in its column
     ============================================================ */
  #top-nav{
    position: static;
    background: var(--bg);
    padding: 16px 16px 8px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .nav-pages{ gap: 10px; flex-wrap: wrap; }
  .nav-pages a{ font-size: 11px; }

  #app-content .app-pane.active{
    display: flex;
    flex-direction: column;
  }
  .project-info{
    position: static !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 16px 16px 12px;
    order: 1;
  }
  .project-title{ font-size: var(--mob-title); margin-bottom: 4px; line-height: 1.4; }
  .project-meta{ font-size: var(--mob-meta); margin-bottom: 14px; }
  .project-text p{ font-size: var(--mob-size); line-height: var(--mob-lh); }
  .project-gallery{
    order: 2;
    margin: 0 !important;
    width: auto !important;
    padding: 4px 12px 60px;
    gap: 8px;
  }

  /* ============================================================
     ARCHIVE viewer
     ============================================================ */
  .viewer-counter{ bottom: 14px; font-size: 11px; }
  .viewer-close{ top: 14px; right: 14px; }
}

/* ---------- Publication page slider (id344246173) ---------- */
.pub-slider-wrap{
  cursor: default;
  padding: 0;
  border: none;
  background: none;
}
.pub-slider{
  position: relative;
  width: 100%;
  user-select: none;
}
.pub-track{
  position: relative;
  width: 100%;
  overflow: hidden;
}
.pub-slide{
  display: none;
  width: 100%;
}
.pub-slide.active{
  display: block;
}
.pub-slide.preloaded{
  /* hidden but loaded — keeps image in memory for instant switch */
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  display: block;
  opacity: 0;
  pointer-events: none;
}
.pub-slide img{
  display: block;
  width: 100%;
  height: auto;
}
.pub-btn{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}
.pub-prev{ left: 0; }
.pub-next{ right: 0; }
.pub-counter{
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: var(--size-label);
  color: var(--text-soft);
  letter-spacing: .06em;
  text-align: center;
}
