/* Final homepage and footer asset tuning. */
.language-menu summary {
  gap: 0.48rem;
}

.language-summary-label,
.language-option-code {
  letter-spacing: 0.03em;
}

.flag-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.1rem;
  height: 0.72rem;
  overflow: hidden;
  border: 1px solid rgba(64, 85, 116, 0.24);
  border-radius: 0.12rem;
  box-shadow: 0 1px 2px rgba(31, 43, 64, 0.16);
  vertical-align: middle;
}

.flag-de {
  background: url("/assets/final/flag-de.svg") center / cover no-repeat;
}

.flag-gb {
  background: url("/assets/final/flag-gb.svg") center / cover no-repeat;
}

.flag-de,
.flag-gb {
  filter: saturate(0.75);
  opacity: 0.72;
}

.language-options a {
  display: grid;
  grid-template-columns: 1.55rem 1.1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.48rem;
}

.language-option-code {
  color: var(--color-deep);
  font-size: 0.72rem;
  font-weight: 700;
}

.language-options a.is-selected,
.language-options a.is-selected .language-option-code {
  color: var(--color-accent-text);
  background: var(--color-accent-soft);
  font-weight: 700;
}

.language-options a.is-selected::after {
  content: "✓";
  font-size: 0.82rem;
  font-weight: 700;
}

.split-claim {
  transform: none;
  font-size: clamp(1.35rem, 2vw, 2rem);
  border-radius: 14px;
}

.home-logo-block {
  position: relative;
  isolation: isolate;
  width: min(46vw, 460px);
  max-width: 100%;
  align-self: center;
  margin-right: auto;
  margin-left: auto;
  filter: none;
  transform: translateY(-2px);
}

.home-logo-block::before {
  position: absolute;
  z-index: 0;
  inset: 8% 8% 0;
  border-radius: 50%;
  background: rgba(31, 43, 64, 0.18);
  box-shadow: 0 12px 22px rgba(31, 43, 64, 0.12);
  content: "";
  filter: blur(20px);
  transform: translateY(10px) scale(0.88);
}

.home-logo-block img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  filter: drop-shadow(0 8px 12px rgba(31, 43, 64, 0.14));
}

.site-footer-brand {
  display: block;
}

.site-footer-brand img {
  display: block;
  width: min(12vw, 110px);
  height: auto;
}

.site-footer {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 0;
  padding: 16px clamp(24px, 7vw, 112px);
  color: var(--color-deep);
  background: var(--color-accent-soft);
  border-top: 1px solid rgba(64, 85, 116, 0.14);
}

.site-footer-links {
  gap: 4px 24px;
}

.site-footer-links a {
  color: var(--color-deep);
  font-size: clamp(1.125rem, 1.25vw, 1.25rem);
  line-height: 1.5;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--color-accent-text);
}

.site-footer-brand p {
  color: var(--color-deep);
}

.legal-content .legal-kicker {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
}

/* Keep navigation visible independently of the page's scrolling content. */
.home-navbar {
  position: fixed;
  z-index: 3000;
  top: 18px;
  padding: 0 18px;
  transition: top 160ms ease, padding 160ms ease, background-color 160ms ease;
}

.home-navbar.is-scrolled {
  top: 0;
  padding: 0;
  background: #e6f3f2;
  box-shadow: 0 3px 14px rgba(31, 43, 64, 0.12);
}

.home-navbar.is-scrolled .home-nav-links {
  width: min(1220px, 100%);
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-navbar { transition: none; }
}

.home-nav-links {
  gap: 0;
  border-radius: 22px;
}

.home-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

@media (min-width: 901px) {
  .home-navbar {
    top: 18px;
    padding: 0 18px;
  }

  .home-nav-links {
    padding-left: 15px;
  }

  .home-nav-menu > a,
  .home-nav-menu .language-menu summary {
    padding-right: clamp(8px, 1.1vw, 14px);
    padding-left: clamp(8px, 1.1vw, 14px);
  }

  .split-hero {
    min-height: 100svh;
    padding-top: clamp(118px, 11.5vw, 146px);
  }
}

.home-nav-links .home-nav-logo {
  flex: 0 0 48px;
  background: transparent;
  box-shadow: none;
}

.home-nav-links .home-nav-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
}

.home-nav-menu a:hover,
.home-nav-menu a:focus-visible {
  transform: none;
}

@media (max-width: 900px) {
  .home-nav-links {
    display: grid;
    grid-template-columns: 1fr auto;
    width: min(100%, 420px);
    gap: 0;
    padding: 8px 10px;
  }

  .home-nav-links .home-nav-logo {
    grid-column: 1;
    width: 44px;
    height: 44px;
  }

  .home-nav-links .home-nav-logo img {
    width: 42px;
    height: 42px;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    grid-column: 2;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    color: var(--color-deep);
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    color: var(--color-accent-text);
    background: rgba(255, 255, 255, 0.72);
    outline: none;
  }

  .nav-toggle span {
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .nav-toggle span:nth-child(1) {
    transform: translateY(-7px);
  }

  .nav-toggle span:nth-child(3) {
    transform: translateY(7px);
  }

  .home-nav-links.is-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg);
  }

  .home-nav-links.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .home-nav-links.is-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .home-nav-menu {
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    margin-left: 0;
    padding-top: 10px;
  }

  .home-nav-links.is-open .home-nav-menu {
    display: flex;
  }

  .home-nav-links .home-nav-menu a:nth-of-type(n + 1) {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
  }

  .home-nav-links .home-nav-menu a:hover,
  .home-nav-links .home-nav-menu a:focus-visible,
  .home-nav-links .home-nav-menu .is-active {
    color: var(--color-accent-text);
    background: rgba(255, 255, 255, 0.72);
  }

  .home-nav-menu .language-menu {
    display: block;
    width: 100%;
    margin-left: 0;
  }

  .home-nav-menu .language-menu summary {
    display: flex;
    width: fit-content;
    justify-content: flex-start;
    gap: 0.48rem;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .home-nav-menu .language-options {
    position: static;
    width: 100%;
    margin-top: 4px;
    border: 0;
    box-shadow: none;
  }

  .split-hero {
    min-height: auto;
    padding: clamp(130px, 17vw, 154px) clamp(16px, 4vw, 36px) clamp(58px, 9vw, 96px);
  }

  .split-content {
    width: 100%;
    min-width: 0;
  }

  .split-content h1 {
    width: 100%;
    min-width: 0;
    font-size: clamp(2.55rem, 11.5vw, 7.2rem);
    line-height: 0.88;
    letter-spacing: -0.03em;
  }

  .split-content h1 span {
    display: block;
    max-width: 100%;
    white-space: nowrap;
  }

  .split-claim {
    transform: none;
    max-width: 100%;
    margin-top: clamp(28px, 6vw, 42px);
    font-size: clamp(1.25rem, 5.2vw, 1.9rem);
    text-align: center;
    border-radius: 14px;
  }

  .split-lead {
    width: min(100%, 620px);
    margin-top: clamp(32px, 6vw, 58px);
    font-size: clamp(1.04rem, 2.7vw, 1.45rem);
    line-height: 1.45;
  }

  .home-logo-block {
    width: clamp(300px, 68vw, 420px);
    max-width: 100%;
    margin-top: clamp(34px, 7vw, 64px);
    transform: translate(5.3%, -2px);
  }

  .site-footer-brand img {
    width: min(21vw, 80px);
  }
}

@media (max-width: 500px) {
  .home-navbar {
    top: 10px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .home-nav-links {
    width: 100%;
  }

  .split-hero {
    padding-top: 122px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .split-content h1 {
    font-size: clamp(2.55rem, 12vw, 4.6rem);
  }

  .split-claim {
    font-size: clamp(1.15rem, 5vw, 1.6rem);
  }

  .split-lead {
    font-size: 1.05rem;
  }

  .home-logo-block {
    width: clamp(280px, 86vw, 360px);
    max-width: 100%;
  }
}

/* Interactive card redesign for the three consulting pages. */
.redesigned-page {
  min-height: max(760px, 100svh);
}

.redesigned-page .page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(132px, 13vw, 184px) 0 92px;
}

.redesigned-page .page-intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
}

.redesigned-page .page-intro-copy {
  min-width: 0;
}

.redesigned-page .page-eyebrow {
  margin: 0 0 20px;
  color: var(--color-accent-soft);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.redesigned-page .org-title,
.redesigned-page .work-title,
.redesigned-page .about-title {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(3.8rem, 6.5vw, 7.3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.86;
}

.redesigned-page .page-intro-lead {
  max-width: 360px;
  margin: 0 0 4px auto;
  color: var(--color-accent-soft);
  font-size: clamp(1.2rem, 1.65vw, 1.65rem);
  line-height: 1.35;
}

.redesigned-page .page-intro-support {
  max-width: 780px;
  margin-top: clamp(50px, 7vw, 82px);
  padding-left: clamp(18px, 2.4vw, 32px);
  border-left: 1px solid rgba(230, 243, 242, 0.48);
  color: var(--color-text);
  font-size: clamp(1.08rem, 1.45vw, 1.42rem);
  line-height: 1.46;
}

.redesigned-page .page-intro-support p {
  margin: 0;
}

.redesigned-page .page-intro-support p + p {
  margin-top: 16px;
}

.redesigned-page .card-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(64px, 9vw, 108px);
}

.redesigned-page .card-section-heading .page-eyebrow {
  margin: 0;
}

.redesigned-page .card-section-hint {
  margin: 0;
  color: rgba(230, 243, 242, 0.68);
  font-size: 0.86rem;
}

.redesigned-page .reveal-card-grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  margin-top: 18px;
}

.redesigned-page .org-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.redesigned-page .work-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.redesigned-page .about-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.redesigned-page .reveal-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(230, 243, 242, 0.52);
  border-radius: 22px;
  color: var(--color-text);
  background: rgba(64, 85, 116, 0.25);
  box-shadow: 0 12px 28px rgba(31, 43, 64, 0.1);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.redesigned-page .reveal-card:hover,
.redesigned-page .reveal-card[open] {
  border-color: rgba(230, 243, 242, 0.86);
  background: rgba(64, 85, 116, 0.42);
  box-shadow: 0 18px 34px rgba(31, 43, 64, 0.16);
}

.redesigned-page .reveal-card:hover {
  transform: translateY(-3px);
}

.redesigned-page .reveal-card summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 228px;
  padding: 30px clamp(22px, 2.8vw, 38px);
  cursor: pointer;
  list-style: none;
}

.redesigned-page .reveal-card summary::-webkit-details-marker {
  display: none;
}

.redesigned-page .reveal-card summary:focus-visible {
  outline: 2px solid var(--color-accent-soft);
  outline-offset: -5px;
}

.redesigned-page .card-index {
  align-self: start;
  padding-top: 3px;
  color: var(--color-accent-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.redesigned-page .card-summary-copy {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.redesigned-page .card-kicker {
  color: rgba(230, 243, 242, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.redesigned-page .card-title {
  color: var(--color-accent-soft);
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.7vw, 2.8rem);
  line-height: 0.98;
}

.redesigned-page .card-toggle {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(230, 243, 242, 0.64);
  border-radius: 50%;
}

.redesigned-page .card-toggle::before,
.redesigned-page .card-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: var(--color-accent-soft);
  content: "";
  transform: translate(-50%, -50%);
}

.redesigned-page .card-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 180ms ease;
}

.redesigned-page .reveal-card[open] .card-toggle::after {
  transform: translate(-50%, -50%) rotate(0);
}

.redesigned-page .card-reveal {
  display: none;
  padding: 0 clamp(22px, 2.8vw, 38px) 32px 84px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.48;
}

.redesigned-page .reveal-card[open] .card-reveal {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .redesigned-page .reveal-card:hover .card-reveal {
    display: block;
  }
}

.redesigned-page .card-reveal p {
  margin: 0 0 16px;
}

.redesigned-page .card-reveal p:last-child {
  margin-bottom: 0;
}

.redesigned-page .card-reveal ul {
  margin: 0;
  padding-left: 1.2em;
}

.redesigned-page .card-reveal li + li {
  margin-top: 7px;
}

@media (max-width: 900px) {
  .redesigned-page .page-intro-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .redesigned-page .page-intro-lead {
    max-width: 620px;
    margin-left: 0;
  }

  .redesigned-page .org-card-grid,
  .redesigned-page .about-card-grid {
    grid-template-columns: 1fr;
  }

  .redesigned-page .org-card summary {
    min-height: 190px;
  }
}

@media (max-width: 700px) {
  .redesigned-page .page-shell {
    width: min(100% - 32px, 1180px);
    padding-top: 106px;
    padding-bottom: 64px;
  }

  .redesigned-page .page-intro-row {
    gap: 26px;
  }

  .redesigned-page .org-title,
  .redesigned-page .work-title,
  .redesigned-page .about-title {
    font-size: clamp(3.35rem, 14vw, 5.8rem);
  }

  .redesigned-page .page-intro-support {
    margin-top: 42px;
    padding-left: 16px;
    font-size: 1.05rem;
  }

  .redesigned-page .card-section-heading {
    display: block;
    margin-top: 62px;
  }

  .redesigned-page .card-section-hint {
    margin-top: 10px;
  }

  .redesigned-page .work-card-grid {
    grid-template-columns: 1fr;
  }

  .redesigned-page .reveal-card summary {
    min-height: 176px;
    gap: 14px;
    padding: 24px 20px;
  }

  .redesigned-page .card-title {
    font-size: clamp(1.55rem, 8vw, 2.3rem);
  }

  .redesigned-page .card-reveal {
    padding: 0 20px 26px 58px;
    font-size: 1rem;
  }
}

/* Quiet supporting illustrations for the content pages. */
.page-illustration {
  display: flex;
  justify-content: center;
  width: min(100%, 390px);
  margin: clamp(54px, 7vw, 90px) 4% 0 auto;
  pointer-events: none;
}

.page-illustration img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(31, 43, 64, 0.16));
  mix-blend-mode: screen;
  opacity: 0.76;
}

.page-illustration-org {
  width: min(100%, 410px);
}

.page-illustration-work {
  width: min(100%, 370px);
  margin-right: 8%;
}

.page-illustration-about {
  width: min(100%, 300px);
  margin-right: 7%;
}

.page-illustration-contact {
  width: min(100%, 360px);
  margin-top: clamp(58px, 8vw, 96px);
  margin-right: 0;
}

@media (max-width: 700px) {
  .page-illustration,
  .page-illustration-org,
  .page-illustration-work,
  .page-illustration-about,
  .page-illustration-contact {
    width: min(82vw, 350px);
    margin-right: auto;
    margin-left: auto;
  }

  .page-illustration-about {
    width: min(68vw, 280px);
  }
}

/* One desktop layout: logo beside a copy block with width-independent gaps. */
.home-copy {
  display: contents;
}

@media (min-width: 901px) {
  .home-split {
    position: relative;
    isolation: auto;
  }

  .split-hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    place-items: center;
    overflow: hidden;
  }

  .split-hero::before {
    display: none;
}

  .split-content-panel {
    position: relative;
    z-index: 1;
    display: contents;
  }

  .split-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-areas: "logo copy";
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    column-gap: clamp(32px, 4vw, 64px);
    width: min(1040px, calc(100% - 96px));
    max-width: none;
    text-align: left;
  }

  .home-copy {
    display: flex;
    grid-area: copy;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    min-width: 0;
  }

  .split-content h1 {
    width: auto;
    max-width: 760px;
    font-size: clamp(3rem, 5.6vw, 5.6rem);
    text-align: left;
  }

  .split-content h1 span {
    display: block;
  }

  .split-claim {
    margin: 0;
  }

  .split-lead {
    width: min(100%, 560px);
    margin: 0;
    font-size: clamp(1.05rem, 1.35vw, 1.3rem);
    line-height: 1.4;
  }

  .home-logo-block {
    grid-area: logo;
    align-self: center;
    justify-self: center;
    width: min(100%, 360px);
    max-width: none;
    margin: 0;
    transform: none;
  }
}

/* Grow from the compact laptop size to the original large-screen scale.
   The values meet the desktop rules at 1440px; copy gaps stay at 32px. */
@media (min-width: 1440px) {
  .split-content {
    width: min(clamp(1040px, calc(83.333333vw - 160px), 1440px), calc(100% - 96px));
  }

  .split-content h1 {
    max-width: 100%;
    font-size: clamp(80.64px, calc(11.2vw - 80.64px), 134.4px);
  }

  .split-lead {
    width: min(100%, clamp(560px, calc(29.166667vw + 140px), 700px));
    font-size: clamp(19.44px, calc(1.616667vw - 3.84px), 27.2px);
  }

  .home-logo-block {
    width: min(100%, clamp(360px, calc(32.5vw - 108px), 516px));
  }
}

/* Editorial content pages: original copy, restrained imagery and click-only cards. */
.redesigned-page {
  min-height: max(760px, 100svh);
  background:
    radial-gradient(circle at 88% 9%, rgba(230, 243, 242, 0.09), transparent 26rem),
    var(--color-background);
}

.redesigned-page .page-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(132px, 13vw, 176px) 0 clamp(76px, 9vw, 112px);
}

.redesigned-page .content-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(250px, 0.58fr);
  align-items: center;
  gap: clamp(46px, 7vw, 104px);
}

.redesigned-page .content-intro {
  min-width: 0;
}

.redesigned-page .org-title,
.redesigned-page .work-title,
.redesigned-page .about-title,
.redesigned-page .contact-title {
  max-width: 920px;
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(4rem, 7vw, 7.45rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.87;
}

.redesigned-page .org-title {
  font-size: clamp(4rem, 7vw, 7.45rem);
}

.redesigned-page .intro-text {
  max-width: 760px;
  margin-top: clamp(44px, 6vw, 70px);
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.08rem, 1.42vw, 1.35rem);
  line-height: 1.52;
}

.redesigned-page .intro-text p {
  margin: 0;
}

.redesigned-page .intro-text p + p {
  margin-top: 28px;
}

.redesigned-page .content-illustration {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 360px;
  margin: 0;
  place-items: center;
  isolation: isolate;
}

.redesigned-page .content-illustration::before {
  display: none;
  position: absolute;
  z-index: -1;
  width: 88%;
  aspect-ratio: 1;
  border: 1px solid rgba(230, 243, 242, 0.26);
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 44%, rgba(230, 243, 242, 0.2), rgba(178, 92, 190, 0.08) 54%, transparent 70%);
  content: "";
}

.redesigned-page .content-illustration img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(31, 43, 64, 0.2));
}

.redesigned-page .content-illustration-work img {
  width: 86%;
}

.redesigned-page .content-hero-about {
  align-items: start;
}

.redesigned-page .content-illustration-about {
  min-height: 410px;
}

.redesigned-page .content-illustration-about img,
.redesigned-page .content-illustration-contact img {
  max-height: 470px;
  mix-blend-mode: screen;
}

.redesigned-page .content-card-list {
  display: grid;
  width: min(100%, 960px);
  gap: 14px;
  margin-top: clamp(66px, 9vw, 108px);
}

.redesigned-page .content-card {
  margin: 0;
  overflow: clip;
  border: 1px solid rgba(230, 243, 242, 0.4);
  border-radius: 20px;
  background: rgba(64, 85, 116, 0.22);
  box-shadow: 0 12px 30px rgba(31, 43, 64, 0.08);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.redesigned-page .content-card:hover,
.redesigned-page .content-card[open] {
  border-color: rgba(230, 243, 242, 0.72);
  background: rgba(64, 85, 116, 0.36);
  box-shadow: 0 18px 38px rgba(31, 43, 64, 0.14);
}

.redesigned-page .content-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 108px;
  padding: 22px clamp(22px, 3vw, 36px);
  cursor: pointer;
  list-style: none;
}

.redesigned-page .content-card summary::-webkit-details-marker {
  display: none;
}

.redesigned-page .content-card summary:focus-visible {
  border-radius: 18px;
  outline: 2px solid var(--color-accent-soft);
  outline-offset: -5px;
}

.redesigned-page .content-card-title {
  justify-self: start;
  padding: 0.23em 0.52em 0.3em;
  border-radius: 13px;
  color: var(--color-accent-text);
  background: var(--color-accent-soft);
  font-family: var(--font-card-heading);
  font-size: clamp(1.35rem, 2.25vw, 2.2rem);
  font-weight: 500;
  line-height: 1.08;
}

.redesigned-page .card-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(230, 243, 242, 0.68);
  border-radius: 50%;
}

.redesigned-page .card-toggle::before,
.redesigned-page .card-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: var(--color-accent-soft);
  content: "";
  transform: translate(-50%, -50%);
}

.redesigned-page .card-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 180ms ease;
}

.redesigned-page .content-card[open] .card-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.redesigned-page .content-card-body {
  max-width: 780px;
  padding: 0 clamp(76px, 8vw, 112px) 34px clamp(22px, 3vw, 36px);
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.03rem, 1.28vw, 1.2rem);
  line-height: 1.55;
}

.redesigned-page .content-card-body p {
  margin: 0 0 18px;
}

.redesigned-page .content-card-body p:last-child {
  margin-bottom: 0;
}

.redesigned-page .content-card-body ul {
  margin: 0;
  padding-left: 1.25em;
}

.redesigned-page .content-card-body li + li {
  margin-top: 7px;
}

.redesigned-page .content-hero-contact {
  min-height: min(680px, calc(100svh - 250px));
}

.redesigned-page .contact-copy {
  margin: clamp(38px, 5vw, 56px) 0 34px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.18rem, 1.65vw, 1.55rem);
  line-height: 1.55;
}

.redesigned-page .contact-email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6em;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.18rem, 1.65vw, 1.55rem);
}

.redesigned-page .contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  max-width: 100%;
  padding: 0.3em 0.58em 0.36em;
  border: 1px solid rgba(178, 92, 190, 0.45);
  border-radius: 14px;
  color: var(--color-accent-text);
  background: var(--color-accent-soft);
  font-size: clamp(1.35rem, 2.15vw, 2rem);
  font-family: inherit;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(31, 43, 64, 0.12);
  -webkit-user-select: all;
  user-select: all;
  cursor: pointer;
  transition: box-shadow 160ms ease;
}

.redesigned-page .contact-mail:hover,
.redesigned-page .contact-mail:focus-visible {
  color: var(--color-accent-text);
  background: #fff;
  box-shadow: 0 18px 34px rgba(31, 43, 64, 0.18);
}

.redesigned-page .contact-mail:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.contact-email > span { align-self: flex-start; padding-top: 0.5em; }
.contact-email-control { position: relative; max-width: 100%; }
.contact-copy-icon { width: 0.8em; height: 0.8em; flex: none; user-select: none; }
.contact-copy-status {
  position: absolute;
  z-index: 2;
  top: calc(100% + 8px);
  left: 0;
  width: max-content;
  max-width: 100%;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--color-deep);
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 43, 64, 0.18);
  font-size: 0.9rem;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.contact-copy-status.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .contact-copy-status { transition: none; transform: none; }
}

@media (max-width: 900px) {
  .redesigned-page .content-hero {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.44fr);
    gap: 34px;
  }

  .redesigned-page .content-illustration {
    min-height: 300px;
  }

  .redesigned-page .content-illustration-about {
    min-height: 340px;
  }
}

@media (max-width: 700px) {
  .redesigned-page .page-shell {
    width: min(100% - 32px, 620px);
    padding-top: 106px;
    padding-bottom: 68px;
  }

  .redesigned-page .content-hero {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .redesigned-page .org-title,
  .redesigned-page .work-title,
  .redesigned-page .about-title,
  .redesigned-page .contact-title {
    font-size: clamp(3.25rem, 14vw, 5.55rem);
    overflow-wrap: normal;
  }

  .redesigned-page .org-title {
    font-size: clamp(2.25rem, 11.5vw, 4.8rem);
    overflow-wrap: anywhere;
  }

  .redesigned-page .intro-text {
    margin-top: 38px;
    font-size: 1.05rem;
  }

  .redesigned-page .intro-text p + p {
    margin-top: 22px;
  }

  .redesigned-page .content-illustration,
  .redesigned-page .content-illustration-about {
    width: min(86vw, 380px);
    min-height: 280px;
    margin: 0 auto;
  }

  .redesigned-page .content-illustration-about {
    width: min(72vw, 320px);
    margin-top: -12px;
  }

  .redesigned-page .content-card-list {
    margin-top: 58px;
  }

  .redesigned-page .content-card summary {
    min-height: 92px;
    gap: 15px;
    padding: 18px;
  }

  .redesigned-page .content-card-title {
    font-size: clamp(1.2rem, 6vw, 1.75rem);
  }

  .redesigned-page .card-toggle {
    width: 34px;
    height: 34px;
  }

  .redesigned-page .content-card-body {
    padding: 0 20px 26px;
    font-size: 1rem;
  }

  .redesigned-page .content-hero-contact {
    min-height: 0;
  }

  .redesigned-page .contact-mail {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .redesigned-page .content-card,
  .redesigned-page .card-toggle::after,
  .redesigned-page .contact-mail {
    transition: none;
  }
}

/* Keep the shared navbar visually present during page-to-page navigation. */
@view-transition {
  navigation: auto;
}

.home-nav-menu > a,
.home-nav-menu .language-menu summary {
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.home-nav-links {
  view-transition-name: home-navbar;
}

::view-transition-old(home-navbar),
::view-transition-new(home-navbar) {
  animation-duration: 220ms;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: ease-out;
}

/* Let the tall work illustration use the open space inside its existing column. */
@media (min-width: 1200px) {
  .alternative-page .content-illustration-work img {
    width: 100%;
    transform: translateY(3%) scale(1.24);
    transform-origin: center center;
  }
}
/* Keep long legal headings inside the viewport on small screens. */
@media (max-width: 700px) {
  .legal-content h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

@media (max-width: 340px) {
  .split-content h1 span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .home-logo-block {
    transform: none;
  }
}

/* Applied by the local editor when replacing a picture. Keep arbitrary image
   proportions without inline styles, which the server CSP deliberately blocks. */
img.editor-image-fit {
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}

/* Keyboard navigation and a usable mobile fallback if JavaScript fails. */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 8px;
  color: var(--color-deep);
  background: #fff;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
#main-content { scroll-margin-top: 110px; }
.home-nav-links a:focus-visible,
.home-nav-links summary:focus-visible,
.home-nav-links .nav-toggle:focus-visible,
.site-footer-links a:focus-visible {
  outline: 3px solid var(--color-deep);
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .home-nav-links:not(.has-menu-toggle) .nav-toggle { display: none; }
  .home-nav-links:not(.has-menu-toggle) .home-nav-menu { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none; }
}
