/* ============================================
   RUPAL VYAS — BOOK EDITOR PORTFOLIO
   Editorial Warmth × Literary Calm
   ============================================ */

:root {
  /* Colors */
  --bg: #fbf9f4;
  --bg-warm: #f5efe3;
  --surface: #ede8db;
  --cream: #4a3728;
  --cream-dim: #6b5544;
  --gold: #a06a3c;
  --gold-dim: #b8894e;
  --text: #5e4e42;
  --text-dim: #887766;
  --accent: #a06a3c;
  --border: rgba(90, 70, 55, 0.08);
  --border-light: rgba(90, 70, 55, 0.14);

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Garamond, serif;

  /* 8px grid spacing */
  --sp-1: 0.5rem;   /* 8px */
  --sp-2: 1rem;     /* 16px */
  --sp-3: 1.5rem;   /* 24px */
  --sp-4: 2rem;     /* 32px */
  --sp-5: 2.5rem;   /* 40px */
  --sp-6: 3rem;     /* 48px */
  --sp-8: 4rem;     /* 64px */
  --sp-10: 5rem;    /* 80px */
  --sp-12: 6rem;    /* 96px */
  --sp-16: 8rem;    /* 128px */

  /* Type scale (8px aligned) */
  --text-xs: 0.875rem;   /* 14px — minimum accessible */
  --text-sm: 1rem;       /* 16px */
  --text-base: 1.125rem; /* 18px */
  --text-lg: 1.25rem;    /* 20px */
  --text-xl: 1.5rem;     /* 24px */

  /* Easings */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

img {
  display: block;
  max-width: 100%;
}

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

/* ---- Custom Cursor ---- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out),
              height 0.35s var(--ease-out),
              background 0.35s var(--ease-out),
              opacity 0.35s var(--ease-out);
}

.cursor-dot.cursor-hover {
  width: 36px;
  height: 36px;
  background: var(--gold);
  opacity: 0.18;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-6);
  transition: all 0.6s var(--ease-out);
}

.nav-scrolled {
  padding: var(--sp-2) var(--sp-6);
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--cream);
  transition: opacity 0.3s;
}

.nav-logo:hover {
  opacity: 0.65;
}

.nav-links {
  display: flex;
  gap: var(--sp-5);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.5s var(--ease-out);
}

.nav-link:hover {
  color: var(--cream);
}

.nav-cta {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--bg);
  background: var(--cream);
  padding: 8px 20px;
  border-radius: 100px;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.nav-cta:hover {
  background: var(--gold);
}

.nav-link:hover::after {
  width: 100%;
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--sp-12) var(--sp-6) var(--sp-6);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(155, 101, 53, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(155, 101, 53, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-split {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.hero-left {
  text-align: left;
}

.hero-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
  animation: fadeUp 1s var(--ease-out) 0.2s both;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  margin-bottom: var(--sp-5);
}

.hero-line {
  display: block;
  overflow: hidden;
  padding: 0.05em 0 0.25em;
  line-height: 1.15;
}

.hero-line:first-child .hero-word {
  font-size: clamp(3.5rem, 8vw, 8rem);
  color: var(--cream);
  animation: slideUp 1.2s var(--ease-out) 0.4s both;
}

.hero-line:last-child .hero-word {
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-style: italic;
  color: var(--gold);
  animation: slideUp 1.2s var(--ease-out) 0.6s both;
}

.hero-word {
  display: inline-block;
}

.hero-tagline {
  animation: fadeUp 1s var(--ease-out) 1s both;
}

.hero-rule {
  width: var(--sp-8);
  height: 1px;
  background: var(--gold-dim);
  margin: 0 0 var(--sp-3);
}

.hero-tagline p {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--cream-dim);
  letter-spacing: 0.02em;
  line-height: 1.7;
}

/* ---- Hero Portrait ---- */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 1.2s var(--ease-out) 0.6s both;
}

.hero-portrait {
  position: relative;
  width: 420px;
  height: 520px;
}

.hero-portrait::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid var(--gold-dim);
  border-radius: 300px 300px 8px 8px;
  opacity: 0.35;
}

.hero-portrait::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(90, 70, 55, 0.1) 0%, transparent 70%);
  filter: blur(8px);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 300px 300px 8px 8px;
  filter: saturate(0.85) brightness(0.97);
  transition: filter 0.8s var(--ease-out);
}

.hero-portrait:hover img {
  filter: saturate(1) brightness(1);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--sp-4);
  right: var(--sp-5);
  left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  animation: fadeUp 1s var(--ease-out) 1.4s both;
  transition: opacity 0.4s;
}

.scroll-indicator:hover {
  opacity: 0.75;
}

.scroll-indicator span {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.scroll-line {
  width: 24px;
  height: 1px;
  background: linear-gradient(to right, var(--gold-dim), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

/* ---- Shared Section Grid (20/80 split) ---- */
.section-grid,
.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-8);
}

/* ---- About Section ---- */
.about {
  padding: var(--sp-16) var(--sp-6);
  border-top: 1px solid var(--border);
}

.about-label {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  position: sticky;
  top: var(--sp-16);
  align-self: start;
}

.section-number {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--gold);
  letter-spacing: 0.1em;
}

.section-name {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--cream);
  margin-bottom: var(--sp-6);
}

.about-heading em {
  font-style: italic;
  color: var(--gold);
}

.about-text {
  margin-bottom: var(--sp-8);
}

.about-text p {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--cream-dim);
  line-height: 1.7;
  margin-bottom: var(--sp-3);
  max-width: 640px;
}

.about-stats {
  display: flex;
  gap: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Narrative Support ---- */
.narrative-support {
  padding: var(--sp-16) var(--sp-6);
  border-top: 1px solid var(--border);
  background: var(--bg-warm);
  text-align: center;
}

.narrative-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  margin-bottom: var(--sp-8);
}

.narrative-cards {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border);
}

.narrative-card {
  background: var(--bg-warm);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  transition: background 0.5s var(--ease-out);
}

.narrative-card:hover {
  background: var(--bg);
}

.narrative-number {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.narrative-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}

.narrative-card p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ---- Work / Portfolio Section ---- */
.work {
  padding: var(--sp-16) var(--sp-6);
  border-top: 1px solid var(--border);
}

.filter-bar {
  display: flex;
  gap: var(--sp-1);
  flex-wrap: wrap;
  margin-top: var(--sp-3);
}

.filter-btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  background: transparent;
  color: var(--text-dim);
  cursor: none;
  transition: all 0.4s var(--ease-out);
}

.filter-btn:hover {
  border-color: var(--cream-dim);
  color: var(--cream);
}

.filter-btn.active {
  background: var(--cream);
  color: var(--bg);
  border-color: var(--cream);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-8) var(--sp-5);
}

.book-card {
  cursor: none;
}

.book-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  border-radius: 4px;
  background: var(--surface);
  margin-bottom: var(--sp-2);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out),
              filter 0.8s var(--ease-out);
  filter: saturate(0.85) brightness(0.95);
}

.book-card:hover .book-cover img {
  transform: scale(1.05);
  filter: saturate(1) brightness(1);
}

.book-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 22, 15, 0.72) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-2);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.book-card:hover .book-overlay {
  opacity: 1;
}

.book-genre {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(248, 243, 234, 0.88);
  padding: var(--sp-1) var(--sp-2);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.book-info {
  padding-top: 0.1rem;
}

.book-info h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: var(--sp-1);
}

.book-info .book-author {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--cream-dim);
  font-weight: 500;
  margin-bottom: var(--sp-1);
}

.book-info .book-publisher {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--gold-dim);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
}

.book-card.fade-in {
  animation: fadeUp 0.6s var(--ease-out) both;
}

/* ---- Testimonial ---- */
.testimonial {
  padding: var(--sp-16) var(--sp-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  background: var(--bg-warm);
}

.testimonial-content {
  max-width: 800px;
  text-align: center;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: var(--sp-12);
  color: var(--gold);
  line-height: 0.5;
  margin-bottom: var(--sp-3);
  opacity: 0.45;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: var(--sp-5);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.author-name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.05em;
}

.author-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-dim);
  font-style: italic;
}

/* ---- Booking Section ---- */
.booking {
  padding: var(--sp-16) var(--sp-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  background: var(--bg-warm);
}

.booking-content {
  max-width: 704px;
  text-align: center;
}

.booking-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--cream);
  margin-bottom: var(--sp-3);
}

.booking-heading em {
  font-style: italic;
  color: var(--gold);
}

.booking-text {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--cream-dim);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}

.booking-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--cream);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 100px;
  transition: all 0.4s var(--ease-out);
  cursor: none;
}

.booking-cta:hover {
  background: var(--gold);
}

.booking-logo {
  height: var(--sp-4);
  width: auto;
  margin: 0 auto var(--sp-5);
  opacity: 1;
}

.booking-arrow {
  transition: transform 0.4s var(--ease-out);
}

.booking-cta:hover .booking-arrow {
  transform: translateX(4px);
}

/* ---- Marquee Section ---- */
.marquee-section {
  padding: var(--sp-12) 0 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.marquee-label {
  padding: 0 var(--sp-6);
  margin-bottom: var(--sp-6);
}

.marquee-track {
  overflow: hidden;
  padding: var(--sp-2) 0;
  position: relative;
}

.marquee-track::before,
.marquee-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-track::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.marquee-track::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.marquee-inner {
  display: flex;
  gap: var(--sp-3);
  width: max-content;
}

.marquee-row-1 .marquee-inner {
  animation: marqueeLeft 60s linear infinite;
}

.marquee-row-2 .marquee-inner {
  animation: marqueeRight 55s linear infinite;
}

.marquee-item {
  flex-shrink: 0;
  width: 180px;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: none;
  transition: transform 0.5s var(--ease-out);
}

.marquee-item:hover {
  transform: scale(1.05);
}

.marquee-item img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.88);
  transition: filter 0.5s var(--ease-out);
}

.marquee-item:hover img {
  filter: saturate(1) brightness(1);
}

.marquee-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-6) var(--sp-2) var(--sp-2);
  background: linear-gradient(to top, rgba(30, 22, 15, 0.88), transparent);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 500;
  color: #f0ebe0;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s var(--ease-out);
}

.marquee-item:hover span {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Contact Section ---- */
.contact {
  padding: var(--sp-16) var(--sp-6);
  border-top: 1px solid var(--border);
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--cream);
  margin-bottom: var(--sp-6);
}

.contact-heading em {
  font-style: italic;
  color: var(--gold);
}

.contact-links {
  display: flex;
  flex-direction: column;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.4s var(--ease-out);
  cursor: none;
}

.contact-link:first-child {
  border-top: 1px solid var(--border);
}

.contact-link:hover {
  padding-left: var(--sp-2);
}

.contact-link:hover .contact-link-value {
  color: var(--cream);
}

.contact-link:hover .contact-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold);
}

.contact-link-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 90px;
}

.contact-link-value {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--cream-dim);
  transition: color 0.4s var(--ease-out);
  flex: 1;
}

.contact-arrow {
  font-size: var(--text-lg);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s var(--ease-out);
  color: var(--text-dim);
}

/* ---- Footer ---- */
.footer {
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--cream);
}

.footer-divider {
  color: var(--text-dim);
}

.footer-role {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-dim);
}

.footer-year {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-dim);
}

/* ---- Publishers Section ---- */
.publishers {
  padding: var(--sp-16) var(--sp-6);
  border-top: 1px solid var(--border);
}

.publishers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-5) var(--sp-6);
}

.publisher-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--sp-8);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.publisher-item:hover {
  opacity: 0.65;
  transform: scale(1.05);
}

.publisher-item img {
  max-height: 52px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out),
              transform 0.8s var(--ease-out);
}

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

/* ---- Animations ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(110%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: left;
  }
  50% {
    opacity: 0.3;
    transform: scaleX(0.5);
    transform-origin: left;
  }
}

@keyframes marqueeLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* ---- Mobile Nav Toggle (hamburger) ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: all 0.35s var(--ease-out);
  transform-origin: center;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

body.nav-menu-open {
  overflow: hidden;
}

/* ---- Responsive ---- */

/* Tablet */
@media (max-width: 1024px) {
  .hero-split {
    gap: var(--sp-6);
  }

  .hero-portrait {
    width: 340px;
    height: 420px;
  }

  .section-grid,
  .about-grid {
    grid-template-columns: 180px 1fr;
    gap: var(--sp-5);
  }

  .publishers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* -- Nav -- */
  .nav {
    padding: var(--sp-3) var(--sp-3);
  }

  .nav-scrolled {
    padding: var(--sp-1) var(--sp-3);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(251, 249, 244, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--sp-5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
    z-index: 100;
  }

  .nav-links.nav-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: var(--text-xl);
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--cream);
    letter-spacing: 0.06em;
  }

  /* -- Section Grid -- */
  .section-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }

  .about-label {
    position: static;
    flex-direction: row;
    gap: var(--sp-2);
    align-items: center;
  }

  .filter-bar {
    margin-top: 0;
  }

  /* -- Hero -- */
  .hero {
    padding: var(--sp-10) var(--sp-3) var(--sp-6);
    min-height: 100svh;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    text-align: center;
  }

  .hero-left {
    text-align: center;
    order: 2;
  }

  .hero-right {
    order: 1;
  }

  .hero-rule {
    margin: 0 auto var(--sp-3);
  }

  .hero-portrait {
    width: 240px;
    height: 300px;
  }

  .hero-label {
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    margin-bottom: var(--sp-3);
  }

  .hero-tagline p {
    font-size: var(--text-base);
  }

  .scroll-indicator {
    bottom: var(--sp-3);
    right: var(--sp-3);
  }

  /* -- About -- */
  .about {
    padding: var(--sp-10) var(--sp-3);
  }

  .about-text p {
    font-size: var(--text-sm);
  }

  .about-stats {
    gap: var(--sp-5);
    flex-wrap: wrap;
  }

  /* -- Publishers -- */
  .publishers {
    padding: var(--sp-10) var(--sp-3);
  }

  .publishers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3) var(--sp-4);
  }

  .publisher-item {
    height: 50px;
  }

  .publisher-item img {
    max-height: 42px;
    max-width: 120px;
  }

  /* -- Narrative Support -- */
  .narrative-support {
    padding: var(--sp-10) var(--sp-3);
  }

  .narrative-cards {
    grid-template-columns: 1fr;
  }

  .narrative-card {
    padding: var(--sp-4) var(--sp-3);
  }

  /* -- Work / Books -- */
  .work {
    padding: var(--sp-10) var(--sp-3);
  }

  .filter-bar {
    gap: var(--sp-1);
  }

  .filter-btn {
    font-size: var(--text-xs);
    padding: var(--sp-1) var(--sp-2);
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4) var(--sp-3);
  }

  .book-info h4 {
    font-size: var(--text-sm);
  }

  /* -- Testimonial -- */
  .testimonial {
    padding: var(--sp-10) var(--sp-3);
  }

  .quote-mark {
    font-size: var(--sp-8);
  }

  /* -- Marquee -- */
  .marquee-section {
    padding: var(--sp-8) 0 0;
  }

  .marquee-label {
    padding: 0 var(--sp-3);
    margin-bottom: var(--sp-4);
  }

  .marquee-item {
    width: 140px;
  }

  .marquee-track::before,
  .marquee-track::after {
    width: var(--sp-5);
  }

  /* -- Booking -- */
  .booking {
    padding: var(--sp-10) var(--sp-3);
  }

  .booking-cta {
    cursor: auto;
  }

  /* -- Contact -- */
  .contact {
    padding: var(--sp-10) var(--sp-3);
  }

  .contact-link {
    padding: var(--sp-3) 0;
    flex-wrap: wrap;
    gap: var(--sp-1) var(--sp-2);
  }

  .contact-link-label {
    min-width: 70px;
    font-size: var(--text-xs);
  }

  .contact-link-value {
    font-size: var(--text-sm);
  }

  .contact-arrow {
    display: none;
  }

  /* -- Footer -- */
  .footer {
    padding: var(--sp-4) var(--sp-3);
    flex-direction: column;
    gap: var(--sp-1);
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-divider {
    display: none;
  }

  /* -- Cursor: disable on touch -- */
  .cursor-dot {
    display: none;
  }

  body {
    cursor: auto;
  }

  .filter-btn,
  .book-card,
  .contact-link,
  .marquee-item {
    cursor: auto;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-portrait {
    width: 200px;
    height: 260px;
  }

  .hero-line:first-child .hero-word,
  .hero-line:last-child .hero-word {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }

  .hero-tagline p {
    font-size: var(--text-sm);
  }

  .about-heading,
  .contact-heading {
    font-size: var(--text-xl);
  }

  .books-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3) var(--sp-1);
  }

  .book-cover {
    margin-bottom: var(--sp-1);
  }

  .book-info h4 {
    font-size: var(--text-xs);
  }

  .publishers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
  }

  .testimonial blockquote {
    font-size: var(--text-lg);
  }

  .marquee-item {
    width: 110px;
  }

  .contact-link-value {
    font-size: var(--text-xs);
  }

  .nav-link {
    font-size: var(--text-xl);
  }
}
