@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #ffffff;
  --panel: #f4f4f4;
  --text-dark: #262626;
  --text-mid: #565656;
  --text-light: #8a8a8a;
  --border: #e0e0e0;
  --max-width: 820px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

/* ---------- NAV ---------- */
header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1rem;
  z-index: 10;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

nav a {
  position: relative;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 4px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--text-dark);
  transition: width 0.25s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a.active,
nav a:hover {
  color: var(--text-dark);
}

/* ---------- LAYOUT ---------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

h1 {
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

p { color: var(--text-mid); margin-bottom: 1rem; }

a {
  color: var(--text-dark);
  text-decoration: underline;
  text-decoration-color: var(--text-light);
  text-decoration-thickness: 1px;
}

a:hover { color: #000; text-decoration-color: var(--text-dark); }

/* ---------- HERO (Home) ---------- */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero .eyebrow {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 480px;
  margin: 0 auto 1rem;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--text-light);
  margin: 2.5rem auto;
}

.explore-heading {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.cta-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  border-color: var(--text-light);
}

.cta-card span {
  display: block;
  margin-top: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- LINKS ROW (About) ---------- */
.links-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.links-row a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  transition: all 0.2s ease;
}

.links-row a:hover {
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.about-body p:first-of-type {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-dark);
}

/* ---------- CARDS (Projects / Films) ---------- */
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  background: #fff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.07);
  border-color: #cfcfcf;
}

.card h3 { margin-bottom: 0.4rem; }

.card .index {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* Film card: poster + content */
.film-card {
  display: flex;
  gap: 1.5rem;
}

.logline {
  font-style: italic;
  color: var(--text-mid);
  font-size: 0.95rem;
  margin: 0.4rem 0 0.75rem;
}

@media (max-width: 540px) {
  .film-card { flex-direction: column; }
}

.poster-placeholder {
  flex: 0 0 110px;
  width: 110px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  border: 1px dashed #c9c9c9;
  background: repeating-linear-gradient(
    45deg,
    #f6f6f6,
    #f6f6f6 10px,
    #eeeeee 10px,
    #eeeeee 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow: hidden;
}

/* To add a real poster, replace the placeholder div with:
   <img class="poster-img" src="posters/your-poster.jpg" alt="Film title poster">
*/
.poster-img {
  flex: 0 0 110px;
  width: 110px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.film-content { flex: 1; }

.meta {
  color: var(--text-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-mid);
  background: var(--panel);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  margin: 0.25rem 0.25rem 0 0;
}

.placeholder {
  color: var(--text-light);
  font-style: italic;
  font-size: 0.85rem;
}

/* ---------- KRUBBIS SECTION (visually separated) ---------- */
.krubbis-section {
  margin-top: 4rem;
  padding: 2.5rem 1.75rem;
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid var(--border);
  position: relative;
}

.krubbis-section::before {
  content: "ALTER EGO";
  position: absolute;
  top: -11px;
  left: 1.75rem;
  background: var(--bg);
  padding: 0 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
}

.krubbis-section h2 {
  font-family: 'Courier New', monospace;
  font-size: 1.6rem;
  border-bottom: none;
  margin-top: 0;
}

.krubbis-section .intro {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.krubbis-section .card {
  background: #fff;
}

/* ---------- SCROLLBAR / MISC ---------- */
::selection { background: #d8d8d8; }