*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0d0d0d;
  --mid:   #555;
  --gray:  #999;
  --rule:  #e4e4e0;
  --bg:    #f6f5f1;
  --pad:   clamp(1.5rem, 4vw, 3rem);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.header {
  padding: clamp(3rem, 6vw, 5rem) var(--pad) clamp(3rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  max-width: 1440px;
  margin: 0 auto;
}
.header-name {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.header-names {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--black);
  margin-top: 0.75rem;
}
.header-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 0.25rem;
}
.header-disciplines {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.discipline {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}
.discipline strong {
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.05em;
  min-width: 3.5rem;
}
.header-intro {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.75;
  max-width: 28rem;
}

/* ── RULE ── */
.full-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0 var(--pad);
}

/* ── BIOS ── */
.bios {
  max-width: 1440px;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.bios-header { display: none; }
.bios-body {
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--pad) clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.bio-name {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.75rem;
}
.bio-text {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.75;
}
.bio-email {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.bio-email:hover { border-color: var(--black); }

@media (max-width: 900px) {
  .bios-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.15rem var(--pad);
    border: none;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: #efece4;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
  }
  .bios-header[aria-expanded="true"] {
    background: none;
  }
  .bios-title {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--black);
  }
  .bios-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid var(--black);
    border-radius: 999px;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1;
    color: var(--black);
    flex-shrink: 0;
  }
  .bios-body { grid-template-columns: 1fr; gap: 2rem; }
  .bios-body.collapsed { display: none; }
  .full-rule { display: none; }
}

/* ── PROJECTS ── */
.projects {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.project {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--rule);
}
.project:last-child { border-bottom: none; }

.project-header {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.project-index {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gray);
  margin-bottom: 0.6rem;
}
.project-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.9rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  border: 1px solid #ccc;
  padding: 0.2rem 0.55rem;
  border-radius: 1px;
}
.tag.author {
  color: #666;
  border-color: #ccc;
}
.project-desc {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.8;
  max-width: 540px;
  align-self: end;
}

/* ── SINGLE IMAGE ── */
.img-single img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── SLIDER ── */
.slider {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  height: 540px;
  user-select: none;
  touch-action: pan-y;
}
.slider-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--black);
  border: none;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--bg);
  z-index: 2;
  transition: opacity 0.15s;
  border-radius: 0;
  -webkit-appearance: none;
  opacity: 0.85;
}
.slider-btn:hover { opacity: 1; }
.slider-prev { left: 0; }
.slider-next { right: 0; }
.slider:focus { outline: none; }
.slider:focus-visible { outline: 2px solid var(--black); outline-offset: -2px; }
.slider-counter {
  position: absolute;
  bottom: 0.8rem;
  right: 0.9rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  pointer-events: none;
}

/* ── HOVER ── */
.img-single img,
.slider-slide img {
  transition: opacity 0.25s;
  cursor: zoom-in;
}
.img-single img:hover,
.slider-slide img:hover { opacity: 0.92; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; touch-action: pan-y; }
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  cursor: default;
}
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,13,13,0.55);
  border: none;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s, background 0.15s;
  user-select: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox-btn:hover { opacity: 1; background: rgba(13,13,13,0.75); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-btn.hidden { display: none; }
.lightbox-counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
}

/* ── CONTACT ── */
.contact {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-lead {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.35;
  color: var(--black);
  max-width: 30ch;
}
.contact-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-person p {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.5rem;
}
.contact-person a {
  font-size: 0.9375rem;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.contact-person a:hover { border-color: var(--black); }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem var(--pad);
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.05em;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .header { grid-template-columns: 1fr; align-items: start; }
  .header-intro { max-width: 100%; }
  .project-header { grid-template-columns: 1fr; gap: 1.25rem; }
  .project-desc { max-width: 100%; }
  .slider { height: 380px; }
  .contact { grid-template-columns: 1fr; gap: 2rem; }
  .contact-people { gap: 1.5rem; }
}
@media (max-width: 500px) {
  .slider { height: 260px; }
}

/* ── COOKIE CONSENT ── */
.cookie-bar {
  position: fixed;
  bottom: var(--pad);
  left: var(--pad);
  right: var(--pad);
  max-width: 1440px;
  margin: 0 auto;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem var(--pad);
  background: var(--black);
  color: var(--bg);
  border-radius: 2px;
  box-shadow: 0 8px 30px rgba(13, 13, 13, 0.2);
}
.cookie-bar[hidden] { display: none; }
.cookie-text {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(246, 245, 241, 0.85);
  max-width: 60ch;
}
.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border-radius: 1px;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  -webkit-appearance: none;
}
.cookie-reject {
  background: none;
  border: 1px solid rgba(246, 245, 241, 0.4);
  color: var(--bg);
}
.cookie-reject:hover { border-color: var(--bg); }
.cookie-accept {
  background: var(--bg);
  border: 1px solid var(--bg);
  color: var(--black);
  font-weight: 500;
}
.cookie-accept:hover { opacity: 0.85; }

@media (max-width: 600px) {
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .cookie-actions { justify-content: flex-end; }
}
