* {
  box-sizing: border-box;
}

:root {
  --paper: #f7f4ee;
  --cream: #fffdf8;
  --ink: #111111;
  --green: #183d33;
  --line: #e4d8ca;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  gap: 22px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 253, 248, 0.12), transparent 26%),
    radial-gradient(circle at 84% 80%, rgba(228, 216, 202, 0.12), transparent 26%),
    linear-gradient(180deg, #141414de 100%, #141414de 100%);
  color: var(--cream);
  transition: opacity .8s ease, transform 1s var(--ease);
}

.loader.hide {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.loader span {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(42px, 7vw, 96px);
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.loader div {
  width: min(330px, 70vw);
  height: 2px;
  background: rgba(255,255,255,.35);
  border-radius: 999px;
  overflow: hidden;
}

.loader i {
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, #f0d4b2, var(--cream));
  animation: loading 1.15s var(--ease) infinite;
}

@keyframes loading {
  from { transform: translateX(-120%); }
  to { transform: translateX(260%); }
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 54px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  background: var(--cream);
  color: var(--ink);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.topbar a {
  font-size: 13px;
  font-weight: 800;
}

.topbar .brand {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 20px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.topbar nav {
  justify-self: end;
  display: flex;
  gap: 28px;
}

.fixed-hero {
  position: fixed;
  inset: 54px 0 0 0;
  z-index: 0;
  height: calc(100vh - 54px);
  overflow: hidden;
  background: #ccc;
}

.fixed-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.05), rgba(0,0,0,.08));
  pointer-events: none;
}

.fixed-hero img {
  animation: heroZoom 1.6s var(--ease) both;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
    opacity: .75;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* This layout uses the shared unified hero (no separate .fixed-hero element),
   so the legacy 100vh spacer that left an empty section under the navbar is removed. */
.overlay-content {
  position: relative;
  z-index: 2;
  margin-top: 0;
  background: var(--cream);
}

.intro-section {
  min-height: 570px;
  display: grid;
  grid-template-columns: .9fr 2.1fr;
  gap: 64px;
  padding: 54px 20px 42px;
  background: var(--cream);
}

.intro-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 330px;
  padding: 0 0 24px;
}

.intro-copy p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.intro-copy a {
  width: fit-content;
  font-size: 14px;
  font-weight: 800;
  border-bottom: 2px solid currentColor;
}

.intro-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.intro-gallery figure,
.split-images figure {
  margin: 0;
  overflow: hidden;
  background: var(--line);
}

.intro-gallery figure {
  height: 455px;
}

.split-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
}

.split-images figure {
  height: 760px;
}

.testimonial {
  min-height: 260px;
  display: grid;
  grid-template-columns: 300px 420px;
  gap: 60px;
  padding: 42px 24px 130px;
  background: var(--cream);
}

.quote p {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.75;
}

.quote span {
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

/* Replaces the old image section with a real video section */
.video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  background: var(--ink);
  overflow: hidden;
}

.video-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reveal-up,
.reveal-img {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s ease, transform .9s var(--ease), clip-path 1s var(--ease);
}

.reveal-img {
  clip-path: inset(12% 0 12% 0);
}

.reveal-img img,
.reveal-img video {
  transform: scale(1.08);
  transition: transform 1.4s var(--ease), filter .45s ease;
}

.reveal-up.visible,
.reveal-img.visible {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0);
}

.reveal-img.visible img,
.reveal-img.visible video {
  transform: scale(1);
}

.reveal-img:hover img,
.video-section video:hover {
  filter: saturate(1.05) contrast(1.03);
}

@media (max-width: 920px) {
  .topbar {
    padding: 0 16px;
  }

  .topbar .brand {
    font-size: 15px;
  }

  .topbar nav {
    gap: 14px;
  }

  .intro-section,
  .testimonial {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    max-width: none;
    gap: 34px;
  }

  .intro-gallery,
  .split-images {
    grid-template-columns: 1fr;
  }

  .intro-gallery figure,
  .split-images figure,
  .video-section {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 912px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .topbar a {
    font-size: 11px;
  }

  .topbar .brand {
    font-size: 12px;
    letter-spacing: .08em;
  }

  .intro-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
    padding: 38px 28px 42px;
    align-items: start;
  }

  .intro-copy {
    display: contents;
  }

  .intro-copy p {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
    font-weight: 700;
  }

  .intro-copy a {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    margin-top: -4px;
    font-size: 13px;
    border-bottom-width: 1px;
  }

  .intro-gallery {
    display: contents;
  }

  .intro-gallery .project-link-card:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
  }

  .intro-gallery .project-link-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .intro-gallery .project-link-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .intro-gallery figure {
    height: auto !important;
    aspect-ratio: 0.82 / 1.16;
  }

  .split-images {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0;
  }

  .split-images figure {
    height: auto !important;
    aspect-ratio: 0.86 / 1;
  }

  .testimonial {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 26px 88px;
  }

  .quote p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.95;
    font-weight: 700;
  }

  .quote + .quote p {
    margin-bottom: 14px;
  }

  .quote span {
    font-size: 12px;
  }
}


/* Clickable project cards */
.project-link-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.project-link-card figure {
  position: relative;
}

.project-link-card figure::after {
  content: "VIEW PROJECT";
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 10px 12px;
  background: var(--cream);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s var(--ease);
}

.project-link-card:hover figure::after {
  opacity: 1;
  transform: translateY(0);
}

.project-link-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.03);
}

/* Standalone project pages */
.project-page {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

.project-page .project-hero-page {
  padding: 130px clamp(18px, 5vw, 70px) 70px;
  text-align: center;
  background: var(--paper);
}

.project-page .project-hero-page .case-label {
  margin: 0 0 18px;
  color: #c45f39;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.project-page .project-hero-page h1 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(58px, 9vw, 132px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .95;
}

.project-page .project-hero-page p:last-child {
  max-width: 820px;
  margin: 30px auto 0;
  font-size: 21px;
  line-height: 1.55;
}

.project-page .project-image-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 28px;
  padding: 28px;
  background: var(--paper);
}

.project-page .project-image-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--line);
}

.project-page .project-image-grid .large {
  height: 720px;
}

.project-page .project-image-grid .side {
  height: 720px;
}

.project-page .project-story {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  padding: 90px clamp(22px, 6vw, 100px);
  background: var(--cream);
}

.project-page .project-story h2 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 1.05;
  font-weight: 400;
}

.project-page .project-story p {
  margin: 0;
  font-size: 19px;
  line-height: 1.75;
}

.project-page .project-nav-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 54px clamp(22px, 5vw, 70px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.project-page .project-nav-strip a {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(30px, 4vw, 56px);
}

@media (max-width: 820px) {
  .project-page .project-image-grid,
  .project-page .project-story {
    grid-template-columns: 1fr;
  }

  .project-page .project-image-grid .large,
  .project-page .project-image-grid .side {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .project-page .project-nav-strip {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}


/* === Projects listing page like Avery-style archive === */
.projects-page {
  background: #f7f7f5;
  color: var(--ink);
}

.projects-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  background: #f7f7f5;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.projects-topbar a {
  width: fit-content;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.projects-topbar .active {
  border-bottom: 1px solid currentColor;
}

.projects-brand {
  justify-self: center;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 19px !important;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.projects-topbar nav {
  justify-self: end;
  display: flex;
  gap: 28px;
}

.projects-main {
  padding: 115px 20px 54px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 38px;
}

.projects-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.projects-card__image {
  position: relative;
  margin: 0 0 12px;
  height: 545px;
  overflow: hidden;
  background: #e6e2dc;
}

.projects-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .85s var(--ease), filter .55s ease;
}

.projects-card p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.projects-card__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.58), rgba(255,255,255,.20) 22%, rgba(255,255,255,0) 48%),
    linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08));
  opacity: 0;
  transition: opacity .45s ease;
}

.projects-card:hover .projects-card__glow {
  opacity: 1;
}

.projects-card:hover img {
  transform: scale(1.045);
  filter: brightness(1.08) saturate(1.05);
}

.project-wide {
  grid-column: span 1;
}

@media (min-width: 1200px) {
  .projects-card__image {
    height: 575px;
  }

  .project-wide .projects-card__image {
    height: 620px;
  }
}

@media (max-width: 820px) {
  .projects-topbar {
    padding: 0 14px;
  }

  .projects-brand {
    font-size: 14px !important;
    letter-spacing: .08em;
  }

  .projects-topbar nav {
    gap: 14px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .projects-card__image {
    height: auto;
    aspect-ratio: 1.28 / 1;
  }
}


/* === V24: Avery Cox inspired full project detail pages === */
.project-detail-v24 {
  background: #f7f7f5;
  color: #0d0d0d;
}

.project-detail-v24 .project-detail-topbar {
  background: #f7f7f5;
  height: 58px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.project-detail-v24 main {
  padding-top: 58px;
  background: #f7f7f5;
}

.avery-project-kicker {
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: #f7f7f5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}

.avery-project-kicker p {
  margin: 0;
}

.avery-project-kicker p:last-child {
  text-align: right;
}

.avery-project-kicker em {
  font-family: "Libre Baskerville", Georgia, serif;
}

.avery-project-hero {
  width: 100%;
  height: calc(100vh - 112px);
  min-height: 680px;
  overflow: hidden;
  background: #ddd;
}

.avery-project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transform-origin: center;
}

.avery-project-intro {
  display: grid;
  grid-template-columns: minmax(260px, 560px) minmax(220px, 360px);
  justify-content: center;
  gap: clamp(70px, 15vw, 250px);
  padding: clamp(90px, 12vw, 190px) clamp(24px, 8vw, 130px) clamp(80px, 11vw, 160px);
  background: #fff;
}

.avery-intro-copy {
  max-width: 530px;
  font-size: 14px;
  line-height: 1.86;
  font-weight: 650;
}

.avery-intro-copy p {
  margin: 0 0 30px;
}

.avery-intro-copy .asterisk {
  margin: 22px 0 18px;
  letter-spacing: .12em;
  font-weight: 900;
}

.avery-intro-copy a,
.avery-note a,
.avery-quote a,
.source-list a {
  border-bottom: 1px solid currentColor;
  font-weight: 800;
  font-style: italic;
}

.avery-intro-image {
  align-self: start;
  margin: 40px 0 0;
  height: 455px;
  overflow: hidden;
}

.avery-asym-grid {
  display: grid;
  grid-template-columns: minmax(320px, 54vw) minmax(260px, 36vw);
  gap: clamp(60px, 9vw, 140px);
  align-items: start;
  padding: 0 0 clamp(110px, 12vw, 210px);
  background: #fff;
}

.avery-asym-grid figure,
.avery-duo figure,
.avery-editorial-grid figure,
.avery-related figure,
.avery-panorama {
  margin: 0;
  overflow: hidden;
  background: #e9e5dd;
}

.avery-tall-left {
  height: 1080px;
  width: 100%;
}

.avery-right-stack {
  padding-right: clamp(28px, 5vw, 92px);
  display: grid;
  gap: clamp(70px, 10vw, 140px);
}

.avery-small-top {
  width: min(350px, 100%);
  height: 430px;
  justify-self: center;
}

.avery-medium {
  width: min(390px, 100%);
  height: 470px;
  justify-self: center;
}

.avery-note,
.avery-quote {
  max-width: 440px;
  font-size: 13px;
  line-height: 1.82;
  font-weight: 650;
}

.avery-note p,
.avery-quote p {
  margin: 0 0 18px;
}

.avery-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 520px));
  justify-content: center;
  gap: clamp(70px, 9vw, 150px);
  padding: clamp(80px, 10vw, 150px) clamp(22px, 8vw, 130px);
  background: #fff;
}

.avery-duo figure {
  height: 650px;
}

.avery-full-bleed {
  width: 100%;
  height: 840px;
  background: #e9e5dd;
  overflow: hidden;
}

.avery-full-bleed img,
.avery-panorama img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avery-editorial-grid {
  display: grid;
  grid-template-columns: minmax(300px, 40vw) minmax(340px, 48vw);
  gap: clamp(70px, 9vw, 160px);
  padding: clamp(95px, 12vw, 180px) clamp(26px, 8vw, 145px);
  background: #fff;
}

.avery-editorial-left,
.avery-editorial-right {
  display: grid;
  gap: clamp(55px, 8vw, 120px);
  align-content: start;
}

.avery-editorial-left figure:first-child {
  height: 610px;
  width: min(470px, 100%);
}

.avery-editorial-left figure:nth-child(2) {
  height: 520px;
  width: min(470px, 100%);
}

.avery-editorial-right figure {
  height: 820px;
}

.avery-editorial-right .avery-quote {
  margin-left: 0;
}

.avery-panorama {
  height: 780px;
}

.source-list {
  background: #f0f0ee;
  padding: clamp(90px, 10vw, 150px) 24px clamp(110px, 12vw, 180px);
}

.source-list-inner {
  width: min(720px, 100%);
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.85;
  font-weight: 600;
}

.source-shop {
  display: inline-block;
  margin-bottom: 36px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17px;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.source-list hr {
  margin: 46px 0 36px;
  border: 0;
  border-top: 1px solid rgba(0,0,0,.35);
}

.source-list h2 {
  margin: 0 0 28px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: .02em;
}

.source-columns {
  display: grid;
  gap: 48px;
  margin-top: 56px;
}

.source-columns h3 {
  margin: 0 0 18px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 16px;
  font-weight: 400;
}

.source-columns ul {
  margin: 0;
  padding-left: 28px;
}

.source-columns li {
  margin: 0 0 12px;
}

.avery-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 520px));
  gap: clamp(26px, 4vw, 70px);
  justify-content: center;
  padding: clamp(80px, 10vw, 150px) clamp(22px, 7vw, 120px);
  background: #fff;
}

.related-card {
  color: inherit;
  text-decoration: none;
}

.related-card figure {
  height: 410px;
  margin-bottom: 18px;
}

.related-card p {
  margin: 0 0 6px;
  color: rgba(0,0,0,.55);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.related-card h3 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(30px, 4vw, 32px);
  font-weight: 400;
}

.project-detail-v24 .project-nav-strip {
  background: #f7f7f5;
}

.project-detail-v24 .project-nav-strip a {
  font-size: clamp(23px, 3.5vw, 32px);
}

.project-detail-v24 .reveal-up {
  transform: translateY(44px);
}

.project-detail-v24 .reveal-img {
  transform: translateY(55px);
  clip-path: inset(14% 0 14% 0);
}

.project-detail-v24 .reveal-img.visible {
  clip-path: inset(0);
}

.project-detail-v24 img {
  transition: transform 1.2s var(--ease), filter .45s ease;
}

.project-detail-v24 figure:hover img,
.avery-panorama:hover img,
.avery-project-hero:hover img {
  transform: scale(1.045);
  filter: brightness(1.04) saturate(1.05);
}

@media (max-width: 980px) {
  .avery-project-kicker {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 18px;
  }

  .avery-project-kicker p:last-child {
    text-align: left;
  }

  .avery-project-hero {
    height: 72vh;
    min-height: 560px;
  }

  .avery-project-intro,
  .avery-asym-grid,
  .avery-editorial-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .avery-project-intro {
    padding: 70px 22px;
  }

  .avery-intro-image,
  .avery-small-top,
  .avery-medium,
  .avery-editorial-left figure:first-child,
  .avery-editorial-left figure:nth-child(2) {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .avery-asym-grid {
    padding: 0 22px 80px;
  }

  .avery-tall-left {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .avery-right-stack {
    padding-right: 0;
    gap: 38px;
  }

  .avery-duo,
  .avery-related {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .avery-duo {
    padding: 70px 22px;
  }

  .avery-duo figure,
  .related-card figure {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .avery-full-bleed,
  .avery-panorama,
  .avery-editorial-right figure {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .avery-editorial-grid {
    padding: 70px 22px;
  }

  .source-list {
    padding: 70px 22px 90px;
  }
}

@media (max-width: 912px) {
  .project-detail-v24 .topbar .brand {
    font-size: 11px;
  }

  .project-detail-v24 .topbar nav {
    gap: 10px;
  }

  .avery-project-hero {
    min-height: 0;
    height: 48vh;
  }

  .avery-intro-copy,
  .source-list-inner,
  .avery-note,
  .avery-quote {
    font-size: 12px;
  }

  .avery-project-kicker {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 26px;
    font-size: 10px;
  }

  .avery-project-intro {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: 18px;
    align-items: start;
    padding: 34px 26px 44px;
  }

  .avery-intro-copy {
    max-width: none;
    font-size: 11.5px;
    line-height: 1.9;
  }

  .avery-intro-copy p {
    margin-bottom: 16px;
  }

  .avery-intro-copy .asterisk {
    margin: 12px 0 10px;
  }

  .avery-intro-image {
    margin: 0;
    height: auto;
    aspect-ratio: 0.82 / 1.16;
  }

  .avery-asym-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 18px;
    padding: 0 26px 52px;
  }

  .avery-tall-left {
    aspect-ratio: 0.82 / 1.26;
  }

  .avery-right-stack {
    gap: 18px;
    align-content: start;
  }

  .avery-small-top,
  .avery-medium {
    width: 100%;
    justify-self: stretch;
  }

  .avery-small-top {
    aspect-ratio: 0.82 / 1;
  }

  .avery-medium {
    aspect-ratio: 0.82 / 1.08;
  }

  .avery-note,
  .avery-quote {
    max-width: none;
    font-size: 11.5px;
    line-height: 1.9;
  }

  .avery-note p,
  .avery-quote p {
    margin-bottom: 10px;
  }

  .avery-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0 26px 52px;
  }

  .avery-duo figure {
    aspect-ratio: 0.82 / 1.12;
  }

  .avery-full-bleed {
    aspect-ratio: 1 / 1.16;
  }

  .avery-editorial-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 16px;
    padding: 52px 26px;
  }

  .avery-editorial-left,
  .avery-editorial-right {
    gap: 16px;
  }

  .avery-editorial-left figure:first-child,
  .avery-editorial-left figure:nth-child(2),
  .avery-editorial-right figure {
    width: 100%;
  }

  .avery-editorial-left figure:first-child {
    aspect-ratio: 0.82 / 1.18;
  }

  .avery-editorial-left figure:nth-child(2) {
    aspect-ratio: 0.82 / 0.94;
  }

  .avery-editorial-right figure {
    aspect-ratio: 0.82 / 1.42;
  }

  .avery-panorama {
    aspect-ratio: 1 / 1.08;
  }

  .source-list {
    padding: 54px 26px 72px;
  }

  .source-list-inner {
    width: 100%;
    font-size: 12px;
    line-height: 1.9;
  }

  .source-shop {
    margin-bottom: 28px;
    font-size: 15px;
  }

  .source-list hr {
    margin: 34px 0 26px;
  }

  .source-list h2 {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.45;
  }

  .source-columns {
    gap: 30px;
    margin-top: 34px;
  }

  .source-columns h3 {
    margin-bottom: 12px;
    font-size: 15px;
  }

  .source-columns ul {
    padding-left: 22px;
  }

  .source-columns li {
    margin-bottom: 10px;
  }

  .avery-related {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 54px 26px;
  }

  .related-card figure {
    aspect-ratio: 1.24 / 1;
    margin-bottom: 14px;
  }

  .related-card p {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .related-card h3 {
    font-size: 20px;
    line-height: 1.3;
  }

  .project-detail-v24 .project-nav-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 30px 26px 40px;
    align-items: start;
  }

  .project-detail-v24 .project-nav-strip a {
    font-size: 16px;
    line-height: 1.45;
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 0;
  height: 2px;
  background: #b08b60;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 56px;
  background: rgba(108, 84, 61, 0.94);
  backdrop-filter: blur(14px);
  transition: height 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.site-header.scrolled {
  height: 60px;
  box-shadow: 0 10px 24px rgba(35, 22, 13, 0.18);
  background: rgba(92, 71, 52, 0.97);
}

.brand {
  margin-right: auto;
  color: #f7efe5;
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
}

.desktop-nav a {
  position: relative;
  color: #f7efe5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a.active,
.desktop-nav a:hover {
  color: #e8c79a;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: calc(100% - 0.24em);
}

.nav-cta {
  padding: 12px 18px;
  border: 1px solid rgba(247, 239, 229, 0.55);
  border-radius: 999px;
}

.nav-cta::after {
  display: none;
}

.menu-btn {
  display: none;
  width: 46px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 1px;
  margin: 8px 0;
  background: #f7efe5;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 44px;
  background: #f5efe6;
  transform: translateY(-105%);
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu button {
  position: absolute;
  top: 26px;
  right: 26px;
  padding: 12px 16px;
  border: 1px solid rgba(92, 71, 52, 0.2);
  background: transparent;
  color: #3e2d21;
  cursor: pointer;
  letter-spacing: 0.16em;
}

.mobile-menu a {
  color: #3e2d21;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(38px, 10vw, 76px);
  line-height: 0.98;
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
}

.mobile-menu.open a {
  animation: caseMenuIn 0.72s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.mobile-menu.open a:nth-of-type(2) { animation-delay: 0.05s; }
.mobile-menu.open a:nth-of-type(3) { animation-delay: 0.10s; }
.mobile-menu.open a:nth-of-type(4) { animation-delay: 0.15s; }
.mobile-menu.open a:nth-of-type(5) { animation-delay: 0.20s; }
.mobile-menu.open a:nth-of-type(6) { animation-delay: 0.25s; }

@keyframes caseMenuIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .site-header {
    height: 64px;
    padding: 0 22px;
  }

  .brand {
    font-size: 21px;
    letter-spacing: 0.12em;
  }
}


/* === Restored Case Study: 3 View Project cards === */
.sg-case-cards-section {
  min-height: 570px;
  display: grid;
  grid-template-columns: .9fr 2.1fr;
  gap: 64px;
  padding: 74px clamp(20px, 4vw, 56px) 58px;
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.sg-case-card-intro {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 330px;
  padding: 0 0 24px;
}

.sg-case-card-intro p {
  margin: 0;
  color: rgba(17,17,17,.78);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.sg-case-card-intro a {
  width: fit-content;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  border-bottom: 2px solid currentColor;
}

.sg-case-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

.sg-case-card-grid .project-link-card figure {
  height: 455px;
  margin: 0;
  overflow: hidden;
  background: var(--line);
}

@media (max-width: 920px) {
  .sg-case-cards-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .sg-case-card-intro {
    max-width: none;
    gap: 24px;
  }

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

  .sg-case-card-grid .project-link-card figure {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 912px) {
  .sg-case-cards-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
    padding: 42px 28px 46px;
    align-items: start;
  }

  .sg-case-card-intro {
    display: contents;
  }

  .sg-case-card-intro p {
    grid-column: 1;
    grid-row: 1;
    font-size: 13px;
    line-height: 1.9;
  }

  .sg-case-card-intro a {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    margin-top: -4px;
    font-size: 13px;
    border-bottom-width: 1px;
  }

  .sg-case-card-grid {
    display: contents;
  }

  .sg-case-card-grid .project-link-card:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
  }

  .sg-case-card-grid .project-link-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .sg-case-card-grid .project-link-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .sg-case-card-grid .project-link-card figure {
    height: auto !important;
    aspect-ratio: 0.82 / 1.16;
  }
}

@media (max-width: 560px) {
  .sg-case-cards-section {
    grid-template-columns: 1fr;
    padding: 38px 20px 44px;
  }

  .sg-case-card-intro {
    display: flex;
  }

  .sg-case-card-intro p,
  .sg-case-card-intro a,
  .sg-case-card-grid .project-link-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .sg-case-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
