:root {
  --bg: #edf4fb;
  --bg-soft: rgba(245, 250, 255, 0.72);
  --surface: rgba(246, 250, 255, 0.84);
  --surface-strong: rgba(250, 252, 255, 0.94);
  --line: rgba(66, 95, 128, 0.16);
  --text: #1d2c3e;
  --muted: rgba(29, 44, 62, 0.68);
  --ultramarine: #6a8fdc;
  --turquoise: #8ccfd2;
  --rose: #d9bfd7;
  --shadow: 0 24px 70px rgba(82, 108, 152, 0.12);
  --radius: 28px;
  --radius-small: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Schibsted Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(106, 143, 220, 0.14), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(140, 207, 210, 0.18), transparent 24%),
    radial-gradient(circle at 60% 74%, rgba(217, 191, 215, 0.12), transparent 20%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 58%, #e7f0fb 100%);
}

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

button {
  font: inherit;
}

.hidden {
  display: none !important;
}

.page-shell {
  width: min(1440px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.hero {
  position: relative;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(135deg, rgba(252, 254, 255, 0.94), rgba(239, 246, 255, 0.78)),
    rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -18% auto;
  width: 420px;
  height: 420px;
  border-radius: 44% 56% 65% 35% / 48% 33% 67% 52%;
  background:
    radial-gradient(circle at 36% 36%, rgba(140, 207, 210, 0.36), transparent 28%),
    radial-gradient(circle at 68% 62%, rgba(106, 143, 220, 0.28), transparent 22%),
    radial-gradient(circle at 52% 78%, rgba(217, 191, 215, 0.2), transparent 18%);
  filter: blur(14px);
}

.section-heading span,
.detail__index {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__headline {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  padding-top: 8px;
}

.hero__kicker {
  margin: 0;
  color: var(--ultramarine);
}

.hero h1,
.section-heading h2,
.detail h3 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(3.8rem, 9vw, 7.8rem);
  line-height: 0.92;
}

.hero__titleline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
}

.hero__discipline {
  margin: 14px 0 0;
  font-size: 1.12rem;
  line-height: 1.4;
  color: var(--muted);
}

.hero__overview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.overview-card {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(66, 95, 128, 0.12);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 42px rgba(86, 117, 168, 0.12);
}

.overview-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}

.overview-card--left img {
  object-position: center 36%;
}

.overview-card--right img {
  object-position: center 38%;
}

.panel {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.intro--plain {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 18px 4px 10px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.section-heading--wide {
  max-width: 760px;
  margin: 34px 0 28px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 0.96;
}

.section-heading p {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}

.intro__text {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

.intro__text p,
.detail__story p,
.detail__descriptor {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.78;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.work-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(66, 95, 128, 0.1);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: 0 14px 38px rgba(86, 117, 168, 0.1);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.work-card:hover,
.work-card:focus-visible,
.work-card.is-active {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(86, 117, 168, 0.16);
  border-color: rgba(106, 143, 220, 0.3);
}

.work-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(106, 143, 220, 0.12), rgba(140, 207, 210, 0.16));
}

.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.work-card:hover .work-card__image img,
.work-card:focus-visible .work-card__image img,
.work-card.is-active .work-card__image img {
  transform: scale(1.04);
}

.work-card__caption {
  display: grid;
  gap: 6px;
  padding: 14px 16px 16px;
}

.work-card__caption p,
.work-card__caption h3 {
  margin: 0;
}

.work-card__caption h3 {
  font-family: "Instrument Serif", serif;
  font-size: 1.36rem;
  font-weight: 400;
}

.work-card__caption p {
  color: var(--muted);
}

.detail {
  min-height: 420px;
}

.detail__empty {
  display: grid;
  place-items: start;
  gap: 10px;
  min-height: 320px;
  align-content: center;
}

.detail__empty p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail__content {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.detail__media {
  display: grid;
  gap: 18px;
}

.detail__image-frame {
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(106, 143, 220, 0.1), rgba(140, 207, 210, 0.16)),
    #f4f9ff;
  border: 1px solid rgba(66, 95, 128, 0.12);
}

.detail__image-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail__media-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.media-button,
.nav-button {
  border: 1px solid rgba(66, 95, 128, 0.12);
  border-radius: 999px;
  background: rgba(248, 251, 255, 0.9);
  color: var(--text);
  padding: 10px 16px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.media-button:hover,
.media-button:focus-visible,
.media-button.is-active,
.nav-button:hover,
.nav-button:focus-visible {
  background: rgba(217, 191, 215, 0.16);
  border-color: rgba(106, 143, 220, 0.28);
  transform: translateY(-1px);
}

.detail__copy {
  display: grid;
  gap: 22px;
  align-content: start;
}

.detail__header {
  display: grid;
  gap: 18px;
}

.detail h3 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 0.98;
}

.detail__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid rgba(24, 28, 23, 0.08);
  border-bottom: 1px solid rgba(24, 28, 23, 0.08);
}

.detail__facts dt {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail__facts dd {
  margin: 4px 0 0;
}

.detail__descriptor {
  color: var(--ultramarine);
}

.detail__story {
  display: grid;
  gap: 16px;
}

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

  .gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail__content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100vw - 24px, 1440px);
    padding-top: 18px;
  }

  .hero {
    padding: 24px;
  }

  .hero__titleline {
    flex-direction: column;
    justify-content: flex-start;
  }

  .hero__discipline {
    margin-top: 0;
  }

  .hero__overview {
    grid-template-columns: 1fr;
  }

  .overview-card img {
    min-height: 320px;
  }

  .panel {
    padding: 22px;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .detail__facts {
    grid-template-columns: 1fr;
  }
}
