/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.3rem 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--med) var(--ease), border-color var(--med) var(--ease), padding var(--med) var(--ease), backdrop-filter var(--med) var(--ease);
}

.site-header.is-scrolled {
  padding: 0.85rem 0;
  background: rgba(20, 20, 20, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* backdrop-filter op de header creeert een nieuw positioneringscontext
   waarbinnen het fixed mobiele menu zich opsluit. Schakel de blur uit
   zolang het menu open is, zodat .main-nav weer de hele viewport bedekt. */
.site-header:has(.main-nav.is-open) {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.main-nav {
  display: none;
}

.nav-cta-mobile {
  display: none;
}

@media (min-width: 900px) {
  .main-nav {
    display: block;
  }
  .main-nav ul {
    display: flex;
    align-items: center;
    gap: 2.4rem;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.rec {
  display: none;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-500);
  white-space: nowrap;
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0433a;
  box-shadow: 0 0 6px #e0433a;
  animation: rec-blink 1.6s steps(1) infinite;
}

@keyframes rec-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.25; }
}

@media (min-width: 1080px) {
  .rec {
    display: flex;
  }
}

.nav-cta {
  display: none;
}

@media (min-width: 900px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* mobile nav panel */
@media (max-width: 899px) {
  .main-nav {
    display: block;
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--bg-900);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--med) var(--ease), transform var(--med) var(--ease), visibility var(--med);
    z-index: 90;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .main-nav a {
    font-size: 1.6rem;
    font-weight: 500;
  }
  .nav-cta-mobile {
    display: block;
    margin-top: 1rem;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-900);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
}

.hero-media video {
  opacity: 0.15;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 60% 25%, rgba(208, 115, 53, 0.22), transparent 55%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.045;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.6) 0 1px, transparent 1px 3px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.55) 0%, rgba(20, 20, 20, 0.65) 45%, rgba(20, 20, 20, 0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  max-width: 900px;
}

.hero-frame {
  position: absolute;
  inset: clamp(1.2rem, 3vw, 2.4rem);
  z-index: 2;
  pointer-events: none;
}

.hero-frame span {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-frame span:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; }
.hero-frame span:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; }
.hero-frame span:nth-child(3) { bottom: 0; left: 0; border-right: none; border-top: none; }
.hero-frame span:nth-child(4) { bottom: 0; right: 0; border-left: none; border-top: none; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--grey-500);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .scroll-indicator {
    display: none;
  }
}

.scroll-indicator .line {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}

/* ===== Generic sections ===== */
.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  margin-top: 0.9rem;
}

.section-foot {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  justify-content: center;
}

/* ===== Grids ===== */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stats-section {
  background: var(--bg-800);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-layout {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 980px) {
  .stats-layout {
    grid-template-columns: 0.85fr 1fr;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 560px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chart-card {
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.chart-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portfolio-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Timeline / Process ===== */
.timeline {
  position: relative;
  margin-top: 2rem;
}

.timeline-track {
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

@media (min-width: 880px) {
  .timeline-track {
    left: 0;
    right: 0;
    top: 19px;
    bottom: auto;
    height: 2px;
    width: auto;
  }
}

.timeline-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0%;
  background: var(--accent);
  transition: height 0.15s linear;
}

@media (min-width: 880px) {
  .timeline-fill {
    width: 0%;
    height: 2px;
    transition: width 0.15s linear;
  }
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
}

@media (min-width: 880px) {
  .timeline-steps {
    flex-direction: row;
    gap: 1rem;
  }
}

.timeline-step {
  position: relative;
  padding-left: 3.2rem;
}

@media (min-width: 880px) {
  .timeline-step {
    flex: 1;
    padding-left: 0;
    padding-top: 3.2rem;
  }
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-700);
  border: 2px solid var(--line);
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

@media (min-width: 880px) {
  .timeline-dot {
    left: 0;
    top: 10px;
  }
}

.timeline-step.is-active .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-dim);
}

/* ===== Logo strip ===== */
.logos-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 4vw, 3.5rem);
}

.logo-item {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--grey-500);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color var(--fast) var(--ease);
}

.logo-item:hover {
  color: var(--white);
}

/* ===== CTA section ===== */
.cta-section {
  position: relative;
  text-align: center;
  padding: clamp(5rem, 10vw, 9rem) 0;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--accent-dim), transparent 70%), var(--bg-800);
  border-top: 1px solid var(--line);
}

.cta-section h2 {
  max-width: 760px;
  margin: 0 auto;
}

.cta-actions {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-900);
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.8rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col address {
  font-style: normal;
  color: var(--grey-300);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--grey-500);
}

.footer-bottom p:first-child {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.footer-signature {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--accent-bright);
}

/* ===== Placeholder voor nog niet aangeleverd beeldmateriaal ===== */
.portfolio-card.is-empty,
.hero-media.is-empty {
  background: repeating-linear-gradient(135deg, var(--bg-700) 0 18px, var(--bg-800) 18px 36px);
}

.portfolio-card.is-empty img {
  display: none;
}

.portfolio-card.is-empty::before {
  content: "Materiaal in ontwikkeling";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-500);
}

/* ===== Page hero (sub pages) ===== */
.page-hero {
  padding: clamp(8rem, 14vw, 11rem) 0 clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--bg-800), var(--bg-900));
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow {
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 640px;
  margin-top: 1.2rem;
}

/* ===== Service detail blocks ===== */
.service-detail {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .service-detail {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.service-detail:last-of-type {
  border-bottom: none;
}

.service-detail-number {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  line-height: 1;
}

.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

/* ===== Filter bar ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

/* ===== Contact layout ===== */
.contact-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 2.2rem;
}

/* ===== Over page ===== */
.about-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 940px) {
  .about-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.about-portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/5;
}

.gear-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .gear-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
