/* ==========================================================================
   AVENIC — design system
   Typographic HUD portfolio, rebuilt in the structural language of the
   "Wide Angle" Framer template: full-bleed video, monospace HUD overlays,
   huge light-weight display type, black/white section alternation.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Martian+Mono:wght@100..800&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=switzer@300,400,500,600,700&display=swap');

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-900: #2b2926;
  --gray-700: #3f3c39;
  --gray-400: #aeaca8;
  --gray-200: #e4e2de;

  --font-display: Switzer, "Switzer Placeholder", sans-serif;
  --font-mono: "Martian Mono", monospace;
  --font-body: Manrope, "Manrope Placeholder", sans-serif;

  --hud-size: 12px;
  --hud-tracking: -0.01em;

  --edge: 20px;
  --nav-h: 64px;
  --section-pad: 96px;
  --gutter: 0px; /* white page frame; set >0 on desktop only */
}

* { box-sizing: border-box; }

html { background: var(--black); }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* desktop-only white page frame (loewe.com-style gutter; mobile stays full-bleed) */
@media (min-width: 781px) {
  :root { --gutter: clamp(20px, 2vw, 40px); }
  html, body { background: var(--white); }
  body { padding-inline: var(--gutter); }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }

/* project pages: white page background (visible around the mobile hero) */
body.project-page { background: var(--white); }
html:has(body.project-page) { background: var(--white); }

/* ---------- HUD monospace utility ---------- */
.hud {
  font-family: var(--font-mono);
  font-size: var(--hud-size);
  font-weight: 400;
  letter-spacing: var(--hud-tracking);
  text-transform: uppercase;
  line-height: 1.6;
}

/* ---------- Top navigation (fixed HUD bar) ---------- */
.nav {
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--edge);
  padding: 18px var(--edge);
  mix-blend-mode: difference;
  color: var(--white);
  pointer-events: none;
}
.nav .col.center { text-align: center; align-items: center; }
.nav a, .nav .clock, .nav .brand { pointer-events: auto; }
.nav .brand-line { display: flex; gap: 10px; align-items: baseline; margin-bottom: 2px; }
.nav .brand-line strong { font-family: var(--font-mono); font-size: var(--hud-size); }
.nav .links a { position: relative; margin-right: 2px; }
.nav .links a:not(:last-child)::after { content: "/"; margin: 0 3px; opacity: .5; }
.nav .links a:hover { opacity: .55; }
.nav .col { display: flex; flex-direction: column; }
.nav .col.right { text-align: right; align-items: flex-end; }

@media (max-width: 780px) {
  .nav { grid-template-columns: 1fr auto; gap: 8px; }
  .nav .col.center { display: none; }
  .nav .col.right { display: flex; }
  .nav .col.right a { font-size: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: var(--black);
}
.hero video, .hero .fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 70%, rgba(0,0,0,.45) 100%);
}
.hero .caption-row {
  position: absolute;
  left: 0; right: 0; bottom: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--edge);
  padding: 0 var(--edge);
  color: var(--white);
}
.hero .caption-row .col.right { text-align: right; }
.hero .caption-row .col.center { text-align: center; }
.hero .scroll-cue {
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%);
  color: var(--white);
}
.hero .scroll-cue::before {
  content: "";
  display: block;
  width: 1px; height: 22px;
  background: rgba(255,255,255,.6);
  margin: 0 auto 8px;
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse { 0%,100% { transform: scaleY(1); opacity:.4 } 50% { transform: scaleY(1.4); opacity:1 } }

@media (max-width: 780px) {
  .hero .caption-row { grid-template-columns: 1fr 1fr; row-gap: 10px; }
}

/* ---------- Section display headings ---------- */
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--section-pad) var(--edge) 34px;
  background: var(--white);
  color: var(--black);
}
.section-head.on-black { background: var(--black); color: var(--white); }
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 11vw, 160px);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.8;
}
.section-head .count {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 11vw, 160px);
  letter-spacing: -0.05em;
  line-height: 0.8;
}
@media (max-width: 780px) {
  /* Headlines mobil: kleiner, umbruchfähig, Nummer dezent — nichts wird abgeschnitten */
  .section-head { padding: 48px var(--edge) 22px; gap: 14px; align-items: baseline; }
  .section-head h2 { font-size: clamp(30px, 9vw, 56px); line-height: .95; }
  .section-head .count { font-size: clamp(18px, 5vw, 30px); flex: none; }
}

/* ---------- Latest / project media grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}
@media (max-width: 780px) { .grid-2 { grid-template-columns: 1fr; } }

.project-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-900);
  border-bottom: 1px solid var(--black);
}
.project-tile:nth-child(odd) { border-right: 1px solid var(--black); }
@media (max-width: 780px) { .project-tile:nth-child(odd) { border-right: none; } }

.project-tile video, .project-tile .placeholder {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, #201f1d 0 2px, #141312 2px 26px);
  color: var(--gray-400);
  text-align: center;
  padding: 20px;
}
.placeholder span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid var(--gray-700);
  padding: 8px 14px;
  border-radius: 999px;
}
.project-tile .tile-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0));
  color: var(--white);
}
.project-tile .tile-caption .studio { opacity: .7; text-align: center; flex: 1; }
.project-tile .tile-caption .date { opacity: .7; text-align: right; }

/* row of static captions under grid, matching template's "info bar" under each pair */
.tile-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  color: var(--black);
  border-bottom: 1px solid var(--black);
}
.tile-info-row > div { padding: 14px 18px; }
.tile-info-row > div:first-child { border-right: 1px solid var(--black); }
.tile-info-row .name { font-weight: 600; font-size: 13px; letter-spacing: -.01em; }
.tile-info-row .meta { font-family: var(--font-mono); font-size: 10px; color: var(--gray-700); margin-top: 4px; }

/* ---------- Homepage "Latest" — 2-large then 3-small tile rows ---------- */
.tile-row {
  display: grid;
  background: var(--white);
  border-bottom: 1px solid var(--black);
}
.tile-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.tile-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
/* neutralize the generic .cols-3 info-page class that collides with tile rows:
   tiles are edge-to-edge with 1px borders, per the design system */
.tile-row.cols-2, .tile-row.cols-3 { gap: 0; padding-top: 0; border-top: none; }
@media (max-width: 780px) {
  .tile-row.cols-2 { grid-template-columns: 1fr; }
  /* 3er-Reihen mobil: 1 groß + 2 nebeneinander */
  /* mobile: flush image grid — 1 big + 2 pair, zero gaps, single black 1px lines */
  .tile-row.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding-top: 0; border-top: none; border-bottom: none; }
  .tile-row.cols-3 .tile-cell:first-child { grid-column: 1 / -1; }
  .tile-row.cols-3 .tile-cell { border-right: none; border-bottom: none; }
  .tile-row.cols-3 .tile-cell:nth-child(2) { border-right: 1px solid var(--black); }
  .tile-row.cols-3 .tile-cell .caption { display: none; }
  .tile-row.cols-3 .tile-cell .project-tile { border-bottom: 1px solid var(--black); }
  .tile-cell .caption { padding: 10px 12px 14px; }
  .tile-cell .caption .name, .tile-cell .caption .studio, .tile-cell .caption .date { font-size: 9px; }
}

.tile-cell { display: flex; flex-direction: column; border-right: 1px solid var(--black); }
.tile-cell:last-child { border-right: none; }
@media (max-width: 780px) { .tile-cell { border-right: none; border-bottom: 1px solid var(--black); } }

/* all Latest tiles share the original's ~1.652:1 horizontal ratio */
.tile-cell .project-tile { aspect-ratio: 855 / 518; border-bottom: 1px solid var(--black); }

.tile-cell .caption {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 16px 20px 20px;
  background: var(--white); color: var(--black);
}
.tile-cell .caption .name { font-family: var(--font-mono); font-size: 12px; letter-spacing: -.01em; text-transform: uppercase; color: var(--black); }
.tile-cell .caption .studio { font-family: var(--font-mono); font-size: 12px; color: var(--gray-400); margin-top: 4px; text-transform: uppercase; }
.tile-cell .caption .date { font-family: var(--font-mono); font-size: 12px; color: var(--gray-700); text-transform: uppercase; }

/* ---------- About section — 4-column row + giant ABOUT link ---------- */
.about-section { background: var(--white); color: var(--black); padding: 128px var(--edge) 0; }
.about-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  padding-bottom: 110px;
}
@media (max-width: 900px) { .about-cols { grid-template-columns: 1fr 1fr; row-gap: 46px; } }
@media (max-width: 560px) { .about-cols { grid-template-columns: 1fr; } }
.about-cols .meta-stack { font-family: var(--font-mono); font-size: var(--hud-size); text-transform: uppercase; color: var(--black); line-height: 1.7; }
.about-cols .lede { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; line-height: 1.75; color: var(--black); margin: 30px 0 0; max-width: 32ch; }
.about-cols h3 { font-family: var(--font-mono); font-size: var(--hud-size); font-weight: 400; text-transform: uppercase; color: var(--gray-400); margin: 0 0 20px; }
.about-cols ul li { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--black); padding: 4px 0; }

.about-cta {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 var(--edge) 96px;
}
.about-cta h2 {
  margin: 0; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(56px, 11vw, 160px); letter-spacing: -0.05em; text-transform: uppercase; line-height: .8;
}
.about-cta .arrow { font-size: clamp(44px, 6vw, 92px); line-height: 1; transition: transform .35s cubic-bezier(.16,.8,.24,1); }
.about-cta:hover .arrow { transform: translate(8px, -8px); }

/* ---------- Full-bleed video banner (pinned-style moment) ---------- */
.video-teaser { position: relative; height: 100svh; overflow: hidden; background: var(--black); }
.video-teaser video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) brightness(.82); }
.video-teaser .corner-labels {
  position: absolute; inset: 0; padding: 34px var(--edge);
  display: flex; justify-content: space-between; align-items: flex-start;
  color: var(--white);
}
.video-teaser .corner-labels .right { text-align: right; }

/* ---------- Statement ---------- */
.statement-section { background: var(--white); color: var(--black); padding: var(--section-pad) var(--edge); text-align: center; }
.statement-section p {
  margin: 0 auto; max-width: 940px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(22px, 3.4vw, 38px); letter-spacing: -0.01em; line-height: 1.3;
  text-transform: uppercase;
}

/* ---------- Focus / Approach two columns ---------- */
.focus-approach {
  background: var(--white); color: var(--black);
  padding: 0 var(--edge) 90px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
@media (max-width: 780px) { .focus-approach { grid-template-columns: 1fr; } }
.focus-approach .label { font-family: var(--font-mono); font-size: var(--hud-size); text-transform: uppercase; color: var(--gray-400); margin-bottom: 16px; }
.focus-approach p { font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; line-height: 1.8; color: var(--black); max-width: 46ch; }
.focus-approach .right { text-align: right; margin-left: auto; }

/* ---------- Filmstrip marquee (4 across, seamless loop) ---------- */
.filmstrip { background: var(--white); overflow: hidden; padding-bottom: 96px; }
.filmstrip-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.filmstrip:hover .filmstrip-track { animation-play-state: paused; }
/* each frame block = 25vw incl. its right gap, so 4 fill the viewport exactly and
   the duplicated set loops at -50% with no white gap */
.filmstrip-track .frame {
  width: calc(25vw - 8px);
  aspect-ratio: 855 / 518;
  flex: none;
  margin-right: 8px;
  position: relative;
  overflow: hidden;
  background: var(--gray-900);
}
@media (max-width: 780px) { .filmstrip-track .frame { width: calc(50vw - 8px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Categories line (in place of client logos) ---------- */
.categories-line { background: var(--white); color: var(--black); text-align: center; padding: 0 var(--edge) 110px; }
.categories-line .label { font-family: var(--font-mono); font-size: var(--hud-size); text-transform: uppercase; color: var(--gray-400); margin-bottom: 22px; }
.categories-line p { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.9; max-width: 900px; margin: 0 auto; }

/* ---------- Quote with corner brackets ---------- */
.quote-section { position: relative; background: var(--white); color: var(--black); padding: 140px var(--edge); display: flex; justify-content: center; }
.quote-section .frame { position: relative; padding: 50px 60px; }
.quote-section .frame::before, .quote-section .frame::after,
.quote-section .frame .corner-br, .quote-section .frame .corner-bl { content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--black); }
.quote-section .frame::before { top: 0; left: 0; border-top: 1px solid; border-left: 1px solid; }
.quote-section .frame::after { top: 0; right: 0; border-top: 1px solid; border-right: 1px solid; }
.quote-section .frame .corner-bl { bottom: 0; left: 0; border-bottom: 1px solid; border-left: 1px solid; }
.quote-section .frame .corner-br { bottom: 0; right: 0; border-bottom: 1px solid; border-right: 1px solid; }
.quote-section p {
  margin: 0; text-align: center; max-width: 640px;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.01em; line-height: 1.4;
}

/* ---------- Reveal on scroll ---------- */
/* generic fade + slide up */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s cubic-bezier(.16,.8,.24,1), transform 1.1s cubic-bezier(.16,.8,.24,1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* mask "come up" — text slides up from behind its own clipped box */
.reveal-mask { overflow: hidden; }
.reveal-mask > * {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(.16,.8,.24,1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-mask.is-visible > * { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .reveal-mask > * { transition: none; transform: none; opacity: 1; }
}

/* ---------- About / services (dark section, used on info.html) ---------- */
.about-block {
  background: var(--black);
  color: var(--white);
  padding: 120px var(--edge);
}
.about-block .lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.02em;
  max-width: 900px;
  line-height: 1.15;
  margin: 0 0 80px;
}
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--gray-700);
  padding-top: 30px;
}
@media (max-width: 780px) { .cols-3 { grid-template-columns: 1fr; } }
.cols-3 h3 { font-family: var(--font-mono); font-size: var(--hud-size); font-weight: 400; letter-spacing: -0.01em; text-transform: uppercase; color: var(--gray-400); margin: 0 0 18px; }
.cols-3 ul li { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: -0.01em; padding: 10px 0; border-top: 1px solid var(--gray-900); }
.cols-3 ul li:first-child { border-top: none; }

/* ---------- Footer ---------- */
.footer-top-bar {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--white); color: var(--gray-400);
  padding: 22px var(--edge);
  border-top: 1px solid var(--gray-200);
  font-family: var(--font-mono); font-size: var(--hud-size); text-transform: uppercase;
}
.footer-top-bar .brand { color: var(--gray-700); text-align: center; }
.footer-top-bar span:last-child { text-align: right; }

.footer {
  background: var(--white);
  color: var(--black);
  padding: 20px var(--edge) 50px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}
.footer .col.center { text-align: center; }
.footer .col.right { text-align: right; }
@media (max-width: 780px) {
  .footer { grid-template-columns: 1fr 1fr; row-gap: 13px; }
  .footer .col.center, .footer .col.right { text-align: left; }
  /* Profile sits below Contact (right column), not below Navigation */
  .footer .col.center { grid-column: 2; grid-row: 1; }
  .footer .col.right { grid-column: 2; grid-row: 2; }
  .footer .col:first-child { grid-column: 1; grid-row: 1 / span 2; }
}
.footer .col h4 { font-family: var(--font-mono); font-size: var(--hud-size); font-weight: 400; text-transform: uppercase; color: var(--gray-400); margin: 0 0 14px; }
.footer .col a, .footer .col span { display: block; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: var(--black); padding: 3px 0; }
.footer .col a:hover { opacity: .5; }

/* ---------- Work page ---------- */
.work-toolbar {
  display: flex; gap: 20px; align-items: center;
  font-family: var(--font-mono); font-size: var(--hud-size); text-transform: uppercase;
}
.work-toolbar button { display: flex; align-items: center; gap: 8px; opacity: .5; }
.work-toolbar button.active { opacity: 1; }
.work-toolbar button .dot { width: 6px; height: 6px; background: currentColor; }

.work-list { background: var(--white); color: var(--black); }
.work-list .row {
  display: grid;
  grid-template-columns: 2fr 2fr 2fr 1fr;
  padding: 16px var(--edge);
  border-top: 1px solid var(--gray-200);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  transition: opacity .2s ease;
}
.work-list .row:hover { opacity: .45; }
.work-list .row .year { text-align: right; }
@media (max-width: 780px) { .work-list .row { grid-template-columns: 1fr; gap: 4px; } .work-list .row .year { text-align: left; } }

.work-grid { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); }
@media (max-width: 780px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- Info page ---------- */
.split-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 140px var(--edge) 60px;
  background: var(--white); color: var(--black);
}
.split-head h1 {
  margin: 0; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(64px, 13vw, 190px); letter-spacing: -0.05em; text-transform: uppercase; line-height: .9;
}
.info-copy {
  background: var(--white); color: var(--black);
  padding: 0 var(--edge) 100px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
@media (max-width: 780px) { .info-copy { grid-template-columns: 1fr; } }
.info-copy p { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--gray-700); max-width: 46ch; }
.info-copy .label { font-family: var(--font-mono); font-size: var(--hud-size); text-transform: uppercase; color: var(--gray-400); margin-bottom: 14px; }

/* ---------- Contact page ---------- */
.contact-hero {
  background: var(--white); color: var(--black);
  padding: 160px var(--edge) 60px;
}
.contact-hero .row { display: flex; justify-content: space-between; align-items: flex-end; }
.contact-hero h1 { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(64px, 13vw, 180px); letter-spacing: -0.05em; text-transform: uppercase; line-height: .88; }
.contact-hero .sub { font-family: var(--font-mono); font-size: var(--hud-size); text-transform: uppercase; color: var(--gray-700); max-width: 560px; margin-top: 40px; line-height: 1.8; }

.contact-grid { background: var(--white); color: var(--black); padding: 0 var(--edge) 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .label { font-family: var(--font-mono); font-size: var(--hud-size); text-transform: uppercase; color: var(--gray-400); margin-bottom: 12px; }
.contact-grid .big-link { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 3vw, 34px); letter-spacing: -0.02em; display: block; margin-bottom: 6px; border-bottom: 1px solid transparent; }
.contact-grid .big-link:hover { border-color: var(--black); }

.form { display: flex; flex-direction: column; gap: 26px; max-width: 520px; }
.form label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; color: var(--gray-400); }
.form input, .form textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--gray-200);
  padding: 10px 0; font-family: var(--font-body); font-size: 16px; color: var(--black);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--black); }
.form button[type="submit"] {
  align-self: flex-start; margin-top: 10px;
  font-family: var(--font-mono); font-size: var(--hud-size); text-transform: uppercase;
  border: 1px solid var(--black); padding: 14px 26px; transition: background .2s ease, color .2s ease;
}
.form button[type="submit"]:hover { background: var(--black); color: var(--white); }

/* ---------- Custom cursor dot (subtle nod to template's custom-cursor feature) ---------- */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--white); mix-blend-mode: difference; pointer-events: none; z-index: 999;
  transform: translate(-50%, -50%); transition: transform .12s ease;
}
@media (hover: none) { .cursor-dot { display: none; } }
.cursor-dot { transition: opacity .15s ease; }
body.hide-cursor-dot .cursor-dot { opacity: 0; }

/* ---------- Click-to-play hero video ---------- */
.hero[data-player] { cursor: none; }
.hero[data-player] .scrim,
.hero[data-player] .caption-row { pointer-events: none; }
.play-cursor {
  position: fixed; left: 0; top: 0; z-index: 600;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  color: var(--white); text-shadow: 0 1px 10px rgba(0,0,0,.6);
  pointer-events: none; white-space: nowrap;
  opacity: 0; transition: opacity .18s ease;
}
.play-cursor.is-on { opacity: 1; }
@media (hover: none) { .hero[data-player] { cursor: auto; } .play-cursor { display: none; } }

/* Touch: der Cursor-Hinweis faellt weg, also ein zentrierter Play-Button im Frame.
   Auf Desktop bleibt alles unveraendert - das Element ist dort ausgeblendet. */
.play-tap { display: none; }
@media (hover: none) {
  .hero[data-player] .play-tap {
    display: grid; place-items: center;
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 58px; height: 58px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .8);
    background: rgba(0, 0, 0, .22);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    box-shadow: 0 2px 18px rgba(0, 0, 0, .35);
    z-index: 5; pointer-events: none;          /* Tap geht an den Hero, der schaltet um */
    opacity: 1; transition: opacity .3s ease;
  }
  /* Dreieck, optisch mittig (leicht nach rechts versetzt) */
  .hero[data-player] .play-tap::before {
    content: ""; width: 0; height: 0; margin-left: 4px;
    border-left: 13px solid var(--white);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
  }
  /* Waehrend der Wiedergabe ausblenden, beim Pausieren wieder zeigen */
  .hero[data-player].is-playing .play-tap { opacity: 0; }
}

/* media images fill their tile just like the video / placeholder do */
.project-tile img, .g-tile img, .filmstrip-track .frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ---------- Clickable tiles (link into project detail) ---------- */
a.tile-cell { text-decoration: none; color: inherit; }
a.project-tile { display: block; text-decoration: none; color: inherit; }
a.project-tile .placeholder { transition: transform .6s cubic-bezier(.16,.8,.24,1); }
a.project-tile:hover .placeholder { transform: scale(1.04); }
a.tile-cell .project-tile .placeholder,
a.tile-cell .project-tile video { transition: transform .6s cubic-bezier(.16,.8,.24,1), opacity .3s ease; }
a.tile-cell:hover .project-tile .placeholder,
a.tile-cell:hover .project-tile video { transform: scale(1.04); }
a.tile-cell .caption { transition: opacity .25s ease; }
a.tile-cell:hover .caption { opacity: .55; }
a.tile-cell .project-tile::after {
  content: "VIEW"; position: absolute; z-index: 2; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.9);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); border: 1px solid rgba(255,255,255,.6); border-radius: 999px;
  padding: 9px 16px; opacity: 0; transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
a.tile-cell:hover .project-tile::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- Project detail page ---------- */
.project-hero .caption-row .col.center { text-align: center; }

.project-info { background: var(--white); color: var(--black); padding: var(--section-pad) var(--edge); }
.project-info .credits-label { font-family: var(--font-mono); font-size: var(--hud-size); text-transform: uppercase; color: var(--gray-400); text-align: center; margin-bottom: 70px; }
.project-desc {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(22px, 3.2vw, 40px); letter-spacing: -0.015em; line-height: 1.22;
  text-transform: uppercase; color: var(--black);
  max-width: 62%; margin: 0 0 90px;
}
@media (max-width: 780px) { .project-desc { max-width: 100%; } }

.credits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  border-top: 1px solid var(--gray-200); padding-top: 34px;
}
@media (max-width: 900px) { .credits-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .credits-grid { grid-template-columns: 1fr; } }
.credits-grid .label { font-family: var(--font-mono); font-size: var(--hud-size); text-transform: uppercase; color: var(--gray-400); margin-bottom: 14px; }
.credits-grid .value { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; line-height: 1.7; color: var(--black); }

@media (max-width: 780px) {
  /* project hero mobil: nicht fullscreen, sondern wie die Galerie-Kacheln (volle Breite, Bild-Ratio) */
  .project-hero { height: auto; aspect-ratio: 855 / 518; margin-top: 62px; }
  .project-info { padding: 36px var(--edge) 44px; }
  .project-info .credits-label { margin-bottom: 28px; }
  .project-desc { margin: 0 0 36px; font-size: clamp(17px, 4.6vw, 24px); }
  .credits-grid { gap: 20px; padding-top: 22px; }
}

.project-gallery { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); }
@media (max-width: 780px) { .project-gallery { grid-template-columns: 1fr; } }
.project-gallery .g-tile {
  position: relative; aspect-ratio: 855 / 518; overflow: hidden; background: var(--gray-900);
  border-top: 1px solid var(--black);
}
.project-gallery .g-tile:nth-child(odd) { border-right: 1px solid var(--black); }
@media (max-width: 780px) { .project-gallery .g-tile:nth-child(odd) { border-right: none; } }
.project-gallery .g-tile video, .project-gallery .g-tile .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
