:root {
  color-scheme: light;
  --ink: #1d1a16;
  --clay: #cbbeb2;
  --canvas: #f7f0e8;
  --accent: #e07a6f;
  --deep-green: #234434;
  --olive: #6a7730;
  --sky: #6b99b3;
  --peach: #f1c7b9;
  --mustard: #e7b453;
  --sand: #eadfd2;
  --moss-ink: #1d2623;
  --moss-sage: #646f65;
  --moss-stone: #d2cfc9;
  --moss-mist: #e9e6df;
  --moss-leaf: #697a70;
  --moss-deep-sage: #505c52;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: inline-block;
  transition: transform 250ms ease;
}

.brand-mark img {
  width: clamp(40px, 7vw, 60px);
  height: auto;
  display: block;
}

.home .logo-wiggle img {
  animation: logo-sway 0.7s ease-in-out 0.2s 2;
  transform-origin: center;
}

.brand-mark:hover {
  transform: translateY(-2px);
}

body.botanical-page header .brand-mark,
body.moss-page header .brand-mark {
  margin-top: 20px;
}

nav a,
.nav-trigger {
  margin-left: 1.5rem;
  font-weight: 600;
  position: relative;
  font-family: 'Syne', 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font-size: 0.95rem;
}

.home nav a {
  margin-left: 2rem;
}

nav a::after,
.nav-trigger::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

nav a:hover::after,
nav a:focus-visible::after,
nav a.active::after,
.nav-trigger:hover::after,
.nav-trigger:focus-visible::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  display: grid;
  gap: 0.35rem;
  min-width: 140px;
  padding: 0.4rem;
  background: var(--canvas);
  border-radius: 12px;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 20;
}

.dropdown-menu a {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: rgba(35, 68, 52, 0.12);
}

.nav-dropdown.open .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.top-strip {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem clamp(0.75rem, 4vw, 2.5rem);
  background: var(--deep-green);
  color: #fef6ec;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.6rem;
  font-weight: 700;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.top-strip {
  justify-content: flex-start;
  overflow: hidden;
  white-space: nowrap;
}

.top-strip span {
  display: inline-flex;
  gap: 2rem;
  padding-right: 2rem;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.checker-strip {
  height: 28px;
  background-color: var(--mustard);
  background-image:
    linear-gradient(45deg, #fef6ec 25%, transparent 25%),
    linear-gradient(-45deg, #fef6ec 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #fef6ec 75%),
    linear-gradient(-45deg, transparent 75%, #fef6ec 75%);
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  border: 2px solid transparent;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.button.primary {
  background: transparent;
  color: var(--deep-green);
  border-color: var(--deep-green);
}

.button.ghost {
  border-color: var(--deep-green);
  color: var(--deep-green);
  background: transparent;
}

.button.primary:hover,
.button.primary:focus-visible,
.button.ghost:hover,
.button.ghost:focus-visible {
  background: var(--deep-green);
  color: #fff;
  border-color: var(--deep-green);
}

.button.light {
  background: var(--deep-green);
  color: #fff;
}

.button.dark {
  background: #fef6ec;
  color: var(--deep-green);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
  filter: brightness(1.03);
}

/* Global banded sections */
.band {
  width: 100%;
}

.band-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 3rem);
}

.rounded-band {
  border-radius: 0 0 28px 28px;
}

.trimmed-band {
  margin-left: 40px;
  margin-right: 40px;
}

.cozy-critter-page .trimmed-band {
  border-radius: 0 0 28px 28px;
}

.band-cream {
  background: var(--canvas
  
  
  );
}

.band-olive {
  background: var(--olive);
  color: #fef6ec;
}

.band-peach {
  background: var(--peach);
}

.cozy-critter-page .band-peach {
  background: #f2d5b1;
}


.band-sky {
  background: var(--sky);
  color: #fef6ec;
}

.section-title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 1.8rem;
  color: var(--deep-green);
}

.home #work .section-title {
  text-align: center;
}

.scapegoat-page .section-title {
  text-align: left;
}

.eyebrow {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--deep-green);
}

/* Homepage */
body.home {
  background: var(--deep-green);
  color: var(--ink);
}

.home .site-wrapper {
  max-width: none;
  margin: 0;
  padding: 0;
}

.home header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(0.75rem, 4vw, 2.5rem);
  background: var(--peach);
  color: var(--deep-green);
  border-radius: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.home header nav a {
  color: var(--deep-green);
}

.home .hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.home .hero-copy h1 {
  margin: 0 0 0.5rem;
  font-family: 'Syne', 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: 0.01em;
}

.home .lead {
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.home .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.home .chip {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1.5px dashed var(--deep-green);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--deep-green);
  background: #fff9f2;
}

.home .hero-art {
  display: flex;
  justify-content: center;
}

.home .hero-art img {
  width: min(260px, 60vw);
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.2));
}

.home .split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: center;
}

.home .split-text h2 {
  margin-top: 0;
  font-family: 'Syne', 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.home .split-card {
  background: rgba(255, 248, 235, 0.9);
  color: var(--deep-green);
  padding: 1.8rem;
  border-radius: 18px;
  display: grid;
  gap: 0.8rem;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}

.home .split-card .tag {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0;
}

.home .split-card .services {
  font-size: 1.05rem;
  margin: 0;
}

.home .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: clamp(0.8rem, 2.5vw, 1.6rem);
  max-width: 720px;
  margin: 0 auto;
}

.home .project-card {
  position: relative;
  background: transparent;
  border: 2px solid var(--deep-green);
  padding: clamp(0.8rem, 2.2vw, 1.1rem);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.home .project-card.branding {
  background: transparent;
}

.home .project-card.illustration {
  background: transparent;
}

.home .project-card::after {
  content: none;
  position: absolute;
  inset: 10px -10px -10px 10px;
  background: var(--clay);
  z-index: -1;
}

.home .project-link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home .project-name {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--deep-green);
  font-family: 'Syne', 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home .project-card:hover,
.home .project-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.18);
  background: var(--deep-green);
}

.home .project-card:hover .project-name,
.home .project-card:focus-within .project-name {
  color: #fff;
}

.carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 24px;
  border: 2px solid var(--deep-green);
  background: transparent;
}

.carousel-track {
  display: flex;
  transition: transform 300ms ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 0;
}

.scapegoat-carousel .carousel-slide {
  align-items: start;
}

.carousel-slide img {
  width: 35%;
  height: auto;
  justify-self: center;
  border-radius: 12px;
}

.scapegoat-carousel .carousel-viewport {
  border: 1px solid #000;
  border-radius: 18px;
  width: min(60vw, 630px);
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}

.scapegoat-carousel .carousel-track,
.scapegoat-carousel .carousel-slide {
  height: 100%;
}

.scapegoat-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 18px;
}

.scapegoat-carousel .carousel-slide img.fill-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.scapegoat-carousel .carousel-slide img.contain-slide {
  object-fit: contain;
  transform: none;
}



@media (max-width: 900px) {
  .scapegoat-carousel .carousel-slide img {
    width: 100%;
    max-height: none;
  }
  .scapegoat-carousel .carousel-slide img.fill-frame {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .project-hero {
    grid-template-columns: 1fr;
  }

  .scapegoat-page header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .scapegoat-page header nav {
    justify-self: center;
  }

  .scapegoat-carousel .carousel-viewport {
    width: min(88vw, 680px);
  }
}


.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--deep-green);
  background: transparent;
  color: var(--deep-green);
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: var(--deep-green);
  color: #fff;
  transform: translateY(-2px);
}

.carousel-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.carousel-actions .button {
  border-color: var(--deep-green);
  color: var(--deep-green);
  background: transparent;
}

.carousel-actions .button:hover,
.carousel-actions .button:focus-visible {
  background: var(--deep-green);
  color: #fff;
}

@media (max-width: 640px) {
  .carousel {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    justify-self: center;
  }
}

.home .project-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.home .project-media img {
  max-height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
}

.home .cta {
  text-align: center;
  display: grid;
  gap: 1rem;
}

.home .cta h2 {
  margin: 0;
  font-family: 'Syne', 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.home .cta p {
  margin: 0 auto;
  max-width: 480px;
  line-height: 1.6;
}

.back-design {
  margin: 1rem clamp(0.75rem, 4vw, 2.5rem) 0;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem 2rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(35, 68, 52, 0.15);
}

.page-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.scapegoat-page header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.scapegoat-page header nav {
  justify-self: center;
}

.scapegoat-page .back-design {
  margin: 0;
}

.project-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.project-hero-media img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.16);
}

.project-hero-text h1 {
  margin-top: 0.35rem;
}

.cozy-critter-page .project-hero-media img {
  box-shadow: none;
}

.moss-page .project-hero-media img {
  border-radius: 0;
  box-shadow: none;
}

.moss-page .project-hero-text {
  text-align: left;
  text-transform: none;
}

.moss-page .project-hero-text .section-title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 1.8rem;
  color: var(--deep-green);
  font-family: 'Syne', 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-align: left;
}

.moss-page .project-hero-text h1 {
  text-transform: none;
}

.moss-page .project-hero-text .description {
  max-width: 640px;
  line-height: 1.6;
  color: #2a2a26;
  text-transform: none;
}


.moss-page .band-peach {
  background: #234434;
  color: #fef6ec;
}

.moss-page .band-peach .section-title {
  color: #fef6ec;
}

@media (max-width: 900px) {
  .project-hero-media img {
    border-radius: 14px;
  }
}
.project-meta h3 {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.65rem;
  color: #6a5b4d;
}

.project-meta p {
  margin: 0;
  font-weight: 600;
  color: var(--deep-green);
}

/* Design index */
.design-index h1 {
  margin: 0 0 1rem;
  font-family: 'Syne', 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.design-index .lead {
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}

.project-list {
  display: grid;
  gap: 2rem;
}

.project-preview {
  background: #fff7ef;
  border-radius: 20px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.project-preview .project-link {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 0;
  color: inherit;
  height: 100%;
}

.project-preview .preview-image {
  height: 100%;
  background: #f4e6da;
}

.project-preview .preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-preview .preview-body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 0.75rem;
}

.project-preview h2 {
  margin: 0;
  font-family: 'Syne', 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.project-preview p {
  margin: 0;
  line-height: 1.6;
}

.project-preview .tag {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.65rem;
  color: #7c6b5a;
}

.project-preview .preview-cta {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--deep-green);
}

.project-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.18);
}

@media (max-width: 860px) {
  .project-preview .project-link {
    grid-template-columns: 1fr;
  }

  .project-preview .preview-image {
    max-height: 240px;
  }
}

.illustration-content h1 {
  margin: 0 0 1.5rem;
  font-family: 'Syne', 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--deep-green);
}

.portfolio-heading {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--deep-green);
  margin-bottom: 0.75rem;
}

.portfolio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a5b4d;
  margin-bottom: 2rem;
}

.illustration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.illustration-grid img {
  width: 100%;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

@media (max-width: 900px) {
  .illustration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .illustration-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home header {
    flex-direction: column;
  }

  .home nav a {
    margin-left: 1rem;
  }

  .home .portfolio-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    max-width: none;
  }

  .top-strip {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
  }
}

/* Moss & Moon page */
body.moss-page {
  background: #ffffff;
  color: #4e5a53;
  text-transform: lowercase;
}

body.moss-page .band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

body.design-page {
  background: var(--deep-green);
  color: var(--ink);
}

body.design-page .page {
  max-width: none;
  margin: 0;
  padding: 1.5rem clamp(0.75rem, 4vw, 2.5rem) 4rem;
  background: var(--canvas);
  border-radius: 0;
  box-shadow: none;
}

body.design-page header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--peach);
  border-radius: 0 0 18px 18px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

body.design-page header nav a {
  color: var(--deep-green);
}

body.design-page .band-peach {
  background: var(--deep-green);
  color: #fef6ec;
}

body.design-page .project-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
}

body.design-page .project-preview {
  background: #f6efe6;
  width: min(100%, 880px);
}

body.design-page .project-preview .preview-cta,
body.design-page .project-preview .tag,
body.design-page .project-preview h2,
body.design-page .project-preview p {
  color: #1f1a17;
}

body.design-page .project-preview .preview-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  --project-caption-width: 220px;
}

body.design-page .project-preview .vertical-title {
  width: var(--project-caption-width);
  height: 75px;
  border: 1px solid #274b3b;
  border-radius: 18px;
  background: #f2d5b1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 16px 10px;
  text-align: center;
}

body.design-page .project-preview .tag {
  width: var(--project-caption-width);
  text-align: center;
}

body.design-page .project-preview .vertical-title h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

body.design-page .project-preview .vertical-title .preview-cta {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.moss-page .page {
  max-width: none;
  margin: 0;
  padding: 1.5rem clamp(0.75rem, 4vw, 2.5rem) 4rem;
  position: relative;
}

.moss-page header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-radius: 0 0 18px 18px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 1.2rem 1.5rem;
  background: #d7ece3;
}

.moss-page header nav a {
  color: var(--deep-green);
}

.moss-page nav a {
  margin-left: 1.5rem;
  color: #1f1a17;
}

.moss-page .hero-copy {
  margin: clamp(1.2rem, 3.5vw, 2.8rem) auto 2rem;
  text-align: left;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  line-height: 1.4;
  font-weight: 600;
  color: #4e5a53;
  max-width: 560px;
}

.moss-page .hero-title {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  padding-bottom: 20px;
}

.moss-page .hero-title img {
  width: min(480px, 78vw);
  height: auto;
}

.moss-page .products {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 20px;
}

.moss-page main img {
  transition: transform 220ms ease, filter 220ms ease;
  width: auto;
  height: auto;
}

.moss-page main img:hover {
  transform: translateY(-8px) scale(1.03);
}

.moss-page .products img {
  max-width: clamp(380px, 55vw, 520px);
  max-height: 560px;
  width: auto;
  height: auto;
  filter: drop-shadow(0 18px 25px rgba(0, 0, 0, 0.15));
  object-fit: contain;
}

.moss-page .products img.serum-image {
  max-width: clamp(420px, 60vw, 600px);
  max-height: 620px;
}

.moss-page .symbol-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 200px;
  margin-bottom: 3.5rem;
  padding-bottom: 20px;
}

.moss-page .symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0;
  padding: 0;
  color: #4e5a53;
}

.moss-page .symbol img {
  width: clamp(60px, 12vw, 110px);
  height: auto;
}

.moss-page .section-title {
  text-transform: lowercase;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #4e5a53;
  text-align: left;
  font-family: 'Hiragino Kaku Gothic Std', 'ヒラギノ角ゴ Std W8', 'Hiragino Sans', 'Noto Sans JP',
    'Montserrat', sans-serif;
}

.moss-page .about .section-title {
  position: relative;
  color: #fff;
  padding: 0.75rem 0;
}

.moss-page .about .section-title::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  background: #4e5a53;
  z-index: -1;
}

.moss-page .about {
  text-align: justify;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  padding-bottom: 20px;
  color: #4e5a53;
  font-family: 'Hiragino Kaku Gothic Std', 'ヒラギノ角ゴ Std W8', 'Hiragino Sans', 'Noto Sans JP',
    'Montserrat', sans-serif;
}

.moss-page .role {
  text-align: center;
  font-weight: 600;
  margin-bottom: 3rem;
  padding-bottom: 20px;
  color: var(--moss-sage);
}

.moss-page .role span {
  display: inline-block;
  padding: 0.6rem 2rem;
  background: transparent;
  color: var(--moss-sage);
  border-radius: 0;
}

.moss-page .font-chip {
  margin: 0 auto 1rem;
  max-width: 460px;
  text-align: center;
  padding: 0.75rem 1rem;
  background: var(--moss-leaf);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.moss-page .swatches-image {
  margin-inline: auto;
  margin-bottom: 3rem;
  padding-bottom: 20px;
  text-align: center;
}

.moss-page .swatches-image img {
  width: min(960px, 78vw);
  height: auto;
  display: block;
  margin: 0 auto;
}

.moss-page .tote {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding-bottom: 20px;
}

.moss-page .tote img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.2));
}

.back-work {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  color: inherit;
  margin: 1rem 0 1.5rem;
}

.back-work::before {
  content: '←';
  font-size: 0.9rem;
}

.back-work:hover,
.back-work:focus-visible {
  text-decoration: underline;
}

.moss-page .back-work {
  color: #1f1a17;
}

@media (max-width: 960px) {
  .moss-page .products {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .moss-page .products img + img {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .moss-page header {
    flex-direction: column;
  }

  .moss-page nav a {
    margin: 0 0.7rem;
  }
}

/* Case study pages */
body.case-page {
  background: var(--deep-green);
  color: var(--ink);
}

.case-page .page {
  max-width: none;
  margin: 0;
  padding: 1.5rem clamp(0.75rem, 4vw, 2.5rem) 4rem;
  background: var(--canvas);
  border-radius: 0;
  box-shadow: none;
}

.case-page header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--peach);
  border-radius: 0 0 18px 18px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.cozy-critter-page header {
  background: #f2d5b1;
  border-radius: 0 0 18px 18px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

body.scapegoat-page header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #cfe6f7;
}

.case-page header nav a {
  color: var(--deep-green);
}

.case-page header .brand-mark img {
  width: clamp(40px, 7vw, 60px);
  height: auto;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.case-page .back-link {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.case-page .description {
  max-width: 640px;
  line-height: 1.6;
  color: #2a2a26;
}

.case-page .section-title.centered-title {
  text-align: center;
  width: 100%;
}

.case-page .gallery {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.case-page .gallery.packaging-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.case-page .gallery.packaging-row img {
  max-width: 100%;
}

.cozy-critter-page .gallery.packaging-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  background: transparent;
}

@media (max-width: 900px) {
  .case-page .gallery.packaging-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .case-page .gallery.packaging-row {
    grid-template-columns: 1fr;
  }
}

.case-page .gallery.top-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.case-page .gallery.top-row img {
  max-width: 70%;
  justify-self: center;
}

.case-page .gallery.top-row img.packaging-feature {
  max-width: 100%;
}

@media (max-width: 900px) {
  .case-page .gallery.top-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-page .gallery.top-row img {
    max-width: 80%;
  }
}

@media (max-width: 640px) {
  .case-page .gallery.top-row {
    grid-template-columns: 1fr;
  }

  .case-page .gallery.top-row img {
    max-width: 100%;
  }
}

.pattern-frame {
  position: relative;
  width: min(288px, 80vw);
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.pattern-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 300ms ease;
}

.pattern-slide.active {
  opacity: 1;
}

.case-page img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.case-page .gallery.top-row img {
  box-shadow: none;
}

/* Botanical case */
body.botanical-page .gallery {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

body.botanical-page img {
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
  background: #fbf6f0;
}

/* Packaging case */
body.packaging-page {
  background: #f6f3f0;
}

body.packaging-page .gallery {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

body.packaging-page .description {
  max-width: 650px;
}

body.packaging-page img {
  border-radius: 8px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.14);
}

/* Bespoke case */
body.bespoke-page .gallery {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

body.scapegoat-page {
  background: #f8f8f1;
  text-transform: lowercase;
}

.scapegoat-page img {
  box-shadow: none !important;
}

.scapegoat-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.hero-block img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: transparent;
  padding: 0;
}

.submark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.palette-typography {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.palette {
  display: flex;
  gap: 0.8rem;
}

.palette .swatch {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.palette .tone-one {
  background: #79acdd;
}
.palette .tone-two {
  background: #c0dcf0;
}
.palette .tone-three {
  background: #b2c2a8;
}

.type-callouts {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.type-sample {
  flex: 1;
  min-width: 180px;
  padding: 0.5rem 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.type-sample .label {
  display: block;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.type-sample .sample {
  font-size: 1.4rem;
  font-weight: 700;
}

.scapegoat-copy p {
  max-width: 720px;
  line-height: 1.7;
}

.scapegoat-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(180px, auto));
  gap: 1.5rem;
}

.gallery-item {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.gallery-item.span-two-rows {
  grid-row: span 2;
}

.gallery-item.span-two-cols {
  grid-column: span 2;
}

/* Illustration page */
body.illustration-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

body.illustration-page figure {
  margin: 0;
  text-align: center;
}

body.illustration-page figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

/* Contact page */
.contact-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--sand);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 22px;
  margin-top: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  text-transform: lowercase;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #403a34;
}

.contact-form input,
.contact-form textarea {
  margin-top: 0.4rem;
  padding: 0.85rem 1rem;
  border: 2px solid #b5a797;
  border-radius: 8px;
  background: #fffaf4;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 999px;
  background: var(--deep-green);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

button,
.brand-logo {
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}

button:hover,
button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

@keyframes logo-sway {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-6deg);
  }
  40% {
    transform: rotate(6deg);
  }
  60% {
    transform: rotate(-4deg);
  }
  80% {
    transform: rotate(4deg);
  }
  100% {
    transform: rotate(0deg);
  }
}



/* Brand selector row */
.brand-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.brand-logo {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.brand-logo.active,
.brand-logo:hover {
  opacity: 1;
}

.brand-logo img {
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
  display: block;
}

/* Brand content visibility */
.brand-project {
  display: none;
}

.brand-project.active {
  display: block;
}

/* SHOP GRID */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
  margin-top: 60px;
}

/* ITEM CARD */
.shop-item {
  text-align: left;
}

/* IMAGE */

.shop-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;           /* KEY: clips overflow */
  background: #f2f2f2;
}


.shop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TEXT */
.item-title {
  font-size: 16px;
  font-weight: 500;
  margin: 4px 0;
}

.item-subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 8px;
}

.item-price {
  font-size: 14px;
  margin-bottom: 12px;
}

/* BUTTON */
.buy-button {
  background: none;
  border: 1px solid #000;
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.buy-button:hover {
  background: #000;
  color: #fff;
}

@media (max-width: 900px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}
