/* Compact title-row accordions and supporting content-page styles. */
.alternative-page {
  background: var(--color-background);
}

.alternative-page .page-shell {
  width: min(1220px, calc(100% - 48px));
}

.alternative-page .content-hero {
  grid-template-columns: minmax(0, 1.28fr) minmax(270px, 0.72fr);
}

.alternative-page .content-illustration::before {
  border: 1px solid rgba(230, 243, 242, 0.46);
  background: rgba(230, 243, 242, 0.07);
  box-shadow: 14px 14px 0 rgba(178, 92, 190, 0.18);
}

/* Compact accordions: the title row keeps the same geometry in both states. */
.org-page > .page-shell > .org-title {
  max-width: 100%;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.org-page .content-hero { align-items: start; }
.org-page .intro-text { margin-top: 0; }
.org-page .content-illustration-org { min-height: 0; }
.org-page .content-illustration-org img { max-height: 370px; }

.alternative-page .content-card-list {
  display: grid;
  width: 100%;
  gap: 12px;
  margin-top: clamp(68px, 8vw, 98px);
}

.alternative-page .content-card {
  min-width: 0;
  margin: 0;
  overflow: clip;
  border: 1px solid rgba(230, 243, 242, 0.64);
  border-radius: 18px;
  background: #4c617f;
  box-shadow: none;
  scroll-margin-top: 100px;
  transition: border-color 180ms ease;
}

.alternative-page .content-card:nth-child(even) {
  background: #465b79;
}

.alternative-page .content-card:hover,
.alternative-page .content-card[open] {
  border-color: rgba(230, 243, 242, 0.86);
  box-shadow: none;
}

.alternative-page .content-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 80px;
  gap: 16px;
  padding: 20px 26px;
}

.alternative-page .content-card summary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -7px;
}

.alternative-page .content-card-title {
  max-width: 100%;
  padding: 0.23em 0.5em 0.3em;
  border-radius: 11px;
  color: var(--color-accent-text);
  background: var(--color-accent-soft);
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  font-weight: 600;
  line-height: 1.08;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.alternative-page .card-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  border-color: rgba(255, 255, 255, 0.86);
  background: var(--color-deep);
}

.alternative-page .content-card[open] .card-toggle::before,
.alternative-page .content-card[open] .card-toggle::after {
  background: #fff;
}

.alternative-page .content-card-body {
  max-width: none;
  padding: clamp(26px, 4vw, 40px) clamp(22px, 3vw, 36px);
  border-top: 1px solid rgba(255, 255, 255, 0.46);
  color: var(--color-deep);
  background: var(--color-accent-soft);
  font-size: clamp(1.03rem, 1.3vw, 1.18rem);
  font-weight: 500;
}

.alternative-page .content-hero-contact {
  position: relative;
  min-height: 610px;
  padding: clamp(34px, 5vw, 66px);
  border: 1px solid rgba(230, 243, 242, 0.62);
  border-radius: 18px;
  background: var(--color-deep);
  box-shadow: 12px 12px 0 rgba(178, 92, 190, 0.46);
}


.alternative-page .content-hero-contact .content-illustration::before {
  box-shadow: 10px 10px 0 rgba(178, 92, 190, 0.34);
}

/* ---- Compact laptop/tablet: illustration below the copy --------------- */
@media (min-width: 701px) and (max-width: 1199px) {
  .alternative-page .content-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }

  .alternative-page .content-illustration {
    width: min(100%, 460px);
    min-height: 0;
    justify-self: center;
  }
}

/* ---- Phones: single column, tighter shell ----------------------------- */
@media (max-width: 700px) {
  .alternative-page .page-shell {
    width: min(100% - 28px, 620px);
  }

  .alternative-page .content-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .alternative-page .content-intro,
  .alternative-page .content-illustration {
    min-width: 0;
  }

  .alternative-page .content-card-list,
  .alternative-page .content-card-list:has(.content-card[open]) {
    grid-template-columns: 1fr;
  }

  .alternative-page .content-hero-contact {
    min-height: 0;
    padding: 26px 20px 36px;
    border-radius: 14px;
    box-shadow: 8px 8px 0 rgba(178, 92, 190, 0.46);
  }
}

@media (max-width: 700px) {
  .alternative-page .content-card summary {
    min-height: 80px;
    gap: 12px;
    padding: 18px;
  }

  .alternative-page .content-card-title {
    font-size: clamp(1rem, 4.4vw, 1.55rem);
  }

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

@media (prefers-reduced-motion: reduce) {
  .alternative-page .content-card {
    transition: none;
  }
}

/* About page: the deck makes no sense for just two profile blocks, so show
   them as two calm, always-open panels in the same flat-card language. */
.alternative-page .about-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  width: min(100%, 960px);
  gap: clamp(18px, 2.4vw, 30px);
  margin: clamp(64px, 8vw, 96px) auto 0;
}

.alternative-page .about-panel {
  display: grid;
  align-content: start;
  gap: clamp(18px, 2vw, 26px);
  margin: 0;
  padding: clamp(30px, 3.2vw, 46px) clamp(28px, 3vw, 42px) clamp(32px, 3.4vw, 46px);
  border: 1px solid rgba(230, 243, 242, 0.82);
  border-radius: 22px;
  background: var(--color-accent-soft);
  box-shadow: 10px 10px 0 rgba(178, 92, 190, 0.5);
}

.alternative-page .about-panel-heading {
  justify-self: start;
  max-width: 100%;
  margin: 0;
  color: var(--color-accent-text);
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.05;
  overflow-wrap: break-word;
}

.alternative-page .about-panel-body {
  display: grid;
  gap: clamp(15px, 1.7vw, 20px);
}

.alternative-page .about-panel-body p {
  margin: 0;
  color: var(--color-deep);
  font-size: clamp(1.03rem, 1.3vw, 1.2rem);
  font-weight: 500;
  line-height: 1.6;
}

.alternative-page .about-panel-lead {
  color: var(--color-accent-text);
  font-size: clamp(1.12rem, 1.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.45;
}

.alternative-page .about-panel-body .about-label {
  margin: 0;
  color: var(--color-deep);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.alternative-page .about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.alternative-page .about-tags li {
  padding: 0.42em 0.9em 0.5em;
  border: 1px solid rgba(178, 92, 190, 0.5);
  border-radius: 999px;
  color: var(--color-accent-text);
  background: rgba(178, 92, 190, 0.08);
  font-size: clamp(0.95rem, 1.05vw, 1.06rem);
  font-weight: 600;
  line-height: 1.15;
}

@media (max-width: 760px) {
  .alternative-page .about-panels {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: clamp(44px, 12vw, 60px);
  }

  .alternative-page .about-panel {
    padding: 26px 22px 30px;
    box-shadow: 7px 7px 0 rgba(178, 92, 190, 0.5);
  }
}

/* About desktop/tablet: profile panels on the left, illustration on the right. */
@media (min-width: 761px) {
  .about-page .page-shell {
    display: grid;
    grid-template-areas:
      "intro illustration"
      "panels illustration";
    grid-template-columns: minmax(0, 1.18fr) minmax(250px, 0.82fr);
    align-items: start;
    column-gap: clamp(28px, 5vw, 70px);
  }

  .about-page .content-hero-about {
    display: contents;
  }

  .about-page .content-intro {
    grid-area: intro;
  }

  .about-page .content-illustration-about {
    grid-area: illustration;
    width: 100%;
    min-height: 0;
    align-self: start;
    margin: clamp(8px, 0.8vw, 12px) 0 0;
  }

  .about-page .content-illustration-about img {
    max-height: 620px;
  }

  .about-page .about-panels {
    grid-area: panels;
    width: 100%;
    margin: clamp(44px, 5vw, 64px) 0 0;
  }
}

/* Keep the single-column mobile layout constrained by the viewport. */
@media (max-width: 700px) {
  .redesigned-page .content-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .redesigned-page .content-illustration {
    max-width: 100%;
    justify-self: center;
  }
}

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

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

/* Optional compact About variant: remove the class from the <main> element
   to restore the illustrated two-column layout without deleting the image. */
.about-page--compact .content-illustration-about {
  display: none;
}

@media (min-width: 761px) {
  .about-page--compact .page-shell {
    display: block;
  }

  .about-page--compact .content-hero-about {
    display: block;
  }

  .about-page--compact .about-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    margin-top: clamp(44px, 5vw, 64px);
  }
}

/* The transparent illustration series includes its own shading and colours. */
.alternative-page .content-illustration-org img,
.alternative-page .content-illustration-work img,
.alternative-page .content-illustration-contact img {
  filter: none;
  mix-blend-mode: normal;
}
