:root{
  --bg-dark: #070816;
  --bg-darker: #050612;
  --text-light: #eef0ff;
  --text-muted: rgba(238,240,255,.75);

  --accent: #6f86ff;
  --line: rgba(255,255,255,.35);

  --max-width: 1280px;
}

/* RESET */
*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.2px;
  background:
    radial-gradient(900px 500px at 50% 35%, rgba(111,134,255,.25), transparent 60%),
    linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
  color:var(--text-light);
}

/* WRAPPER */
.hero-wrap{
  min-height:100vh;
  padding:40px 40px 0;
  position:relative;
  overflow:hidden;
}

/* NAVIGATION */
.topbar{
  max-width:var(--max-width);
  margin:0 auto;
  display:flex;
  justify-content:center;
  position:relative;
}

.nav-pill{
  display:flex;
  gap:40px;
  padding:12px 28px;
  border-radius:999px;
  border:1px solid var(--line);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.05);
}

.nav-pill a{
  text-decoration:none;
  color:rgba(238,240,255,.75);
  font-weight:500;
  font-size:15px;
}

.nav-pill a:hover{
  color:#fff;
}

.nav-pill .active{
  color:var(--accent);
  font-weight:600;
}

.contact-btn{
  position:absolute;
  right:40px;
  top:0px;
  padding:10px 22px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.6);
  text-decoration:none;
  color:#fff;
  font-size:15px;
  background: rgba(255,255,255,.05);
  transition: .2s ease;
}

/* HERO SECTION */
.hero{
  max-width:var(--max-width);
  margin:0 auto;
  padding:120px 0 70px;
  min-height: calc(100vh - 160px); /* dit is belangrijk */
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:auto 1fr auto;
  position:relative;
  
}

/* Glow */
.glow{
  position:absolute;
  left:50%;
  top:35%;
  transform:translate(-50%,-50%);
  width:750px;
  height:400px;
  background: radial-gradient(circle, rgba(111,134,255,.5) 0%, transparent 70%);
  filter:blur(40px);
  pointer-events:none;
}

/* HEADLINE */
.headline{
  grid-column:1 / -1;
  text-align:center;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(60px, 6vw, 90px);
  line-height:1.05;
  letter-spacing:-0.5px;
  margin:0;
}

/* SUBTEXT */
.subtext{
  grid-column:1;
  grid-row:3;
  justify-self: start;
  align-self:end;
  max-width:520px;
  font-size:15px;
  line-height:1.6;
  color:var(--text-muted);
  margin: 0;
}

/* CTA BUTTON */
.cta{
  grid-column:2;
  grid-row:3;
  justify-self:end;
  align-self:end;

  padding:14px 30px;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  color:#fff;

  border:1px solid var(--accent);
  background: rgba(111,134,255,.15);
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  transition:all .2s ease;
}

.cta:hover{
  transform:translateY(-2px);
  background: rgba(111,134,255,.25);
}

/* TICKER */
.ticker{
  overflow:hidden;
  background: rgba(111,134,255,.1);
  border-top:1px solid rgba(255,255,255,.08);
}

.ticker-track{
  display:flex;
  width:max-content;
  animation:scroll 18s linear infinite;
}

.ticker-content{
  padding:16px 20px;
  white-space:nowrap;
  color:var(--accent);
  font-size:18px;
}

@keyframes scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

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

  .hero{
    grid-template-columns:1fr;
  }

  .subtext{
    grid-column:1;
    margin-top:40px;
  }

  .cta{
    grid-column:1;
    justify-self:start;
    margin-top:20px;
  }

  .contact-btn{
    position:static;
    margin-left:auto;
  }
}

.portfolio{
  padding: 90px 40px 120px;
}

.portfolio__inner{
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */
.portfolio__header{
  margin-bottom: 24px;
}

.portfolio__title{
  margin: 0 0 12px 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(38px, 4vw, 54px);
  letter-spacing: -0.4px;
}

.portfolio__desc{
  margin: 0 0 18px 0;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Filter pills */
.filters{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter{
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
  color: rgba(238,240,255,.85);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  transition: .2s ease;
}

.filter:hover{
  background: rgba(255,255,255,.08);
}

.filter.is-active{
  border-color: rgba(111,134,255,.85);
  background: rgba(111,134,255,.12);
  color: #fff;
}

/* EXACT BENTO GRID (zoals jouw design) */
.bento--exact{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 110px;          
  gap: 16px;
}

/* Tile base */
.tile{
  display:block;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  transition: transform .18s ease, border-color .18s ease;
}

.tile:hover{
  transform: translateY(-2px);
  border-color: rgba(111,134,255,.35);
}

/* Placeholder look */
.ph{
  display:block;
  width:100%;
  height:100%;
  background: rgba(255,255,255,.85);
}


/* Linksboven: klein vierkant */
.t1{ grid-column: 1; grid-row: 1 / span 2; }

/* Links onder t1: klein vierkant */
.t2{ grid-column: 1; grid-row: 3 / span 2; }

/* Midden links: hoge smalle */
.t3{ grid-column: 2; grid-row: 1 / span 4; }

/* Rechts boven: grote */
.t4{ grid-column: 3 / span 2; grid-row: 1 / span 4; }

/* Breed horizontaal links/midden */
.t5{ grid-column: 1 / span 2; grid-row: 5 / span 2; }

/* Klein midden */
.t6{ grid-column: 3; grid-row: 5 / span 2; }

/* Klein rechts */
.t7{ grid-column: 4; grid-row: 5 / span 2; }

/* Grote links onder */
.t8{ grid-column: 1; grid-row: 7 / span 4; }

/* Grote midden onder */
.t9{ grid-column: 2; grid-row: 7 / span 4; }

/* Rechts: 2 stacked (boven) */
.t10{ grid-column: 3 / span 2; grid-row: 7 / span 2; }
.t11{ grid-column: 3 / span 2; grid-row: 9 / span 2; }

/* Onder: groot links + groot rechts */
.t12{ grid-column: 1 / span 3; grid-row: 11 / span 4; }

.t13{
  grid-column: 4;
  grid-row: 11 / span 4;
}

/* RESPONSIVE: op smaller scherm terugschalen */
@media (max-width: 1000px){
  .bento--exact{
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
  }

  /* Simpele her-layout voor mobiel (automatisch flow) */
  .t1,.t2,.t3,.t4,.t5,.t6,.t7,.t8,.t9,.t10,.t11,.t12,.t13{
    grid-column: auto;
    grid-row: auto;
  }
}

.tile__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;      /* crop netjes */
  object-position: center;/* focus midden */
}

/* Tiles kunnen hidden worden tijdens filtering */
.tile.is-hidden{ display:none; }

/* Afbeeldingen */
.tile__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ===== AUTO BENTO ===== */
.bento.is-auto{
  grid-auto-flow: dense;
  grid-auto-rows: 90px;   
}

/* reset alleen vaste layout dingen (maar NIET grid-row/column met !important) */
.bento.is-auto .tile{
  min-height: 0 !important;
  height: 100% !important;
}

/* image vult tile */
.bento.is-auto .tile__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* sizes (hier mag wél !important zodat het altijd wint) */
.bento.is-auto .tile[data-size="sm"]{
  grid-column: span 1 !important;
  grid-row: span 2 !important;
}

.bento.is-auto .tile[data-size="tall"]{
  grid-column: span 1 !important;
  grid-row: span 5 !important;
}

.bento.is-auto .tile[data-size="lg"]{
  grid-column: span 2 !important;
  grid-row: span 3 !important;
}

.bento.is-auto .tile[data-size="xl"]{
  grid-column: span 2 !important;
  grid-row: span 4 !important;
}

.bento.is-auto .tile[data-size="wide"]{
  grid-column: span 4 !important;
  grid-row: span 2 !important;
}

.t11 .tile__img{
  object-position: top;
}

.t5 .tile__img{
  object-position: top;
}

.tile{
  position: relative;
  z-index: 1;
}

.tile__img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  pointer-events: none; /* ✅ zorgt dat klik altijd op <a> komt */
}
