.projects-h1 {
    max-width: 560px;
}

.wrap {
  max-width: 1000px;
}

@media (min-width: 480px) {
    .projects-h1 { max-width: 700px; }
}

/* ── Tab-specific h1 widths ── */

.featured-h1 { max-width: 560px; }
/* .archive-h1  { max-width: 480px; } */

@media (min-width: 480px) {
    .featured-h1 { max-width: 640px; }
    .archive-h1  { max-width: 640px; }
}

/* ── Segmented control (3 tabs) ── */

.segment-slider {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    background: #fff;
    border: 1.5px solid #2544A8;
    border-radius: 100px;
    box-sizing: border-box;
    transition: left 0.2s cubic-bezier(0.4, 0, 0.2, 1), width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}


/* ============================================================
   TAGS  (shared across index + project pages)
   ============================================================ */

.tag {
  display: inline-block;
  margin: 0 0.4em 0.4em 0;
  padding: 3px 10px;
  font-family: "Arial", sans-serif;
  font-size: 0.7em;
  letter-spacing: -0.01em;
  border-radius: 100px;
  background: #fff;
  border: 1px solid #2544A8;
  color: #2544A8;
}

.ownership-tag {
  border: 1px solid #2544A8;
}

.tags {
  margin: 0.75em 0 0.5em;
}


/* Breadcrumbs now live in the shared <site-breadcrumb> component
   (js/breadcrumb.js, styled in the global style.css). */


/* ============================================================
   BUTTON COMPONENT  (from jenny.world Button.css, adapted)
   ============================================================ */

.btn {
  position: relative;
  display: block;
  margin: 0.5em 0 0.75em;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  padding: 1em 3em 1em 1.25em;
  color: #2544A8;
  font: 400 1em/1.5em "Arial", serif;
  text-decoration: none;
  background: #fff;
  border: 1px solid #2544A8;
  border-radius: 10px;
  text-align: left;
  transition: all 0.25s;
  cursor: pointer;
}

  .btn:hover {
    transform: translateY(-2px);
  }

  .btn .btn-title {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 0.02em;
  }

  .btn .btn-desc {
    display: block;
    font-size: 0.9em;
    opacity: 0.7;
  }

  .btn-image {
    width: auto;
    max-width: 50px;
    height: auto;
    max-height: 22px;
    margin-right: 12px;
  }

  .btn-external-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-family: monospace;
    font-size: 1.3em;
  }

  .btn-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    border: 1px #2544A8 solid;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 5px;
  }


/* ============================================================
   TOOLTIP  (from jenny.world Tooltip.css)
   ============================================================ */

.tooltip-container {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted rgba(37, 68, 168, 0.5);
  cursor: help;
}

  .tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
  }

  .tooltip-text {
    width: 140px;
    margin-left: -70px;
    visibility: hidden;
    opacity: 0;
    background: rgba(37, 68, 168, 0.92);
    color: #fff;
    font: 400 normal 13px/1.4em "Times New Roman", serif;
    text-align: center;
    border-radius: 6px;
    padding: 6px 8px;
    position: absolute;
    z-index: 10;
    top: calc(100% + 8px);
    left: 50%;
    transition: opacity 0.15s;
  }

    .tooltip-text::before {
      content: "";
      position: absolute;
      bottom: 100%;
      left: 50%;
      margin-left: -5px;
      border-width: 5px;
      border-style: solid;
      border-color: transparent transparent rgba(37, 68, 168, 0.92) transparent;
    }


/* ============================================================
   PORTFOLIO INDEX — featured tiles
   ============================================================ */

.portfolio-intro {
  margin: 0 0 2em;
}

.featured {
  margin: 2em 0 3em;
}

.featured-tile {
  position: relative;
  margin: 0 0 1.5em;
  border-radius: 14px;
  border: 1px solid #2544A8;
  border-bottom-width: 2px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease;
}

  .featured-tile:hover {
    transform: translateY(-4px);
  }

  .featured-tile-desc {
    padding: 2em 1.75em 1.75em;
  }

    .featured-tile-desc h3 {
      margin: 0.4em 0 0.3em;
      font: 400 1.7em/1.4em "FK Raster Grotesk Smooth", sans-serif;
      letter-spacing: -0.03em;
      text-transform: none;
    }

    .featured-tile-desc p {
      margin: 0 0 1em;
      font: 400 1em/1.5em "Arial", sans-serif;
    }

    .featured-tile-desc .subcount {
      font-size: 0.75em;
      font-family: "Arial", sans-serif;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      /* opacity: 0.5; */
      margin: 0.5em 0 0.25em;
    }

  .featured-tile-logo {
    display: none;
    width: auto;
    max-width: 80px;
    max-height: 14px;
    margin-bottom: 0.5em;
  }

  .featured-tile-video {
    position: relative;
    overflow: hidden;
    background: #000;
    min-height: 220px;
  }

    .featured-tile-video video {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

.subproject-previews {
  display: flex;
  flex-direction: row;
  gap: 8px;
  max-width: 360px;
  margin: 0.75em 0 0;
}

  .subproject-preview,
  .more-subprojects {
    flex: 1;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    text-decoration: none;
  }

    .subproject-preview:hover {
      transform: translateY(-2px);
    }

    .subproject-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .more-subprojects {
      font: 600 normal 0.85em/1em "Arial", sans-serif;
      letter-spacing: -0.01em;
      border: 1px solid #2544A8;
    }


/* ============================================================
   PORTFOLIO INDEX — more projects (filters + masonry grid)
   ============================================================ */

.more-projects-header {
  margin: 0 0 1em;
  display: flex;
  align-items: baseline;
  gap: 1em;
}

  .project-count {
    font-family: "Arial", sans-serif;
    font-size: 0.8em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

.more-projects {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

/* filters */
.filters {
  flex-shrink: 0;
}

  .filters details {
    margin: 0 0 0.75em;
  }

  .filters summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    user-select: none;
  }

    .filters summary::-webkit-details-marker { display: none; }

    .filters summary::before {
      content: "";
      display: inline-block;
      width: 6px;
      height: 6px;
      margin: 0 4px 0.4em 0;
      border: solid #2544A8;
      border-width: 0 1.5px 1.5px 0;
      transform: rotate(-45deg);
      transition: transform 0.2s;
    }

    .filters details[open] summary::before {
      transform: rotate(45deg);
      margin-bottom: 0.6em;
    }

    .filters summary h4 {
      display: inline-block;
      margin: 0 0 0.5em;
      font-size: 0.85em;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      font: 700 normal 0.8em/1.8em "Arial", sans-serif;
      transition: margin 100ms;
    }

      .filters summary h4:hover {
        margin: 0 0 0.5em 0.2em;
      }

  .filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 400 normal 0.8em/1.8em "Arial", sans-serif;
    cursor: pointer;
    letter-spacing: -0.01em;
  }

    .filter-label input[type="checkbox"] {
      accent-color: #2544A8;
      width: 14px;
      height: 14px;
      flex-shrink: 0;
    }

/* masonry grid — CSS columns */
.masonry-grid {
  column-count: 1;
  column-gap: 16px;
  min-width: 0;
}

  .project-card {
    break-inside: avoid;
    display: block;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid #2544A8;
    border-bottom-width: 2px;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    color: #2544A8;
    transition: transform 0.2s;
  }

    .project-card:hover {
      transform: translateY(-3px);
    }

    .project-card[data-hidden="true"] {
      display: none;
    }

    .project-card img {
      display: block;
      width: 100%;
      height: auto;
    }

    .project-card-desc {
      padding: 1.1em 1.25em 0.75em;
    }

      .project-card-desc h3 {
        margin: 0 0 0.5em;
        font: 400 1.1em/1.4em "FK Raster Grotesk Smooth", sans-serif;
        text-transform: none;
        letter-spacing: -0.01em;
      }

      .project-card-desc p {
        margin: 0;
        font: 400 0.8em/1.4em "Arial", sans-serif;
      }


/* ============================================================
   PROJECT PAGES — shared layout
   ============================================================ */

.project-hero-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.5em 0 1em;
  border-radius: 12px;
  border: 1px solid rgba(37, 68, 168, 0.08);
}

.project-hero-video {
  position: relative;
  margin: 1.5em 0 1em;
  border-radius: 12px;
  border: 1px solid rgba(37, 68, 168, 0.08);
  overflow: hidden;
  background: #000;
  padding-bottom: 60%;
}

  .project-hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100%;
    transform: translate(-50%, -50%);
  }

.project-intro {
  margin: 2em 0 2em;
}

  .project-intro h1 {
    margin: 1em 0 0.5em;
    text-align: left;
  }

  .project-intro h2 {
    margin: 0 0 1em;
    line-height: 1.4em;
    font: 400 1.2em/1.5em "FK Raster Grotesk", sans-serif;
    letter-spacing: -0.03em;
    text-align: left;
  }

  .project-intro p {
    font-size: 1.05em;
    line-height: 1.55em;
    margin-bottom: 1em;
  }

  .project-highlights {
    margin-top: 1.5em;
    font-size: 0.9em;
  }

.project-details {
  margin: 1.25em 0 0.5em;
}

  .project-details h5 {
    margin: 1em 0 0.35em;
    font: 700 0.8em/1.4em "Arial", sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .project-details ul {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.7em;
    font: 400 0.75em/1.4em "Arial", sans-serif;
  }

    .project-details ul li {
      display: inline;
    }

    .project-details ul li::after {
      content: "; ";
    }

    .project-details ul li:last-child::after {
      content: "";
    }

    .project-details .role {
      font-weight: 700;
    }

/* full-width imagery */
.imagery {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.25em 0;
  border-radius: 8px;
}

video.imagery {
  width: 100%;
  height: auto;
}

/* metrics / stats grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
  margin: 0 0 2.5em;
  text-align: center;
}

  .metric {
    padding: 1em;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #2544A8;
  }

    .metric .metric-label {
      display: block;
      font-family: "Arial", sans-serif;
      font-size: 0.72em;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-bottom: 1em;
    }

    .metric h5 {
      margin: 0 0 0.2em;
      font: 400 1.1em/1.5em "FK Raster Grotesk", sans-serif;
    }

    .metric p {
      margin: 0;
      font: 400 0.9em/1.4em "Times New Roman", serif;
    }

/* creative process steps */
.creative-process {
  margin: 0 0 2.5em;
}

  .step {
    margin: 0 0 1.5em;
  }

    .step .step-number {
      display: inline-block;
      padding: 5px 12px;
      font: 700 0.8em "Arial", sans-serif;
      border: 1px solid #2544A8;
      border-radius: 100px;
      margin-bottom: 0.5em;
    }

    .step h5 {
      margin: 0.5em 0 0.5em;
      font: 400 1em/1.4em "FK Raster Grotesk Smooth", sans-serif;
      letter-spacing: -0.02em;
    }

    .step p {
      margin: 0;
      font-size: 0.9em;
      line-height: 1.4em;
    }

/* key features */
.key-features {
  margin: 3em 0 2.5em;
}

  .key-feature {
    margin: 2.5em 0 2em;
  }

    .key-feature h4 {
      font: 700 0.8em/1.2em "FK Raster Grotesk Smooth", sans-serif;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin: 0 0 1em;
    }

    .key-feature h1 {
      margin: 0 0 0.75em;
      text-align: left;
    }

    .key-feature p {
      font-size: 1.05em;
      line-height: 1.55em;
      margin-bottom: 1em;
    }

/* takeaways */
.takeaways {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25em;
  margin: 1.5em 0 2.5em;
}

  .takeaway {
    padding: 1.25em 1.5em;
    border-radius: 8px;
    border: 1px solid #2544A8;
  }

    .takeaway h3 {
      font: 400 1.25em/1.4em "FK Raster Grotesk Smooth", sans-serif;
      letter-spacing: -0.03em;
      margin: 0 0 0.5em;
      text-align: center;
      text-transform: none;
    }

    .takeaway p {
      text-align: center;
      font-size: 0.9em;
      line-height: 1.5em;
      margin: 0;
    }

/* subprojects grid on parent project pages */
.subprojects-grid {
  column-count: 1;
  column-gap: 16px;
  margin: 0 0 2em;
}

/* role breakdown */
.role-breakdown {
  margin: 0 0 3em;
}

role-breakdown {
  display: block;
}

  .rb-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .rb-row {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 0 0 0.75em;
  }

    .rb-row:last-child {
      margin-bottom: 0;
    }

    .rb-fill {
      position: absolute;
      inset: 0;
      width: 0%;
      background: #F0E7FF;
      transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
    }

    .rb-row:hover .rb-fill {
      background: #E6D6FF;
    }

    .rb-content {
      position: relative;
      z-index: 1;
      padding: 14px 16px;
    }

    .rb-row-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 1em;
    }

    .rb-role {
      font: 700 0.85em/1.4em "FK Raster Grotesk Smooth", sans-serif;
      margin: 0;
      letter-spacing: 0.03em;
    }

    .rb-percent {
      font: 700 0.85em/1.4em "FK Raster Grotesk Smooth", sans-serif;
      letter-spacing: 0.03em;
      flex-shrink: 0;
    }

    p.rb-desc {
      margin: 0.25em 1em 0 0;
      font: 400 0.85em/1.4em "Arial", sans-serif;
    }

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

/* centred h2 section headers */
h2.section-header {
  text-align: center;
  margin: 2em 0 1em;
}

/* ============================================================
   RESPONSIVE — 540px
   ============================================================ */

@media screen and (min-width: 540px) {

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

  .project-intro h1 {
    font-size: 2.4em;
  }

}


/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */

@media screen and (min-width: 768px) {

  .featured-tile {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: none;
  }

    .featured-tile-video {
      min-height: 320px;
      order: 2;
    }

    .featured-tile-desc {
      order: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 3em 2.5em;
      border-bottom: none;
      border-right: 1px solid #2544A8;
    }

      .featured-tile-desc > * {
        align-self: flex-start;
      }

    .featured-tile-logo {
      display: block;
    }

  .masonry-grid {
    column-count: 2;
  }

  .subprojects-grid {
    column-count: 2;
  }

  .project-intro {
    display: grid;
    grid-template-columns: 3fr 1.8fr;
    column-gap: 50px;
    align-items: start;
  }

    .project-intro h1 {
      font-size: 2.6em;
      margin: 0.35em 0 0.2em;
    }

    .project-intro h2 {
      font-size: 1.4em;
    }

    .project-highlights {
      margin-top: 0.5em;
    }

  .project-details {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.1fr auto;
    column-gap: 16px;
  }

    .project-details ul li {
      display: block;
    }

    .project-details ul li::after {
      content: "";
    }

  .creative-process {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }

    .step {
      flex: 1 0 47%;
      max-width: 47%;
      padding: 0 12px 1.5em;
      text-align: center;
      margin: 0;
    }

  .key-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    align-items: start;
  }

  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

}


/* ============================================================
   RESPONSIVE — 960px
   ============================================================ */

@media screen and (min-width: 960px) {

  .more-projects {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2em;
    align-items: start;
  }

  .masonry-grid {
    column-count: 2;
  }

  .subprojects-grid {
    column-count: 3;
  }

  .featured-tile-desc {
    padding: 3em 8%;
  }

}


/* ============================================================
   RESPONSIVE — 1100px
   ============================================================ */

@media screen and (min-width: 1100px) {

  .masonry-grid {
    column-count: 3;
  }

  .featured-tile-desc {
    padding: 3.5em 12%;
  }

    .featured-tile-desc h3 {
      font-size: 2.5em;
    }

  .creative-process .step {
    flex: 1 0 22%;
    max-width: 22%;
  }

}
