/* ============================================================
   ARC Berlin – arc-berlin.com
   Design: Editorial / Think-tank
   Palette: Rust #B23803 · Charcoal #1C1C1C · Off-white #F5F2ED · Grey #8D8B82
   Type: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --rust:      #B23803;
  --rust-dark: #8C2C02;
  --charcoal:  #1C1C1C;
  --grey:      #8D8B82;
  --sand:      #C4C5BF;
  --offwhite:  #F5F2ED;
  --white:     #FFFFFF;
  --max-w:     1160px;
  --col-gap:   clamp(1.5rem, 4vw, 3rem);
  /* Shared photo treatment – both portraits are B&W; this unifies tone */
  --photo-filter: grayscale(100%) contrast(1.08) brightness(1.03);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--offwhite);
}
img { display: block; max-width: 100%; }
a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { max-width: 68ch; }

/* ── Layout Utilities ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section--alt { background: var(--white); }

/* ── Navigation ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 242, 237, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav__logo img { height: 40px; width: auto; }
.nav__links {
  display: flex;
  list-style: none;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--rust);
  transition: width 0.25s ease;
}
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--rust); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--charcoal);
  transition: all 0.25s;
}

/* ── Slideshow / Hero ──────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 540px;
  overflow: hidden;
  background: var(--charcoal);
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide.active { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.62);
}
.hero__content {
  position: absolute;
  bottom: clamp(3rem, 10vh, 7rem);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  color: var(--white);
  pointer-events: none;
}
.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem;
  font-family: 'DM Sans', sans-serif;
}
.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}
.hero__title em { font-style: italic; color: #f0a882; }
.hero__sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.8);
  max-width: 52ch;
  font-weight: 300;
  pointer-events: all;
}
.slideshow__dots {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  display: flex;
  gap: 8px;
}
.slideshow__dots button {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.slideshow__dots button.active {
  background: var(--white);
  transform: scale(1.4);
}

/* ── Intro Strip ───────────────────────────────────────── */
.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--sand);
}
.intro-strip__item {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
  border-right: 1px solid var(--sand);
}
.intro-strip__item:last-child { border-right: none; }
.intro-strip__label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.intro-strip__item h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.intro-strip__item p  { font-size: 0.9rem; color: #555; line-height: 1.65; }

/* ── Page Hero (inner pages) ───────────────────────────── */
.page-hero {
  padding-top: 64px;
  background: var(--charcoal);
  color: var(--white);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.page-hero .container { padding-top: clamp(3rem, 7vw, 5rem); }
.page-hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1rem;
  font-family: 'DM Sans', sans-serif;
}
.page-hero h1 { color: var(--white); font-weight: 300; max-width: 18ch; }
.page-hero h1 em { color: #f0a882; font-style: italic; }
.page-hero__lead {
  margin-top: 1.25rem;
  color: rgba(255,255,255,0.75);
  max-width: 60ch;
  font-size: 1.05rem;
}

/* ── Accent rule ───────────────────────────────────────── */
.rule {
  width: 3rem; height: 2px;
  background: var(--rust);
  margin-bottom: 1.5rem;
}

/* ── Team ──────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: 3rem;
}

/* Full-bleed portrait card */
.team-card {
  display: flex;
  flex-direction: column;
}

.team-card__photo-wrap {
  position: relative;
  width: 100%;
  /* Fixed portrait ratio – same for both photos */
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #2a2a2a;
  margin-bottom: 1.5rem;
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Jan: very tight crop, pull slightly lower to show full face */
  object-position: center 15%;
  /* Unified B&W treatment: full greyscale + slight contrast lift */
  filter: var(--photo-filter);
  transition: transform 0.6s ease, filter 0.4s ease;
  display: block;
}

/* Jan's photo needs face centred – override per-card via class */
.team-card--jan .team-card__photo {
  object-position: center 10%;
}

/* Kristóf's photo is wider – centre crop works well */
.team-card--kristof .team-card__photo {
  object-position: center 20%;
}

/* Subtle zoom on hover, slight brightness lift */
.team-card__photo-wrap:hover .team-card__photo {
  transform: scale(1.03);
  filter: grayscale(100%) contrast(1.05) brightness(1.06);
}

/* Thin rust line at bottom of photo frame */
.team-card__photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rust);
}

.team-card__body { flex: 1; }

.team-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  margin-bottom: 0.2rem;
  color: var(--charcoal);
  line-height: 1.1;
}

.team-card__title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.1rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

.team-card p {
  font-size: 0.9rem;
  line-height: 1.72;
  color: #444;
  max-width: none;
  margin-bottom: 0.65rem;
}

/* ── Contact ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 6rem);
  margin-top: 3rem;
}
.contact-block h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.contact-block p, .contact-block address {
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.8;
  color: #444;
}
.contact-block a { color: var(--rust); }

/* ── Projects ──────────────────────────────────────────── */
.projects-filter {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.35rem 1rem;
  border: 1px solid var(--sand);
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--grey);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--white);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5px;
  background: var(--sand);
  border: 1.5px solid var(--sand);
}
.project-card {
  background: var(--offwhite);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: background 0.2s;
}
.project-card:hover { background: var(--white); }
.project-card__period {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 0.6rem;
}
.project-card__client {
  font-size: 0.78rem;
  color: var(--grey);
  margin-bottom: 0.9rem;
  letter-spacing: 0.04em;
}
.project-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.project-card p {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.65;
  max-width: none;
}
.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  background: rgba(178,56,3,0.08);
  color: var(--rust);
  border-radius: 2px;
}

/* ── Blog ──────────────────────────────────────────────── */
.blog-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--sand);
}
.blog-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--sand);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.blog-item:hover { opacity: 0.7; }
.blog-item__date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--grey);
  padding-top: 0.15rem;
}
.blog-item h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 0.5rem; }
.blog-item__excerpt { font-size: 0.9rem; color: #555; max-width: none; }
.blog-item__tags { margin-top: 0.75rem; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand img { height: 36px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1) opacity(0.8); }
.footer-brand p { font-size: 0.875rem; line-height: 1.65; max-width: 34ch; }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); text-decoration: none; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 768px) {
  .intro-strip { grid-template-columns: 1fr; }
  .intro-strip__item { border-right: none; border-bottom: 1px solid var(--sand); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .blog-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .nav__links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--offwhite);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
    gap: 1.25rem;
    border-bottom: 1px solid var(--sand);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }
}
