/* ============================================
   Casey Jiang — Personal Website
   Editorial / Magazine Style
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color palette from reference image */
  --cream: #f8ecd6;
  --cream-soft: #faf3e2;
  --maroon: #652e33;
  --maroon-light: #7a3a40;
  --slate: #627999;
  --rose: #ac6e73;
  --blush: #f7cfd0;
  --blush-soft: #fde8e9;
  --ink: #4a2225;

  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1320px;
  --gutter: clamp(1.5rem, 4vw, 3rem);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--maroon);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

/* Paper grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
em { font-style: italic; }

/* Exported web images are intentionally limited and optimized; original source
   material remains outside this repository. */
.content-image {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  border: 1px solid rgba(101, 46, 51, 0.12);
}

.hero__image {
  position: absolute;
  right: 0;
  bottom: -3rem;
  width: min(34vw, 30rem);
  height: min(46vw, 36rem);
  object-fit: cover;
  opacity: 0.72;
  mix-blend-mode: multiply;
}

@media (max-width: 760px) {
  .hero__image {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 16rem;
    margin-top: 2rem;
  }
}

/* ---------- Layout Helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--maroon), var(--slate));
  z-index: 100;
  transition: width 0.1s linear;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav.scrolled .nav__inner {
  background-color: rgba(248, 236, 214, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(101, 46, 51, 0.08);
}

.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-serif);
}

.nav__brand-mark {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 0.02em;
}

.nav__brand-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
  font-style: italic;
}

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--maroon);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__link:hover,
.nav__link.active {
  color: var(--maroon);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--maroon);
  transition: all 0.3s ease;
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav__drawer {
  max-height: 0;
  overflow: hidden;
  background: rgba(248, 236, 214, 0.97);
  backdrop-filter: blur(12px);
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__drawer.open {
  max-height: 400px;
  border-bottom: 1px solid rgba(101, 46, 51, 0.1);
}

.nav__drawer-link {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem var(--gutter);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--maroon);
  border-bottom: 1px solid rgba(101, 46, 51, 0.06);
}

.nav__drawer-link em {
  font-size: 0.7rem;
  color: var(--rose);
  font-style: normal;
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
}

/* ---------- Section Head ---------- */
.section-head {
  margin-bottom: 3rem;
}

.section-head--chapter {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  align-items: baseline;
  margin-bottom: 2.5rem;
}

.section-head__num {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--rose);
}

.section-head__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--maroon);
  letter-spacing: -0.01em;
}

.section-intro {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.65;
  color: rgba(101, 46, 51, 0.82);
  max-width: 50rem;
  margin-left: 25%;
  margin-bottom: 4rem;
  font-style: italic;
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 8rem var(--gutter) 4rem;
  overflow: hidden;
}

.hero__decor {
  position: absolute;
  top: 15%;
  right: -15%;
  width: 600px;
  height: 600px;
  pointer-events: none;
  opacity: 0.07;
}

.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--maroon);
}

.hero__ring--1 {
  inset: 0;
  animation: spin 50s linear infinite;
}

.hero__ring--2 {
  inset: 60px;
  border-style: dashed;
  animation: spin 40s linear infinite reverse;
}

.hero__ring--3 {
  inset: 140px;
  animation: spin 30s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--rose);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 600;
  line-height: 0.9;
  color: var(--maroon);
  letter-spacing: -0.03em;
}

.hero__title-apostrophe {
  color: var(--rose);
  font-style: italic;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  color: var(--slate);
  margin-top: 1rem;
  font-weight: 400;
}

.hero__keywords {
  position: absolute;
  bottom: 5rem;
  left: 0;
  right: 0;
  z-index: 2;
  overflow: hidden;
  padding: 0.5rem 0;
}

.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  animation: marquee 45s linear infinite;
}

.marquee--reverse .marquee__track {
  animation: marquee 55s linear infinite reverse;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.keyword {
  white-space: nowrap;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(172, 110, 115, 0.3);
  background: rgba(247, 207, 208, 0.25);
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rose);
  font-weight: 500;
  transition: all 0.3s ease;
}

.keyword:hover {
  background: var(--blush);
  border-color: var(--rose);
  color: var(--maroon);
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--slate);
  z-index: 3;
}

.hero__scroll-arrow {
  font-size: 1rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- What I Explore ---------- */
.explore {
  padding: 6rem 0;
}

.explore__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.explore__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.explore__card:nth-child(2) {
  margin-top: 3rem;
}

.explore__card:nth-child(3) {
  margin-top: 1.5rem;
}

.explore__img {
  margin-bottom: 0.5rem;
}

.explore__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.explore__num {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--rose);
}

.explore__tag {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--slate);
}

.explore__card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--maroon);
}

.explore__body {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--slate);
}

/* ---------- Arrow Link ---------- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--maroon);
  font-weight: 500;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
  position: relative;
}

.arrow-link__arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.arrow-link:hover {
  color: var(--rose);
}

.arrow-link:hover .arrow-link__arrow {
  transform: translateX(6px);
}

.arrow-link--ghost {
  color: var(--slate);
}

/* ---------- Placeholder ---------- */
.placeholder {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(101, 46, 51, 0.12);
  background: linear-gradient(135deg, rgba(247, 207, 208, 0.35), var(--cream-soft) 50%, rgba(98, 121, 153, 0.08));
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    rgba(101, 46, 51, 0.03) 12px,
    rgba(101, 46, 51, 0.03) 13px
  );
}

.placeholder::after {
  content: attr(data-label);
  position: relative;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(101, 46, 51, 0.5);
  text-align: center;
  padding: 0 1rem;
  z-index: 1;
}

.placeholder--photo {
  aspect-ratio: 4 / 3;
}

.placeholder--portrait {
  aspect-ratio: 3 / 4;
}

.placeholder--wide {
  aspect-ratio: 16 / 10;
}

.placeholder--video {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(98, 121, 153, 0.15), var(--cream-soft) 50%, rgba(172, 110, 115, 0.12));
}

.placeholder--video::after {
  content: '▶ ' attr(data-label);
}

.placeholder--collage {
  aspect-ratio: 5 / 4;
}

.placeholder:hover::after {
  color: var(--maroon);
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(101, 46, 51, 0.25), transparent);
  margin: 4rem 0;
  transform-origin: center;
}

.divider--soft {
  background: linear-gradient(90deg, transparent, rgba(101, 46, 51, 0.12), transparent);
  margin: 3rem 0;
}

/* ---------- Field & Cultural Memory ---------- */
.field {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent, rgba(250, 243, 226, 0.5) 30%, rgba(250, 243, 226, 0.5) 70%, transparent);
}

.field__project {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  margin-bottom: 1rem;
  align-items: start;
}

.field__project--reverse {
  grid-template-columns: 3fr 2fr;
}

.field__project--reverse .field__project-left {
  order: 2;
}

.field__project--reverse .field__project-right {
  order: 1;
}

.field__project-left {
  position: relative;
}

.field__numeral {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-style: italic;
  color: rgba(172, 110, 115, 0.35);
  line-height: 1;
  margin-bottom: 1rem;
}

.field__numeral--right {
  text-align: right;
}

.field__img-caption {
  margin-top: 0.75rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--slate);
}

.field__img-caption em {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  color: var(--maroon);
}

.field__project-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field__eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--rose);
}

.field__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--maroon);
}

.field__body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--slate);
  max-width: 38rem;
}

.field__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  margin-top: 0.5rem;
}

.field__notes {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--slate);
  padding-left: 1rem;
  border-left: 2px solid var(--blush);
}

.field__notes em {
  color: var(--maroon);
}

.field__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ---------- Stats ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--maroon);
  line-height: 1;
}

.stat__num--hash {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.stat__label {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--slate);
}

.stat__label--text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--maroon);
  line-height: 1.3;
}

.stat--sm .stat__num {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

/* ---------- Media & Engagement ---------- */
.media {
  padding: 6rem 0;
}

.media__buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0 5rem;
  justify-content: center;
}

.media__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 2.5rem;
  border: 1px solid rgba(101, 46, 51, 0.2);
  border-radius: 4px;
  background: rgba(248, 236, 214, 0.5);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 180px;
}

.media__btn:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -10px rgba(101, 46, 51, 0.3);
}

.media__btn-icon {
  width: 36px;
  height: 36px;
  color: var(--maroon);
  transition: color 0.3s ease;
}

.media__btn:hover .media__btn-icon {
  color: var(--blush);
}

.media__btn span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--maroon);
  font-weight: 500;
  transition: color 0.3s ease;
}

.media__btn:hover span {
  color: var(--cream);
}

.media__sub {
  margin-bottom: 5rem;
}

.media__sub-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(101, 46, 51, 0.12);
}

.media__sub-num {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--rose);
}

.media__sub-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 500;
  color: var(--maroon);
}

.media__sub-intro {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-style: italic;
  line-height: 1.65;
  color: rgba(101, 46, 51, 0.78);
  max-width: 44rem;
  margin-bottom: 3rem;
}

.media__project {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: start;
}

.media__project--reverse {
  grid-template-columns: 3fr 2fr;
}

.media__project--reverse .media__project-media {
  order: 2;
}

.media__project--reverse .media__project-text {
  order: 1;
}

.media__project--text-only {
  grid-template-columns: 1fr;
}

.media__project--text-only .media__project-text {
  max-width: 50rem;
  margin: 0 auto;
}

.media__project-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.media__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.media__photo-note {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--slate);
  font-style: italic;
}

.media__photo-note span {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  color: rgba(98, 121, 153, 0.8);
  margin-top: 0.2rem;
}

.media__project-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.media__project-eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--rose);
}

.media__project-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--maroon);
}

.media__project-title--quote {
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}

.media__project-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--slate);
}

.media__project-body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--slate);
}

.media__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.media__stats--inline {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step__num {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.step__divider {
  flex: 1;
  height: 1px;
  background: rgba(101, 46, 51, 0.15);
}

.step__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--maroon);
}

.step__sub {
  font-size: 0.78rem;
  color: var(--slate);
  font-style: italic;
}

.step__body {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- Writing & Research ---------- */
.writing {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent, rgba(250, 243, 226, 0.4) 30%, rgba(250, 243, 226, 0.4) 70%, transparent);
}

.writing__list {
  display: flex;
  flex-direction: column;
}

.writing__item {
  display: grid;
  grid-template-columns: 2fr 7fr 2fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(101, 46, 51, 0.12);
  align-items: start;
  transition: background-color 0.3s ease;
}

.writing__item:hover {
  background: rgba(247, 207, 208, 0.08);
}

.writing__item-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.writing__num {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--rose);
}

.writing__tag {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--slate);
}

.writing__note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--maroon);
  margin-top: 0.5rem;
}

.writing__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--maroon);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.writing__item:hover .writing__title {
  color: var(--rose);
}

.writing__text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--slate);
}

.writing__item .arrow-link {
  justify-self: end;
  align-self: start;
}

/* ---------- Drama & Film ---------- */
.drama {
  padding: 6rem 0;
}

.drama__project {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  margin-bottom: 1rem;
  align-items: start;
}

.drama__project--reverse {
  grid-template-columns: 2fr 3fr;
}

.drama__project--reverse .drama__project-text {
  order: 2;
}

.drama__project--reverse .drama__project-media {
  order: 1;
}

.drama__project-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drama__eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--rose);
}

.drama__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--maroon);
}

.drama__body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--slate);
}

.drama__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
  margin-top: 0.5rem;
}

.drama__project-media {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drama__trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.drama__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--maroon);
  color: var(--cream);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer__eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--blush);
  display: block;
  margin-bottom: 1rem;
}

.footer__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.footer__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(248, 236, 214, 0.75);
  max-width: 30rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__nav a {
  font-size: 0.82rem;
  color: rgba(248, 236, 214, 0.7);
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.footer__nav a:hover {
  color: var(--blush);
  padding-left: 0.5rem;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(248, 236, 214, 0.15);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(248, 236, 214, 0.5);
}

.footer__top {
  color: rgba(248, 236, 214, 0.7);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color 0.3s ease;
}

.footer__top:hover {
  color: var(--blush);
}

.footer__bg-text {
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  font-family: var(--font-serif);
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: rgba(248, 236, 214, 0.04);
  pointer-events: none;
  user-select: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .explore__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .explore__card:nth-child(2),
  .explore__card:nth-child(3) { margin-top: 0; }

  .field__project,
  .field__project--reverse,
  .media__project,
  .media__project--reverse,
  .drama__project,
  .drama__project--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .field__project--reverse .field__project-left,
  .media__project--reverse .media__project-media,
  .drama__project--reverse .drama__project-text {
    order: 1;
  }

  .field__project--reverse .field__project-right,
  .media__project--reverse .media__project-text,
  .drama__project--reverse .drama__project-media {
    order: 2;
  }

  .section-head--chapter {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .section-intro {
    margin-left: 0;
  }

  .writing__item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .writing__item .arrow-link {
    justify-self: start;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .media__stats,
  .media__stats--inline {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .drama__trio {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero { padding: 6rem 1.25rem 4rem; }
  .explore, .field, .media, .writing, .drama { padding: 4rem 0; }

  .field__stats,
  .media__stats,
  .drama__stats {
    grid-template-columns: 1fr;
  }

  .media__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .media__btn {
    min-width: auto;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }
}
