.field-notes {
  position: relative;
  min-height: auto;
  padding: clamp(3.4rem, 5vw, 5.5rem) clamp(2rem, 4.8vw, 4.8rem) clamp(3.5rem, 5vw, 5rem);
  overflow: clip;
  background:
    radial-gradient(circle at 50% 58%, color-mix(in srgb, var(--ochre) 12%, transparent), transparent 34%),
    radial-gradient(circle at 16% 26%, color-mix(in srgb, var(--paper) 5%, transparent), transparent 24rem),
    color-mix(in srgb, var(--deep) 96%, black);
}

.field-notes::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 8%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: clamp(13rem, 19vw, 21rem) 100%, 100% clamp(10rem, 18vw, 16rem);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  opacity: 0.42;
}

.field-notes__intro {
  position: relative;
  z-index: 3;
  display: block;
  max-width: 34rem;
  margin: 0 0 clamp(1.5rem, 2.8vw, 2.4rem);
  padding-left: 1.35rem;
  border-left: 1px solid color-mix(in srgb, var(--ochre) 72%, transparent);
}

.field-notes__eyebrow {
  display: none;
}

.field-notes h2 {
  margin: 0 0 0.75rem;
  max-width: none;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 3vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
}

.field-notes__intro > p:last-child {
  margin: 0;
  max-width: 30rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.82rem, 0.92vw, 0.95rem);
  line-height: 1.65;
}

.field-notes__layout {
  position: relative;
  z-index: 2;
  min-height: auto;
}

.notes-carousel {
  position: relative;
  max-width: min(72rem, 100%);
  margin: 0 auto;
  padding: clamp(0.6rem, 1.4vw, 1.1rem) 0 clamp(5.5rem, 9vw, 7rem);
}

.notes-carousel__track {
  display: grid;
  grid-template-columns: minmax(12rem, 0.82fr) minmax(20rem, 1.18fr) minmax(12rem, 0.82fr);
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.55rem);
  perspective: 80rem;
}

.note-preview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  min-height: clamp(21rem, 29vw, 26rem);
  padding: clamp(1.05rem, 1.75vw, 1.45rem);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: 0.72rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--paper) 6%, transparent), transparent 46%),
    linear-gradient(180deg, color-mix(in srgb, var(--deep) 92%, black), color-mix(in srgb, var(--deep) 97%, black));
  box-shadow: 0 1.6rem 4.5rem rgba(0, 0, 0, 0.24);
  overflow: hidden;
  transition:
    opacity 520ms cubic-bezier(.18,.86,.24,1),
    transform 560ms cubic-bezier(.16,.84,.24,1),
    border-color 420ms ease,
    box-shadow 520ms ease,
    filter 520ms ease;
  will-change: opacity, transform;
}

.note-preview--active {
  z-index: 3;
  min-height: clamp(24rem, 33vw, 30rem);
  padding: clamp(1.35rem, 2.1vw, 1.9rem);
  border-color: color-mix(in srgb, var(--ochre) 30%, transparent);
  box-shadow:
    0 1.8rem 4.2rem rgba(0, 0, 0, 0.34),
    0 0 3.2rem color-mix(in srgb, var(--ochre) 9%, transparent);
  transform: translateY(-0.3rem) scale(1.01);
}

.note-preview--side {
  min-height: clamp(18rem, 24vw, 22rem);
  opacity: 0.48;
  filter: saturate(0.66) blur(0.1px);
  transform: scale(0.9);
}

.note-preview--side:hover {
  opacity: 0.68;
  filter: saturate(0.8);
  transform: translateY(-0.18rem) scale(0.925);
}

.notes-carousel.is-sliding .note-preview {
  opacity: 0.18;
  transform: translateY(0.45rem) scale(0.96);
}

.note-preview__art {
  position: relative;
  min-height: clamp(6.4rem, 9.5vw, 8.8rem);
  margin: calc(clamp(1.05rem, 1.75vw, 1.45rem) * -1) calc(clamp(1.05rem, 1.75vw, 1.45rem) * -1) clamp(0.95rem, 1.45vw, 1.2rem);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  background:
    radial-gradient(circle at 50% 115%, transparent 0 31%, color-mix(in srgb, var(--ochre) 20%, transparent) 31.4% 32%, transparent 32.4% 45%, color-mix(in srgb, var(--ink) 12%, transparent) 45.4% 46%, transparent 46.5%),
    repeating-conic-gradient(from -90deg at 50% 115%, color-mix(in srgb, var(--ink) 22%, transparent) 0deg 0.5deg, transparent 0.5deg 6deg),
    linear-gradient(145deg, color-mix(in srgb, var(--ochre) 14%, transparent), transparent 58%);
  opacity: 0.62;
}

.note-preview--active .note-preview__art {
  min-height: clamp(7.8rem, 11vw, 10rem);
  margin: calc(clamp(1.35rem, 2.1vw, 1.9rem) * -1) calc(clamp(1.35rem, 2.1vw, 1.9rem) * -1) clamp(1.05rem, 1.65vw, 1.4rem);
  opacity: 0.72;
}

.note-preview__art::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  width: 4.2rem;
  height: 4.2rem;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  border-radius: 50%;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--deep) 54%, transparent);
}

.note-preview__date {
  margin: 0 0 0.8rem;
  color: var(--ochre);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.note-preview h3 {
  position: relative;
  margin: 0 0 0.85rem;
  max-width: 13ch;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.05vw, 2.55rem);
  font-weight: 500;
  line-height: 1.02;
}

.note-preview--active h3 {
  max-width: 12.5ch;
  font-size: clamp(2.05rem, 2.95vw, 3.55rem);
}

.note-preview p:not(.note-preview__date) {
  position: relative;
  max-width: 27rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.76rem, 0.84vw, 0.88rem);
  line-height: 1.62;
}

.note-tags,
.note-modal__tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
}

.note-tags {
  align-self: start;
  padding: clamp(0.75rem, 1.25vw, 1rem) 0 0;
}

.note-tags span,
.note-modal__tags span {
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 9%, transparent);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.note-preview .button-link {
  position: static;
  justify-self: start;
  align-self: end;
  min-width: 10.25rem;
  margin-top: 1rem;
  border-color: color-mix(in srgb, var(--ochre) 64%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--ochre) 62%, var(--paper)), color-mix(in srgb, var(--ochre) 54%, black));
  color: var(--deep);
}

.note-preview .button-link::after {
  content: "->";
  margin-left: 1.4rem;
}

.note-preview .button-link[disabled] {
  cursor: default;
  opacity: 0.52;
  filter: grayscale(0.15);
}

.notes-carousel__arrow {
  position: absolute;
  top: 43%;
  z-index: 5;
  width: clamp(2.4rem, 3.2vw, 3rem);
  height: clamp(2.4rem, 3.2vw, 3rem);
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--ink) 56%, transparent);
  border-radius: 0.18rem;
  background: color-mix(in srgb, var(--deep) 82%, black);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 1.25rem;
  transform: translateY(-50%);
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.32);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.notes-carousel__arrow--prev {
  left: clamp(-1.35rem, -1.2vw, -0.65rem);
}

.notes-carousel__arrow--next {
  right: clamp(-1.35rem, -1.2vw, -0.65rem);
}

.notes-carousel__arrow:hover,
.notes-carousel__arrow:focus-visible {
  border-color: var(--ochre);
  color: var(--ochre);
  background: color-mix(in srgb, var(--deep) 68%, black);
  outline: none;
}

.notes-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: clamp(1.2rem, 2vw, 1.8rem);
}

.notes-carousel__dots button {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid color-mix(in srgb, var(--ochre) 44%, transparent);
  border-radius: 999px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: width 320ms cubic-bezier(.2,.8,.2,1), background 220ms ease, opacity 220ms ease;
}

.notes-carousel__dots button.is-active {
  width: 1.8rem;
  background: var(--ochre);
  box-shadow: 0 0 1rem color-mix(in srgb, var(--ochre) 50%, transparent);
}

.note-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 180ms ease;
}

.note-modal[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.note-modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--deep) 72%, transparent);
  backdrop-filter: blur(10px);
}

.note-modal__panel {
  position: relative;
  width: min(45rem, 92vw);
  max-height: min(84vh, 52rem);
  overflow: auto;
  padding: clamp(2rem, 3.2vw, 3.4rem);
  border: 1px solid rgba(24, 21, 16, 0.12);
  border-radius: 0.5rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 42%),
    #efe4cf;
  color: #17130d;
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.36);
  outline: none;
}

.note-modal__close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #17130d;
  cursor: pointer;
  font-size: 0;
}

.note-modal__close::before,
.note-modal__close::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.95rem;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.note-modal__close::before {
  transform: rotate(45deg);
}

.note-modal__close::after {
  transform: rotate(-45deg);
}

.note-modal__date {
  margin: 0 0 1rem;
  color: #9b6828;
  font-size: 0.88rem;
  text-transform: none;
}

.note-modal__date::before {
  content: "AI PRODUCT FIELD NOTES";
  display: block;
  margin-bottom: 2rem;
  color: #17130d;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.note-modal h3 {
  clear: both;
  margin: 0 0 1.4rem;
  max-width: 15ch;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 3.5vw, 3.35rem);
  font-weight: 500;
  line-height: 1.06;
}

.note-modal__tags {
  margin-bottom: 1.7rem;
  padding-bottom: 1.7rem;
  border-bottom: 1px solid rgba(24, 21, 16, 0.16);
}

.note-modal__tags::before {
  content: none;
}

.note-modal__tags span {
  border-color: transparent;
  color: #f4ead7;
  background: #5f6444;
}

.note-modal__tags span:nth-child(2) {
  background: #a6773d;
}

.note-modal__tags span:nth-child(3) {
  background: #817866;
}

.note-modal__body {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
  font-family: var(--mono);
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  line-height: 1.55;
}

.note-modal__body p {
  margin: 0;
}

.note-modal__body ul {
  margin: 0.2rem 0;
  padding-left: 1.2rem;
}

.note-modal__body li + li {
  margin-top: 0.4rem;
}

.note-modal-open {
  overflow: hidden;
}

.field-notes__skip {
  position: absolute;
  right: clamp(2rem, 4.8vw, 4.8rem);
  top: clamp(3.4rem, 5vw, 5.5rem);
  z-index: 4;
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: 999px;
  padding: 0 0.9rem;
  color: color-mix(in srgb, var(--muted) 86%, transparent);
  background: color-mix(in srgb, var(--deep) 54%, transparent);
  font-size: 0.76rem;
  backdrop-filter: blur(10px);
}

.field-notes__skip:hover,
.field-notes__skip:focus-visible {
  color: var(--ochre);
  border-color: color-mix(in srgb, var(--ochre) 62%, transparent);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .note-preview,
  .notes-carousel__arrow,
  .notes-carousel__dots button {
    transition-duration: 1ms;
  }
}

@media (max-width: 1050px) {
  .field-notes__layout {
    min-height: auto;
  }

  .notes-carousel__track {
    grid-template-columns: minmax(0, 1fr);
    max-width: 42rem;
    margin: 0 auto;
  }

  .note-preview,
  .note-preview--active,
  .note-preview--side {
    min-height: auto;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .note-preview--side {
    display: none;
  }

  .note-preview--active {
    padding: clamp(1.35rem, 4vw, 2rem);
  }

  .notes-carousel__arrow {
    top: 34%;
  }

  .field-notes__skip {
    position: relative;
    top: auto;
    right: auto;
    display: inline-flex;
    margin: 0 0 1.5rem 1.35rem;
  }
}

@media (max-width: 700px) {
  .field-notes {
    padding: 4rem 1.2rem;
  }

  .field-notes h2 {
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

  .note-preview__art {
    min-height: 10rem;
  }

  .notes-carousel__arrow {
    width: 2.35rem;
    height: 2.35rem;
  }

  .note-preview h3 {
    font-size: clamp(2.25rem, 12vw, 3.55rem);
  }

  .note-modal__panel {
    width: 94vw;
    padding: 1.6rem;
  }
}
