/* ==========================================================
   Jim Bettonvil – portfolio
   Ontwerp-schaal: 1920px breed = 120rem (1rem = 16px op 1920).
   Waarden met paragraafteken-paren zijn ontwerp-pixels uit Figma, omgerekend naar rem.
   ========================================================== */

@font-face{font-family:"Inter";font-weight:400;font-style:normal;font-display:swap;src:url(/fonts/inter-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Inter";font-weight:500;font-style:normal;font-display:swap;src:url(/fonts/inter-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Inter";font-weight:600;font-style:normal;font-display:swap;src:url(/fonts/inter-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Inter";font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/inter-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Open Sauce One";font-weight:400;font-style:normal;font-display:swap;src:url(/fonts/open-sauce-one-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Open Sauce One";font-weight:600;font-style:normal;font-display:swap;src:url(/fonts/open-sauce-one-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Stack Sans Text";font-weight:400;font-style:normal;font-display:swap;src:url(/fonts/stack-sans-text-latin-400-normal.woff2) format("woff2")}

:root{
  --sauce:"Open Sauce One","Inter",system-ui,sans-serif;
  --inter:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --stack:"Stack Sans Text","Inter",system-ui,sans-serif;
  --grey:#7a7a7a;
  --ease:cubic-bezier(.7,0,.2,1);
}

*,*::before,*::after{box-sizing:border-box}
html{font-size:calc(100vw / 120);-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:#fff;color:#000;font-family:var(--inter);-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,video{display:block;max-width:none}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-align:left}
p{margin:0}
ul{list-style:none;margin:0;padding:0}

/* ---------- absolute plaatsing in ontwerp-pixels ---------- */
.page{position:relative;width:100%;height:calc(var(--H) / 16 * 1rem);overflow:hidden}
.abs{position:absolute;left:calc(var(--l) / 16 * 1rem);top:calc(var(--t) / 16 * 1rem);width:calc(var(--w) / 16 * 1rem);height:calc(var(--h) / 16 * 1rem)}
.cover{width:100%;height:100%;object-fit:cover}
.img{overflow:hidden;background:#eee}
.img:not(.abs){position:relative}
.img>img,.img>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* ---------- typografie ---------- */
.t-hero{font-family:var(--sauce);font-weight:600;font-size:8.75rem;line-height:.8;letter-spacing:-.07em}
.t-h64{font-weight:700;font-size:4rem;line-height:4.5rem;letter-spacing:-.045em;white-space:nowrap}
.t-kop{font-weight:700;font-size:4rem;line-height:4rem;letter-spacing:-.04em;white-space:nowrap}
.t-20{font-family:var(--sauce);font-weight:400;font-size:1.25rem;line-height:1.23;letter-spacing:-.045em}
.t-14{font-size:0.875rem;font-weight:500;line-height:1.4;letter-spacing:.02em}
.t-14s{font-size:0.875rem;font-weight:500;line-height:normal}
.grey{color:var(--grey)}

/* ---------- roll-over tekst ---------- */
.roll{position:relative;display:inline-block;overflow:hidden;vertical-align:top;height:1.45em;line-height:1.45em}
.roll__in{display:block;white-space:nowrap;transition:transform .5s var(--ease)}
.roll__in::after{content:attr(data-t);position:absolute;left:0;top:100%}
a:hover>.roll>.roll__in,button:hover>.roll>.roll__in,.pill:hover .roll__in,.knop:hover .roll__in,.rolllink:hover .roll__in{transform:translateY(-100%)}

/* ---------- navigatie ---------- */
.nav{position:fixed;z-index:200;top:1.25rem;left:50%;width:35rem;transform:translateX(-50%);color:#fff;
  background:rgba(0,0,0,.34);-webkit-backdrop-filter:blur(0.875rem);backdrop-filter:blur(0.875rem);
  border-radius:1.6875rem;overflow:hidden;transition:border-radius .5s var(--ease)}
.nav__bar{position:relative;height:3.375rem;display:flex;align-items:center;justify-content:space-between;padding:0 0.515rem 0 1.375rem}
.nav__brand{font-family:var(--sauce);font-weight:600;font-size:0.875rem;letter-spacing:-.03em;line-height:1.5}
.nav__plus{position:relative;width:3.28rem;height:2.4631rem;border-radius:1.2312rem;background:rgba(0,0,0,.5);transition:background .3s}
.nav__plus:hover{background:rgba(0,0,0,.7)}
.nav__plus span{position:absolute;left:50%;top:50%;width:0.875rem;height:1px;background:#fff;transform:translate(-50%,-50%);transition:transform .5s var(--ease)}
.nav__plus span+span{transform:translate(-50%,-50%) rotate(90deg)}
.nav.is-open .nav__plus span+span{transform:translate(-50%,-50%) rotate(0deg)}
.nav__panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows .55s var(--ease)}
.nav.is-open .nav__panel{grid-template-rows:1fr}
.nav.is-open{border-radius:1.75rem}
.nav__inner{overflow:hidden;min-height:0}
.nav__row{position:relative;height:10.8125rem}
.pill{position:absolute;top:0.75rem;height:2.5rem;border-radius:1.2312rem;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;
  font-size:0.875rem;font-weight:600;letter-spacing:-.03em;transition:background .3s}
.pill:hover{background:rgba(0,0,0,.72)}
.nav__copy{position:absolute;left:0.75rem;top:5.3125rem;font-size:0.875rem;font-weight:500}

/* ---------- knoppen ---------- */
.knop{display:inline-flex;align-items:center;justify-content:center;height:2.5rem;padding:0 1.125rem;border-radius:1.25rem;background:#f0f0f0;color:#000;
  font-size:0.875rem;font-weight:500;white-space:nowrap;transition:background .3s}
.knop:hover{background:#e4e4e4}
.knop--chip{background:#f7f7f7;height:auto;padding:0.5rem 0.875rem;line-height:1.4;letter-spacing:.02em}

/* ---------- golflijn onder highlights ---------- */
.hl{position:relative;display:inline-block}
.hl::after{content:"";position:absolute;left:0;right:0;top:4.625rem;height:0.5rem;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='8' viewBox='0 0 20 8'%3E%3Cpath d='M0 4 Q5 0 10 4 T20 4' fill='none' stroke='%23e8452b' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x left center/1.25rem 0.5rem}
@keyframes wave{to{background-position-x:1.25rem}}

/* ---------- home ---------- */
.home__video{background:#16181a}
.home__intro{display:flex;flex-direction:column;align-items:flex-start}
.home__intro .line{display:flex;gap:0.875rem;white-space:nowrap}
.swap{position:relative;display:inline-block;overflow:visible;transition:width .5s cubic-bezier(.42,0,.58,1);height:4.5rem}
.swap>span{position:absolute;left:0;top:0;opacity:0;transition:opacity .5s cubic-bezier(.42,0,.58,1)}
.swap>span.on{opacity:1}
.swap::after{content:"";position:absolute;left:0;right:0;top:4.625rem;height:0.5rem;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='8' viewBox='0 0 20 8'%3E%3Cpath d='M0 4 Q5 0 10 4 T20 4' fill='none' stroke='%23e8452b' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x left center/1.25rem 0.5rem}
.home__row{display:block}
.home__row .img{transition:transform 1.2s var(--ease)}
.home__row:hover .img>img{transform:scale(1.03)}
.home__row .img>img{transition:transform 1.2s var(--ease)}
.rowlabel{position:absolute;left:60.3125rem}

/* ---------- footer ---------- */
.footer{position:absolute;left:0;width:100%;height:67.5rem;background:#000;color:#fff;overflow:hidden}
.footer .abs{font-size:0.875rem;font-weight:500;line-height:normal}
.footer__logo{font-family:var(--sauce);font-weight:600;font-size:4rem;line-height:.8;letter-spacing:-.08em}
.footer__lbl{color:var(--grey)}
.footer__pics>div{position:absolute;top:32.25rem;width:23.5rem;height:29.375rem;opacity:0;transition:opacity .5s var(--ease);overflow:hidden}
.footer__pics>div.on{opacity:1}
.footer__pics img{width:100%;height:100%;object-fit:cover}

/* ---------- works ---------- */
.works__filters{display:flex;flex-direction:column;gap:0}
.works__filters button{font-size:0.875rem;line-height:1.225rem;color:#000;transition:color .3s;height:1.225rem}
.works__filters button.on{color:var(--grey)}
.works__grid{display:flex;flex-wrap:wrap;gap:5.125rem 0.5625rem;align-items:flex-start}
.work{display:block;width:28.9375rem;transition:opacity .5s var(--ease),transform .5s var(--ease)}
.work.is-hidden{display:none}
.work .img{width:28.9375rem;height:28.9375rem}
.work--tall .img{height:38rem}
.work__label{margin-top:0.625rem;font-family:var(--sauce);font-size:0.875rem;line-height:1.4;letter-spacing:-.045em;white-space:pre}
.work__label span{color:var(--grey)}
.work .img>img{transition:transform 1.2s var(--ease)}
.work:hover .img>img{transform:scale(1.04)}

/* ---------- contact ---------- */
.contact{background:#000;color:#fff}
.contact__loop{position:absolute;left:0;top:0;height:100%;display:flex;animation:loop 70s linear infinite;will-change:transform}
.contact__loop img{height:100%;width:auto;object-fit:cover;flex:none}
@keyframes loop{to{transform:translateX(-50%)}}
.contact__dim{position:absolute;inset:0;background:rgba(0,0,0,.42)}
.contact .meta{font-family:var(--inter);font-size:0.875rem;font-weight:500;line-height:normal}
.contact .meta.dim{opacity:.5}
.chip{display:inline-flex;gap:0.625rem;padding:0.5625rem 0.875rem;border-radius:1.25rem;background:rgba(247,247,247,.15);font-size:0.875rem;font-weight:500;transition:background .3s}
.chip:hover{background:rgba(247,247,247,.3)}
.sociallinks{display:flex;gap:1.375rem}

/* ---------- archive ---------- */
body.page-archive{overflow:hidden;background:#fff}
.archive{position:fixed;inset:0;overflow:hidden;cursor:grab;touch-action:none}
.archive.drag{cursor:grabbing}
.archive__canvas{position:absolute;left:0;top:0;width:calc(12600 / 16 * 1rem);height:calc(14000 / 16 * 1rem);will-change:transform}
.archive__canvas img{position:absolute;left:calc(var(--l) / 16 * 1rem);top:calc(var(--t) / 16 * 1rem);width:calc(var(--w) / 16 * 1rem);height:calc(var(--h) / 16 * 1rem);object-fit:cover;border-radius:2px;user-select:none;-webkit-user-drag:none;pointer-events:none;background:#eee}
.archive__hint{position:fixed;left:50%;bottom:1.875rem;transform:translateX(-50%);font-size:0.875rem;font-weight:500;color:#9a9a9a;letter-spacing:.02em;pointer-events:none;z-index:5}

/* ---------- about ---------- */
.about__giant{font-family:var(--sauce);font-weight:600;color:#f7f7f7;font-size:19.2019rem;line-height:1.5;letter-spacing:-.03em;white-space:nowrap}
.hero-swap .it{position:absolute;opacity:0;transition:opacity .8s var(--ease);overflow:hidden}
.hero-swap .it.on{opacity:1}
.hero-swap .it img{width:100%;height:100%;object-fit:cover}
.intro-p{font-family:var(--stack);font-size:2rem;line-height:1.1;letter-spacing:-.03em}
.listline{font-size:0.875rem;font-weight:500;line-height:1.225rem;letter-spacing:.02em;white-space:nowrap}
.dienst{font-weight:700;font-size:4rem;line-height:4rem;letter-spacing:-.04em;white-space:nowrap}
.werk{position:relative}
.werk__steps{position:absolute;left:58.875rem;top:0;width:19.25rem;display:flex;flex-direction:column}
.werk__steps button{display:block;position:relative;width:100%;padding:0 0 0.6875rem 0.1875rem;color:var(--grey);font-size:0.875rem;font-weight:500;line-height:1.225rem;letter-spacing:.02em;margin-bottom:1.125rem;border-bottom:1px solid #d9d9d9;transition:color .3s,margin .6s var(--ease)}
.werk__steps button.on{color:#000;border-bottom-color:#333;margin-bottom:11.3125rem}
.werk__pic{position:absolute;left:0;top:0;width:38.75rem;height:49.3125rem}
.werk__pic img{position:absolute;left:0;top:0;opacity:0;transition:opacity .6s var(--ease);object-fit:cover}
.werk__pic img.on{opacity:1}
.werk__txt{position:absolute;left:98.4375rem;top:0;width:19.0625rem}
.werk__txt .pane{position:absolute;left:0;top:0;width:100%;height:18.75rem;opacity:0;pointer-events:none;transition:opacity .5s var(--ease)}
.werk__txt .pane.on{opacity:1;pointer-events:auto}
.werk__txt .pane p{font-size:0.875rem;font-weight:500;line-height:1.225rem;letter-spacing:.02em}
.werk__txt .pane ul{position:absolute;top:15.875rem;left:0;color:var(--grey);font-size:0.875rem;font-weight:500;line-height:1.225rem;letter-spacing:.02em}
.strip{position:absolute;left:0;width:100%;overflow:hidden}
.strip__track{display:flex;gap:0.3125rem;height:100%;width:max-content;animation:loop 90s linear infinite}
.strip__track img{height:100%;flex:none;object-fit:cover}
.ankers{position:fixed;left:0;right:0;bottom:2.125rem;z-index:150;height:1.25rem;font-size:0.875rem;font-weight:500;letter-spacing:.02em;transition:opacity .4s}
.ankers a,.ankers span{position:absolute;top:0;white-space:nowrap;color:#ccc;transition:color .3s;line-height:1.225rem}
.ankers a.on{color:#212121}
.ankers a:hover{color:#212121}
.ankers.is-off{opacity:0;pointer-events:none}

/* ---------- projectpagina's ---------- */
.project{position:relative;width:100%;height:calc(var(--H) / 16 * 1rem);overflow:hidden;background:#fff}
.pfoot .info{position:absolute;left:8.75rem;bottom:2rem;width:26rem;font-size:0.875rem;font-weight:500;line-height:1.4;letter-spacing:-.02em;color:var(--grey)}
.pfoot .knop{position:absolute;bottom:1.875rem}
.pfoot .knop.left{left:2rem}
.pfoot .knop.right{right:2rem}
.loader{position:fixed;inset:0;z-index:180;background:#fff;display:flex;align-items:center;justify-content:center;transition:transform 1s var(--ease)}
.loader__title{display:flex;gap:1.875rem;overflow:hidden;font-weight:700;font-size:4rem;line-height:1.15;letter-spacing:-.04em;padding:0 0.75rem}
.loader__title span{display:block;transform:translateY(110%);animation:rise .9s var(--ease) forwards}
.loader__title span:nth-child(2){animation-delay:.12s}
.loader__title span:nth-child(3){animation-delay:.24s}
@keyframes rise{to{transform:none}}
.loader.done{transform:translateY(-100%)}
.about-ov{position:fixed;inset:0;z-index:170;background:rgba(0,0,0,.85);-webkit-backdrop-filter:blur(1.25rem);backdrop-filter:blur(1.25rem);color:#fff;opacity:0;pointer-events:none;transition:opacity .5s var(--ease)}
.about-ov.open{opacity:1;pointer-events:auto}
.about-ov .abs{font-size:0.875rem;line-height:1.4;letter-spacing:-.02em}
.about-ov .lbl{font-weight:500}
.about-ov .val{color:#bfbfbf}
.about-ov .knop{position:absolute;left:2rem;bottom:1.875rem}
body.no-scroll{overflow:hidden}

/* ---------- reveal ---------- */
.rv{opacity:0;transform:translateY(1.875rem);transition:opacity 1s var(--ease),transform 1s var(--ease)}
.rv.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  .rv{opacity:1;transform:none}
}

/* ==========================================================
   Mobiel / tablet  (< 900px): enkele kolom
   ========================================================== */
@media (max-width:899px){
  html{font-size:16px}
  html.archive-html{font-size:9px}
  .page,.project{height:auto;overflow:visible}
  .abs{position:relative;left:auto;top:auto;width:auto;height:auto}
  .abs.img,.abs.cover{width:100%;height:auto;aspect-ratio:var(--w) / var(--h)}
  .nav{width:calc(100vw - 24px);top:12px;border-radius:27px}
  .nav__bar{height:54px;padding:0 8px 0 20px}
  .nav__brand{font-size:14px}
  .nav__plus{width:52px;height:40px;border-radius:20px}
  .nav__row{height:170px}
  .pill{height:40px;border-radius:20px;font-size:14px;padding:0 17px}
  .pill:nth-child(1){left:12px}.pill:nth-child(2){left:98px}.pill:nth-child(3){left:194px}.pill:nth-child(4){left:288px}
  .nav__copy{left:12px;top:84px;font-size:14px}
  .nav,.nav.is-open{--r:27px}

  .t-hero{font-size:clamp(64px,19vw,140px)}
  .t-h64{font-size:clamp(26px,7.6vw,48px);line-height:1.12;white-space:normal}
  .t-kop{font-size:clamp(26px,7.6vw,48px);line-height:1.1;white-space:normal}
  .t-20{font-size:16px}
  .t-14,.t-14s,.listline,.meta{font-size:14px}
  .hl::after,.swap::after{top:1.12em;height:7px}
  .swap{height:1.12em}

  /* home */
  .home__hero{display:grid;grid-template-columns:1fr;height:auto}
  .home__hero .abs{position:relative}
  .home__video{aspect-ratio:3/4}
  .home__name{position:absolute!important;left:16px;bottom:16px;color:#fff;z-index:2}
  .home__heroimg{aspect-ratio:3/4}
  .home__intro{padding:40px 16px 0}
  .home__intro .line{flex-wrap:wrap;gap:.25em;white-space:normal}
  .home__small{padding:24px 16px 0}
  .home__row{padding:40px 0 0}
  .home__row .img{aspect-ratio:1/1}
  .rowlabel{position:relative;left:auto;top:auto;padding:12px 16px 0;display:block}
  .footer{position:relative;height:auto;padding:48px 16px 24px;display:grid;gap:28px}
  .footer .abs{position:relative;left:auto;top:auto}
  .footer__pics{display:none}
  .footer__logo{font-size:56px}
  .footer__socials{display:flex;gap:16px}

  /* works */
  .works__title{padding:96px 16px 0}
  .works__filtersbox{padding:32px 16px 0;display:flex;gap:40px}
  .works__grid{padding:32px 16px 0;gap:40px 12px}
  .work,.work .img,.work--tall .img{width:calc(50vw - 22px)}
  .work .img{height:calc(50vw - 22px)}
  .work--tall .img{height:calc((50vw - 22px) * 1.31)}

  /* contact */
  .contact{min-height:100svh}
  .contact .abs{padding:0 16px}
  .contact__big{padding-top:110px!important;font-size:clamp(34px,10.5vw,64px)!important;line-height:1.02!important}
  .contact__grid{display:grid;gap:22px;padding:32px 16px}

  /* about */
  .about__giant{display:none}
  .intro-p{font-size:22px;padding:0 16px}
  .dienst{font-size:clamp(30px,9vw,48px);line-height:1.1;white-space:normal}
  .werk{height:auto!important;display:grid;gap:20px;padding:0 16px}
  .werk__steps,.werk__pic,.werk__txt{position:relative;left:auto;top:auto;width:auto}
  .werk__pic{height:auto;aspect-ratio:4/5}
  .werk__pic img{width:100%!important;height:100%!important}
  .werk__txt{height:230px}
  .werk__steps button.on{margin-bottom:18px}
  .strip{position:relative;height:200px!important}
  .ankers{display:none}

  /* archief */
  .archive__hint{font-size:12px}

  /* projecten */
  .project{padding-bottom:140px}
  .project .img.abs{margin:0 0 4px}
  .pfoot .info{position:static;width:auto;padding:16px}
  .pfoot{position:absolute;left:0;right:0;bottom:0;height:auto}
  .pfoot .knop.left{left:16px;bottom:16px}
  .pfoot .knop.right{right:16px;bottom:16px}
  .pfoot .info{position:absolute;left:16px;right:16px;bottom:72px;padding:0}
  .about-ov .abs{position:absolute}
  .about-ov .txt{left:20px!important;top:100px!important;width:calc(100% - 40px)!important}
  .about-ov .m1{left:20px!important;top:300px!important}.about-ov .m2{left:50%!important;top:300px!important}
  .about-ov .m3{left:20px!important;top:370px!important}.about-ov .m4{left:50%!important;top:370px!important}
  .about-ov .abs{width:auto}
  .loader__title{font-size:34px}
}

@media (max-width:899px){
  html,body{overflow-x:clip}
  .page>.abs:not(.img):not(.hero-swap):not(.strip):not(.home__name){margin-left:16px;margin-right:16px}
  .page>.abs{max-width:calc(100% - 0px)}
  .page>.abs.t-kop,.page>.abs.intro-p{width:auto!important}
  .contact{overflow:hidden}
  .contact .contact__big,.contact .contact__grid .abs{margin-left:0;margin-right:0}
  .contact__grid .abs{display:block;width:auto}
  .contact__grid .chip{display:inline-flex;margin-right:8px}
  .hero-swap{width:calc(100% - 32px)!important;aspect-ratio:1/1;height:auto!important;margin:96px 16px 0!important}
  .hero-swap .it{left:0!important;top:0!important;width:100%!important;height:100%!important}
  .strip__track img{width:auto!important;height:100%}
  .werk{margin-left:0!important;margin-right:0!important}
  .werk__pic img{width:100%!important;height:100%!important}
  .abs.img{margin-left:0!important;margin-right:0!important}
  .abs.knop{display:inline-flex;margin-top:8px}
  .home__name{margin:0}
  .home__hero{position:relative;display:block}
  .home__video,.home__heroimg{display:block;width:100%;height:auto}
  .home__video{aspect-ratio:4/5}
  .home__heroimg{aspect-ratio:4/5}
  .home__name{position:absolute!important;left:16px!important;top:calc((100vw * 5 / 4) - 24vw - 24px)!important;width:auto!important}
  .home__row{display:block;position:relative}
  .home__row .abs.img{height:auto;aspect-ratio:1/1}
  .home__row .abs.img{margin-top:32px!important}
  .rowlabel{display:block;position:static!important;padding:10px 16px 0}
  .rowlabel+.rowlabel{padding-top:2px}
  .page>.abs.about__giant{display:none}
  .about__giant{display:none}
  .about__sec{margin-top:24px}
  .listline{white-space:normal}
  .footer .abs{margin:0!important}
}

@media (max-width:899px){
  .contact__grid .sociallinks{display:flex!important;gap:18px}
  .contact__grid .abs.rolllink,.footer .rolllink{display:inline-block}
  .home__name{top:calc((100vw * 5 / 4) - 38vw)!important}
}
