:root {
  --background: #fbfaf7;
  --ink: #151515;
  --muted: #6f6a62;
  --title: #4f675f;
  --line: #d9d2c8;
  --accent: #db493d;
  --soft: #f1ede7;
  --max: 1680px;
  --gutter: clamp(18px, 3vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 18px var(--gutter);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 14px;
  width: max-content;
  color: var(--title);
  font-size: 18px;
  line-height: 0.96;
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  font-size: 32px;
  line-height: 0.82;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--title);
  font-size: 14px;
  line-height: 1;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover,
.brand:hover,
.contact-content a:hover {
  text-decoration: underline;
}

main {
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 120px));
  margin: 0 var(--gutter);
  overflow: hidden;
  background: #f4f3ef;
}

.hero img {
  width: 100%;
  height: min(780px, calc(100vh - 120px));
  min-height: 520px;
  object-fit: cover;
}

.hero img.cover-photo {
  opacity: 0.25;
  object-position: 57% 40%;
  filter: grayscale(1) contrast(1.08);
}

.hero-meta,
.hero-title {
  position: absolute;
  left: clamp(18px, 2.6vw, 42px);
  right: clamp(18px, 2.6vw, 42px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  z-index: 2;
  color: var(--title);
}

.hero-meta {
  top: clamp(18px, 2.4vw, 38px);
  font-size: 17px;
}

.hero-title {
  bottom: clamp(18px, 2.4vw, 38px);
  align-items: end;
  color: #263a35;
  font-size: clamp(48px, 8vw, 132px);
  grid-template-columns: 1fr;
  gap: 8px;
  line-height: 0.98;
}

.hero-title p:last-child {
  max-width: none;
  font-size: 17px;
  line-height: 1.2;
  text-align: left;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(160px, 30%) minmax(0, 1fr);
  gap: 32px;
  padding: 90px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.section-grid > h1,
.section-grid > h2 {
  color: var(--title);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.text-column,
.bio-content {
  max-width: 1080px;
}

.text-column p,
.bio-content p {
  max-width: 920px;
}

.text-column p + p,
.bio-content p + p {
  margin-top: 16px;
}

.works {
  align-items: start;
}

.works-content {
  display: grid;
  gap: 44px;
}

.recent-work {
  display: grid;
  gap: 26px;
  scroll-margin-top: 104px;
}

.recent-work.is-slider {
  gap: 22px;
}

.work-section-heading {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.work-section-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.recent-work-controls,
.recent-work-thumbs {
  display: none;
}

.recent-work.is-slider .recent-work-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.slide-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--title);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.slide-button:hover,
.thumb-button:hover,
.thumb-button.is-active {
  border-color: var(--title);
}

.slide-button:focus-visible,
.thumb-button:focus-visible {
  outline: 2px solid var(--title);
  outline-offset: 3px;
}

.slide-counter {
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}

.recent-work-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 20px;
  align-items: start;
}

.recent-work-gallery.is-slider {
  display: block;
}

.recent-work-gallery.is-slider figure {
  display: none;
}

.recent-work-gallery.is-slider figure.is-active {
  display: grid;
  gap: 10px;
}

.recent-work-gallery img {
  width: 100%;
  height: auto;
  background: #ffffff;
}

.recent-work-gallery.is-slider img {
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 820px);
  margin: 0 auto;
  object-fit: contain;
}

.recent-work-gallery.is-slider figcaption {
  max-width: min(100%, 860px);
  margin: 0 auto;
  width: 100%;
}

.recent-work.is-slider .recent-work-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
}

.thumb-button {
  flex: 0 0 58px;
  height: 76px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: opacity 160ms ease;
}

.thumb-button.is-active img,
.thumb-button:hover img {
  opacity: 1;
}

figcaption {
  min-height: 42px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.event-list {
  display: grid;
  gap: 0;
}

.event-list article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(210px, 34%);
  gap: 24px;
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
}

.event-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.event-list h3 {
  color: var(--title);
  font-size: clamp(20px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.04;
}

.event-list p {
  color: var(--muted);
}

.bio-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 58px;
  max-width: none;
  align-items: start;
}

.bio-text {
  color: var(--ink);
  max-width: 820px;
}

.cv-sections {
  display: grid;
  gap: 38px;
}

.cv-group {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.cv-group h3 {
  margin-bottom: 18px;
  color: var(--title);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.cv-entries {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-entries li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.32;
}

.cv-entries li span:first-child {
  color: var(--muted);
}

.cv-entries-plain li {
  display: block;
  padding-left: 0;
  color: var(--ink);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  color: var(--ink);
  font-size: clamp(20px, 3.6vw, 48px);
  line-height: 1.05;
}

.language {
  padding-top: 46px;
  padding-bottom: 46px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 46px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 12px 16px;
    font-size: 13px;
  }

  .hero {
    min-height: 560px;
  }

  .hero img {
    height: 560px;
    min-height: 0;
  }

  .hero-meta,
  .hero-title {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-title p:last-child {
    max-width: none;
    text-align: left;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .recent-work-gallery,
  .bio-content {
    grid-template-columns: 1fr;
  }

  .recent-work-gallery.is-slider img {
    width: 100%;
    max-height: none;
  }

  .thumb-button {
    flex-basis: 48px;
    height: 64px;
  }

  .event-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    font-size: 28px;
  }

  .hero {
    min-height: 500px;
  }

  .hero img {
    height: 500px;
  }

  .hero-meta {
    font-size: 15px;
  }

  .hero-title {
    font-size: 36px;
  }

  .contact-content {
    font-size: 25px;
  }
}
