body[data-note-design="adaptive-habitat"] {
  --habitat-ink: oklch(26% 0.047 242);
  --habitat-blue: oklch(53% 0.073 240);
  --habitat-sky: oklch(75% 0.049 230);
  --habitat-paper: oklch(94% 0.031 85);
  --habitat-cloud: oklch(97% 0.022 86);
  --habitat-ochre: oklch(68% 0.098 80);
}

body[data-note-design="adaptive-habitat"] .article-main {
  padding-top: 5.2rem;
  background: var(--habitat-ink);
}

body[data-note-design="adaptive-habitat"] .article-main article {
  padding-bottom: 6rem;
  background:
    radial-gradient(circle at 84% 1%, oklch(60% 0.065 236 / 0.16), transparent 28rem),
    linear-gradient(180deg, var(--paper-faint), var(--paper-warm));
}

body[data-note-design="adaptive-habitat"] .article-header--art-directed {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: calc(100svh - 5.2rem);
  margin: 0;
  overflow: hidden;
  padding: 0;
  color: var(--habitat-ink);
  background: var(--habitat-sky);
}

body[data-note-design="adaptive-habitat"] .article-hero-media,
body[data-note-design="adaptive-habitat"] .article-hero-veil {
  position: absolute;
  inset: 0;
}

body[data-note-design="adaptive-habitat"] .article-hero-media {
  z-index: -2;
  overflow: hidden;
}

body[data-note-design="adaptive-habitat"] .article-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--hero-position, 66% center);
  animation: habitat-develop 1.6s var(--ease-out) both;
}

body[data-note-design="adaptive-habitat"] .article-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: repeating-linear-gradient(0deg, transparent 0 4px, oklch(24% 0.04 242 / 0.1) 5px, transparent 6px);
  mix-blend-mode: multiply;
}

body[data-note-design="adaptive-habitat"] .article-hero-veil {
  z-index: -1;
  background:
    linear-gradient(90deg, oklch(96% 0.025 86 / 0.9) 0%, oklch(96% 0.025 86 / 0.72) 27%, oklch(96% 0.025 86 / 0.16) 54%, transparent 72%),
    linear-gradient(180deg, oklch(96% 0.025 86 / 0.18), transparent 35%, transparent 72%, oklch(18% 0.035 242 / 0.22));
}

body[data-note-design="adaptive-habitat"] .article-header__inner {
  width: min(calc(100% - 2rem), 82rem);
  min-height: calc(100svh - 5.2rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(5rem, 10vh, 7.5rem) 0 clamp(4rem, 8vh, 6rem);
}

body[data-note-design="adaptive-habitat"] .article-header__inner .article-meta {
  align-items: center;
  width: fit-content;
  margin-bottom: clamp(1.3rem, 2.6vh, 2rem);
  color: oklch(26% 0.047 242 / 0.72);
  animation: habitat-copy-in 0.75s ease-out both;
}

body[data-note-design="adaptive-habitat"] .article-header__inner .article-meta span:first-child {
  display: inline-flex;
  align-items: center;
  color: var(--habitat-cloud);
  background: var(--habitat-ink);
  border-color: oklch(26% 0.047 242 / 0.7);
  padding-block: 0.3rem;
}

body[data-note-design="adaptive-habitat"] .article-header__inner h1 {
  max-width: 8.4ch;
  margin: 0 0 clamp(1.3rem, 2.7vh, 2.1rem);
  color: var(--habitat-ink);
  font: 500 clamp(4.2rem, 7.4vw, 7.8rem) / 0.86 var(--font-display);
  letter-spacing: 0.004em;
  overflow-wrap: normal;
  text-transform: uppercase;
  text-shadow: 0 2px 26px oklch(96% 0.025 86 / 0.46);
  text-wrap: balance;
  animation: habitat-copy-in 0.9s var(--ease-out) 0.08s both;
}

body[data-note-design="adaptive-habitat"] .article-header__inner > p {
  max-width: 35ch;
  margin: 0;
  color: oklch(26% 0.047 242 / 0.82);
  font-size: clamp(1.04rem, 1.55vw, 1.24rem);
  font-weight: 600;
  line-height: 1.43;
  text-shadow: 0 1px 18px oklch(96% 0.025 86 / 0.7);
  text-wrap: pretty;
  animation: habitat-copy-in 0.9s var(--ease-out) 0.18s both;
}

body[data-note-design="adaptive-habitat"] .article-bands {
  height: 0.34rem;
  background: linear-gradient(90deg, var(--habitat-ink) 0 29%, var(--habitat-blue) 29% 61%, var(--habitat-sky) 61% 82%, var(--habitat-ochre) 82% 100%);
}

body[data-note-design="adaptive-habitat"] .article-copy > p:first-child,
body[data-note-design="adaptive-habitat"] .article-copy > p:nth-child(11) {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.3vw, 1.62rem);
  font-weight: 600;
  line-height: 1.48;
}

@keyframes habitat-develop {
  from {
    transform: scale(1.018);
    filter: saturate(0.82) contrast(0.96) brightness(1.03);
  }
  to {
    transform: scale(1);
    filter: none;
  }
}

@keyframes habitat-copy-in {
  from { opacity: 0; transform: translate3d(0, 1rem, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 47.98rem) {
  body[data-note-design="adaptive-habitat"] .article-main {
    padding-top: 4.8rem;
  }

  body[data-note-design="adaptive-habitat"] .article-header--art-directed,
  body[data-note-design="adaptive-habitat"] .article-header__inner {
    min-height: calc(100svh - 4.8rem);
  }

  body[data-note-design="adaptive-habitat"] .article-hero-media img {
    object-position: 67% center;
  }

  body[data-note-design="adaptive-habitat"] .article-hero-veil {
    background:
      linear-gradient(180deg, oklch(96% 0.025 86 / 0.08) 0 33%, oklch(96% 0.025 86 / 0.44) 53%, oklch(96% 0.025 86 / 0.94) 76%, oklch(96% 0.025 86 / 0.98) 100%),
      linear-gradient(90deg, oklch(96% 0.025 86 / 0.12), transparent 72%);
  }

  body[data-note-design="adaptive-habitat"] .article-header__inner {
    justify-content: flex-end;
    padding: 4.8rem 0 3.1rem;
  }

  body[data-note-design="adaptive-habitat"] .article-header__inner .article-meta {
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.92rem;
    font-size: 0.59rem;
  }

  body[data-note-design="adaptive-habitat"] .article-header__inner h1 {
    max-width: 8ch;
    margin-bottom: 1.05rem;
    font-size: clamp(3.25rem, 15.5vw, 5rem);
    line-height: 0.88;
  }

  body[data-note-design="adaptive-habitat"] .article-header__inner > p {
    max-width: 30ch;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-note-design="adaptive-habitat"] .article-hero-media img,
  body[data-note-design="adaptive-habitat"] .article-header__inner .article-meta,
  body[data-note-design="adaptive-habitat"] .article-header__inner h1,
  body[data-note-design="adaptive-habitat"] .article-header__inner > p {
    animation: none;
  }
}
