/* Base imports */
@import "default.css";
@import "layout.css";
@import "menu.css";
@import "queries.css";

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..700&display=swap");

/* Fonts */

@font-face {
  font-family: "PP Neue Montreal";
  src: url("../fonts/PPNeueMontreal-Thin.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("../fonts/PPNeueMontreal-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("../fonts/PPNeueMontreal-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("../fonts/PPNeueMontreal-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("../fonts/PPNeueMontreal-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("../fonts/PPNeueMontreal-SemiBoldItalic.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "PP Supply Sans Light";
  src: url("../fonts/PPSupplySans-Ultralight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Supply Sans";
  src: url("../fonts/PPSupplySans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bianzhidai Bubble";
  src: url("../fonts/bianzhidai_noBG-Bubble.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Font stacks */

:root {
  --sans: "PP Neue Montreal", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

/* Base typography */

html,
body {
  font-family: var(--sans);
  font-weight: 200;
}

* {
  line-height: 115%;
}

p,
li,
.text-regular {
  font-weight: 400;
  font-family: var(--sans);
}

.serif,
.accent-serif {
  font-family: var(--serif);
}

h1.logo,
.display-title {
  font-family: "Bianzhidai Bubble", "PP Supply Sans", system-ui, sans-serif;
}

h1.logo,
.week-title {
  font-family: "Bianzhidai Bubble", "PP Supply Sans", system-ui, sans-serif;
  opacity: 80%;
}

/* Weekly index */

.prev__next a {
  font-family: var(--sans);  
  font-size: 0.6rem;          
  font-weight: 600;           
  text-transform: uppercase;  

}




#weekly-reports .margin__bottom-l h1 {
  font-family: "Bianzhidai Bubble", "PP Supply Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 200;
  font-size: 18px;
  letter-spacing: -0.072em;
  line-height: 1.15;
  margin: 0.5rem 0 0.5rem;
}

#weekly-reports .margin__bottom-l .p__size-l {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 23px;
  letter-spacing: 0.01em;
  padding-bottom: 10px;
  padding-top: 5px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-fg);
}

@media (orientation: portrait) {
  * {
    font-size: 16px;
  }
}

#weekly-reports .width__all {
  padding-top: var(--spacing-s);
}

#weekly-reports .margin__y-l {
  margin-top: 0;
}

#weekly-reports .weekly.two-col ul li::before,
#weekly-reports .weekly.two-col ul li::after {
  content: none !important;
}

#weekly-reports .weekly.two-col ul li {
  border: 0;
  padding: 0;
}

#weekly-reports .weekly.two-col ul li > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 8px 0;
  text-align: right;
  text-decoration: none;
  color: var(--color-0);
  line-height: 1.5;
  font-size: 0.75rem;
  font-family: "PP Neue Montreal", var(--sans);
  font-weight: 500;
}

#weekly-reports .weekly.two-col ul li > a::before {
  content: "→";
  grid-column: 1;
  text-align: left;
  color: var(--color-2);
  padding-left: 0.3rem;
}

#weekly-reports .weekly.two-col ul li > a::after {
  content: "";
  grid-column: 2;
  height: 1px;
  width: 100%;
  background-image: repeating-linear-gradient(
    to right,
    rgba(0, 0, 0, .35) 0 1px,
    transparent 1px 6px
  );
  transform: translateY(0.5px);
  transition: background-image .15s ease, height .15s ease, opacity .15s ease;
  opacity: .9;
}

#weekly-reports .weekly.two-col ul li > a:hover::after,
#weekly-reports .weekly.two-col ul li > a:focus-visible::after {
  background-image: linear-gradient(currentColor, currentColor);
  height: 1px;
  opacity: 1;
}

#weekly-reports .weekly ul li a:hover {
  text-decoration: none;
  padding-left: 0;
}

#weekly-reports .weekly.two-col h2 {
  font-family: "Bianzhidai Bubble", "PP Neue Montreal", system-ui, sans-serif;
  font-weight: 200;
  display: block;
  width: 100%;
  background: #000;
  color: #fff;    
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  line-height: 0.7;
}

#weekly-reports img,
#weekly-reports video {
  filter: none !important;
}


/* Index left column (icon + side nav) */

#weekly-reports .weekly-grid {
  align-items: stretch;
  position: relative;
}

#weekly-reports .weekly-grid::after {
  content: "";
  position: absolute;
  left: calc((100% / 4) * 1 - 1.5rem);
  top: -100vh;
  bottom: -18vh;
  width: 1px;
  background: rgba(0, 0, 0, 1);
  pointer-events: none;
}

@media (max-width: 1000px) {
  #weekly-reports .weekly-grid::after {
    content: none;
  }
}

#weekly-reports .weekly-grid > .margin__bottom-l {
  grid-column: 1 / 2;
  grid-row: 1 / -1;
  padding: 0rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: transparent;
  color: var(--color-fg);
  border-radius: 0;
  margin-bottom: 0;
}

.index-shell__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.index-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--color-fg);
  position: relative;
}

.index-logo::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 2px solid var(--color-fg);
}

.index-logo::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--color-fg);
}

.index-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.index-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-fg);
  display: inline-block;
  margin-bottom: 0.25rem;
}

.index-status-copy {
  text-align: right;
}

.index-side-nav {
  margin-top: auto;
  width: 100%;
}

.index-side-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.index-side-nav__item {
  border-top: 1px solid rgba(0, 0, 0, 0.5);
  padding: 1rem 0;
}

.index-side-nav__item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

.index-side-nav__link {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
}

.index-side-nav__label {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.05;
}

.index-side-nav__meta {
  font-size: 0.6rem;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.4;
  opacity: 0.75;
}

.index-side-nav__link:hover .index-side-nav__label,
.index-side-nav__link:focus-visible .index-side-nav__label {
  transform: translateX(2px);
}

.index-side-nav__link:hover .index-side-nav__meta,
.index-side-nav__link:focus-visible .index-side-nav__meta {
  opacity: 1;
}

@media (max-width: 900px) {
  #weekly-reports .weekly-grid > .margin__bottom-l {
    grid-row: auto;
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .index-shell__top {
    margin-bottom: 1.75rem;
  }

  .index-side-nav__link {
    grid-template-columns: 1fr;
    row-gap: 0.3rem;
  }

  .index-side-nav__meta {
    text-align: left;
  }
}

/* Intro gallery on index */

#weekly-reports .intro-gallery {
  position: relative;
  margin: 0.75rem 0 1rem;
  border: 2px solid rgba(0, 0, 0, .8);
  border-radius: 18px;
  overflow: hidden;
  background: #111;
}

#weekly-reports .intro-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 0;
  scrollbar-width: none;
}

#weekly-reports .intro-gallery__track::-webkit-scrollbar {
  display: none;
}

#weekly-reports .intro-gallery__track img {
  flex: 0 0 100%;
  width: 100%;
  height: clamp(180px, 28vw, 360px);
  object-fit: cover;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: block;
}

#weekly-reports .intro-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease;
  z-index: 2;
}

#weekly-reports .intro-gallery:hover .intro-hit {
  opacity: 1;
}

#weekly-reports .intro-hit.left {
  left: 0;
}

#weekly-reports .intro-hit.right {
  right: 0;
}

#weekly-reports .intro-hit::before {
  content: "‹";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(22px, 2.2vw, 14px);
  line-height: 1;
  color: var(--color-bg);
  background: rgba(0, 0, 0, .55);
  border: 2px solid #000;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

#weekly-reports .intro-hit.left::before {
  left: 10px;
  content: "‹";
}

#weekly-reports .intro-hit.right::before {
  right: 10px;
  content: "›";
}

/* Case study layout (weeks pages) */

:root {
  --case-max: 1120px;
  --case-pad: 24px;
  --ink: #151515;
  --paper: #e8e8e8;
  --muted: #666;
  --rule: rgba(0, 0, 0, .15);
  --pill-bg: #111;
  --pill-fg: #fff;
}

.container {
  max-width: var(--case-max);
  margin-inline: auto;
  padding-inline: var(--spacing-m);
  padding-top: 20px;
  padding-bottom: 30px;
}

.case-hero--full {
  padding-inline: var(--spacing-m);
}

.case-hero {
  display: grid;
  grid-template-columns: 1.25fr min(520px, 32vw);
  gap: clamp(24px, 5vw, 56px);
  align-items: end;
  padding-block: clamp(28px, 1vw, 56px);
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.case-title {
  font-size: clamp(42px, 7.5vw, 76px);
  line-height: 1;
  margin: 0 0 .35em 0;
  font-weight: 700;
}

.case-sub {
  font-size: clamp(16px, 2.3vw, 22px);
  line-height: 1.35;
  margin: 0;
  max-width: 36ch;
}

.meta-table {
  margin: 0;
  display: grid;
  gap: 16px;
  padding-left: 0;
}

.meta-table > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid;
  padding: 12px 0;
  background: transparent;
}

.meta-table dt {
  color: var(--muted);
  font-size: 13px;
font-weight: 500;
}


.meta-table dd {
  margin: 0;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-wrap: nowrap;
  overflow: visible;
  font-family: "PP Neue Montreal", var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
}

.pill {
  display: inline-block;
  font-size: 12px;
  line-height: 1.5;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-fg);
  border: 0;
  box-shadow: none;
}

.meta-keywords dd {
  display: flex;
  gap: 8px;
  white-space: nowrap;
  flex-wrap: nowrap;

}

.meta-keywords dd::-webkit-scrollbar {
  display: none;
}

.meta-keywords .pill {
  flex: 0 0 auto;
  white-space: nowrap;


  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-family: "PP Neue Montreal", var(--sans);
  padding: 4px 14px; 
  color: #e9e9e9;
}

.case-photo {
  text-align: center;
}

.case-photo img {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.case-values {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(24px, 6vw, 64px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.values-left {
  position: relative;
  padding-top: clamp(14px, 1.2vw, 22px);
}

.values-left .detail-eyebrow {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
}

.values-title {
  font-size: 30px;
  line-height: 1.05;
  margin: 0 0 1.5rem 0;
  max-width: 30ch;
}

.values-lede {
  font-family: "PP Neue Montreal", var(--sans);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  max-width: 48ch;
  font-weight: 500;
  letter-spacing: 0.01em;

}






.values-right {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: value-counter;
}

.value {
  display: grid;
  grid-template-columns: 28px 1fr; 
  align-items: start;
  gap: 12px;
}

.value-icon {
  width: auto;
  height: auto;

  display: flex;
  align-items: flex-start;
  justify-content: flex-start;

  border: none;
  border-radius: 0;
  background: none;

  font-family: "Bianzhidai Bubble", "PP Supply Sans", system-ui, sans-serif;
  font-size: calc(2rem); 
  line-height: 1;
  transform: translateY(4px);
}

.value-icon::before {
  counter-increment: value-counter;
  content: counter(value-counter);
}

.value-title {
  margin: 0 0 .25rem 0;
  font-size: clamp(16px, 1.6vw, 18px);
}

.value-text {
  margin: 0;
  color: #000000;
  line-height: 1.5;
}

.value-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 4px 0;
}











.case-split {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(16px, 3vw, 32px);
  padding-block: clamp(24px, 6vw, 64px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.case-split > :first-child {
  padding-right: 16px;
  border-right: 1px solid var(--rule);
}

.case-split--wide {
  grid-template-columns: minmax(0, .175fr) minmax(0, .8fr);
}

.gallery-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-2 figure {
  margin: 0;
}

.gallery-2 img {
  width: 100%;
  height: clamp(160px, 24vw, 280px);
  object-fit: cover;
  display: block;
  background: #dddddd00;
  border-radius: 10px;
}

.gallery-2-wk11 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-2-wk11 figure {
  margin: 0;
}

.gallery-2-wk11 img {
  width: 100%;
  height: 87%;
  object-fit: cover;
  display: block;
  background: #ddd;
  border-radius: 10px;
}

.gallery-2-wk9 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-2-wk9 figure {
  margin: 0;
}

.gallery-2-wk9 img {
  width: 100%;
  height: clamp(160px, 24vw, 280px);
  object-fit: cover;
  display: block;
  background: #ddd;
  border-radius: 10px;
}

.gallery-2-wk9 video {
  width: 100%;
  height: clamp(160px, 24vw, 280px);
  object-fit: cover;
  display: block;
  background: #ddd;
  border-radius: 10px;
}


.gallery-2-cat {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-2-cat figure {
  margin: 0;
}

.gallery-2-cat img {
  width: 100%;
  height: clamp(500px, 24vw, 500px);
  object-fit: cover;
  display: block;
  background: #ddd;
  border-radius: 10px;
}




.gallery-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}


.gallery-3 figure {
  margin: 0;
}


.gallery-3 img,
.gallery-3 video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px; 
}





@media (max-width: 900px) {
  .gallery-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 600px) {
  .gallery-3 {
    grid-template-columns: 1fr;
  }
}



.embed__video-container {
  position: relative;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

.embed__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.inline-btn {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
}

.mini-label {
  font-size: 13px;
  color: var(--muted);
  margin: .4rem 0 0;
}

.detail-eyebrow {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .25rem 0;
}

.detail-title {
  font-size: clamp(20px, 3.2vw, 28px);
  margin: 0 0 .35rem 0;
}

.detail-copy {
  font-size: 16px;
  line-height: 1.55;
  color: #222;
  max-width: 70ch;
  margin: 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: clamp(16px, 3vw, 28px) 0;
}



.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  font-family: "PP Neue Montreal", var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: #222;
}

.table-wrap th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.03);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-wrap td strong {
  font-weight: 600;
}

@media (max-width: 640px) {
  .table-wrap th,
  .table-wrap td {
    padding: 10px 12px;
    font-size: 13px;
  }
}


.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }




.case-gallery--full {
  max-width: var(--case-max);
  margin-inline: auto;
  padding-inline: var(--spacing-m);
  width: 100%;
}

.case-gallery {
  padding-block: clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  height: clamp(140px, 24vw, 280px);
  object-fit: cover;
  display: block;
  background: #ddd;
  border-radius: 10px;
}

.gallery-grid img:nth-child(1) {
  grid-column: span 7;
}

.gallery-grid img:nth-child(2) {
  grid-column: span 5;
}

.gallery-grid img:nth-child(3) {
  grid-column: span 6;
}

.gallery-grid img:nth-child(4) {
  grid-column: span 6;
}

.gallery-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: auto;
  object-fit: cover;
  align-items: center;
}


.gallery-4:not(.gallery-4--iceberg) figure > img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.gallery-4:not(.gallery-4--iceberg) img {
  width: 100%;
  height: clamp(140px, 24vw, 280px);
  object-fit: cover;
  display: block;
  border-radius: 10px;
}


.gallery-4 figure,

.gallery-1-wk8 figure {
  margin: 0;
}



.gallery-1 {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: stretch;
  margin-top: 12px;
}

.gallery-1 figure {
  width: 90% !important;
  max-width: none !important;
  margin: 0;
}

.gallery-1 img {
  width: 90% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  object-fit: contain;
}

.gallery-1 img.portrait-img {
  width: auto !important;
  max-width: min(420px, 100%) !important;
  height: auto !important;
}





.gallery-1-wk8 img {
  width: auto;
  height: auto;
  max-width: 500px;     
  display: block;
  margin-left: auto;   
  margin-right: auto;
  border-radius: 10px;     
  object-fit: contain; 
}

.gallery-4.gallery-4--iceberg {
  display: grid;
  grid-template-columns: auto auto;   
  column-gap: 2rem;
  row-gap: 2rem;
  justify-content: flex-start;
  align-items: flex-start;
}


.gallery-4.gallery-4--iceberg figure {
  display: block;
  margin: 0;
  height: auto;
}


.gallery-4.gallery-4--iceberg img {
  width: auto !important;
  max-width: 100%;        
  height: auto !important;
  object-fit: unset !important;
  background: none !important;
  display: block;
}


.gallery-4.gallery-4--iceberg figcaption {
  margin-top: 0.5rem;
  text-align: left;
}





.gallery-4.gallery-4--three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem; 
}

.gallery-4.gallery-4--three img {
  width: 100%;
  height: auto;        
  object-fit:cover;
}



.gallery-6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem; 
}

.gallery-6 img {
  width: 100%;
  height: auto;          
  display: block;
  border-radius: 10px;   
  background: #e9e9e9;
  object-fit: cover;     
}




figure figcaption {
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 500;
  font-style: normal; 
  text-transform: uppercase;
  text-align: center;
  
}

.gallery-1 {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  margin-top: 12px;
}

.gallery-1 figure {
  width: min(560px, 100%);
}

.case-3col--full {
  width: 100%;
  padding-inline: var(--spacing-m);
}

.case-3col {
  display: grid;
  padding-top: 2rem;
  padding-bottom: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5rem 3rem;
  align-items: start;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.case-3col .detail-block .mini-label {
  margin-bottom: .35rem;
}

.case-3col .detail-block .detail-title {
  margin: .25rem 0 .5rem;
}

/* Case layout responsive */

@media (max-width: 1024px) {
  .gallery-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gallery-4 {
    grid-template-columns: 1fr;
  }

  .gallery-1 figure {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .case-hero {
    grid-template-columns: 1fr;
  }

  .case-split {
    grid-template-columns: 1fr;
  }

  .case-split > :first-child {
    border-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 12px;
  }

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .gallery-grid img {
    grid-column: span 6;
    height: clamp(160px, 38vw, 240px);
  }
}

/* Week 1 cards */

.three-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 24px);
  margin-top: 12px;
  width: 100%;
}

.width__s .three-cards,
.type__content .three-cards,
.detail-block .three-cards {
  max-width: none;
  width: 100%;
}

.three-cards--wide {
  max-width: var(--case-max);
  margin-inline: auto;
}

.card {
  background: transparent;
  border-radius: 12px;
  padding: 5px;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #eee;
}

.card2 img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #eee;
}

.card-eyebrow {
  margin: 10px 0 4px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title {
  margin: 0 0 6px;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.2;
}

.card-copy {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #222;
}

.mini-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .three-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .three-cards {
    grid-template-columns: 1fr;
  }
}

/* Horizontal scroller */

.scroller-3 {
  position: relative;
  width: 100%;
}

.scroller-3__track {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.scroller-3__track::-webkit-scrollbar {
  display: none;
}

.scroller-3__panel {
  flex: 0 0 50%;
  scroll-snap-align: start;
  margin: 0;
}

@media (min-width: 900px) {
  .scroller-3__panel {
    flex-basis: 80%;
  }
}

.scroller-3__panel video {
  height: clamp(180px, 28vw, 320px);
  width: auto;
  max-width: 80%;
  display: block;
  margin-inline: auto;
  object-fit: contain;
  background: #000;
  border-radius: 10px;
}

.scroller-3__panel {
  text-align: center;
}

.scroller-3__panel figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* Mosaic */
.mosaic-frame {
  width: 100%;
  margin-top: 12px;
}

.mosaic-hero {
  margin: 0 0 12px 0;
}

.mosaic-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  background: #ddd;
}

.mosaic-hero figcaption {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}


.mosaic-row {
  display: flex;
  gap: 12px;
}

.mosaic-row .mosaic-item {
  margin: 0;
  flex: 1;
}

.mosaic-row .mosaic-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  background: #ddd;
}


.mosaic-row .mosaic-item figcaption {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}


@media (max-width: 640px) {
  .mosaic-row {
    flex-direction: column;
  }
}



.feedback-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feedback-grid-2 li {
  position: relative;
  padding-left: 1.1em;
  margin: 0;
}

.feedback-grid-2.arrows li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted);
}




.feedback-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feedback-grid-3 li {
  position: relative;
  padding-left: 1.1em;
  margin: 0;
}

.feedback-grid-3.arrows li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
 
  .feedback-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .feedback-grid-3 {
    grid-template-columns: 1fr;
  }
}


#weekly-reports .row {
  margin-bottom: 0;
}


#weekly-reports figure figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}


/* Catalogue of Making – shared (com.html + detail) */

#catalogue-making .width__all {
  margin-top: 0;
  padding-top: 0;
}

#catalogue-making .row {
  margin-top: 0;
  padding-top: 0;
}

#catalogue-making {
  min-height: 100vh;
}

.com-top .com-title {
  font-family: "PP Neue Montreal", var(--sans);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: 0em;
}

.com-shell {
  max-width: calc(100vw - 40px);
  margin-inline: auto;
  padding-inline: 0.75rem;
}

/* Top panel */

.com-top {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.6rem 1.6rem 3.4rem;
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1.9fr) minmax(0, 180px);
  column-gap: 2.25rem;
  align-items: flex-start;
  position: relative;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.04);
  min-height: 68vh;
}

.com-title {
  font-family: "Bianzhidai Bubble", "PP Supply Sans", system-ui, sans-serif;
  font-weight: 200;
  font-size: clamp(2rem, 2.1vw, 2.4rem);
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.com-top-center {
  align-self: flex-start;
  margin-top: 0.4rem;
  max-width: 520px;
  margin-left: 22rem;
}

.com-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(3, auto);
  column-gap: 2.25rem;
  row-gap: 0.35rem;
}

.com-steps li a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  text-decoration: none;
  color: var(--color-0);
  white-space: nowrap;
}

.com-steps li:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.com-steps li:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.com-steps li:nth-child(3) {
  grid-column: 1;
  grid-row: 3;
}

.com-steps li:nth-child(4) {
  grid-column: 2;
  grid-row: 1;
}

.com-steps li:nth-child(5) {
  grid-column: 2;
  grid-row: 2;
}

.com-steps li:nth-child(1),
.com-steps li:nth-child(2),
.com-steps li:nth-child(3) {
  grid-column: 1;
}

.com-steps li:nth-child(4),
.com-steps li:nth-child(5) {
  grid-column: 2;
}

.com-step-index {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.com-step-label {
  line-height: 1.2;
  font-weight: 600;
}

.com-steps li a:hover .com-step-label {
  text-decoration: underline;
}

.com-top-right {
  align-self: flex-start;
  text-align: right;
}

.com-top-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 1rem;
}

.com-top-nav-link {
  color: var(--color-2);
  text-decoration: none;
  font-weight: 700;
}

.com-top-nav-link:hover,
.com-top-nav-link:focus-visible {
  color: var(--color-0);
}

.com-top-meta {
  position: absolute;
  right: 1.6rem;
  bottom: 1.6rem;
  display: flex;
  gap: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 500;
}

/* Cards grid (com.html) */

.com-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.com-card:nth-child(1),
.com-card:nth-child(2),
.com-card:nth-child(3) {
  grid-column: span 2;
}

.com-card:nth-child(4) {
  grid-column: 1 / span 3;
}

.com-card:nth-child(5) {
  grid-column: 4 / span 3;
}

.com-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #ffffff;
  border-radius: 10px;
  padding: 0.5rem 0.5rem 0.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.12s ease, border-color 0.12s ease;
  aspect-ratio: 1 / 1;
}

.com-card:hover,
.com-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.18);
}

.com-card-tags {
  order: 0;
  margin-top: 0;
  margin-bottom: 0.45rem;
  display: flex;
  gap: 0.35rem;
}

.com-card-inner {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1 1 auto;
}

.com-card-title {
  font-size: 0.78rem;
  font-weight: 600;
}

.com-card-media {
  border-radius: 8px;
  border: none;
  background: transparent;
  padding: 0;
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  margin: 0 auto;
}

.com-card-media img {
  max-width: 100%;
  height: auto;
  display: block;
}

.com-card-placeholder {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d0d0d0;
}

.pill--tiny {
  font-size: 0.65rem;
  padding: 3px 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.com-shell {
  padding-top: 0.75rem;
}

.com-top {
  position: relative;
}

.com-top-intro {
  position: absolute;
  left: 2.2rem;
  bottom: 2.4rem;
  max-width: 38%;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 700;
}

.com-detail .com-top-intro {
  max-width: 56%;
  column-count: 2;
  column-gap: 1.8rem;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

/* Catalogue grid grayscale → colour hover (com.html cards) */

#catalogue-making .com-grid img,
#catalogue-making .com-grid video {
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

#catalogue-making .com-grid img:hover,
#catalogue-making .com-grid video:hover {
  filter: grayscale(0%);
  transition: filter 0.5s ease;
}

/* Detail pages: step list highlight */

.com-detail .com-steps li {
  opacity: 0.35;
}

.com-detail .com-steps li a {
  color: var(--color-2);
}

.com-detail .com-steps li .com-step-index {
  background: #bbbbbb;
  color: #ffffff;
}

.com-detail .com-steps li.is-current {
  opacity: 1;
}

.com-detail .com-steps li.is-current a {
  color: var(--color-0);
}

.com-detail .com-steps li.is-current .com-step-index {
  background: #000000;
}

/* com-5 layout: videos and text */

.video-row-3 {
  margin-top: 10rem;
  margin-bottom: 10rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0rem;
  max-width: 1200px;
  margin-inline: auto;
  justify-items: center;
}

.video-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-frame {
  height: 250px;
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame video {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  border-radius: 4px;
}

.video-caption {
  margin-top: 0.9rem;
  font-size: 0.65rem;
  color: #000000;
  font-weight: 500;
  text-transform: uppercase;
}

/* shared centred text row (used in com-5 and com-3 variant) */

.sketch-row {
  margin: 3rem auto 3rem;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  justify-items: center;
  align-items: start;
}

.sketch-col {
  width: 100%;
}

.sketch-col--center {
  max-width: 380px;
}

.sketch-copy {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
  padding-bottom: 8rem;
}

.sketch-copy-com3 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
  padding-bottom: 2rem;
}

/* com-5: 2×2 video grid */

.video-grid-2x2 {
  margin: 0 auto 3rem;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  justify-items: center;
  padding-bottom: 10rem;
  padding-top: 7rem;
}

.video-frame-small {
  height: 240px;
}

.com-detail-05 .video-row-3 video,
.com-detail-05 .video-grid-2x2 video {
  filter: none;
}

/* com-5: four-video stepped row */

.video-row-4 {
  margin: 2.5rem auto 4rem;
  max-width: 1240px;
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  padding-top: 5rem;
  padding-bottom: 8rem;
}

.video-row-4 .video-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-row-4 .video-frame.video-frame-small {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-row-4 .video-frame video {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.video-row-4 .video-cell:nth-child(1) {
  margin-top: 0;
}

.video-row-4 .video-cell:nth-child(2) {
  margin-top: 4rem;
}

.video-row-4 .video-cell:nth-child(3) {
  margin-top: 8rem;
}

.video-row-4 .video-cell:nth-child(4) {
  margin-top: 12rem;
}

#catalogue-making.com-detail .video-row-4 video {
  filter: none;
}

/* com-5: image masonry grid */

.image-grid-section {
  padding: 1rem 0;
}

.image-grid-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.image-grid {
  column-count: 2;
  column-gap: 1.5rem;
}

.image-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 1.5rem;
  break-inside: avoid;
  background: #f5f5f5;
}

.image-item img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .image-grid {
    column-count: 1;
  }
}

/* com-5: single centred video */

.video-single {
  margin: 4rem auto 6rem;
  max-width: 1100px;
  display: flex;
  justify-content: center;
}

.video-single .video-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.video-frame-large {
  width: 100%;
  max-width: 2150px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-frame-large video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 4px;
}

/* Scroll to top button (used on com detail pages) */

html {
  scroll-behavior: smooth;
}

.scroll-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 2.5rem auto 0;
  text-decoration: none;
  color: #000;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.scroll-top-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.scroll-top:hover .scroll-top-icon,
.scroll-top:focus-visible .scroll-top-icon {
  background: #000;
  color: #fff;
}

.scroll-top-label {
  opacity: 0.7;
}

/* Catalogue of Making – responsive tweaks (shared) */

@media (max-width: 960px) {
  .com-top {
    grid-template-columns: 1fr;
    row-gap: 1.2rem;
    min-height: auto;
  }

  .com-top-right {
    text-align: left;
  }

  .com-top-meta {
    position: static;
    margin-top: 0.6rem;
    justify-content: flex-start;
  }

  .com-shell {
    max-width: 100%;
    padding-inline: var(--spacing-s);
  }

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

  .com-card:nth-child(4),
  .com-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .com-grid {
    grid-template-columns: 1fr;
  }

  .com-shell {
    padding-inline: var(--spacing-s);
  }
}

/* com-4 detail page */

.com4-row {
  max-width: 1200px;
  margin: 2.5rem auto;
}

.com4-row-hero {
  margin-top: 10rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.com4-hero {
  margin: 0;
}

.com4-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.com4-row-3 {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 10rem;
}

.com4-thumb {
  margin: 0;
  flex: 0 0 190px;
}

.com4-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.com-detail-04 .com4-row-5 {
  margin: 0rem 0;
  margin-bottom: 5rem;
}

.com-detail-04 .com4-row-5 .com4-bleed {
  margin: 0;
}

.com-detail-04 .com4-row-5 img {
  display: block;
  width: 100vw;
  max-width: none;
  height: auto;
  margin-left: calc(-50vw + 50%);
  border-radius: 4px;
}

.com-detail-04 .com4-row-step {
  max-width: 900px;
  margin: 3rem auto 8rem;
}

.com-detail-04 .com4-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  align-items: flex-start;
}

.com-detail-04 .com4-tall {
  margin: 0;
}

.com-detail-04 .com4-tall img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.com-detail-04 .com4-tall--offset {
  margin-top: 8rem;
}

@media (max-width: 768px) {
  .com-detail-04 .com4-step-grid {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .com-detail-04 .com4-tall--offset {
    margin-top: 0;
  }
}

/* com-1 detail page (embroidery) */

#catalogue-making.com-detail-01 img,
#catalogue-making.com-detail-01 video {
  filter: none;
}

.com1-sketch-row {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-top: 5rem;
  display: flex;
  justify-content: center;
}

.com1-sketch-frame {
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
}

.com1-sketch-frame .embed__video-container {
  margin-top: 0;
  width: 100%;
}

.com1-steps {
  margin-top: 2rem;
  margin-bottom: 0;
  padding-bottom: 50rem;
  padding-top: 10rem;
}

.com1-step-grid {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
}

.com1-step-col {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.com1-step-col:nth-child(1) {
  transform: translateY(0);
}

.com1-step-col:nth-child(2) {
  transform: translateY(13.5rem);
}

.com1-step-col:nth-child(3) {
  transform: translateY(27rem);
}

.com1-step-col:nth-child(4) {
  transform: translateY(40.5rem);
}

.com1-square img {
  width: 190px;
  height: 190px;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .com1-step-grid {
    gap: 1.1rem;
  }

  .com1-square img {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 640px) {
  .com1-step-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .com1-step-col {
    transform: none;
  }
}

.com1-big-row {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.com1-big-grid {
  max-width: 1120px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr);
  column-gap: 2rem;
  row-gap: 4rem;
  align-items: flex-start;
}

.com1-big--1 {
  grid-column: 2;
  grid-row: 1;
}

.com1-big--2 {
  grid-column: 1;
  grid-row: 2;
  margin-top: -10rem;
}

.com1-big--3 {
  grid-column: 2;
  grid-row: 3;
  margin-top: -20rem;
}

.com1-big img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .com1-big-grid {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .com1-big--1,
  .com1-big--2,
  .com1-big--3 {
    grid-column: 1;
    margin-top: 0;
  }
}

/* com-2 detail page (pins + string) */

#catalogue-making.com-detail-02 img,
#catalogue-making.com-detail-02 video {
  filter: none;
}

.com2-sketch-row {
  margin: 2.5rem auto 8rem;
  display: flex;
  justify-content: center;
}

.com2-sketch-frame {
  max-width: 1020px;
  width: 100%;
  margin-inline: auto;
}

.com2-sketch-frame .embed__video-container {
  margin-top: 0;
  width: 100%;
}

.com2-hero-row {
  max-width: 1120px;
  margin: 3rem auto 4rem;
}

.com2-hero {
  margin: 0;
}

.com2-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.com2-video-grid {
  max-width: 1120px;
  margin: 0 auto 5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 2.5rem;
}

.com2-video-cell {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.com2-video-frame {
  height: 360px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.com2-video-frame video {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.com2-video-grid .com2-video-cell:nth-child(1) { margin-top: 0; }
.com2-video-grid .com2-video-cell:nth-child(2) { margin-top: 3rem; }
.com2-video-grid .com2-video-cell:nth-child(3) { margin-top: 6rem; }
.com2-video-grid .com2-video-cell:nth-child(4) { margin-top: 1.5rem; }
.com2-video-grid .com2-video-cell:nth-child(5) { margin-top: 4.5rem; }
.com2-video-grid .com2-video-cell:nth-child(6) { margin-top: 7.5rem; }

.com2-bottom-row {
  max-width: 1120px;
  margin: 0 auto 6rem;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  column-gap: 2rem;
  align-items: flex-start;
  padding-top: 10rem;
}

.com2-bottom-left,
.com2-bottom-right {
  margin: 0;
}

.com2-bottom-left img,
.com2-bottom-right img {
  display: block;
  width: 100%;
  height: auto;
}

.com2-bottom-right {
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .com2-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .com2-video-grid .com2-video-cell {
    margin-top: 0;
  }

  .com2-bottom-row {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .com2-bottom-right {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .com2-video-grid {
    grid-template-columns: 1fr;
  }
}

.com2-text-row {
  margin: 3rem auto;
  max-width: 960px;
  display: flex;
  justify-content: center;
}

.com2-text-center {
  max-width: 380px;
  width: 100%;
}

.com2-copy {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
  text-align: left;
  padding-bottom: 10rem;
  padding-top: 6rem;
}

.com2-bottom-row--top {
  max-width: 1200px;
  margin: 4rem auto;
}

.com2-bottom-row--top .com2-bottom-single {
  max-width: 68%;
  margin: 0;
}

.com2-bottom-row--bottom {
  width: 100%;
  max-width: none;
  margin: 4rem 0 6rem;
}

.com2-bottom-row--bottom .com2-bottom-single {
  max-width: 78%;
  margin: 0 0 0 auto;
}

.com2-bottom-row--bottom .com2-bottom-single img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 800px) {
  .com2-bottom-row--top,
  .com2-bottom-row--bottom {
    max-width: 100%;
    margin: 2.5rem auto;
  }

  .com2-bottom-row--top .com2-bottom-single,
  .com2-bottom-row--bottom .com2-bottom-single {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* com-3 detail page (drawing at the pace of attention) */

#catalogue-making.com-detail-03 img,
#catalogue-making.com-detail-03 video {
  filter: none;
}

.com-detail-03 .com3-media-row {
  margin: 4rem auto 2.5rem;
  max-width: min(55vw, 600px);
  display: flex;
  justify-content: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.com-detail-03 .com3-media-row-3 {
  margin: 4rem auto 2.5rem;
  max-width: min(55vw, 600px);
  display: flex;
  justify-content: center;
  padding-top: 4rem;
  padding-bottom: 0rem;
}

.com-detail-03 .com3-media-row .video-cell {
  width: 100%;
}

.com-detail-03 .com3-media-row .video-frame-large {
  width: 100%;
}

.com-detail-03 .com3-image-small-row {
  margin: 1rem auto 3rem;
  display: flex;
  justify-content: center;
}

.com-detail-03 .com3-image-small img {
  display: block;
  width: min(260px, 60vw);
  height: auto;
}

.com-detail-03 .com3-video-row-4 {
  margin: 4rem auto 6rem;
  max-width: 1300px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.com-detail-03 .com3-video-row-4 .video-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.com-detail-03 .com3-video-row-4 .video-frame {
  height: 400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.com-detail-03 .com3-video-row-4 .video-frame video {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.com-detail-03 .com3-video-row-4 .video-caption {
  margin-top: 0.9rem;
  font-size: 0.65rem;
  color: #000000;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
}














/* keep list clean */
.weekly.two-col li {
  margin: 0;
  padding: 0;
}

/* stop any pseudo arrows from other rules */
.weeks-col li::before,
.weeks-col a::before,
.weeks-col a::after {
  content: none !important;
}

/* whole row */
.week-link {
  display: flex;
  align-items: flex-start; /* text sits above the underline */
  gap: 0.75rem;
  padding: 10px 0; /* adjust if needed */
  text-decoration: none;
  color: inherit;
}

/* arrow */
.week-arrow {
  width: 1.25rem;
  flex: 0 0 1.25rem;
  transform: translateY(-5px);
}

/* TRACK: desc + space + week label */
.week-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1 1 auto;
  padding-bottom: 10px; /* distance from text to dotted underline */
}

/* dotted underline under the entire track */
.week-track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(0,0,0,.28) 0,
    rgba(0,0,0,.28) 2px,
    transparent 2px,
    transparent 6px
  );
}

/* text */
.week-desc {
  font-size: 0.95em;
  opacity: 0.85;
  white-space: nowrap;
}

/* filler just pushes WEEK to the right */
.week-fill {
  flex: 1 1 auto;
}

/* week label */
.week-label {
  font-weight: 500;
  white-space: nowrap;
}

/* hover subtle */
.week-link:hover .week-desc {
  opacity: 1;
}


/* hover: make description + WEEK bold */
.week-link:hover .week-arrow,
.week-link:hover .week-desc,
.week-link:hover .week-label {
  font-weight: 600;
  color: rgb(255, 130, 251);
}

/* ── Repository page ─────────────────────────────────────── */

.repo-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;

  padding-bottom: var(--spacing-m);
}

.repo-page-title {
  font-family: "PP Neue Montreal", system-ui, sans-serif;
  font-size: clamp(3.5rem, 9vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 var(--spacing-xs);
}

.repo-hero__meta {
  font-size: var(--font-size-xs);
  color: var(--color-2);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.repo-hero__desc-block {
  padding-bottom: 0.25rem;
}

.repo-hero__desc-block p {
  font-size: var(--font-size-s);
  color: var(--color-2);
  line-height: 1.6;
  margin-bottom: var(--spacing-s);
}

.repo-hero__desc-block p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .repo-hero {
    grid-template-columns: 1fr;
  }
}

/* Category label pill */
.repo-cat-label {
  display: inline-block;
  background: var(--color-0);
  color: var(--color-1);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  line-height: 1;
}

.repo-cat-count {
  font-size: var(--font-size-xs);
  color: var(--color-2);
}

/* Segment layout */
.repo-segment {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-m);
  border-top: 1px solid var(--color-0);
  padding: var(--spacing-m) 0;
  align-items: flex-start;
}

.repo-segment__left {
  flex: 0 0 300px;
  position: sticky;
  top: calc(var(--header__height) + var(--spacing-s));
}

.repo-segment__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-s);
}

.repo-segment__info {
  display: grid;
}

.repo-segment__idle,
.repo-segment__detail {
  grid-area: 1 / 1;
  transition: opacity 0.3s ease;
}

.repo-segment__idle {
  opacity: 1;
}

.repo-segment__idle-desc {
  font-size: var(--font-size-xs);
  color: var(--color-2);
  line-height: 1.6;
  margin: 0 0 var(--spacing-s);
}

.repo-segment__idle-prompt {
  font-size: var(--font-size-xs);
  color: var(--color-2);
  font-style: italic;
  margin: 0;
}

.repo-segment__idle.fade-out {
  opacity: 0;
  pointer-events: none;
}

.repo-segment__detail {
  opacity: 0;
  pointer-events: none;
}

.repo-segment__detail.fade-in {
  opacity: 1;
  pointer-events: auto;
}

/* Detail panel content */
.repo-detail__pillar {
  display: inline-block;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--color-2);
  border: 1px solid var(--color-2);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  margin-bottom: var(--spacing-xs);
  line-height: 1;
}

.repo-detail__title {
  font-size: var(--font-size-l);
  font-weight: 500;
  margin: 0 0 var(--spacing-xs);
  line-height: 1.2;
}

.repo-detail__author {
  font-size: var(--font-size-xs);
  color: var(--color-2);
  margin: 0 0 var(--spacing-xs);
}

.repo-detail__hook {
  font-family: "PP Neue Montreal", system-ui, sans-serif;
  font-size: var(--font-size-m);
  font-style: italic;
  font-weight: 400;
  color: var(--color-fg);
  margin: 0 0 var(--spacing-s);
  line-height: 1.35;
}

.repo-detail__desc {
  font-size: var(--font-size-xs);
  line-height: 1.6;
  color: var(--color-fg);
  margin: 0 0 var(--spacing-xs);
}

.repo-detail__ref {
  font-size: 0.65rem;
  color: var(--color-2);
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 var(--spacing-xs);
  opacity: 0.7;
}

.repo-detail__link {
  display: inline-block;
  font-size: var(--font-size-xs);
  color: var(--color-5);
  font-weight: 500;
  transition: color 0.3s;
}

.repo-detail__link:hover {
  color: var(--color-3);
}

/* Image grid */
.repo-segment__right {
  flex: 1;
  min-width: 0;
  position: relative;
}

.repo-segment__right::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--color-bg));
  pointer-events: none;
  z-index: 1;
}

.repo-img-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

.repo-img-grid::-webkit-scrollbar {
  display: none;
}

.repo-img-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  flex: 0 0 auto;
}

.repo-img-label {
  font-size: var(--font-size-xs);
  color: var(--color-2);
  margin-bottom: 0.3rem;
  line-height: 1;
}

.repo-img-wrap {
  width: 130px;
  max-height: 130px;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.repo-img-item.is-active .repo-img-wrap {
  max-height: 600px;
  width: 280px;
}

/* Books: portrait 2:3 */
[data-category="books"] .repo-img-wrap {
  width: 110px;
  max-height: 165px;
}
[data-category="books"] .repo-img-item.is-active .repo-img-wrap {
  width: 220px;
  max-height: 330px;
}

/* Articles: square 1:1 */
[data-category="articles"] .repo-img-wrap {
  width: 130px;
  max-height: 130px;
}
[data-category="articles"] .repo-img-item.is-active .repo-img-wrap {
  width: 260px;
  max-height: 260px;
}

/* Case studies: landscape 3:2 */
[data-category="casestudies"] .repo-img-wrap {
  width: 165px;
  max-height: 110px;
}
[data-category="casestudies"] .repo-img-item.is-active .repo-img-wrap {
  width: 330px;
  max-height: 220px;
}

/* Experiments: landscape 3:2 */
[data-category="experiments"] .repo-img-wrap {
  width: 165px;
  max-height: 110px;
}
[data-category="experiments"] .repo-img-item.is-active .repo-img-wrap {
  width: 330px;
  max-height: 220px;
}

.repo-img-item img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.repo-img-item.is-active img {
  opacity: 1;
}

.repo-segment:hover .repo-img-item:not(.is-active) img {
  opacity: 0.3;
}

@media (max-width: 900px) {
  .repo-segment {
    flex-direction: column;
  }

  .repo-segment__left {
    flex: none;
    width: 100%;
    position: static;
  }

  .repo-segment__right::after {
    width: 40px;
  }

  [data-category="books"] .repo-img-wrap,
  [data-category="articles"] .repo-img-wrap,
  [data-category="casestudies"] .repo-img-wrap,
  [data-category="experiments"] .repo-img-wrap {
    width: 100px;
    max-height: 100px;
  }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: calc(100vh - var(--header__height));
  gap: var(--spacing-l);
  align-items: start;
}

.about-photo-col {
  position: sticky;
  top: var(--header__height);
  height: calc(100vh - var(--header__height));
}

.about-photo-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-content {
  padding: var(--spacing-l) 0 var(--spacing-l);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
}

.about-name {
  font-family: "PP Neue Montreal", system-ui, sans-serif;
  font-size: clamp(1rem, 7vw, 0.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 var(--spacing-s);
  text-transform: uppercase
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.about-meta span {
  font-size: var(--font-size-xs);
  color: var(--color-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.about-bio {
 padding-top: 10px;

}

.about-bio p {
  font-size: var(--font-size-s);
  line-height: 1.7;
  color: var(--color-fg);
  margin: 0 0 var(--spacing-s);
  max-width: 52ch;
}

.about-bio p:last-child {
  margin-bottom: 0;
  color: var(--color-2);

}

.about-links {


  display: flex;
  flex-direction: column;
  gap: var(--spacing-s);
}

.about-link {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-s);
  text-decoration: none;
  color: inherit;
}

.about-link__label {
  font-size: var(--font-size-xs);
  color: var(--color-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  flex: 0 0 90px;
}

.about-link__url {
  font-size: var(--font-size-s);
  color: var(--color-5);
  transition: color 0.2s ease;
}

.about-link:hover .about-link__url {
  color: var(--color-3);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .about-photo-col {
    position: static;
    height: 70vw;
  }

  .about-content {
    padding: var(--spacing-m) 0 var(--spacing-l);
  }
}

