/* Palette taken from the photos: granite grey, black clothing, blue sky. */
:root {
  --paper: #f3f2ee;
  --ink: #141414;
  --muted: #6d6c68;
  --line: #d8d6cf;
  --sky: #3d78b8;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1120px;
  /* Left edge of .container, so full-bleed elements can line up with it. */
  --edge: max(var(--gutter), (100vw - var(--max)) / 2);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 400; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 12vw, 160px); }
.section + .section { padding-top: 0; }

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #8fb3dc;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 78%;
  animation: hero-in 1.8s cubic-bezier(.2, .7, .2, 1) both;
}

.hero__title {
  position: absolute;
  top: clamp(28px, 9vh, 110px);
  left: var(--edge);
  color: #fff;
  text-shadow: 0 1px 24px rgba(20, 50, 90, .25);
  animation: fade-up 1.2s .4s cubic-bezier(.2, .7, .2, 1) both;
}

.hero__title h1 {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 10vw, 9rem);
  line-height: .9;
  letter-spacing: -0.01em;
}

.hero__title h1 span {
  display: block;
  margin: 1.4em 0 0 .3em;
  font-family: var(--sans);
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.lang {
  position: absolute;
  top: clamp(20px, 4vh, 40px);
  right: var(--edge);
  display: flex;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  animation: fade-up 1.2s .6s cubic-bezier(.2, .7, .2, 1) both;
}
.lang a {
  padding: 6px 8px;
  color: #fff;
  text-decoration: none;
  opacity: .7;
  transition: opacity .2s;
}
.lang a:hover,
.lang a[aria-current] { opacity: 1; }
.lang a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }

@keyframes hero-in {
  from { transform: scale(1.06); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
@keyframes fade-up {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: none;             opacity: 1; }
}

/* On portrait screens show the whole photo so no one is cropped out. */
@media (max-aspect-ratio: 1/1) {
  .hero { height: auto; min-height: 0; }
  .hero__image { height: auto; aspect-ratio: 4 / 3; }
  .hero__title { top: 7vw; }
  .hero__title h1 { font-size: 13vw; }
  .hero__title h1 span { font-size: 2.4vw; letter-spacing: .28em; }
  .lang { top: 5vw; }
}

/* ---------- About ---------- */

.about__text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(32px, 6vw, 80px);
  max-width: 860px;
}
.about__text p { margin: 0; }
.about__text .lead {
  grid-column: 1 / -1;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  font-weight: 400;
}

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

/* ---------- Ensemble carousel ---------- */

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.section__head .label { margin-bottom: clamp(32px, 5vw, 56px); }

.carousel__controls {
  display: flex;
  gap: 8px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.carousel__btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, opacity .25s;
}
.carousel__btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.carousel__btn:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.carousel__btn:disabled { opacity: .3; cursor: default; }

.carousel__track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  /* Side margin: the whole scrolling row is inset, so cards clip at the margin, not the screen edge. */
  margin: 0 clamp(16px, 2vw, 28px);
  padding: 4px 0 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }

.member {
  flex: 0 0 clamp(220px, 24vw, 300px);
  scroll-snap-align: start;
  outline: none;
}

.member__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #c9c8c2;
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .8s;
}

.member__bio {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(18px, 2vw, 26px);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  color: #fff;
  background: linear-gradient(to top, rgba(12, 12, 12, .88) 0%, rgba(12, 12, 12, .62) 55%, rgba(12, 12, 12, .15) 100%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

.member:hover .member__photo img,
.member:focus-visible .member__photo img,
.member.is-open .member__photo img {
  transform: scale(1.05);
  filter: grayscale(.6);
}
.member:hover .member__bio,
.member:focus-visible .member__bio,
.member.is-open .member__bio {
  opacity: 1;
  transform: none;
}
.member:focus-visible .member__photo { outline: 1px solid var(--ink); outline-offset: 4px; }

.member__name {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.15;
}
.member__role {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.carousel__progress {
  position: relative;
  height: 1px;
  margin-top: clamp(32px, 4vw, 48px);
  background: var(--line);
  overflow: hidden;
}
.carousel__progress span {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
  transition: transform .15s linear;
}

/* ---------- Programmes ---------- */

.programmes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 7vw, 112px);
}

.programme {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.programme h3 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  margin-bottom: 24px;
}
.programme p { margin: 0 0 16px; color: #2c2c2a; }

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

/* ---------- Videos ---------- */

.videos__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px);
}

.video { margin: 0; }
.video--featured { grid-column: 1 / -1; }

.video figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.yt {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.yt img,
.yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt img {
  object-fit: cover;
  opacity: .9;
  transition: transform 1s cubic-bezier(.2, .7, .2, 1), opacity .4s;
}
a.yt::after {
  /* play button */
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .85);
  background:
    no-repeat center / 22px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l12-7.5z' fill='white'/%3E%3C/svg%3E"),
    rgba(0, 0, 0, .25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), background-color .3s;
}
a.yt:hover img,
a.yt:focus-visible img { transform: scale(1.03); opacity: 1; }
a.yt:hover::after,
a.yt:focus-visible::after { transform: scale(1.08); background-color: rgba(0, 0, 0, .45); }
.video--featured a.yt::after { width: 92px; height: 92px; margin: -46px 0 0 -46px; }

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

/* ---------- Agenda ---------- */

.agenda__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.agenda__list li {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 8px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.agenda__list time {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
}
.agenda__list span:last-child { color: var(--muted); }

@media (max-width: 640px) {
  .agenda__list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Footer ---------- */

.quote {
  margin: 0 0 clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
  border-bottom: 1px solid rgba(243, 242, 238, .16);
}
.quote p {
  margin: 0;
  max-width: 900px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
}
.quote cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .6;
}
.quote cite::before { content: "— "; }

.footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(72px, 10vw, 128px) clamp(48px, 6vw, 72px);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.footer__name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
}
.footer__name span {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .6;
}
.footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  text-align: right;
}
.footer__links li + li { margin-top: 6px; }
.footer__links a {
  text-decoration: none;
  opacity: .75;
  transition: opacity .2s;
}
.footer__links a:hover { opacity: 1; }

.footer__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 3vw, 40px);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid rgba(243, 242, 238, .45);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s, color .25s;
}
.button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  transition: transform .25s;
}
.button:hover,
.button:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.button:hover svg { transform: translate(2px, -2px); }

.icon-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 242, 238, .45);
  border-radius: 50%;
  transition: background .25s, color .25s;
}
.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.icon-button:hover,
.icon-button:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.footer__credit {
  margin: clamp(48px, 6vw, 72px) 0 0;
  font-size: 12px;
  letter-spacing: .04em;
  opacity: .4;
}

@media (max-width: 560px) {
  .footer__links { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
