/* ===========================================================
   SJOWPIC — portfolio van Thijn van den Elzen
   Design: zwart-wit, chunky display type, brutalist/energetic
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Baloo+2:wght@600;700;800&display=swap');

:root {
  --black: #0a0a0a;
  --white: #f7f7f5;
  --grey: #8a8a85;
  --grey-line: #2a2a28;
  --accent: #f7f7f5;

  /* Bolota is een betaald/closed lettertype, daarom is Baloo 2 de vervanger:
     zelfde chunky, ronde, vriendelijke uitstraling. Valt terug op Arial Black. */
  --display: 'Baloo 2', 'Arial Black', 'Helvetica Neue', sans-serif;
  --body: 'Inter', sans-serif;

  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --pad: clamp(1.5rem, 5vw, 4rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  display: block;
}

/* ---------- Skip link / accessibility ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--black);
  padding: 0.5rem 1rem;
  z-index: 999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

/* ---------- Top nav (shared across all pages) ---------- */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem var(--pad);
  z-index: 100;
  mix-blend-mode: difference;
}

.topnav .nav-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.topnav .nav-links {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  list-style: none;
}

.topnav .nav-links a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.15rem;
}

.topnav .nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.25s ease;
}

.topnav .nav-links a:hover::after,
.topnav .nav-links a[aria-current="page"]::after {
  width: 100%;
}

@media (max-width: 600px) {
  .topnav .nav-links {
    gap: 1.1rem;
  }
  .topnav .nav-links a {
    font-size: 0.78rem;
  }
}

/* ===========================================================
   HOMEPAGE
   =========================================================== */

.home-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--pad);
  text-align: center;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.84;
  user-select: none;
}

.brand-stack .word {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 13vw, 8.5rem);
  letter-spacing: -0.01em;
  color: var(--white);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* fading repeated brand word, mirrors the wireframe gradient stack */
.brand-stack .word:nth-child(1) { opacity: 1; }
.brand-stack .word:nth-child(2) { opacity: 0.82; }
.brand-stack .word:nth-child(3) { opacity: 0.6; }
.brand-stack .word:nth-child(4) { opacity: 0.4; }
.brand-stack .word:nth-child(5) { opacity: 0.22; }
.brand-stack .word:nth-child(6) {
  opacity: 0.12;
  transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
}

.home-tagline {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  font-family: var(--body);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: var(--grey);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-footer-nav {
  position: absolute;
  bottom: clamp(2rem, 6vh, 4rem);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 var(--pad);
}

.home-footer-nav a {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding: 0.4rem 0.2rem;
}

.home-footer-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: var(--white);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.home-footer-nav a:hover::after,
.home-footer-nav a:focus-visible::after {
  width: 70%;
}

/* (ambient grid backdrop verwijderd) */

/* ===========================================================
   SHARED PAGE HEADER (Work / About / Contact)
   =========================================================== */

.page-header {
  padding: clamp(7rem, 18vw, 11rem) var(--pad) clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--grey-line);
}

.page-header .eyebrow {
  font-family: var(--body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.75rem;
}

.page-header h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.page-header p {
  margin-top: 1.25rem;
  max-width: 38ch;
  color: var(--grey);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.5;
}

/* ===========================================================
   WORK PAGE
   =========================================================== */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--grey-line);
  padding: 1px;
}

@media (max-width: 760px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.work-item {
  background: var(--black);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.work-item .work-media {
  position: relative;
  overflow: hidden;
  background: #111;
  aspect-ratio: 5 / 7;
}

.work-item .work-media img,
.work-item .work-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item:hover .work-media img,
.work-item:hover .work-media video {
  transform: scale(1.035);
}

.work-media .tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: var(--white);
  color: var(--black);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  z-index: 2;
}

.work-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.work-meta h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.1;
}

.work-meta .work-num {
  font-family: var(--body);
  color: var(--grey);
  font-size: 0.85rem;
  white-space: nowrap;
  padding-top: 0.15rem;
}

.work-item .work-desc {
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 46ch;
}

.work-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.btn {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border: 1.5px solid var(--white);
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-block;
}

.btn:hover,
.btn:focus-visible {
  background: var(--white);
  color: var(--black);
}

.btn.btn-quiet {
  border-color: var(--grey-line);
  color: var(--grey);
}

.btn.btn-quiet:hover,
.btn.btn-quiet:focus-visible {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ===========================================================
   ABOUT PAGE
   =========================================================== */

.about-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  min-height: 70vh;
}

@media (max-width: 860px) {
  .about-wrap {
    grid-template-columns: 1fr;
  }
}

.about-photo {
  position: relative;
  background: #111;
  min-height: 360px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}

.about-content {
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  border-left: 1px solid var(--grey-line);
}

@media (max-width: 860px) {
  .about-content {
    border-left: none;
    border-top: 1px solid var(--grey-line);
  }
}

.about-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1;
}

.about-role {
  font-family: var(--body);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--grey);
  letter-spacing: 0.02em;
}

.about-body {
  font-family: var(--body);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  max-width: 46ch;
}

.about-body p + p {
  margin-top: 1rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.about-tags span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--grey-line);
  padding: 0.4rem 0.75rem;
  color: var(--grey);
}

/* ===========================================================
   CONTACT PAGE
   =========================================================== */

.contact-wrap {
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad) clamp(5rem, 10vw, 7rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.25rem) 0;
  border-bottom: 1px solid var(--grey-line);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5.5vw, 3.2rem);
  letter-spacing: -0.01em;
  transition: padding-left 0.25s ease, color 0.25s ease;
}

.contact-link:first-child {
  border-top: 1px solid var(--grey-line);
}

.contact-link .arrow {
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  color: var(--grey);
  transition: transform 0.25s ease, color 0.25s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  padding-left: 0.75rem;
}

.contact-link:hover .arrow,
.contact-link:focus-visible .arrow {
  transform: translateX(6px);
  color: var(--white);
}

.contact-note {
  max-width: 50ch;
  color: var(--grey);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.55;
}

.contact-cta {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
  max-width: 22ch;
}

/* ===========================================================
   SHARED FOOTER
   =========================================================== */

.site-footer {
  border-top: 1px solid var(--grey-line);
  padding: clamp(1.5rem, 4vw, 2rem) var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--grey);
}

.site-footer a {
  color: var(--grey);
  border-bottom: 1px solid transparent;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
