:root{
    --bg:#F2F2F0;
    --fg:#111111;
    --muted:#55554F;
    --line:#CFCFCA;
    --ph:#DCDCD8;
    --accent:#2747FF;
    --font:'Schibsted Grotesk', 'Helvetica Neue', Helvetica, sans-serif;
    --ease:cubic-bezier(.2,.8,.2,1);
    color-scheme: light;
  }
  *{box-sizing:border-box}
  html{scroll-behavior:smooth}
  body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
  body.locked{overflow:hidden}
  a{color:inherit;text-decoration:none}
  a:hover{color:var(--accent)}
  img{max-width:100%;display:block}
  button{font:inherit;color:inherit}
  :focus-visible{outline:2px solid var(--accent);outline-offset:4px}

  /* Page transition: fade in on arrival, fade out on the way to the other page.
     This runs on the bar and main, never on body: a transform on body would make
     it the containing block for the popup, which is position:fixed, and the popup
     would open off-screen behind the scrim. */
  .bar,main{animation:pagein .45s var(--ease) both}
  body.leaving .bar,body.leaving main{animation:pageout .28s var(--ease) both}
  @keyframes pagein{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
  @keyframes pageout{from{opacity:1}to{opacity:0}}

  .wrap{max-width:1400px;margin:0 auto;padding-left:max(24px, env(safe-area-inset-left));padding-right:max(24px, env(safe-area-inset-right))}

  /* Top bar */
  .bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 24px;padding-block:28px;font-size:15px}
  .bar .name{font-weight:700}
  .bar .muted{color:var(--muted)}
  .bar nav{display:flex;gap:24px;justify-content:flex-end;align-items:center}
  .bar nav a{color:var(--fg);transition:color .2s var(--ease)}
  .bar nav a:hover{color:var(--muted)}
  .bar nav a[aria-current="page"]{font-weight:700}

  /* Language toggle */
  .lang{display:inline-flex;gap:2px;align-items:center;border:1px solid var(--line);border-radius:999px;padding:2px}
  .lang a{padding:4px 10px;border-radius:999px;font-size:13px;font-weight:500;color:var(--muted);line-height:1.4;transition:background .2s,color .2s}
  .lang a:hover{color:var(--fg)}
  .lang a[aria-current="true"]{background:var(--fg);color:var(--bg)}

  /* Hero */
  .hero{padding-block:72px 64px;display:flex;flex-direction:column;gap:32px}
  /* each line is its own non-wrapping block, so the headline is always exactly
     two lines in both languages; the vw-based size keeps the longer French
     line inside the viewport at every width */
  .hero h1{margin:0;font-size:clamp(20px,6.1vw,90px);line-height:1.02;font-weight:700;letter-spacing:-.045em}
  .hero h1 span{display:block;white-space:nowrap}
  .hero .intro{margin:0;max-width:none;color:var(--muted);font-size:clamp(16px,1.35vw,20px);line-height:1.6}

  /* Work grid */
  .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:72px 24px;padding-bottom:140px}
  .card{all:unset;cursor:pointer;display:flex;flex-direction:column;gap:16px}
  .card:focus-visible{outline:2px solid var(--accent);outline-offset:6px}
  .thumb{position:relative;aspect-ratio:5/4;background:var(--ph);overflow:hidden}
  .thumb img,.thumb video{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
  .thumb img.contain{object-fit:contain;background:var(--bg)}
  .card:hover .thumb img,.card:hover .thumb video{transform:scale(1.03)}
  .ph{position:absolute;inset:0;display:flex;align-items:flex-end;padding:20px;font-size:13px;color:var(--muted);background:var(--ph)}
  .cap{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:baseline}
  .cap .no{color:var(--accent);font-size:14px;font-weight:500}
  .cap .t{font-size:22px;font-weight:700;letter-spacing:-.02em}
  .cap .y{color:var(--muted);font-size:14px}
  .kind{padding-left:52px;margin-top:-10px;color:var(--muted);font-size:15px}

  /* About */
  .about{display:flex;flex-wrap:wrap;gap:24px;padding-bottom:140px}
  .label{margin:0;font-size:15px;font-weight:700;flex:1 1 200px}
  .about-body{flex:3 1 560px;min-width:0;max-width:900px;display:flex;flex-direction:column;gap:20px}
  .lead{margin:0;font-size:28px;line-height:1.3;letter-spacing:-.02em;font-weight:500;text-wrap:balance}
  .sub{margin:0;color:var(--muted);max-width:65ch}
  .xp{margin-top:16px}
  .xp div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:16px;padding-block:14px;border-top:1px solid var(--line);font-size:15px}
  .xp b{font-weight:700}
  .xp span{color:var(--muted)}

  /* Contact */
  .contact{padding-bottom:72px;display:flex;flex-direction:column;gap:28px}
  .contact .mail{font-size:clamp(30px,6vw,88px);font-weight:700;letter-spacing:-.045em;line-height:1;overflow-wrap:anywhere}
  .foot{display:flex;gap:24px;flex-wrap:wrap;font-size:15px;padding-top:28px;border-top:1px solid var(--line)}
  .foot .c{margin-left:auto;color:var(--muted)}

  /* Popup */
  .scrim{position:fixed;inset:0;z-index:50;background:rgba(17,17,17,.55);opacity:0;visibility:hidden;transition:opacity .25s var(--ease),visibility 0s linear .25s}
  .scrim.open{opacity:1;visibility:visible;transition:opacity .25s var(--ease),visibility 0s}
  .modal{position:fixed;z-index:51;left:2.5vw;top:2.5vh;width:95vw;height:95vh;background:var(--bg);overflow:hidden;display:flex;flex-direction:column;
    opacity:0;visibility:hidden;transform:translateY(32px) scale(.98);
    transition:opacity .25s var(--ease),transform .4s var(--ease),visibility 0s linear .4s}
  .modal.open{opacity:1;visibility:visible;transform:none;transition:opacity .25s var(--ease),transform .4s var(--ease),visibility 0s}
  .m-head{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:20px clamp(20px,3vw,40px);border-bottom:1px solid var(--line);flex:none}
  .m-head .meta{color:var(--accent);font-size:14px;font-weight:500}
  .m-head .ctrls{display:flex;gap:8px}
  .icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:1px solid var(--fg);border-radius:50%;background:none;cursor:pointer;transition:background .2s,color .2s}
  .icon:hover{background:var(--fg);color:var(--bg)}
  .m-body{overflow-y:auto;flex:1;padding:clamp(24px,4vw,56px) clamp(20px,3vw,40px) 64px;overscroll-behavior:contain}
  .m-body.swap{animation:swap .45s var(--ease)}
  @keyframes swap{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
  /* Title on the left, the four facts on one line beside it; the description
     then runs the full width of the popup underneath. */
  .m-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 32px;
    padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:28px}
  .m-top h2{flex:0 1 auto;margin:0;font-size:clamp(28px,3.4vw,46px);line-height:1;font-weight:700;letter-spacing:-.045em}
  /* two columns, so the four facts always read as two tidy lines next to the title */
  .m-facts{flex:0 1 auto;margin:0;display:grid;grid-template-columns:auto auto;gap:6px 24px;
    justify-content:start;font-size:13px}
  .m-facts div{display:flex;gap:8px;align-items:baseline;min-width:0}
  .m-facts dt{color:var(--muted);white-space:nowrap}
  .m-facts dd{margin:0}
  .m-text{display:flex;flex-direction:column;gap:16px;margin-bottom:48px}
  .m-text .summary{margin:0;font-size:22px;line-height:1.35;font-weight:500;letter-spacing:-.01em}
  .m-text .aboutp{margin:0;color:var(--muted)}
  .m-text ul{margin:8px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:6px}
  /* Four tracks underneath: a normal shot takes two of them (half width), `wide`
     takes all four, and `quad` takes one, so four pieces sit on a single row. */
  .gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:start}
  .shot{grid-column:span 2;position:relative;background:var(--ph)}   /* the placeholder carries its own 4:3 box, so no min-height is needed */
  .shot.wide{grid-column:1/-1}
  .shot.quad{grid-column:span 1}
  /* portrait pieces: capped so a 9:16 film sits beside a square still instead of towering over it */
  .shot.tall{background:none;display:flex;justify-content:center;align-items:center;align-self:stretch}
  .shot.tall img,.shot.tall video{max-height:560px;width:auto;max-width:100%}
  /* `small` holds a logo or a square down to the height of the landscape shots beside it */
  .shot.small{background:none;display:flex;justify-content:center;align-items:center;align-self:stretch}
  .shot.small img,.shot.small video{max-height:330px;width:auto;max-width:100%}
  .shot img,.shot video{width:100%;height:auto;display:block}
  .shot .ph{position:relative;aspect-ratio:4/3;inset:auto}
  .m-nav{display:flex;justify-content:space-between;gap:16px;margin-top:40px;padding-top:20px;border-top:1px solid var(--line);font-size:15px}
  .m-nav button{background:none;border:0;cursor:pointer;padding:10px 0}
  .m-nav button:hover{color:var(--accent)}
  .m-nav .next{font-weight:700}

  @media (max-width:900px){
    .bar{grid-template-columns:1fr auto}
    .grid{grid-template-columns:1fr;gap:56px}
    .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  }
  @media (max-width:560px){
    .m-facts{grid-template-columns:auto}
    .bar{grid-template-columns:1fr}
    .bar nav{justify-content:flex-start;flex-wrap:wrap}
    .xp div{grid-template-columns:1fr auto}
    .xp div span:nth-child(2){display:none}
    .lead{font-size:23px}
  }
  @media (prefers-reduced-motion:reduce){
    *,*::before,*::after{transition:none!important;animation:none!important}
    html{scroll-behavior:auto}
  }
