/* ============================================================
   GERBERT FLOOR · gerbertfloor.com · v2
   Monochrome. Mono type. The work does the talking.
   IBM Plex Mono (everything) · Spectral italic (quotes, prose)
   ============================================================ */

:root {
  --black: #131211;
  --black-2: #1b1a18;
  --ink: #e9e9e5;
  --dim: #8b8b85;
  --faint: #55554f;
  --line: #1d1d1b;
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: "Fragment Mono", "Courier New", monospace;
  --pad: clamp(20px, 4vw, 64px);
  --shell: 1480px;
  --gap: clamp(14px, 2vw, 28px);
}

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

html { background: var(--black); }

body {
  background: transparent;
  position: relative;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}


/* real 16mm light leaks at the edges and film dirt, living BEHIND the work */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    url("/assets/img/leak-left.png"),
    url("/assets/img/leak-right.png"),
    url("/assets/img/dirt.png");
  background-position: left center, right center, 0 0;
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: min(30vw, 440px) 100%, min(30vw, 440px) 100%, 1100px auto;
}

/* film grain: a fixed noise layer over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--black); }

/* centered column: air on both sides of everything */
.site-header, .hero, .filters, .grid, .clients-strip, .site-footer,
.project-head, .player, .project-body, .project-stills, .project-nav,
.info, .journal, .stills-wall {
  max-width: var(--shell);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: clamp(22px, 4vh, 40px) var(--pad) 16px;
}

.site-title {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 360;
  letter-spacing: 0.005em;
  line-height: 1.05;
  text-transform: none;
}
.site-title .roles {
  display: block;
  color: var(--faint);
  font-weight: 400;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  font-size: 10px;
  margin-top: 10px;
}

.site-nav { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.site-nav a {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color .25s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* ---------- hero ---------- */

.hero { padding: clamp(12px, 2.5vh, 28px) var(--pad) clamp(16px, 3vh, 28px); text-align: center; }
.hero h1 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 2;
  color: var(--dim);
  max-width: 56ch;
  margin: 0 auto;
}
.hero .tagline { margin-top: 14px; font-size: 11px; color: var(--faint); max-width: 52ch; }

/* ---------- showreel ---------- */

.reel {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto clamp(28px, 5vh, 56px);
  aspect-ratio: 21 / 9;
  background: var(--black-2);
  overflow: hidden;
  cursor: pointer;
}
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.reel .reel-cta {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--ink); background: rgba(13,12,11,.12);
  transition: background .3s;
}
.reel:hover .reel-cta { background: rgba(13,12,11,.4); }

/* ---------- filters ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 0 var(--pad) 26px; justify-content: center; }
.filters button {
  background: none; border: none; cursor: pointer;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); padding: 3px 0;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.filters button:hover { color: var(--dim); }
.filters button.active { color: var(--ink); border-color: var(--ink); }

/* ---------- work grid ---------- */

.grid {
  columns: 4;
  column-gap: var(--gap);
  padding: 0 var(--pad) 80px;
}

.card {
  position: relative;
  display: block;
  break-inside: avoid;
  margin: 0;
  padding-bottom: calc(var(--gap) + 6px);
}
.card.hidden { display: none; }

.card .frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--black-2);
}
.card .frame.is-poster { aspect-ratio: auto; }
.card .frame.is-poster img { height: auto; }
.card .frame img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .88;
  transition: opacity .4s;
}
.card:hover .frame img { opacity: 1; }
.card .frame .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  pointer-events: none;
}
.card .frame .slide.on { opacity: 1; }
.card .frame.flick { animation: gateflick .15s linear; }
@keyframes gateflick {
  0%   { filter: brightness(1.7) contrast(1.08); }
  35%  { filter: brightness(.65); }
  100% { filter: none; }
}

.thumb-ph {
  width: 100%; height: 100%;
  display: flex; align-items: flex-end; padding: 14px;
  background: radial-gradient(120% 90% at 20% 0%, #191715 0%, var(--black-2) 60%);
}
.thumb-ph span {
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint);
}

.card .meta {
  padding: 0 1px 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .meta .n { color: var(--faint); margin-right: 16px; }
.card .meta .t { color: var(--ink); }
.card .meta .c { color: var(--dim); }

/* ---------- quotes ---------- */

.quote {
  break-inside: avoid;
  padding: clamp(20px, 4vh, 40px) 8% calc(clamp(20px, 4vh, 40px) + var(--gap));
  margin: 0;
  text-align: center;
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 400; font-style: italic;
  line-height: 1.7;
  color: var(--dim);
  max-width: 40ch; margin: 0 auto;
}
.quote cite {
  display: block; margin-top: 14px;
  font-family: var(--mono); font-style: normal;
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint);
}

/* ---------- project page ---------- */

.project-head { padding: clamp(28px, 6vh, 60px) var(--pad) 22px; }
.project-head h1 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(14px, 2vw, 19px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.project-head .slate {
  margin-top: 8px;
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--dim);
}
.project-head .slate .sep { color: var(--faint); padding: 0 7px; }
.project-head .slate .coords { color: var(--faint); }

.player { margin: 8px auto 0; padding: 0 var(--pad); aspect-ratio: 16 / 9; background: var(--black-2); position: relative; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .coming-soon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--faint);
}

.project-body { padding: clamp(26px, 5vh, 54px) var(--pad); max-width: 680px; }
.project-body p {
  font-family: var(--serif);
  font-size: 20px; font-weight: 400; line-height: 1.8;
  color: var(--ink);
}

.project-stills {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding: 0 var(--pad) 60px;
}
.project-stills img { grid-column: span 6; width: 100%; }
.project-stills img:nth-child(3n) { grid-column: span 12; }

.project-nav {
  display: flex; justify-content: space-between;
  padding: 0 var(--pad) 70px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
}
.project-nav a { color: var(--faint); transition: color .25s; }
.project-nav a:hover { color: var(--ink); }

/* ---------- stills page ---------- */

.stills-wall { columns: 3; column-gap: var(--gap); padding: 6px var(--pad) 80px; }
.stills-wall img { width: 100%; margin-bottom: var(--gap); break-inside: avoid; }
.stills-empty {
  padding: 70px var(--pad);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
}

/* ---------- info page ---------- */

.info {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(26px, 4.5vw, 70px);
  padding: clamp(30px, 7vh, 80px) var(--pad) 80px;
  align-items: start;
}
.info .portrait { background: var(--black-2); aspect-ratio: 4 / 5; overflow: hidden; }
.info .portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); }
.info .bio p {
  font-family: var(--serif);
  font-size: 20px; font-weight: 400; line-height: 1.8;
  margin-bottom: 1.4em;
}
.info .list {
  margin-top: 34px;
  font-size: 10px; letter-spacing: 0.13em; line-height: 2.3; text-transform: uppercase;
  color: var(--dim);
}
.info .list .label { color: var(--faint); display: block; margin-top: 20px; }
.info .list a { border-bottom: 1px solid var(--line); }
.info .list a:hover { color: var(--ink); }

/* ---------- clients strip ---------- */

.clients-strip {
  text-align: center;
  padding: 30px var(--pad) 56px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 2.4;
  max-width: 900px;
  margin: 0 auto;
}
.clients-strip .label { display: block; margin-bottom: 10px; color: var(--faint); opacity: .7; }
.clients-strip .names { color: var(--dim); }

/* ---------- journal ---------- */

.journal { max-width: 760px; margin: 0 auto; padding: clamp(20px, 4vh, 44px) var(--pad) 90px; }
.j-entry { padding: clamp(30px, 6vh, 56px) 0; border-bottom: 1px solid var(--line); }
.j-entry:last-child { border-bottom: none; }
.j-date { font-size: 10px; letter-spacing: 0.24em; color: var(--faint); text-transform: uppercase; }
.j-entry h2 {
  margin: 10px 0 18px;
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.j-entry p {
  font-family: var(--serif);
  font-size: 20px; font-weight: 400; line-height: 1.8;
  margin-bottom: 1.3em;
}
.j-entry img { width: 100%; margin: 14px 0; }
.journal-empty {
  padding: 70px var(--pad); text-align: center;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--pad) 38px;
  display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between;
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint);
}
.site-footer a { color: var(--dim); transition: color .25s; }
.site-footer a:hover { color: var(--ink); }
.site-footer .links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .stills-wall { columns: 2; }
  .info { grid-template-columns: 1fr; }
  .info .portrait { max-width: 380px; }
}
@media (max-width: 1100px) { .grid { columns: 3; } }
@media (max-width: 850px)  { .grid { columns: 2; } }
@media (max-width: 560px)  { .grid { columns: 1; } }
@media (max-width: 700px) {
  .project-stills img, .project-stills img:nth-child(3n) { grid-column: span 12; }
  .site-header { flex-direction: column; gap: 12px; }
  .reel { aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) { .stills-wall { columns: 1; } }

/* ---------- accessibility ---------- */

:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
