/*
 * AlvaradoCSS — Projects and Consultancy components
 *
 * This root-level stylesheet is loaded through _quarto.yml. Keeping it at the
 * project root preserves existing relative paths to images and pattern assets.
 */

/* =============================================================================
 * Projects and consultancy pages
 * ========================================================================== */

/*
 * Both pages use the same readable maximum width and spacing rhythm. Keeping
 * these shared rules together prevents the two service-oriented pages from
 * drifting visually as their content evolves.
 */
.portfolio-page,
.consultancy-page {
  --portfolio-border: var(--color-teal-border);
  --portfolio-shadow: 0 1rem 2.5rem var(--color-burgundy-shadow-08);
  --portfolio-surface: var(--color-white-surface-80);

  /*
   * Standard button palette shared with the rest of the website.
   *
   * Change these custom properties to restyle the standard filled and outlined
   * actions on both pages without touching their Quarto markup or unrelated
   * Bootstrap buttons elsewhere on the website. The specialized VARONA action
   * retains its own project-specific identity farther below.
   */
  --page-button-filled: var(--color-brand-burgundy);
  --page-button-filled-hover: var(--color-page-button-primary-hover);
  --page-button-filled-text: var(--color-white);
  --page-button-filled-focus: var(--color-page-button-primary-focus);
  --page-button-outlined: var(--color-brand-teal);
  --page-button-outlined-hover: var(--color-brand-teal-deep);
  --page-button-outlined-focus: var(--color-page-button-outline-focus);

  overflow: hidden;
}

.portfolio-page > h2,
.consultancy-page > h2,
.project-grid,
.service-grid,
.consultancy-process,
.consultancy-fit {
  width: min(1180px, calc(100% - 2rem));
  margin-right: auto;
  margin-left: auto;
}

.portfolio-page > h2,
.consultancy-page > h2 {
  margin-top: clamp(4rem, 8vw, 7rem);
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

/* Introductory hero --------------------------------------------------------- */

.portfolio-intro,
.consultancy-intro {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 0;
  text-align: center;
}

.portfolio-eyebrow {
  margin-bottom: 0.9rem;
  color: var(--color-brand-burgundy);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
}

.portfolio-intro h1,
.consultancy-intro h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.7rem, 6.5vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.portfolio-intro > p:not(.portfolio-eyebrow),
.consultancy-intro > p:not(.portfolio-eyebrow) {
  max-width: 850px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.portfolio-intro .btn,
.consultancy-intro .btn {
  margin: 0.35rem;
}

/*
 * Standard page actions
 * -------------------------------------------------------------------------
 * Scope the shared palette to the introductory and closing action areas. This
 * intentionally excludes specialized controls such as the VARONA beta button,
 * which retains its own project-specific identity farther below.
 */

/* Filled action: burgundy surface with white text. */
.portfolio-intro .btn-primary,
.consultancy-intro .btn-primary,
.portfolio-closing .btn-primary,
.consultancy-note .btn-primary {
  border-color: var(--page-button-filled);
  background-color: var(--page-button-filled);
  color: var(--page-button-filled-text);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.portfolio-intro .btn-primary:hover,
.consultancy-intro .btn-primary:hover,
.portfolio-closing .btn-primary:hover,
.consultancy-note .btn-primary:hover {
  border-color: var(--page-button-filled-hover);
  background-color: var(--page-button-filled-hover);
  color: var(--page-button-filled-text);
  transform: translateY(-1px);
}

.portfolio-intro .btn-primary:focus-visible,
.consultancy-intro .btn-primary:focus-visible,
.portfolio-closing .btn-primary:focus-visible,
.consultancy-note .btn-primary:focus-visible {
  border-color: var(--page-button-filled-hover);
  background-color: var(--page-button-filled-hover);
  color: var(--page-button-filled-text);
  outline: 3px solid var(--page-button-filled-focus);
  outline-offset: 3px;
  box-shadow: none;
}

/* Outlined action: teal border and text, with a deep-teal interaction state. */
.portfolio-intro .btn-outline-primary,
.consultancy-intro .btn-outline-primary,
.portfolio-closing .btn-outline-primary,
.consultancy-note .btn-outline-primary {
  border-color: var(--page-button-outlined);
  background-color: var(--color-transparent);
  color: var(--page-button-outlined);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.portfolio-intro .btn-outline-primary:hover,
.consultancy-intro .btn-outline-primary:hover,
.portfolio-closing .btn-outline-primary:hover,
.consultancy-note .btn-outline-primary:hover {
  border-color: var(--page-button-outlined-hover);
  background-color: var(--page-button-outlined-hover);
  color: var(--color-white);
  transform: translateY(-1px);
}

.portfolio-intro .btn-outline-primary:focus-visible,
.consultancy-intro .btn-outline-primary:focus-visible,
.portfolio-closing .btn-outline-primary:focus-visible,
.consultancy-note .btn-outline-primary:focus-visible {
  border-color: var(--page-button-outlined-hover);
  background-color: var(--page-button-outlined-hover);
  color: var(--color-white);
  outline: 3px solid var(--page-button-outlined-focus);
  outline-offset: 3px;
  box-shadow: none;
}

/* Project and service cards ------------------------------------------------ */

.project-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.project-card,
.service-card {
  position: relative;
  isolation: isolate;

  overflow: hidden;
  border: 1px solid var(--portfolio-border);
  border-radius: 1rem;
  background: var(--portfolio-surface);
  box-shadow: var(--portfolio-shadow);
}

/*
 * Project cards now use the Manifold identity artwork as a true visual header.
 * Removing the card's outer padding lets the image meet the top and side edges,
 * while the separate body wrapper preserves the established text spacing.
 */
.project-card {
  padding: 0;
}

/*
 * Keep service cards unchanged. They retain their padded body and lower-right
 * decorative pattern because the new image-header treatment applies only to
 * the four Manifold project cards.
 */
.service-card {
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

/*
 * The image wrapper establishes a consistent square header for every project.
 * A white fallback background prevents transparent or slow-loading assets from
 * exposing the card surface in an unintended way.
 */
.project-card-image {
  /*
   * Keep each Manifold identity prominent without allowing the square artwork
   * to delay the project name and description excessively.
   */
  width: 64%;
  margin: 1.5rem auto 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-white);
}

/*
 * Fill the available header area without distortion. The supplied images are
 * square, so object-fit primarily protects the layout if an asset is replaced
 * later with a source that has slightly different dimensions.
 */
.project-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

/*
 * Restore the former internal card padding around all authored text and actions.
 * Keeping this spacing in one wrapper avoids repeating margins on each element.
 */
.project-card-body {
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

/*
 * Service cards retain their distinct decorative signature. Project cards no
 * longer use the old corner texture because it would compete with the stronger
 * Manifold identity artwork placed directly above their content.
 */
.service-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: url("images/patterns/service-card-corner.svg");
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: min(86%, 560px) auto;
  opacity: 0.95;
}

.project-card > *,
.service-card > * {
  position: relative;
  z-index: 1;
}

.project-card h3,
.service-card h3 {
  margin-top: 0;
  color: var(--color-brand-teal);
}

.project-card ul,
.service-card ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.project-card li + li,
.service-card li + li {
  margin-top: 0.35rem;
}

.project-status {
  margin-bottom: 0.75rem;
  color: var(--color-brand-burgundy);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

/* Method and process sections ---------------------------------------------- */

.portfolio-method,
.consultancy-process {
  position: relative;
  isolation: isolate;

  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  border-radius: 1rem;
  background: var(--color-brand-teal);
  color: var(--color-white);
}

/*
 * The method section uses a structured lattice, while the consultancy process
 * uses directional curves. Both assets share translucent white geometry so
 * they feel related without repeating the same illustration.
 */
.portfolio-method::before,
.consultancy-process::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.portfolio-method::before {
  background-image: url("images/patterns/portfolio-method-lattice.svg");
  opacity: 0.78;
}

.consultancy-process::before {
  background-image: url("images/patterns/consultancy-process-flow.svg");
  opacity: 0.76;
}

.portfolio-method > *,
.consultancy-process > * {
  position: relative;
  z-index: 1;
}

.portfolio-method {
  width: min(1180px, calc(100% - 2rem));
  margin-right: auto;
  margin-left: auto;
}

.portfolio-method h2,
.consultancy-process h2,
.consultancy-process h3 {
  color: var(--color-white);
}

.portfolio-method ol {
  margin-bottom: 0;
}

.portfolio-method li + li {
  margin-top: 0.65rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.process-step {
  padding: 1.5rem;
  border: 1px solid var(--color-white-border-42);
  border-radius: 0.85rem;
  background: var(--color-white-overlay-10);
}

.process-step p:last-child {
  margin-bottom: 0;
}

.process-number {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-brand-pink);
  font-weight: 800;
  place-items: center;
}

/* Supporting and closing sections ----------------------------------------- */

/*
 * Frame the consultancy's purpose as one coherent editorial composition.
 */
.consultancy-why {
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(4rem, 8vw, 7rem) auto;
  padding: clamp(2rem, 5vw, 3.75rem);
  border: 1px solid var(--portfolio-border);
  border-radius: 1rem;
  background: var(--color-white-surface-80);
  box-shadow: var(--portfolio-shadow);
}

.consultancy-why > h2 {
  margin-top: 0;
  margin-bottom: 1.75rem;
}

.consultancy-why-sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
  align-items: stretch;
}

/*
 * Present Vision, Mission, and Principles as one ordered composition. The
 * number, open circle, and icon are decorative; the headings and list retain
 * the complete semantic structure for assistive technology.
 */
.consultancy-why-item {
  --consultancy-why-accent: var(--color-brand-teal);
  --consultancy-why-accent-dark: var(--color-brand-teal-dark);
  --consultancy-why-surface: color-mix(
    in srgb,
    var(--color-brand-aqua-soft) 28%,
    var(--color-white)
  );

  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  overflow: hidden;
  border: 1px solid color-mix(
    in srgb,
    var(--consultancy-why-accent) 30%,
    transparent
  );
  border-radius: 1rem;
  background: var(--consultancy-why-surface);
  text-align: center;
}

.consultancy-why-mission {
  --consultancy-why-accent: var(--color-brand-burgundy);
  --consultancy-why-accent-dark: var(--color-brand-burgundy);
  --consultancy-why-surface: color-mix(
    in srgb,
    var(--color-brand-pink-soft) 24%,
    var(--color-white)
  );
}

.consultancy-why-principles {
  --consultancy-why-accent: var(--color-brand-gold);
  --consultancy-why-accent-dark: color-mix(
    in srgb,
    var(--color-brand-gold) 72%,
    var(--color-brand-burgundy)
  );
  --consultancy-why-surface: color-mix(
    in srgb,
    var(--color-brand-gold) 10%,
    var(--color-white)
  );
}

.consultancy-why-item::before {
  position: absolute;
  top: 1.15rem;
  left: 50%;
  z-index: -1;
  width: clamp(7rem, 12vw, 8.5rem);
  aspect-ratio: 1;
  border: 2px solid var(--consultancy-why-accent);
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  opacity: 0.72;
  transform: translateX(-50%) rotate(-28deg);
}

.consultancy-why-number {
  position: absolute;
  top: clamp(1.25rem, 2.3vw, 1.6rem);
  left: clamp(1rem, 2vw, 1.35rem);
  color: color-mix(
    in srgb,
    var(--consultancy-why-accent) 76%,
    var(--color-white)
  );
  font-family: Sen, sans-serif;
  font-size: clamp(3.75rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
}

.consultancy-why-item h3 {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  margin: clamp(1rem, 2vw, 1.45rem) 0 1rem;
  color: var(--consultancy-why-accent-dark);
}

.consultancy-why-item h3::before {
  display: inline-grid;
  width: clamp(3rem, 5vw, 3.5rem);
  aspect-ratio: 1;
  border: 1px solid color-mix(
    in srgb,
    var(--consultancy-why-accent) 62%,
    transparent
  );
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-white) 76%, transparent);
  color: var(--consultancy-why-accent-dark);
  font-family: "Font Awesome 6 Free";
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 900;
  content: "\f06e";
  place-items: center;
}

.consultancy-why-mission h3::before {
  content: "\f140";
}

.consultancy-why-principles h3::before {
  content: "\f14e";
}

.consultancy-why-item p {
  margin-bottom: 0;
}

/* Keep Principles compact while preserving a real list in the document tree. */
.consultancy-why-principles ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.consultancy-why-principles li {
  display: inline;
}

.consultancy-why-principles li + li::before {
  margin-inline: 0.55rem;
  color: var(--consultancy-why-accent-dark);
  content: "\2022";
  speak: never;
}

/*
 * Turn the engagement transition into a compact project brief. The accent rule
 * points visitors toward the contact link without competing with the stronger
 * teal process panel that follows.
 */
.consultancy-engagement {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--portfolio-border);
  border-left: 5px solid var(--color-brand-burgundy);
  border-radius: 0 1rem 1rem 0;
  background: var(--color-white-surface-80);
}

.consultancy-engagement h2 {
  margin-top: 0;
}

.consultancy-engagement-terms {
  margin: 1.35rem 0;
  color: var(--color-brand-teal-dark);
  font-family: Sen, sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.025em;
}

.consultancy-engagement-language {
  margin-bottom: 0;
  color: var(--color-brand-burgundy);
  font-size: 0.95rem;
  font-weight: 700;
}

.consultancy-engagement-language-teal {
  margin-bottom: 0;
  color: var(--color-brand-teal);
  font-size: 0.95rem;
  font-weight: 700;
}

.consultancy-engagement-activation-energy {
  margin-bottom: 0;
  color: var(--color-brand-burgundy);
  font-size: 0.95rem;
  font-weight: 700;
}

/* Reusable heavy line icons. */
.icon-inline-heavy-line-burgundy {
  margin-bottom: 0;
  color: var(--color-brand-burgundy);
  font-size: 0.95rem;
  font-weight: 700;
}

.icon-inline-heavy-line-teal {
  margin-bottom: 0;
  color: var(--color-brand-teal);
  font-size: 0.95rem;
  font-weight: 700;
}

/* Reusable centered hairline divider. */
.section-hairline-divider {
  width: 40px;
  height: 1px;
  margin: 1.75rem auto;
}

/* Color variants. */
.section-hairline-divider-teal {
  background-color: var(--color-brand-teal);
}

.section-hairline-divider-burgundy {
  background-color: var(--color-brand-burgundy);
}

.consultancy-fit {
  position: relative;
  isolation: isolate;

  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  border: 1px solid var(--portfolio-border);
  border-radius: 1rem;
  /*
   * Use one solid surface rather than changing the fill color across the
   * panel. Visual depth now comes exclusively from the fading SVG pattern.
   */
  background: var(--color-consultancy-fit-surface);
}

/*
 * Preserve the existing pink-to-white surface and place a sparse node network
 * above it. The SVG fades toward the left so the question list retains a calm,
 * high-contrast reading area.
 */
.consultancy-fit::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: url("images/patterns/consultancy-fit-network.svg");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.68;
}

.consultancy-fit > * {
  position: relative;
  z-index: 1;
}

.consultancy-fit h2 {
  margin-top: 0;
  margin-bottom: 1.6rem;
}

/*
 * Give each question more breathing room and a stronger conversational cue
 * without adding another container, icon system, or decorative illustration.
 */
.consultancy-fit ul {
  margin-bottom: 0;
  padding-left: 1.45rem;
}

.consultancy-fit li {
  padding-left: 0.3rem;
  font-size: clamp(1.02rem, 1.7vw, 1.13rem);
  line-height: 1.65;
}

.consultancy-fit li::marker {
  color: var(--color-brand-burgundy);
}

.consultancy-fit li + li {
  margin-top: 1rem;
}

.portfolio-closing,
.consultancy-note {
  position: relative;
  isolation: isolate;

  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;

  /*
   * Match the homepage closing panel's quiet surface treatment. The manifold
   * artwork now supplies the visual interest, so these panels do not need a
   * visible border, translucent fill, or drop shadow.
   */
  border: 0 solid var(--color-white);
  border-radius: 1rem;
  background: var(--color-white);
  box-shadow: none;
  text-align: center;
}

/*
 * Match the homepage closing treatment exactly: the same geometry, quiet white
 * surface, and bilateral manifold artwork now identify every closing action.
 * Content-specific layouts and button hierarchy remain unchanged.
 */
.portfolio-closing::before,
.consultancy-note::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: url("images/patterns/homepage-closing-manifold.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.portfolio-closing > *,
.consultancy-note > * {
  position: relative;
  z-index: 1;
}

.portfolio-closing h2,
.consultancy-note h2 {
  margin-top: 0;
}

.consultancy-note h3 {
  margin-top: 1.5rem;
  color: var(--color-brand-teal-dark);
}

.consultancy-note p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.consultancy-note-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  text-align: left;
}

.consultancy-note-copy h2,
.consultancy-note-action h3 {
  margin-top: 0;
}

.consultancy-note-copy p,
.consultancy-note-action p {
  margin-right: 0;
  margin-left: 0;
}

.consultancy-note-action {
  padding-left: clamp(1.5rem, 4vw, 3rem);
  border-left: 1px solid var(--portfolio-border);
}

.portfolio-closing .btn,
.consultancy-note .btn {
  margin: 0.35rem;
}

/*
 * Keep direct email contact visually secondary to the closing panel's two
 * primary actions while matching the established Contact-page presentation.
 */
.portfolio-closing-email,
.consultancy-note-email {
  margin-top: 0.75rem;
}

.portfolio-closing-email p,
.consultancy-note-email p {
  margin-bottom: 0;
}

.portfolio-closing-email a,
.consultancy-note-email a {
  color: var(--color-brand-teal-dark);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.portfolio-closing-email a:hover,
.portfolio-closing-email a:focus,
.consultancy-note-email a:hover,
.consultancy-note-email a:focus {
  color: var(--color-brand-pink);
}

/* Responsive behavior ------------------------------------------------------- */

@media (max-width: 800px) {
  .project-grid,
  .service-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

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

  .consultancy-why-principles {
    grid-column: 1 / -1;
  }

  .consultancy-note-layout {
    grid-template-columns: 1fr;
  }

  .consultancy-note-action {
    padding-top: 1.75rem;
    padding-left: 0;
    border-top: 1px solid var(--portfolio-border);
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .consultancy-why-sequence {
    grid-template-columns: 1fr;
  }

  .consultancy-why-principles {
    grid-column: auto;
  }

  /*
   * Long page-introduction headings need a more compact scale and vertical
   * rhythm on phones. These rules are scoped to the two shared custom heroes.
   */
  .portfolio-intro,
  .consultancy-intro {
    padding-top: 2.75rem;
    padding-bottom: 3rem;
  }

  .portfolio-intro h1,
  .consultancy-intro h1 {
    font-size: clamp(2.15rem, 10vw, 2.7rem);
  }

  .portfolio-intro .btn,
  .consultancy-intro .btn,
  .portfolio-closing .btn,
  .consultancy-note .btn {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}

/* =============================================================================
 * Consultancy two-column activity list
 * ========================================================================== */

/*
 * Present secondary consultancy activities as a distinctive two-column panel.
 * The custom properties at the top of the rule provide one clear place to
 * change the border and marker colors without editing the structural rules.
 */
.consultancy-fit-two-columns {
  --consultancy-activity-border: var(--color-brand-burgundy);
  --consultancy-activity-marker: var(--color-brand-teal);

  position: relative;
  isolation: isolate;

  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;

  /*
   * Change `--consultancy-activity-border` above to any brand token or literal
   * CSS color. Keeping the choice local prevents unrelated borders changing.
   */
  border: 1px solid var(--color-teal-border);
  border-radius: 1rem;
  background: var(--color-white-surface-80);
  box-shadow: 0 0.75rem 2rem var(--color-burgundy-shadow-08);
}

/*
 * Draw a sparse research constellation along the panel edges. Its internal
 * mask protects both text columns while the linked nodes retain the site's
 * graph vocabulary.
 */
.consultancy-fit-two-columns::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;

  background-image: url("images/patterns/consultancy-research-constellation.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  opacity: 1;
}

/*
 * Keep every heading and list above the decorative SVG layer.
 */
.consultancy-fit-two-columns > * {
  position: relative;
  z-index: 1;
}

/*
 * Preserve the established consultancy heading hierarchy.
 */
.consultancy-fit-two-columns > h2 {
  margin-top: 0;
  margin-bottom: 1.6rem;
}

/*
 * Remove native markers completely and distribute the semantic list across
 * two balanced columns. Custom squares are drawn on each list item below.
 */
.consultancy-fit-two-columns > ul {
  columns: 2;
  column-gap: clamp(2rem, 6vw, 5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

/*
 * Reserve a fixed gutter for the square and prevent an activity from splitting
 * between columns. Pandoc may wrap loose-list text in a paragraph, so spacing
 * is normalized separately below.
 */
.consultancy-fit-two-columns > ul > li {
  position: relative;
  break-inside: avoid;
  margin: 0 0 0.8rem;
  padding-left: 1.4rem;
  font-size: clamp(1.02rem, 1.7vw, 1.13rem);
  line-height: 1.65;
  list-style: none;
}

/*
 * Draw a true filled square. This bypasses Bootstrap and browser marker rules,
 * allowing the marker geometry and color to remain fully deterministic.
 */
.consultancy-fit-two-columns > ul > li::before {
  position: absolute;
  top: 0.79em;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  content: "";
  background: var(--consultancy-activity-marker);
  transform: translateY(-50%);
}

/*
 * Pandoc emits `<li><p>...</p></li>` for a loose Markdown list. Removing the
 * paragraph margin keeps the custom square aligned with the first text line.
 */
.consultancy-fit-two-columns > ul > li > p {
  margin: 0;
}

/*
 * Avoid residual spacing after the final activity in each rendered column.
 */
.consultancy-fit-two-columns > ul > li:last-child {
  margin-bottom: 0;
}

/*
 * Collapse to one column when the available width becomes constrained.
 */
@media (max-width: 700px) {
  .consultancy-fit-two-columns > ul {
    columns: 1;
  }
}

/* =============================================================================
 * VARONA project-card title and action
 * ========================================================================== */

/*
 * Keep the project name and live demonstration together as one clear header.
 * This wrapper is unique to VARONA, so other project-card headings retain their
 * existing layout.
 */
.project-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.project-card-title-row h3 {
  margin-bottom: 0;
}

.project-card-title-row p {
  margin: 0;
}

/*
 * Reuse Bootstrap's outlined button foundation, then apply the VARONA color to
 * make the destination recognizable. These selectors are scoped to this one
 * action and therefore cannot alter buttons elsewhere on the Projects page.
 */
.project-card-action {
  flex: 0 0 auto;
  white-space: nowrap;
  border-color: var(--color-brand-varona);
  color: var(--color-brand-varona);
  font-weight: 700;
}

.project-card-action:hover,
.project-card-action:focus {
  border-color: var(--color-brand-varona);
  background-color: var(--color-brand-varona);
  color: var(--color-white);
}

/*
 * Give phone users a full-width target while retaining a compact intrinsic
 * width on larger screens.
 */
@media (max-width: 600px) {
  .project-card-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .project-card-action {
    display: block;
    width: 100%;
  }
}

/*
 * Respect visitors who request reduced motion. The visual border and focus
 * treatments remain available even when movement is disabled.
 */
@media (prefers-reduced-motion: reduce) {
  .homepage-varona-link,
  .portfolio-intro .btn,
  .consultancy-intro .btn,
  .portfolio-closing .btn,
  .consultancy-note .btn {
    transition: none;
  }

  .homepage-varona-link:hover,
  .homepage-varona-link:focus-visible,
  .portfolio-intro .btn:hover,
  .consultancy-intro .btn:hover,
  .portfolio-closing .btn:hover,
  .consultancy-note .btn:hover {
    transform: none;
  }
}

/*
 * Remove button movement for visitors who request reduced motion while
 * preserving colors, borders, and visible focus indicators.
 */
@media (prefers-reduced-motion: reduce) {
  .portfolio-intro .btn,
  .consultancy-intro .btn,
  .portfolio-closing .btn,
  .consultancy-note .btn {
    transition: none;
  }

  .portfolio-intro .btn:hover,
  .consultancy-intro .btn:hover,
  .portfolio-closing .btn:hover,
  .consultancy-note .btn:hover {
    transform: none;
  }
}
