/* ══════════════════════════════════════════
   Koen Olijerhoek — Flowstate Film
   Design system: "The Void" direction
   Fonts: Bebas Neue (display), Space Grotesk (body)
═══════════════════════════════════════════ */

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

:root {
  --bg:       #080808;
  --fg:       #ffffff;
  --fg-dim:   rgba(255,255,255,0.38);
  --fg-dimmer: rgba(255,255,255,0.12);
  --border:   rgba(255,255,255,0.07);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Images directly inside slide/thumb containers fill and cover */
.hero-slide > img,
.work-img > img,
.work-row-thumb-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Service card images: fixed size so the column reveals them, not scales them.
   Width matches the expanded column (1.52 / 4.01 total fr ≈ 38vw).
   The column clips via overflow:hidden — expanding reveals, collapsing hides. */
.spec-photo > img {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 38vw;
  height: auto;
  max-width: none;
}

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


/* ══════════════════════════════════════════
   PLACEHOLDER (image slots before real media)
═══════════════════════════════════════════ */

.ph {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.025) 0px,
    rgba(255,255,255,0.025) 1px,
    transparent 1px,
    transparent 10px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.13);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.8;
  font-family: monospace;
}

/* real image inside placeholder slot */
.ph img {
  position: absolute;
  inset: 0;
  object-fit: cover;
}


/* ══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 48px;
  transition: background 0.5s, padding 0.4s, backdrop-filter 0.5s;
}

.nav.scrolled,
.nav.always-frosted {
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--fg);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }

.nav-cta {
  border: 1px solid rgba(255,255,255,0.2) !important;
  padding: 9px 20px !important;
  color: var(--fg) !important;
  transition: border-color 0.2s, background 0.2s !important;
}

.nav-cta:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.45) !important;
}

/* hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--fg);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: #080808;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 52px;
  letter-spacing: 0.06em;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-mobile a:hover { color: var(--fg-dim); }


/* ══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */

.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Cycling slides */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active { opacity: 1; }

/* Vignette overlay */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, transparent 35%, transparent 55%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

/* Slide counter dots */
.hero-counter {
  position: absolute;
  top: 50%;
  right: 48px;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-counter-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.4s, height 0.4s, border-radius 0.4s;
  cursor: pointer;
}

.hero-counter-dot.active {
  background: rgba(255,255,255,0.7);
  height: 16px;
  border-radius: 2px;
}

/* Hero text content */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 48px 64px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 18px;
  font-weight: 300;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 11.5vw, 168px);
  line-height: 0.87;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.hero-title .ghost {
  color: rgba(255,255,255,0.15);
}

/* Meta text bottom-right */
.hero-meta {
  position: absolute;
  bottom: 64px;
  right: 48px;
  text-align: right;
  z-index: 3;
}

.hero-meta p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.08em;
  line-height: 2.1;
  font-weight: 300;
}

/* Scroll indicator */
.scroll-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 72px;
  background: linear-gradient(var(--fg-dimmer), transparent);
  z-index: 3;
}


/* ══════════════════════════════════════════
   FEATURED WORK
═══════════════════════════════════════════ */

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

.work-header {
  padding: 48px 48px 40px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.work-heading {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.2em;
  color: var(--fg);
}

.work-all {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.work-all:hover {
  color: var(--fg);
  border-bottom-color: rgba(255,255,255,0.25);
}

.work-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  border-top: 1px solid var(--border);
}

.work-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-right: 1px solid var(--border);
}

.work-item:last-child { border-right: none; }

.work-item-main { min-height: 540px; }
.work-item-side { min-height: 540px; }

.work-img {
  position: absolute;
  inset: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-item:hover .work-img { transform: scale(1.04); }

.work-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.72) 100%);
}

.work-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 36px;
  z-index: 1;
}

.work-cat {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

.work-title-text {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--fg);
  letter-spacing: 0.03em;
}

.work-item-main .work-title-text { font-size: 56px; }

.work-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
}

.work-item:hover .work-arrow {
  opacity: 1;
  transform: translateX(0);
}


/* ══════════════════════════════════════════
   SPECIALISMS
═══════════════════════════════════════════ */

.spec {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  transition: grid-template-columns 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.spec-item {
  padding: 52px 40px 56px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  min-height: 340px;
  cursor: default;
  transition: min-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.spec-item:last-child { border-right: none; }

/* Top rule */
.spec-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 3;
}

.spec-item.hovered .spec-bar { transform: scaleX(1); }

/* Photo background — revealed on hover */
.spec-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.spec-item.hovered .spec-photo { opacity: 1; }

.spec-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.62) 100%);
  z-index: 1;
}

/* Text content */
.spec-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.spec-num {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.25);
  margin-bottom: 36px;
}

.spec-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--fg);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.spec-desc {
  font-size: 12px;
  color: var(--fg-dim);
  line-height: 1.85;
  font-weight: 300;
  max-width: 240px;
}

.spec-desc-extra {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.85;
  font-weight: 300;
  max-width: 260px;
  margin-top: 16px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease 0.1s, opacity 0.4s ease 0.15s;
}

.spec-item.hovered .spec-desc-extra { max-height: 120px; opacity: 1; }


/* ══════════════════════════════════════════
   STATEMENT / ABOUT
═══════════════════════════════════════════ */

.statement {
  padding: 120px 48px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.statement-quote {
  font-family: var(--font-display);
  font-size: 76px;
  line-height: 0.9;
  color: var(--fg);
}

.statement-quote .ghost {
  color: rgba(255,255,255,0.15);
}

.statement-body {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.95;
  font-weight: 300;
  margin-bottom: 44px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  padding-bottom: 4px;
  transition: border-color 0.2s;
}

.cta-link:hover { border-color: var(--fg); }


/* ══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.45);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--fg-dim); }


/* ══════════════════════════════════════════
   WORK PAGE — Page Header
═══════════════════════════════════════════ */

.page-header {
  padding: 160px 48px 72px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.page-title {
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.page-meta {
  font-size: 12px;
  color: var(--fg-dim);
  line-height: 1.9;
  font-weight: 300;
  text-align: right;
  padding-bottom: 8px;
}


/* ══════════════════════════════════════════
   WORK PAGE — Filter Bar
═══════════════════════════════════════════ */

.filters {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar { display: none; }

.filter-btn {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 20px 24px 18px;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}

.filter-btn:hover { color: var(--fg); }

.filter-btn.active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}


/* ══════════════════════════════════════════
   WORK PAGE — Tile Grid
═══════════════════════════════════════════ */

.work-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.work-tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.work-tile-img {
  position: absolute;
  inset: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-tile:hover .work-tile-img { transform: scale(1.05); }

.work-tile-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.78) 100%);
}

.work-tile-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 28px;
  z-index: 1;
}

.work-tile-cat {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 6px;
}

.work-tile-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--fg);
  letter-spacing: 0.03em;
  transition: letter-spacing 0.35s;
}

.work-tile:hover .work-tile-title { letter-spacing: 0.06em; }

.work-tile-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  line-height: 1.7;
  margin-top: 6px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s;
}

.work-tile:hover .work-tile-desc { max-height: 60px; opacity: 1; }

/* hidden tile (filtered out) */
.work-tile[hidden] { display: none; }


/* ══════════════════════════════════════════
   MOBILE — 768px
═══════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Nav */
  .nav { padding: 20px 24px; }
  .nav.scrolled,
  .nav.always-frosted { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero-content { padding: 0 24px 56px; }
  .hero-meta { display: none; }
  .hero-counter { right: 20px; }
  .scroll-line { display: none; }

  /* Featured Work */
  .work-header { padding: 32px 24px 24px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .work-item-main,
  .work-item-side { min-height: 320px; }
  .work-arrow { opacity: 1; transform: none; }

  /* Specialisms */
  .spec { grid-template-columns: 1fr 1fr !important; }
  .spec-item { padding: 36px 24px; min-height: 240px; }
  .spec-item:nth-child(2n) { border-right: none; }

  /* Statement */
  .statement {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 24px;
  }
  .statement-quote { font-size: 52px; }

  /* Footer */
  .footer {
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Work page */
  .page-header {
    padding: 120px 24px 48px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .page-title { font-size: 72px; }
  .page-meta { text-align: left; }
  .filters { padding: 0 24px; }

  .work-tiles { grid-template-columns: 1fr 1fr; }
  .work-tile-desc { display: none; }
}

/* ══════════════════════════════════════════
   MOBILE — 480px
═══════════════════════════════════════════ */

@media (max-width: 480px) {
  .spec { grid-template-columns: 1fr; }
  .spec-item:nth-child(2n) { border-right: 1px solid var(--border); }
  .spec-item:last-child { border-right: none; }
}
