@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Nunito+Sans:wght@400;600;800;900&display=swap");

:root {
  color-scheme: light;
  --ink: #15171d;
  --muted: #59606d;
  --line: #dfe5ea;
  --paper: #ffffff;
  --soft: #f4f6f4;
  --green: #315d4d;
  --gold: #c79236;
  --brick: #943f31;
  --blue: #224d68;
  --font-title: Cinzel;
  --font-body: "Nunito Sans";
}


* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-logo,
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.brand-logo {
  display: block;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-family: Georgia, serif;
  font-size: 24px;
}

.nav-menu {
  position: relative;
  justify-self: center;
}

.menu-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  width: 44px;
  min-height: 40px;
  padding: 0;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.menu-panel {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.menu-panel a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 720;
}

.menu-panel a:hover {
  background: #edf3ef;
}

.hero {
  position: relative;
  min-height: min(760px, 88vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #111;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slides {
  overflow: hidden;
}

.hero img,
.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1200ms ease, transform 6000ms ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 14, 0.76), rgba(10, 14, 14, 0.22) 58%, rgba(10, 14, 14, 0.1));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--hero-title-width, 760px), 100%);
  padding: 0 clamp(20px, 5vw, 76px) clamp(46px, 7vw, 86px);
  color: #fff;
}

.hero-copy p,
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0 0 24px;
  max-width: 780px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #17191e;
  text-decoration: none;
  font-weight: 800;
}

section:not(.hero) {
  padding: clamp(46px, 7vw, 86px) clamp(18px, 4vw, 58px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
  background: var(--paper);
}

.intro-section img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 17px;
}

.values-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: #eef1ed;
}

.values-section article,
.catalogue-card,
.contact-card-public,
.qualia-section {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
}

.values-section article {
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.value-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(49, 93, 77, 0.22);
  border-radius: 50%;
  color: var(--green);
  background: #f8faf6;
  font-size: 16px;
  line-height: 1;
}

.qualia-section {
  max-width: 1120px;
  margin: clamp(38px, 6vw, 72px) auto;
  padding: clamp(28px, 5vw, 58px);
}

.catalogue-section {
  background: var(--paper);
  padding-left: clamp(22px, 6vw, 110px);
  padding-right: clamp(22px, 6vw, 110px);
}

.partners-section {
  background: #f6f7f4;
  padding-left: clamp(22px, 6vw, 110px);
  padding-right: clamp(22px, 6vw, 110px);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.section-subtitle {
  margin: 4px 0 0;
  max-width: 560px;
  font-size: 15px;
}

.catalogue-section .section-title,
.catalogue-grid,
.partners-section .section-title,
.partners-list {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.catalogue-card {
  overflow: hidden;
  text-decoration: none;
  display: grid;
  align-content: start;
  min-height: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: inherit;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
}

.catalogue-card img,
.project-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.catalogue-card img {
  object-fit: cover;
  background: #dfe5ea;
}

.project-placeholder {
  display: grid;
  place-items: center;
  color: var(--green);
  background:
    linear-gradient(135deg, rgba(49, 93, 77, 0.12), rgba(199, 146, 54, 0.12)),
    #f5f6f2;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 800;
}

.catalogue-card > div:last-child {
  padding: 10px 11px 12px;
  align-self: start;
  display: grid;
  align-content: start;
  min-height: 86px;
}

.catalogue-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.catalogue-card span {
  color: var(--brick);
  font-weight: 800;
  font-size: 11px;
}

.partners-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px 32px;
}

.partner-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  width: 132px;
  text-align: center;
}

.partner-card img,
.partner-placeholder {
  width: 92px;
  height: 62px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.partner-placeholder {
  display: grid;
  place-items: center;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 900;
}

.partner-card strong,
.partner-card span {
  display: block;
}

.partner-card strong {
  font-size: 13px;
  line-height: 1.18;
}

.partner-card span {
  margin-top: 2px;
  color: var(--brick);
  font-size: 10px;
  font-weight: 800;
}

.partner-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.catalogue-card p {
  display: none;
}

.catalogue-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.catalogue-view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}

.catalogue-view-toggle button {
  border: 0;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.catalogue-view-toggle button.active {
  background: var(--green);
  color: #fff;
}

.catalogue-grid.list-view {
  grid-template-columns: 1fr;
  width: min(820px, 100%);
}

.catalogue-grid.list-view .catalogue-card {
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: stretch;
}

.catalogue-grid.list-view .catalogue-card img,
.catalogue-grid.list-view .project-placeholder {
  height: 100%;
  min-height: 92px;
}

.project-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 16, 18, 0.58);
}

.project-modal {
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 22px 70px rgba(18, 27, 32, 0.28);
}

.modal-close {
  position: fixed;
  top: clamp(14px, 4vh, 26px);
  right: max(14px, calc((100vw - 980px) / 2 + 18px));
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  width: 42px;
  min-height: 42px;
  padding: 0;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(18, 27, 32, 0.18);
  cursor: pointer;
}

.project-modal-media img,
.project-modal-media .project-placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.project-modal-copy {
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 14px;
}

.project-modal-copy > span {
  color: var(--brick);
  font-weight: 900;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-links a,
.primary-link.dark {
  border-radius: 999px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

.project-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
}

.program-form {
  display: grid;
  gap: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.program-form[hidden] {
  display: none;
}

.program-toggle {
  border: 0;
  width: fit-content;
  cursor: pointer;
}

.program-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 16, 18, 0.62);
}

.program-modal {
  width: min(540px, 100%);
  max-height: 90vh;
  overflow: auto;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 22px 70px rgba(18, 27, 32, 0.28);
}

.program-modal h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.form-help {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.form-status {
  margin: 0;
  min-height: 0;
  border-radius: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.form-status.pending,
.form-status.success,
.form-status.error {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #f7faf8;
  line-height: 1.45;
}

.form-status.success {
  border-color: rgba(46, 125, 91, 0.28);
  background: #eff8f2;
}

.form-status.error {
  color: #9f2f2f;
  border-color: rgba(159, 47, 47, 0.28);
  background: #fff2f2;
}

.form-status small {
  color: var(--muted);
  font-weight: 650;
}

.copy-email {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.copy-email.copied {
  color: var(--green);
  text-decoration: none;
  font-weight: 800;
}

.copy-toast {
  position: fixed;
  z-index: 2000;
  background: rgba(18, 23, 29, 0.94);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.copy-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.program-form input,
.program-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 12px;
  font: inherit;
}

.program-form textarea {
  min-height: 110px;
  padding-top: 10px;
  resize: vertical;
}

.contact-section {
  background: #eef1ed;
  text-align: center;
}

.contact-section .section-title {
  justify-content: center;
  text-align: center;
}

.contact-section .section-title > div {
  margin-left: auto;
  margin-right: auto;
}

.contact-card-public {
  max-width: 820px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-card-public img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.contact-card-public a {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.contact-card-public .copy-email {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

footer {
  min-height: 74px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 58px);
  color: #fff;
  background: #15171d;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer .copy-email {
  color: #fff;
}

@media (max-width: 980px) {
  .intro-section,
  .contact-card-public {
    grid-template-columns: 1fr;
  }

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

  .partners-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    grid-template-columns: 1fr auto;
  }

  .catalogue-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .values-section,
  .partners-list {
    grid-template-columns: 1fr;
  }

  .catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .catalogue-card > div:last-child {
    min-height: 68px;
    padding: 8px;
  }

  .catalogue-card strong {
    font-size: 13px;
  }

  .catalogue-card span {
    font-size: 10px;
  }

  .catalogue-card img,
  .project-placeholder {
    aspect-ratio: 1 / 0.78;
  }

  .catalogue-grid.list-view .catalogue-card,
  .project-modal {
    grid-template-columns: 1fr;
  }

  .project-modal-media img,
  .project-modal-media .project-placeholder {
    min-height: 240px;
  }

  .hero {
    min-height: 76vh;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 190px;
    display: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 18px 45px rgba(18, 27, 32, 0.14);
  }

  .menu-panel.open {
    display: grid;
  }
}

/* Qualia V2 */
body {
  font-family: var(--font-body), Inter, ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(circle at 10% 5%, rgba(199, 146, 54, 0.13), transparent 30%),
    linear-gradient(180deg, #f8f4ec 0%, #f4f0e8 42%, #eef2ef 100%);
}

.site-header {
  min-height: 66px;
  grid-template-columns: auto 1fr;
  gap: 24px;
}

.brand,
.menu-panel a,
.eyebrow,
h1,
h2,
h3 {
  font-family: var(--font-title), Cinzel, Georgia, serif;
}

.menu-panel {
  gap: clamp(10px, 2.2vw, 28px);
}

.menu-panel a {
  font-size: 13px;
  letter-spacing: 0.035em;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(23, 25, 29, 0.78), rgba(23, 25, 29, 0.35) 55%, rgba(23, 25, 29, 0.06)),
    radial-gradient(circle at 20% 80%, rgba(199, 146, 54, 0.28), transparent 38%);
}

.hero-copy p,
.hero-copy .eyebrow {
  display: none;
}

.hero h1 {
  font-size: clamp(40px, 6.8vw, 78px);
  letter-spacing: -0.04em;
}

.rich-text {
  color: var(--muted);
  line-height: 1.68;
  font-size: 17px;
  white-space: normal;
}

.rich-text p {
  margin: 0 0 1em;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.intro-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(246, 240, 226, 0.9)),
    var(--paper);
}

.intro-section blockquote {
  margin: 26px 0 0;
  padding: 16px 0 0 22px;
  border-left: 3px solid var(--gold);
  color: var(--green);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 26px);
  line-height: 1.35;
}

.values-section {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background:
    linear-gradient(135deg, rgba(247, 241, 230, 0.96), rgba(237, 231, 217, 0.96));
}

.values-heading {
  grid-column: 1 / -1;
  max-width: 1120px;
}

.values-section article {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(49, 72, 86, 0.07);
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.values-section h3 {
  color: var(--green);
  margin: 0;
}

.values-section article > .rich-text {
  grid-column: 1 / -1;
  align-self: start;
}

.value-icon {
  border-radius: 14px;
  font-family: Cinzel, Georgia, serif;
  font-weight: 800;
}

.univers-section,
.traces-section {
  padding: clamp(46px, 7vw, 86px) clamp(22px, 6vw, 110px);
}

.univers-section {
  background: #fff;
}

.univers-section .section-title,
.univers-grid,
.traces-section .section-title,
.traces-grid {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.univers-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.universe-card,
.traces-grid article {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(49, 93, 77, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(49, 93, 77, 0.11), rgba(199, 146, 54, 0.09)),
    #f9f7f0;
  box-shadow: 0 24px 60px rgba(26, 40, 48, 0.09);
}

.universe-card-main {
  min-height: 310px;
  background:
    linear-gradient(145deg, rgba(49, 93, 77, 0.2), rgba(199, 146, 54, 0.13)),
    #f7f2e7;
}

.universe-card a,
.traces-grid a {
  align-self: flex-start;
  border-radius: 999px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.catalogue-section {
  background: #faf7ef;
}

.catalogue-search {
  display: grid;
  gap: 5px;
  min-width: min(320px, 100%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.catalogue-search input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.catalogue-feature {
  width: min(860px, 100%);
  margin: 0 auto 16px;
}

.catalogue-feature .catalogue-card {
  min-height: 255px;
  grid-template-columns: 1fr;
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.catalogue-feature .catalogue-card img,
.catalogue-feature .project-placeholder {
  height: 100%;
  aspect-ratio: auto;
}

.catalogue-feature .catalogue-card > div:last-child {
  align-content: end;
  min-height: auto;
  padding: clamp(54px, 7vw, 86px) clamp(18px, 3vw, 30px) clamp(14px, 2vw, 22px);
  background: linear-gradient(180deg, rgba(14, 18, 20, 0), rgba(14, 18, 20, 0.48) 50%, rgba(14, 18, 20, 0.94));
}

.catalogue-feature .catalogue-card strong {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(23px, 2.8vw, 36px);
}

.catalogue-feature .catalogue-card p {
  display: -webkit-box;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.catalogue-card {
  position: relative;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(26, 40, 48, 0.08);
  min-height: 245px;
}

.catalogue-card img,
.catalogue-card .project-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.catalogue-card > div:last-child {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 0;
  padding: 68px 16px 13px;
  background: linear-gradient(180deg, rgba(14, 18, 20, 0), rgba(14, 18, 20, 0.58) 50%, rgba(14, 18, 20, 0.95));
  color: #fff;
}

.catalogue-card strong {
  font-family: Cinzel, Georgia, serif;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.catalogue-card p {
  display: -webkit-box;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.catalogue-more {
  display: inline-block;
  margin-top: 8px;
  color: #f1c66a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.project-modal {
  border-radius: 24px;
  overflow: hidden;
}

.modal-close {
  position: sticky;
  top: 14px;
  margin-left: auto;
  z-index: 2;
}

.partners-list {
  align-items: stretch;
  width: min(920px, 100%);
  margin-inline: auto;
  gap: 16px;
}

.partner-card {
  width: 132px;
  padding: 11px;
  border: 1px solid rgba(49, 93, 77, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.partner-card img,
.partner-placeholder {
  width: 88px;
  height: 56px;
}

.partner-card span {
  font-size: 12px;
}

.partners-thanks {
  width: min(720px, 100%);
  margin: 30px auto 0;
  text-align: center;
  font-family: Georgia, serif;
  font-style: italic;
}

.custom-content-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 82px) 0;
  display: grid;
  gap: 18px;
}

.custom-content-section h2 {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
}

.custom-content-section .rich-text {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.custom-section-image {
  width: min(100%, 860px);
  max-height: 620px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(21, 28, 34, 0.14);
}

.custom-section-video {
  width: min(100%, 900px);
}

.custom-section-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 24px;
}

.contact-section {
  min-height: 72vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 85% 15%, rgba(199, 146, 54, 0.18), transparent 32%),
    #eef1ed;
}

.contact-card-public {
  text-align: left;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(26, 40, 48, 0.1);
}

.contact-card-public h2 {
  margin-bottom: 10px;
}

.contact-site {
  display: inline-flex;
  margin-top: 10px;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  .catalogue-grid,
  .univers-grid {
    grid-template-columns: 1fr;
  }

  .catalogue-feature .catalogue-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

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

/* Qualia V2 refinement 2026-08-20 */
@media (min-width: 1180px) {
  body:not(.edit-body) {
    background:
      radial-gradient(circle at 10% 5%, rgba(199, 146, 54, 0.13), transparent 30%),
      linear-gradient(180deg, #f8f4ec 0%, #f4f0e8 42%, #eef2ef 100%);
  }

  body:not(.edit-body) .site-header,
  body:not(.edit-body) footer {
    width: 100%;
  }

  body:not(.edit-body) main {
    width: 100%;
    background:
      radial-gradient(circle at 10% 5%, rgba(199, 146, 54, 0.13), transparent 30%),
      linear-gradient(180deg, #f8f4ec 0%, #f4f0e8 42%, #eef2ef 100%);
  }

  body:not(.edit-body) main > section:not(.hero) {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: max(72px, calc((100vw - 1320px) / 2 + 72px));
    padding-right: max(72px, calc((100vw - 1320px) / 2 + 72px));
  }
}

.value-icon img {
  width: 21px;
  height: 21px;
  display: block;
  object-fit: contain;
}

.catalogue-section .section-title,
.catalogue-feature,
.catalogue-grid {
  width: min(980px, 100%);
}

.catalogue-feature {
  margin: 0 auto 18px;
}

.catalogue-feature:empty {
  display: none;
}

.catalogue-feature .catalogue-card-featured {
  width: 100%;
  min-height: clamp(260px, 36vw, 380px);
  border-radius: 28px;
}

.catalogue-feature .catalogue-card-featured > div:last-child,
.catalogue-card > div:last-child {
  padding-top: 88px;
  background: linear-gradient(180deg, rgba(14, 18, 20, 0), rgba(14, 18, 20, 0.46) 42%, rgba(14, 18, 20, 0.94));
}

.catalogue-feature .catalogue-card-featured strong {
  font-size: clamp(26px, 3vw, 42px);
}

.catalogue-card strong {
  margin-top: auto;
  color: #fffdf5;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72), 0 0 22px rgba(255, 255, 255, 0.15);
}

.catalogue-card span {
  color: #f1c66a;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

/* Catalogue / project modal aligned with the Russell site interaction */
.catalogue-feature {
  width: min(980px, 100%);
  margin: 0 auto 20px;
}

.catalogue-grid {
  gap: 16px;
}

.catalogue-card {
  position: relative;
  display: block;
  aspect-ratio: 1;
  min-height: 0;
  border: 1px solid rgba(21, 23, 29, 0.12);
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
  background: #0b0a09;
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(26, 40, 48, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  contain: layout paint;
}

.catalogue-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 146, 54, 0.68);
  box-shadow: 0 28px 82px rgba(26, 40, 48, 0.28);
}

.catalogue-card img,
.catalogue-card .project-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  contain: strict;
  pointer-events: none;
}

.project-card-media > img,
.project-card-media > .project-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.catalogue-card img {
  filter: saturate(0.92) contrast(1.08);
  transform-origin: center center;
}

.catalogue-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 18%, rgba(0, 0, 0, 0.24) 48%, rgba(0, 0, 0, 0.88));
  pointer-events: none;
}

.catalogue-card-copy {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 5px;
  min-height: 0;
  padding: 18px;
  color: #fff;
}

.catalogue-feature .catalogue-card-featured {
  min-height: clamp(280px, 34vw, 430px);
}

.catalogue-feature .catalogue-card-featured .catalogue-card-copy {
  padding: clamp(22px, 4vw, 38px);
}

.catalogue-card strong {
  display: block;
  margin-top: auto;
  color: #fffdf8;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 0.98;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.78), 0 0 24px rgba(255, 255, 255, 0.16);
}

.catalogue-feature .catalogue-card-featured strong {
  font-size: clamp(28px, 4vw, 54px);
}

.catalogue-card em {
  color: #f1c66a;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.catalogue-card p {
  display: -webkit-box;
  margin: 6px 0 0;
  color: #f5efe5;
  font-size: 13px;
  line-height: 1.38;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.catalogue-feature .catalogue-card-featured p {
  max-width: 680px;
  font-size: 15px;
}

.project-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 4, 4, 0.72);
  backdrop-filter: blur(8px);
}

.project-modal {
  position: relative;
  width: min(980px, 100%);
  height: min(760px, 90vh);
  max-height: 90vh;
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
  overflow: hidden;
  border: 1px solid rgba(199, 146, 54, 0.32);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(31, 29, 25, 0.98), rgba(10, 10, 9, 0.98));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.66);
}

.modal-close {
  position: fixed;
  top: clamp(18px, 4vh, 30px);
  right: max(22px, calc((100vw - 980px) / 2 + 22px));
  z-index: 2;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(241, 198, 106, 0.5);
  border-radius: 999px;
  background: rgba(12, 11, 10, 0.88);
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
  font: inherit;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(199, 146, 54, 0.24);
  border-color: rgba(241, 198, 106, 0.86);
}

.project-modal-media {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.project-modal-copy {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.project-modal-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
}

.project-modal-media .project-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: linear-gradient(145deg, rgba(199, 146, 54, 0.18), rgba(255, 255, 255, 0.04));
  color: #f1c66a;
  font-size: 2.4rem;
  font-weight: 900;
}

.project-modal-copy {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(28px, 4vw, 46px);
}

.project-modal-copy > span {
  color: #f1c66a;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 900;
}

.project-modal-copy h2 {
  margin: 0;
  color: #fffdf8;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.project-modal-copy p {
  margin: 0;
  color: #e7ded2;
  white-space: pre-line;
}

.project-video {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid rgba(199, 146, 54, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.project-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
  background: #000;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(199, 146, 54, 0.36);
  border-radius: 999px;
  background: rgba(199, 146, 54, 0.14);
  color: #f1c66a;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.82rem;
}

@media (max-width: 820px) {
  .project-modal {
    height: auto;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .project-modal-media {
    height: 280px;
    min-height: 280px;
  }

  .project-modal-media img,
  .project-modal-media .project-placeholder {
    min-height: 260px;
  }

  .project-modal-copy {
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .catalogue-card {
    aspect-ratio: 1.08;
  }

  .project-video {
    margin-left: -8px;
    margin-right: -8px;
    padding: 6px;
  }

  .project-video iframe {
    border-radius: 14px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }
}

/* Catalogue readability tuning */
.catalogue-card em {
  font-size: 13px;
}

.catalogue-card p {
  font-weight: 700;
}

.catalogue-more {
  color: #b94135;
}

.catalogue-feature .catalogue-card-featured {
  aspect-ratio: auto;
  height: clamp(245px, 28vw, 330px);
  min-height: 0;
}

.catalogue-feature .catalogue-card-featured .catalogue-card-copy {
  padding: clamp(20px, 3vw, 30px);
}

.catalogue-feature .catalogue-card-featured strong {
  font-size: clamp(28px, 3.2vw, 44px);
}

.catalogue-feature .catalogue-card-featured p {
  max-width: 620px;
  font-size: 14px;
}

.contact-teaser-section {
  padding-top: clamp(42px, 7vw, 84px);
  padding-bottom: clamp(42px, 7vw, 84px);
}

.contact-teaser-card,
.construction-card {
  width: min(980px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(199, 146, 54, 0.2);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 54px);
  background: linear-gradient(135deg, rgba(49, 93, 77, 0.09), rgba(199, 146, 54, 0.08));
  box-shadow: 0 24px 70px rgba(31, 47, 42, 0.08);
}

.contact-teaser-card h2,
.construction-card h3 {
  margin: 0 0 18px;
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.94;
}

.section-page-link {
  margin-top: 18px;
}

.standalone-page-section {
  min-height: calc(100vh - 180px);
  padding-top: clamp(80px, 12vw, 150px);
}

@media (max-width: 720px) {
  .catalogue-feature .catalogue-card-featured {
    height: auto;
    aspect-ratio: 1.08;
  }
}

/* Keep values predictable: four cards on desktop, one card per row on touch devices. */
@media (hover: none), (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }

  body:not(.edit-body) {
    width: var(--app-viewport-width, 100%);
    max-width: var(--app-viewport-width, 100%);
    touch-action: pan-y;
  }

  body:not(.edit-body) *,
  body:not(.edit-body) *::before,
  body:not(.edit-body) *::after {
    min-inline-size: 0;
  }

  body:not(.edit-body) img,
  body:not(.edit-body) video,
  body:not(.edit-body) iframe,
  body:not(.edit-body) svg {
    max-inline-size: 100%;
  }

  .menu-panel {
    width: min(220px, calc(100vw - 28px));
    min-width: 0;
    max-width: calc(100vw - 28px);
  }

  .catalogue-search {
    min-width: 0;
  }

  .brand {
    min-width: 0;
  }

  .brand > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.project-modal-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .project-modal-backdrop,
  .project-modal,
  .project-modal-copy {
    max-width: 100%;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  .project-video,
  .project-video iframe,
  .project-links,
  .project-modal-copy h2,
  .project-modal-copy p {
    min-width: 0;
    max-width: 100%;
  }

  .project-modal-copy h2,
  .project-modal-copy p {
    overflow-wrap: anywhere;
  }

  body:not(.edit-body) main,
  body:not(.edit-body) main > section,
  body:not(.edit-body) .site-header,
  body:not(.edit-body) footer {
    width: var(--app-viewport-width, 100%);
    min-width: 0;
    max-width: var(--app-viewport-width, 100%);
  }

  body:not(.edit-body) main > section {
    overflow-x: hidden;
  }

  .hero-slides {
    width: 100%;
    max-width: 100%;
    contain: paint;
  }

  .hero-slide,
  .hero-slide.active {
    transform: none;
  }

  .intro-section img,
  .univers-section img,
  .partners-section img,
  .contact-section img {
    display: block;
    max-width: 100%;
  }

  .project-modal-backdrop {
    right: auto;
    width: var(--app-viewport-width, 100%);
    max-width: var(--app-viewport-width, 100%);
    padding: 10px;
  }

  .project-modal {
    width: 100%;
    height: min(780px, calc(100dvh - 20px));
    max-height: calc(100dvh - 20px);
    grid-template-columns: minmax(0, 1fr);
  }

  .project-modal-media {
    display: none;
  }

  .project-modal-copy {
    height: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 54px 18px 24px;
  }

  .project-video {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .modal-close {
    position: fixed;
    top: 18px;
    right: 18px;
  }

  .values-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    padding-left: 14px;
    padding-right: 14px;
    overflow: hidden;
  }

  .values-heading,
  .values-section article,
  .values-section article > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .values-section article {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-self: stretch;
    padding: 16px;
    overflow: hidden;
  }

  .values-section h2,
  .values-section h3,
  .values-section .rich-text,
  .values-section .rich-text * {
    width: auto !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .values-section .value-icon {
    width: 32px;
    min-width: 32px;
  }
}
