/* Homepage-secties uit index_4.html */

#hero .stats {
  display: flex;
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}

#hero .stats div {
  padding: 20px 32px 0 0;
  margin-right: 32px;
  border-right: 1px solid var(--line);
}

#hero .stats div:last-child {
  border-right: 0;
}

#hero .stats b {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  display: block;
  letter-spacing: -0.02em;
}

#hero .stats b em {
  font-style: normal;
  color: var(--brassL);
  font-size: 0.72em;
}

#hero .stats span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.svc {
  border-top: 1px solid var(--line);
}

.svc a {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 34px 10px;
  position: relative;
  transition: 0.35s;
  border-bottom: 1px solid var(--line);
}

.svc a .big {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 234, 0.28);
  transition: 0.35s;
}

.svc a h3 {
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 600;
  transition: transform 0.35s;
}

.svc a p {
  color: var(--mute);
  font-size: 14.5px;
  max-width: 52ch;
  margin-top: 6px;
}

.svc a .arr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  transition: 0.35s;
  white-space: nowrap;
}

.svc a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(181, 138, 94, 0.08), transparent 60%);
  opacity: 0;
  transition: 0.35s;
}

.svc a:hover::before {
  opacity: 1;
}

.svc a:hover .big {
  -webkit-text-stroke-color: var(--brassL);
}

.svc a:hover h3 {
  transform: translateX(8px);
}

.svc a:hover .arr {
  color: var(--brassL);
  transform: translateX(6px);
}

#werk {
  position: relative;
}

#werk .intro {
  padding: clamp(80px, 10vw, 140px) 0 clamp(30px, 4vw, 60px);
}

/* Zelfde horizontale inset als .chIn — anders staat “Projecten” links van “01”. */
#werk > .wrap.intro {
  max-width: none;
  margin: 0;
  padding-left: clamp(20px, 5vw, 72px);
  padding-right: clamp(20px, 5vw, 72px);
}

.deck {
  position: relative;
}

.ch {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.ch::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 82% 72% at 60% 50%, #000 22%, transparent 74%);
  mask-image: radial-gradient(ellipse 82% 72% at 60% 50%, #000 22%, transparent 74%);
}

.ch::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 50%;
  width: 72%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 138, 94, 0.1), transparent 62%);
  pointer-events: none;
}

.chIn {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(26px, 4vw, 62px);
  align-items: center;
  padding: clamp(84px, 11vh, 120px) clamp(20px, 5vw, 72px) clamp(46px, 7vh, 72px);
  will-change: transform, filter;
}

.ch .txt {
  min-width: 0;
}

.ch .num {
  display: block;
  font-family: var(--disp);
  font-weight: 800;
  line-height: 1;
  font-size: clamp(42px, 5.2vw, 84px);
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(244, 241, 234, 0.26);
  user-select: none;
  margin-bottom: clamp(14px, 2vw, 22px);
}

.ch .meta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ch .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brassL);
  border: 1px solid rgba(216, 185, 140, 0.35);
  padding: 5px 10px;
  border-radius: 99px;
}

.ch .yr {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
}

.ch h3 {
  font-size: clamp(26px, 3.1vw, 44px);
  font-weight: 700;
}

.ch .txt p {
  margin-top: 14px;
  color: var(--mute);
  font-size: clamp(14px, 1.05vw, 15.5px);
  max-width: 46ch;
}

.ch figure {
  margin: 0;
  min-width: 0;
}

.ch .plate {
  position: relative;
  width: 100%;
  aspect-ratio: var(--sm-project-beeld-ratio);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line2);
  background: var(--ink2);
  box-shadow: 0 40px 90px -42px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(244, 241, 234, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch .plate > img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.ch[data-fit="draw"] .plate {
  background: #efece4;
  padding: clamp(10px, 1.4vw, 20px);
}

.ch[data-fit="draw"] .plate > img {
  object-fit: contain;
  object-position: center;
}

.ch[data-fit="photo"] .plate > img {
  object-fit: contain;
  object-position: center;
}

.ch figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.ch .txt > *,
.ch figure {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.ch.on .txt > *,
.ch.on figure {
  opacity: 1;
  transform: none;
}

.ch.on .meta {
  transition-delay: 0.07s;
}

.ch.on h3 {
  transition-delay: 0.13s;
}

.ch.on .txt p {
  transition-delay: 0.19s;
}

.ch.on figure {
  transition-delay: 0.1s;
}

.rail {
  position: fixed;
  right: clamp(10px, 2vw, 26px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transition: 0.4s;
  pointer-events: none;
}

.rail.show {
  opacity: 1;
}

.rail b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  color: var(--faint);
  transition: 0.3s;
  text-align: right;
}

.rail b.on {
  color: var(--brassL);
}

.cgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  max-width: 100%;
}

.cpanel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 38px);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.cpanel .tot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 20px;
}

.cpanel .tot b {
  font-family: var(--disp);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
}

.cpanel .tot b small {
  font-size: 0.55em;
  color: var(--mute);
  font-weight: 400;
}

.cnote {
  margin-top: 10px;
  font-size: 9.5px;
}

.crow {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.crow .btnP {
  flex: 1;
  justify-content: center;
}

.crow .btnG {
  padding: 15px 22px;
}

#proces {
  padding: clamp(90px, 12vw, 160px) 0;
}

.tl {
  position: relative;
  margin-left: 10px;
}

.tl::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.tl .fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(var(--brassL), var(--brass));
  transform: scaleY(0);
  transform-origin: top;
}

.tl .st {
  position: relative;
  padding: 0 0 clamp(40px, 6vw, 64px) clamp(30px, 4vw, 54px);
}

.tl .st::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--faint);
  transition: 0.4s;
}

.tl .st.lit::before {
  background: var(--brassL);
  border-color: var(--brassL);
  box-shadow: 0 0 16px var(--glow);
}

.tl .st .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brassL);
  letter-spacing: 0.2em;
}

.tl .st h3 {
  font-size: clamp(20px, 2.4vw, 28px);
  margin-top: 8px;
}

.tl .st p {
  color: var(--mute);
  max-width: 52ch;
  margin-top: 8px;
  font-size: 15px;
}

#studio {
  padding: clamp(90px, 12vw, 160px) 0;
  border-top: 1px solid var(--line);
}

#studio .q {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 46px);
  letter-spacing: -0.02em;
  max-width: 24ch;
  line-height: 1.18;
}

#studio .who {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}

#studio .who .mk {
  width: 44px;
  height: 38px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 241, 234, 0.03);
}

#studio .who b {
  font-family: var(--disp);
  font-weight: 600;
  display: block;
}

#studio .who span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

#studio .bio {
  color: var(--mute);
  max-width: 60ch;
  margin-top: 26px;
  font-size: 15.5px;
}

#studio .bio + .bio {
  margin-top: 16px;
}

#einde {
  position: relative;
  padding: clamp(110px, 16vw, 220px) 0;
  text-align: center;
  overflow: hidden;
}

#einde .hor {
  position: absolute;
  left: 50%;
  bottom: -320px;
  width: 1200px;
  height: 600px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(181, 138, 94, 0.22), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}

#einde h2 {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 800;
}

#einde h2 .thin {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 241, 234, 0.7);
}

#einde p {
  color: var(--mute);
  margin: 22px auto 0;
  max-width: 44ch;
}

#einde .cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

@media (width <= 900px), (pointer: coarse) {
  .ch .txt > *,
  .ch figure {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .ch.on .meta,
  .ch.on h3,
  .ch.on .txt p,
  .ch.on figure {
    transition-delay: 0s !important;
  }
}

@media (width <= 900px) {
  #hero .stats {
    flex-wrap: wrap;
    max-width: none;
  }

  #hero .stats div {
    width: 46%;
    border-right: 0;
    margin: 0;
    padding: 16px 0 0;
  }

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

  .chIn {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: clamp(16px, 3vw, 24px);
    padding: clamp(78px, 10vh, 100px) 20px clamp(32px, 5vh, 48px);
  }

  .ch figure {
    order: -1;
  }

  .ch .plate {
    aspect-ratio: var(--sm-project-beeld-ratio);
  }

  .ch .num {
    font-size: clamp(32px, 8.5vw, 50px);
    margin-bottom: 10px;
  }

  .ch h3 {
    font-size: clamp(22px, 5.4vw, 30px);
  }

  .ch .txt p {
    font-size: 14px;
    max-width: none;
  }

  .rail {
    display: none;
  }

  .crow {
    flex-direction: column;
  }
}

@media (width <= 700px) {
  .svc a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .svc a .arr {
    display: none;
  }
}
