/* ============================================================
   MENTARI PRODUCTIONS — design tokens
   Palette: black ink / light grey paper (#e7e5e0) throughout —
   no other colour in the UI. Colour lives exclusively in the photos
   and films. Type: Fira Mono throughout (one family),
   hierarchy built from weight and size, not colour.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@700;800;900&family=Special+Elite&display=swap');

:root {
  --paper: #e7e5e0;
  --paper-dim: #dcdad3;
  --ink: #000000;
  --ink-soft: #5c5c5c;
  --rule: #cccccc;
  --rule-strong: #000000;

  --font-display: "Fira Mono", Menlo, ui-monospace, "SF Mono", monospace;
  --font-mono: "Fira Mono", Menlo, ui-monospace, "SF Mono", monospace;
  --font-wordmark: "Unbounded", var(--font-display);
  --font-stamp: "Special Elite", "Courier New", monospace;

  --gutter: 6vw;
  --max: 1400px;

  color-scheme: light;
}

/* Always the light grey theme — no auto dark mode, regardless of
   the visitor's OS/browser preference. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---- film-grain overlay, fixed & subtle ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---- skip link ---- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.8em 1.2em; z-index: 1000;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.skip-link:focus { left: var(--gutter); top: var(--gutter); }

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

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header, .site-header a { color: var(--ink); }

.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.site-nav a {
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor;
  transition: right 0.3s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }

.nav-toggle {
  display: none;
  background: none; border: 0; color: inherit;
  font-family: var(--font-mono); font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0.7rem 0.2rem;
  margin: -0.7rem -0.2rem;
  min-height: 44px;
  align-items: center;
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--paper);
    color: var(--ink);
    justify-content: center;
    align-items: flex-start;
    padding: var(--gutter);
    gap: 1.6rem;
    font-size: 1.4rem;
    z-index: 99;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--paper);
}
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: contrast(1.05);
  transform: scale(1.06);
  opacity: 0;
  animation: hero-in 1.8s cubic-bezier(.16,.9,.28,1) forwards;
}
@keyframes hero-in {
  0% { opacity: 0; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1.06); }
}
.hero-reveal {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
@media (hover: none), (pointer: coarse) {
  .hero-reveal { display: none; }
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--ink);
  padding: 0 var(--gutter) 4.2rem;
  max-width: 1180px;
}
.hero h1 {
  font-family: var(--font-stamp);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  font-size: clamp(0.67rem, 1.96vw, 1.54rem);
  line-height: 1.22;
  letter-spacing: 0.01em;
  margin: 0 0 1.4rem;
  opacity: 0;
  animation: fade-up 1s ease 0.5s forwards;
  text-shadow: 0.4px 0.4px 0 rgba(0,0,0,0.35);
}
.hero-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.6;
  max-width: 46ch;
  color: var(--ink-soft);
  opacity: 0;
  animation: fade-up 1s ease 0.65s forwards;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fade-up 0.9s ease 0.9s forwards;
  margin: 2rem 0 0;
  display: flex;
  gap: 0.9em;
  flex-wrap: wrap;
}
.hero-eyebrow span { opacity: 0.72; }
.hero-eyebrow span:not(:first-child)::before { content: "· "; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 2.2rem;
  z-index: 2;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  opacity: 0;
  animation: fade-up 1s ease 1.1s forwards;
}
.hero-scroll::before {
  content: "";
  width: 1px; height: 38px;
  background: currentColor;
  opacity: 0.6;
}

/* ============================================================
   Section scaffolding
   ============================================================ */
section { position: relative; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: 6.5rem 0 2.6rem;
  border-top: 1px solid var(--rule);
}
.section-index {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
  padding-top: 0.35em;
}
.section-title {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-note {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
  max-width: 26ch;
  text-align: right;
  padding-top: 0.35em;
}
@media (max-width: 700px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .section-note { text-align: left; }
}

/* ============================================================
   Intro / manifesto block
   ============================================================ */
.intro {
  padding: 5.2rem 0 2rem;
}
.intro p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  line-height: 1.42;
  max-width: 30ch;
  margin: 0;
  letter-spacing: -0.005em;
}
.intro .lede { max-width: 34ch; }

/* ============================================================
   Work index — text-row list; hovering a row opens the photo
   full-bleed behind the whole viewport.
   ============================================================ */
.work-list {
  border-top: 1px solid var(--rule);
  position: relative;
  z-index: 2;
}
.work-row {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto auto;
  align-items: baseline;
  gap: 1.6rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.4s ease, color 0.3s ease;
}
.work-list:hover .work-row { opacity: 0.4; }
.work-row:hover, .work-row:focus-visible { opacity: 1 !important; }
.work-row, .work-frame, .work-title, .work-meta, .work-arrow, .work-list, .section-index, .section-title, .section-note {
  transition: color 0.3s ease, border-color 0.3s ease, opacity 0.4s ease;
}

.work-frame {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
}
.work-title {
  font-family: var(--font-stamp);
  font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  letter-spacing: 0.005em;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.work-row:hover .work-title, .work-row:focus-visible .work-title { transform: translateX(0.35em); }
.work-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
}
.work-arrow {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.35s ease;
}
.work-row:hover .work-arrow, .work-row:focus-visible .work-arrow { opacity: 1; transform: translateX(0); }

@media (max-width: 700px) {
  .work-row {
    grid-template-columns: 2.6rem 1fr auto;
    cursor: pointer;
  }
  .work-meta { display: none; }
  .work-list:hover .work-row { opacity: 1; }
}

/* full-bleed hover reveal */
.cursor-preview {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.cursor-preview.active { opacity: 1; }
.cursor-preview::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.42);
}
.cursor-preview img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.cursor-preview img.show { opacity: 1; }
@media (max-width: 700px) { .cursor-preview { display: none; } }

/* when a row is open full-bleed, flip section text to the site's
   light grey so it reads over the photo regardless of theme */
body.work-hovering #work .section-index,
body.work-hovering #work .section-title,
body.work-hovering #work .section-note,
body.work-hovering .work-row,
body.work-hovering .work-frame,
body.work-hovering .work-title,
body.work-hovering .work-meta,
body.work-hovering .work-arrow {
  color: #e7e5e0;
}
body.work-hovering #work .section-head,
body.work-hovering .work-list,
body.work-hovering .work-row {
  border-color: rgba(231,229,224,0.3);
}

/* mobile inline thumb */
.work-thumb-inline {
  display: none;
  width: 100%; aspect-ratio: 3/2; overflow: hidden; margin-top: 0.6rem;
}
.work-thumb-inline img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .work-row .work-thumb-inline { display: block; grid-column: 1 / -1; }
}

/* ============================================================
   About
   ============================================================ */
.about {
  padding-bottom: 2rem;
}
.about-intro {
  max-width: 92ch;
  padding-bottom: 3.5rem;
}
.about-intro p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.68;
  color: var(--ink-soft);
}
.about-intro p + p { margin-top: 1.2em; }
.about-intro strong { color: var(--ink); font-weight: 700; }
.about-intro p.about-pivot {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--ink);
  line-height: 1.5;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}

/* ---- founders: side by side, hovering the NAME (only) reveals a
   full-bleed photo, same mechanism as the work index ---- */
.founders-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 3rem;
}
.founder-row + .founder-row {
  border-left: 1px solid var(--rule);
  padding-left: 4.5rem;
  margin-left: -4.5rem;
}
.founder-head {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: baseline;
  gap: 1rem 1.2rem;
}
.founder-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
}
.founder-name {
  font-family: var(--font-stamp);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin: 0;
  letter-spacing: 0.005em;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), color 0.3s ease;
}
.founder-name:hover { transform: translateX(0.3em); }
.founder-role {
  grid-column: 2 / -1;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.founder-bio {
  max-width: 46ch;
  margin-top: 1.6rem;
}
.founder-bio p {
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}
.founder-bio p + p { margin-top: 1.1em; }

@media (max-width: 800px) {
  .founders-list { grid-template-columns: 1fr; gap: 2.8rem; }
  .founder-row + .founder-row {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    margin-left: 0;
    padding-top: 2.8rem;
  }
}

/* while a founder photo is open full-bleed, flip About's text to
   the site's light grey so it reads over the photo */
body.about-hovering #about .section-index,
body.about-hovering #about .section-title,
body.about-hovering #about .section-note,
body.about-hovering .about-intro p,
body.about-hovering .founder-head,
body.about-hovering .founder-num,
body.about-hovering .founder-name,
body.about-hovering .founder-role,
body.about-hovering .founder-bio p {
  color: #e7e5e0;
}
body.about-hovering .about-intro strong { color: #ffffff; }

/* ============================================================
   Services
   ============================================================ */
.services-intro {
  padding-bottom: 3.5rem;
}
.services-lede {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
}
.services-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--ink);
  margin: 1.4rem 0 0;
}

.services-list {
  border-top: 1px solid var(--rule);
}
.service-row {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.6rem;
  padding: 2.8rem 0;
  border-bottom: 1px solid var(--rule);
}
.service-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
  padding-top: 0.3em;
}
.service-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}
.service-name {
  font-family: var(--font-stamp);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  margin: 0 0 0.7rem;
  line-height: 1.3;
}
.service-desc {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 42ch;
}
.service-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--ink);
}
.service-bullets li {
  padding-left: 1.2em;
  position: relative;
}
.service-bullets li::before {
  content: "·";
  position: absolute; left: 0.3em;
  color: var(--ink-soft);
}
@media (max-width: 800px) {
  .service-row { grid-template-columns: 2.4rem 1fr; padding: 2rem 0; }
  .service-body { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ============================================================
   Contact / footer
   ============================================================ */
.contact {
  background: var(--paper);
  color: var(--ink);
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
}
.contact .section-head { border-top: 0; }
.contact .section-index, .contact .section-note { color: var(--ink-soft); }

.contact-main {
  padding: 1rem 0 5rem;
}
.contact-link {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 5.4vw, 3.8rem);
  text-decoration: none;
  display: inline-block;
  line-height: 1.15;
  border-bottom: 1px solid var(--rule-strong);
  transition: opacity 0.3s ease;
}
.contact-link:hover { opacity: 0.6; }

.contact-details {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
  margin-top: 3.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.contact-details dt { color: var(--ink-soft); margin-bottom: 0.4rem; }
.contact-details dd { margin: 0; }
.contact-details a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact-details a:hover { border-color: var(--ink); }

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 1.6rem 0 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ============================================================
   Project detail pages
   ============================================================ */
.project-hero {
  padding: 8.5rem var(--gutter) 3rem;
  border-bottom: 1px solid var(--rule);
}
.project-back {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--ink-soft);
  margin-bottom: 2.4rem;
}
.project-back:hover { color: var(--ink); }
.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.project-title {
  font-family: var(--font-wordmark);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 4rem);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.project-info {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: right;
}
.project-desc {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  max-width: 52ch;
  color: var(--ink-soft);
  margin: 2.2rem 0 0;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.4vw;
  padding: 1.4vw var(--gutter) 6rem;
}
.project-gallery figure { margin: 0; grid-column: span 12; }
.project-gallery .w12 { grid-column: span 12; }
.project-gallery img { width: 100%; height: auto; display: block; }
.project-gallery .w7 { grid-column: span 7; }
.project-gallery .w5 { grid-column: span 5; }
.project-gallery .w6 { grid-column: span 6; }
.project-gallery .w8 { grid-column: span 8; }
.project-gallery .w4 { grid-column: span 4; }
.project-gallery .w3 { grid-column: span 3; }
.project-gallery .film-row { margin: 0; }
@media (max-width: 800px) {
  .project-gallery .w7, .project-gallery .w5, .project-gallery .w6,
  .project-gallery .w8, .project-gallery .w4, .project-gallery .w3 { grid-column: span 12; }
}

/* ---- embedded films: click-to-play, no third-party script until clicked ---- */
.project-films {
  border-top: 1px solid var(--rule);
  padding: 2.6rem var(--gutter) 4rem;
}
.films-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem 1.8rem;
}
.film-row { display: flex; flex-direction: column; gap: 0.7rem; }
.film-play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: var(--ink);
  cursor: pointer;
  overflow: hidden;
}
.film-play img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.film-play:hover img { opacity: 1; transform: scale(1.03); }
.film-play::after {
  content: "";
  position: absolute; inset: 0;
  margin: auto;
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  background: rgba(234,230,218,0.92);
}
.film-play::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 0.55em 0 0.55em 0.9em;
  border-color: transparent transparent transparent var(--ink);
  z-index: 1;
}
.film-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}
.film-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding: 2.2rem var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.project-nav a { text-decoration: none; color: var(--ink-soft); }
.project-nav a:hover { color: var(--ink); }
