/* Jost, served from this site (no Google Fonts request). Files in src/fonts/, licence OFL.txt.
   The latin-ext files are only downloaded if a page uses one of their characters. */
@font-face{font-family:"Jost";font-style:normal;font-weight:300;font-display:swap;src:url(fonts/jost-latin-300-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:"Jost";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/jost-latin-400-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:"Jost";font-style:normal;font-weight:300;font-display:swap;src:url(fonts/jost-latin-ext-300-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:"Jost";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/jost-latin-ext-400-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}


/* Smooth page changes between real pages (browsers that support it; others just load the page).
   The header is its own layer so it stays perfectly still while the content cross-fades. */
@view-transition{navigation:auto}
header{view-transition-name:site-header}
@media (prefers-reduced-motion:reduce){@view-transition{navigation:none}}

:root{ --bg:#FFFFFF; --ink:#141414; --soft:#8A8A8A; --line:#E6E6E6; --head:84px; }
  *{box-sizing:border-box;margin:0;padding:0}
  html{scrollbar-gutter:stable}   /* same page width with or without a scrollbar, so the header never shifts */
  body{background:var(--bg);color:var(--ink);font:300 17px/1.65 "Jost",system-ui,sans-serif;-webkit-font-smoothing:antialiased}
  a{color:inherit;text-decoration:none}
  button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
  :focus-visible{outline:1px solid var(--ink);outline-offset:4px}
  @media (prefers-reduced-motion:reduce){*{transition:none!important}}

  /* ---------- header ---------- */
  header{position:fixed;inset:0 0 auto 0;height:var(--head);z-index:30;background:var(--bg);
    display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 clamp(18px,4vw,34px)}
  .menu{display:flex;gap:clamp(22px,5vw,54px);align-items:center}
  .menu > div{position:relative}
  .menu .top{font-size:21px;letter-spacing:.01em;text-transform:uppercase;color:var(--soft);padding:6px 0}
  .menu .top:hover,.menu .top[aria-expanded="true"]{color:var(--ink)}
  .drop{position:absolute;top:calc(100% + (var(--head) - 34px)/2);left:-24px;min-width:240px;padding:6px 24px 10px;
    background:var(--bg);display:none}
  .drop::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:calc((var(--head) - 34px)/2 + 4px)}
  .drop.open{display:block}
  .drop a{display:block;font-size:21px;letter-spacing:.01em;text-transform:uppercase;color:var(--soft);padding:12px 0;white-space:nowrap}
  .drop a:hover,.drop a:focus-visible,.drop a[aria-current="page"]{color:var(--ink)}
  @media (hover:hover){ .menu > div:hover .drop{display:block} .menu > div:hover .top{color:var(--ink)} }
  .name{font-size:21px;font-weight:300;letter-spacing:.01em;text-transform:uppercase;text-align:center;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);white-space:nowrap}
  .right{grid-column:3;justify-self:end;   /* stays in the right column (SPHEO is centred on its own) */display:flex;align-items:center;gap:clamp(18px,3vw,32px)}
  .ig{display:inline-flex;color:var(--ink);opacity:.8}
  .ig:hover{opacity:1}
  .ig svg{width:24px;height:24px}
  .back{font-size:clamp(15px,1.5vw,21px);text-transform:uppercase;color:var(--soft);display:none}
  .back:hover{color:var(--ink)}
  body.sub .menu{display:none}
  body.sub .crumb,body.sub .back{display:inline-block}
  .crumbs{display:flex;gap:clamp(14px,2.2vw,36px)}
  .crumb{display:none;font-size:clamp(15px,1.5vw,21px);text-transform:uppercase;color:var(--soft)}
  .crumb:hover,.crumb.here{color:var(--ink)}

  main{padding-top:var(--head)}

  /* ---------- home slideshow ---------- */
  .show{position:relative;height:calc(100svh - var(--head));overflow:hidden;background:#f2f2f2}
  .show img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.2s ease}
  .show img.on{opacity:1}
  .dots{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);display:flex;gap:14px;z-index:2}
  .dots button{width:16px;height:16px;border-radius:50%;background:rgba(255,255,255,.45)}
  .dots button[aria-current="true"]{background:rgba(255,255,255,.95)}
  .show .go{position:absolute;inset:0;z-index:1}   /* swipe surface only — clicking a slide does nothing */


  /* ---------- works listing: Spheo's grid, designed on a 3840 px wide screen:
     3 cells of 1000 × 700 px, 2 gaps of 75 px → 3150 px wide, centred.
     Units are fractions of 3840 so the grid is exactly that size on a 3840 screen and keeps its proportions on others.
     --u here is the fallback (fraction of the window); site.js replaces it with a fraction of the SCREEN, so the cells
     stay 1000/75 real px on Spheo's screen even in a narrower window or frame (the claude.ai preview). ---------- */
  .works{--u:calc(100vw / 3840);
    display:grid;grid-template-columns:repeat(3,calc(var(--u) * 1000));gap:calc(var(--u) * 75);
    width:calc(var(--u) * 3150);margin:0 auto;padding:0 0 120px;justify-content:center}   /* top edge = home slideshow top (right under the header) */
  .works a{display:block;position:relative;aspect-ratio:1000/700;width:100%;overflow:hidden;background:#f2f2f2}
  .works img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity .25s}
  .works a:hover img{opacity:.85}
  .vh,.works .t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}   /* no visible captions in the grid */
  /* Studio works (Spheo's layout): tall cells 1000 × 1400, wide cells 2075 × 1400 spanning two columns, same 75 gaps */
  .works.studio a{aspect-ratio:1000/1400}
  .works.studio a.wide{grid-column:span 2;aspect-ratio:2075/1400}
  @media (max-width:900px){.works{width:90vw;gap:3vw;grid-template-columns:repeat(2,1fr)}}
  @media (max-width:560px){.works{width:calc(100vw - 36px);grid-template-columns:1fr;gap:18px}}
  @media (max-width:560px){.works.studio a.wide{grid-column:auto}}

  /* ---------- single work: one fixed column (65% of the screen), images fill its width ---------- */
  .detail{width:65vw;margin:0 auto;padding:0 0 clamp(80px,7vw,140px)}
  /* Studio works project pages (Spheo's mockup): column 1854 px on his 3840 screen (= 1854 × 1600 images, fully visible under
     the header). --sw = screen width, set by site.js, so the preview frame or a narrower window does not shrink it; never
     wider than the window. */
  .detail.studio{width:min(calc(var(--sw,100vw) * .482813), calc(100vw - 68px))}
  .detail picture{display:block}
  .meta.lines{display:block;line-height:1.6}   /* Studio works caption: Spheo's plain lines, no field names */
  .detail img{display:block;width:100%;height:auto}
  .detail .frame + .frame{margin-top:6.9vw}
  .meta{display:grid;grid-template-columns:auto 1fr;gap:6px 28px;margin:6.9vw 0 0;font-size:clamp(13px,.9vw,16px);text-align:left}
  @media (max-width:760px){
    .detail,.detail.studio{width:auto;margin:0 18px}
    .detail .frame + .frame{margin-top:32px}
    .meta{margin-top:32px}
  }
  .meta dt{text-transform:uppercase;letter-spacing:.04em;color:var(--soft);font-size:13px;padding-top:2px}
  .meta dd{color:var(--ink)}

  /* ---------- text pages ---------- */
  .text{max-width:640px;margin:0 auto;padding:0 24px 110px}
  .text h1{font-size:15px;font-weight:400;letter-spacing:.04em;text-transform:uppercase;color:var(--soft);margin-bottom:34px}
  .text p{margin-bottom:1.1em}
  .text .portrait{width:100%;max-width:340px;aspect-ratio:4/5;object-fit:cover;object-position:46% 50%;display:block;margin-bottom:40px;background:#f2f2f2}
  /* ---------- Bio: Spheo's second concept — one centred column (his mockup, 2000 px wide screenshot of a 2560 px
     browser: column centred on the page from x 432 = 56vw wide, first text line at y 234, lines 30.4 px apart = 1.52vw).
     Jost is narrower than the mockup's font, so it is set at 1.12vw on 1.52vw lines: the line breaks match his mockup.
     Spacing in --ln (one text line): blank line between paragraphs, 4 empty lines before each section. ---------- */
  .bio,.imprint{--ln:1.36em;width:56vw;margin:0 auto;padding:7.6vw 0 110px;font-size:max(15px,1.12vw);line-height:var(--ln)}
  .bio p,.imprint p{margin-bottom:var(--ln)}
  .imprint a:hover{border-bottom:1px solid var(--ink)}
  .bio section{margin-top:calc(var(--ln) * 4)}
  .bio h2{font-size:1em;font-weight:300;text-transform:uppercase;letter-spacing:.02em;margin-bottom:var(--ln)}
  .bio .years{list-style:none}
  .bio .years li{display:grid;grid-template-columns:3.35em 1fr}
  @media (max-width:900px){
    .bio,.imprint{--ln:1.55em;width:auto;margin:0 18px;padding-top:40px;font-size:15px}
    .bio section{margin-top:calc(var(--ln) * 2.5)}
  }

  footer{text-align:center;font-size:13px;color:var(--soft);padding:0 0 40px}

  @media (max-width:560px){ .crumbs{flex-direction:column;gap:2px} body.sub .crumb{font-size:13px;line-height:1.3} }   /* phones: the two page links stack so they never touch SPHEO */
  @media (max-width:640px){
    :root{--head:68px}
    .menu .top{font-size:16px}
    .menu{gap:18px}
    .name{font-size:16px}
    .drop{min-width:190px;left:-18px;padding:4px 18px 8px}
    .drop a{font-size:17px;padding:10px 0}
  }
