/* =========================================================
   Marco Damghani — Website
   Design tokens from client brief, mondtag-inspired editorial layout
   ========================================================= */

:root {
  --bg:        #E8DDC8;
  --text:      #82182A;   /* main red, slightly darker per feedback */
  --muted:     #7A4F4A;
  --soft:      #A96E68;
  --dark-red:  #54101A;
  --surface:   #F2E8D6;
  --border:    #C8AF8C;
  --petrol:    #1F5B63;
  --ocker:     #B98216;
  --contrast:  #2A1B22;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;
  --ease: cubic-bezier(.2,.6,.2,1);
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-Italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}

:root {
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--dark-red); text-decoration-color: var(--dark-red); }

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 700; line-height: 1.06; letter-spacing: -0.01em; margin: 0; }
.brand { font-family: var(--serif); }

.muted { color: var(--muted); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- language toggle visibility ---------- */
.t-en { display: none; }
html.en .t-de { display: none; }
html.en .t-en { display: inline; }
html.en p.t-en, html.en div.t-en, html.en li.t-en, html.en figcaption.t-en { display: block; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--dark-red); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--text); }

.lang-btn {
  font: inherit; font-size: .85rem; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 5px 12px; letter-spacing: .04em;
}
.lang-btn:hover { color: var(--text); border-color: var(--text); }
.lang-btn b { color: var(--text); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--text); padding: 8px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(36px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(3rem, 9vw, 7.5rem); line-height: .94; letter-spacing: -0.015em; }
.hero .roles { margin-top: 22px; font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: var(--soft); letter-spacing: -0.01em; }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius); }

/* eleventy-img wickelt Bilder in <picture>; ohne dies bräche das Bild-Layout,
   weil width:100%/aspect-ratio gegen den Wrapper statt gegen die Figur rechnet. */
picture { display: contents; }

/* ---------- section heading ---------- */
.section { padding-block: clamp(40px, 6vw, 84px); border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
.eyebrow { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }

/* ---------- tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; border: 1px solid var(--text); color: var(--text);
  background: transparent; text-decoration: none;
}
.tag-secondary { color: var(--petrol); border-color: var(--petrol); }
.tag-news { color: var(--ocker); border-color: var(--ocker); }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--bg) !important;
  padding: 11px 20px; border-radius: 100px; text-decoration: none;
  font-size: .92rem; letter-spacing: .01em; border: 1px solid var(--text);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.button:hover { background: var(--dark-red); border-color: var(--dark-red); color: var(--bg) !important; }
.button.ghost { background: transparent; color: var(--text) !important; }
.button.ghost:hover { background: var(--text); color: var(--bg) !important; }

/* ---------- aktuell: single feature ---------- */
.now-feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr;
}
.now-feature .media { overflow: hidden; background: var(--border); }
.now-feature .media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.now-feature .body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.now-feature h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.now-feature .meta { color: var(--muted); }
.now-feature .credits { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.now-feature .credits b { color: var(--soft); font-weight: 500; }
.now-feature .button { align-self: flex-start; margin-top: 8px; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 26px); }
.news-item {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--ocker);
  border-radius: var(--radius); padding: 22px 24px;
}
.news-item .kicker { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ocker); margin-bottom: 8px; }
.news-item p { margin: 0; color: var(--text); font-size: 1.05rem; line-height: 1.45; }

/* ---------- works ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter {
  font: inherit; font-size: .85rem; cursor: pointer; background: transparent;
  border: 1px solid var(--border); color: var(--muted); padding: 7px 15px; border-radius: 100px;
  transition: all .18s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--soft); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.work {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.work:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -20px rgba(42,27,34,.55); }
.work .media { aspect-ratio: 4/3; overflow: hidden; background: var(--border); }
.work .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.work:hover .media img { transform: scale(1.04); }
.work .body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work .year { font-size: .78rem; letter-spacing: .12em; color: var(--soft); }
.work h3 { font-size: 1.25rem; line-height: 1.1; }
.work .credits { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.work .credits b { color: var(--soft); font-weight: 500; }
.work .links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 6px; }
.work .links a { font-size: .85rem; }
.work.is-hidden { display: none; }

.year-block { margin-bottom: 8px; }
.year-rule { display: flex; align-items: center; gap: 16px; margin: 40px 0 24px; }
.year-rule h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--text); letter-spacing: -0.03em; }
.year-rule .line { flex: 1; height: 1px; background: var(--border); }

/* ---------- bio ---------- */
.bio-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.bio-figure img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.bio-figure figcaption { margin-top: 8px; font-size: .78rem; color: var(--soft); }
.prose p { margin: 0 0 1.1em; max-width: 60ch; font-size: 1.05rem; line-height: 1.6; }

/* ---------- press ---------- */
.media-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.press {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.press:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -20px rgba(42,27,34,.5); }
.press .thumb { width: 100%; aspect-ratio: 3/2; background: var(--bg); overflow: hidden; border-bottom: 1px solid var(--border); }
.press .thumb img { width: 100%; height: 100%; object-fit: cover; }
.press .ptext { padding: 18px 20px 22px; }
.press h3 { font-size: 1.2rem; color: var(--text); }
.press p { margin: 8px 0 0; font-size: .92rem; color: var(--muted); }

/* ---------- contact ---------- */
.contact-wrap { max-width: 820px; }
.contact-wrap h1 { font-size: clamp(2.6rem, 8vw, 6rem); line-height: .95; }
.contact-lines { margin-top: 40px; display: grid; gap: 26px; }
.contact-lines .label { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin-bottom: 4px; }
.contact-lines .val { font-size: 1.4rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 20px; padding-block: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .85rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer small { color: var(--soft); font-size: .8rem; }

/* ---------- page intro ---------- */
.page-intro { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(20px,3vw,40px); }
.page-intro h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); line-height: .95; }
.page-intro p { margin-top: 20px; max-width: 52ch; color: var(--muted); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .media-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-figure { max-width: 420px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-grid { grid-template-columns: 1fr; }
  .now-feature { grid-template-columns: 1fr; }
  .now-feature .media img { min-height: 240px; aspect-ratio: 16/10; }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px var(--gutter) 24px; display: none; }
  .nav.open { display: flex; }
  .nav a { font-size: 1.1rem; padding: 8px 0; }
  .nav-toggle { display: inline-flex; }
  .nav .lang-btn { margin-top: 10px; }
  .work-grid, .media-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
