/* ============================================================
   sheri-flournoy-selph — main.css
   ============================================================ */

/* ── TOKENS ── */
:root {
  --bg:       #1e1e1c;
  --bg2:      #252523;
  --bg3:      #2c2c29;
  --bg4:      #323230;
  --cream:    #f0e8d8;
  --cream2:   #d8cdb8;
  --cream3:   #a89880;
  --cream4:   #6a5e4e;
  --moss:     #4a5240;
  --moss2:    #3a4232;
  --sage:     #7a8a6a;
  --sage2:    #9aaa88;
  --petal:    #c8a878;
  --petal2:   #e0c898;
  --petal3:   rgba(200,168,120,0.15);
  --border:   rgba(240,232,216,0.08);
  --border2:  rgba(240,232,216,0.15);
  --serif:    'Playfair Display', Georgia, serif;
  --sans:     'DM Sans', sans-serif;
  --mono:     'DM Mono', monospace;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--petal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: screen;
}
#cursor-ring {
  position: fixed;
  width: 28px; height: 28px;
  border: 1px solid rgba(200,168,120,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: all 0.12s ease;
}
body:hover #cursor { opacity: 1; }

/* ── BOTANICAL SVG OVERLAY ── */
#botanical-bg {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 3rem;
  background: linear-gradient(to bottom, rgba(30,30,28,0.97) 60%, transparent);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--petal);
  text-decoration: none;
  letter-spacing: 0.02em;
  cursor: none;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream3);
  text-decoration: none;
  transition: color 0.3s;
  cursor: none;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--petal);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }

/* ── PAGE TRANSITIONS ── */
.page { display: none; position: relative; z-index: 1; animation: revealPage 0.7s ease forwards; }
.page.active { display: block; }

@keyframes revealPage {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BIO PAGE
============================================================ */
.bio-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  position: relative;
  overflow: hidden;
}
.bio-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 3rem 5rem 3.5rem;
  position: relative;
}
.bio-left::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--petal3), transparent);
}
.bio-eyebrow {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage2);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.bio-eyebrow::before {
  content: '✦';
  font-size: 0.5rem;
  color: var(--petal);
}
.bio-name {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 0.3rem;
}
.bio-name-second {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.8vw, 5.2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--petal2);
  margin-bottom: 0;
  display: block;
  line-height: 1;
}
.bio-name-last {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.8vw, 5.2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--petal2);
  display: block;
  margin-top: -0.05em;
  margin-bottom: 2.5rem;
  line-height: 1;
}
.bio-tagline {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--cream3);
  line-height: 1.85;
  max-width: 440px;
  margin-bottom: 3rem;
  border-left: 1px solid var(--border2);
  padding-left: 1.5rem;
}
.bio-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--petal);
  border: 1px solid var(--petal);
  padding: 0.85rem 1.8rem;
  cursor: none;
  transition: all 0.3s;
}
.btn-primary:hover { background: var(--petal2); border-color: var(--petal2); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream3);
  background: transparent;
  border: 1px solid var(--border2);
  padding: 0.85rem 1.8rem;
  cursor: none;
  transition: all 0.3s;
}
.btn-secondary:hover { color: var(--cream); border-color: var(--cream3); }

/* Bio right panel */
.bio-right {
  position: relative;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bio-right canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bio-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}
.bio-portrait-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}
.bio-portrait-text p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--cream4);
}

/* About section */
.bio-about {
  padding: 7rem 3.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 5rem;
  max-width: 1100px;
  border-top: 1px solid var(--border);
}
.section-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage2);
  padding-top: 0.3rem;
}
.about-body {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--cream2);
  line-height: 1.9;
}
.about-body p + p { margin-top: 1.4rem; }
.about-body strong { color: var(--cream); font-weight: 400; }

/* Skills strip */
.skills-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.skill-cell {
  padding: 2.2rem 2rem;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.skill-cell:last-child { border-right: none; }
.skill-cell::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--petal3), transparent);
}
.skill-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.skill-sub {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--cream4);
}

/* ============================================================
   PORTFOLIO PAGE
============================================================ */
.portfolio-wrap {
  padding: 9rem 3.5rem 7rem;
  max-width: 1200px;
  margin: 0 auto;
}
.page-header {
  margin-bottom: 5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: end;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--cream);
}
.page-title em { font-style: italic; color: var(--petal2); }
.page-intro {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--cream3);
  line-height: 1.8;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
}
.project-card {
  background: var(--bg);
  overflow: hidden;
  cursor: none;
  transition: background 0.35s;
  position: relative;
}
.project-card:hover { background: var(--bg2); }
.project-thumb {
  height: 210px;
  position: relative;
  overflow: hidden;
  background: var(--bg3);
}
.project-thumb canvas { width: 100%; height: 100%; display: block; }
.project-num {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--cream4);
  letter-spacing: 0.15em;
}
.project-body { padding: 1.5rem 1.5rem 1rem; border-top: 1px solid var(--border); }
.project-tag {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage2);
  margin-bottom: 0.5rem;
}
.project-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.project-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--cream3);
  line-height: 1.7;
}
.project-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--border);
}
.project-year { font-family: var(--mono); font-size: 0.58rem; color: var(--cream4); }
.project-arrow { color: var(--petal); font-size: 0.9rem; transition: transform 0.3s; }
.project-card:hover .project-arrow { transform: translateX(5px); }

/* ============================================================
   BLOG PAGE
============================================================ */
.blog-wrap {
  padding: 9rem 3.5rem 7rem;
  max-width: 1200px;
  margin: 0 auto;
}
.newsletter-block {
  background: var(--bg2);
  border: 1px solid var(--border2);
  padding: 4rem 4rem 3.5rem;
  margin-bottom: 5rem;
  position: relative;
  overflow: hidden;
}
.newsletter-block::before {
  content: '❧';
  position: absolute;
  right: 3rem; bottom: 2rem;
  font-size: 5rem;
  color: var(--border);
  transform: rotate(-15deg);
  pointer-events: none;
}
.newsletter-block::after {
  content: '❧';
  position: absolute;
  left: 2rem; top: 2rem;
  font-size: 2.5rem;
  color: var(--border);
  transform: rotate(170deg) scaleX(-1);
  pointer-events: none;
}
.nl-eyebrow {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage2);
  margin-bottom: 1rem;
}
.nl-title {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}
.nl-title em { font-style: italic; color: var(--petal2); }
.nl-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--cream3);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.nl-form { display: flex; max-width: 460px; }
.nl-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-right: none;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.85rem 1.2rem;
  outline: none;
  letter-spacing: 0.05em;
  transition: border-color 0.3s;
}
.nl-input:focus { border-color: var(--petal); }
.nl-input::placeholder { color: var(--cream4); }
.nl-btn {
  background: var(--petal);
  border: 1px solid var(--petal);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  cursor: none;
  transition: all 0.3s;
  white-space: nowrap;
}
.nl-btn:hover { background: var(--petal2); border-color: var(--petal2); }
.nl-note {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--cream4);
  margin-top: 0.8rem;
  letter-spacing: 0.1em;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
}
.post-card {
  background: var(--bg);
  padding: 2rem;
  cursor: none;
  transition: background 0.3s;
  position: relative;
}
.post-card:hover { background: var(--bg2); }
.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--petal3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.post-card:hover::before { opacity: 1; }
.post-date { font-family: var(--mono); font-size: 0.58rem; color: var(--cream4); letter-spacing: 0.12em; margin-bottom: 1rem; }
.post-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; line-height: 1.35; color: var(--cream); margin-bottom: 0.7rem; }
.post-excerpt { font-size: 0.83rem; font-weight: 300; color: var(--cream3); line-height: 1.75; margin-bottom: 1.5rem; }
.post-read { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--petal); }

/* ============================================================
   MOTION PAGE
============================================================ */
.motion-wrap {
  padding: 9rem 3.5rem 7rem;
  max-width: 1400px;
  margin: 0 auto;
}
.motion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--border);
}
.motion-card { background: var(--bg); overflow: hidden; }
.motion-canvas-wrap { width: 100%; height: 380px; overflow: hidden; position: relative; }
.motion-canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.motion-label {
  padding: 1.4rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.motion-title { font-family: var(--serif); font-size: 1rem; color: var(--cream); }
.motion-meta { font-family: var(--mono); font-size: 0.58rem; color: var(--cream4); letter-spacing: 0.12em; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.footer-name { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--petal); }
.footer-copy { font-family: var(--mono); font-size: 0.58rem; color: var(--cream4); letter-spacing: 0.12em; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--cream4);
  text-decoration: none;
  cursor: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--petal); }

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
============================================================ */
@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { gap: 1.5rem; }

  .bio-hero { grid-template-columns: 1fr; min-height: auto; }
  .bio-right { height: 320px; }
  .bio-left { padding: 7rem 1.5rem 3rem; }

  .bio-about { grid-template-columns: 1fr; gap: 1.5rem; padding: 4rem 1.5rem; }

  .skills-strip { grid-template-columns: repeat(2, 1fr); }
  .skill-cell:nth-child(2) { border-right: none; }

  .portfolio-wrap { padding: 7rem 1.5rem 5rem; }
  .page-header { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }

  .blog-wrap { padding: 7rem 1.5rem 5rem; }
  .newsletter-block { padding: 2.5rem 1.5rem 2rem; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }

  .motion-wrap { padding: 7rem 1.5rem 5rem; }
  .motion-grid { grid-template-columns: 1fr; }
  .motion-canvas-wrap { height: 280px; }

  footer { flex-wrap: wrap; gap: 1rem; padding: 2rem 1.5rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 580px)
============================================================ */
@media (max-width: 580px) {
  #cursor, #cursor-ring { display: none; }
  body { cursor: auto; }
  .btn-primary, .btn-secondary,
  .nav-links a, .project-card,
  .post-card, .nl-btn { cursor: pointer; }

  nav { padding: 1rem 1.2rem; }
  .nav-logo { font-size: 0.85rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.58rem; letter-spacing: 0.12em; }

  .bio-left { padding: 6rem 1.2rem 2.5rem; }
  .bio-right { height: 460px; }
  .bio-tagline { font-size: 0.95rem; }
  .bio-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }

  .bio-about { padding: 3rem 1.2rem; }

  .skills-strip { grid-template-columns: 1fr; }
  .skill-cell { border-right: none; }

  .portfolio-wrap,
  .blog-wrap,
  .motion-wrap { padding: 6rem 1.2rem 4rem; }

  .page-title { font-size: clamp(2rem, 8vw, 3rem); }
  .page-header { margin-bottom: 2rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-thumb { height: 180px; }

  .newsletter-block { padding: 2rem 1.2rem 1.5rem; }
  .nl-title { font-size: 1.8rem; }
  .nl-form { flex-direction: column; max-width: 100%; }
  .nl-input { border-right: 1px solid var(--border2); border-bottom: none; }
  .nl-btn { border-top: none; text-align: center; padding: 0.85rem; }

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

  .motion-canvas-wrap { height: 220px; }

  footer { flex-direction: column; align-items: flex-start; gap: 0.8rem; padding: 1.5rem 1.2rem; }
  .footer-links { flex-wrap: wrap; gap: 1.2rem; }
}

/* ============================================================
   SUB-PAGES — project detail & post detail
============================================================ */
.subpage-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 8rem 3.5rem 7rem;
}

.subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream3);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 3.5rem;
  transition: color 0.3s;
}
.subpage-back:hover { color: var(--petal); }

.subpage-header {
  margin-bottom: 3rem;
  border-left: 2px solid var(--petal3);
  padding-left: 1.5rem;
}

.subpage-eyebrow {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage2);
  margin-bottom: 0.8rem;
}

.subpage-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--cream);
}

/* Project sub-page: full-width animated canvas */
.subpage-thumb-full {
  width: 100%;
  height: 320px;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  background: var(--bg3);
}
.subpage-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Body text for both project and post sub-pages */
.subpage-body {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--cream2);
  line-height: 1.95;
  margin-bottom: 4rem;
}
.subpage-body p + p { margin-top: 1.5rem; }
.subpage-body strong { color: var(--cream); font-weight: 400; }
.subpage-body h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--cream);
  margin: 2.5rem 0 1rem;
}
.subpage-body blockquote {
  border-left: 2px solid var(--petal3);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--cream3);
}

/* Post-specific: divider line */
.post-divider {
  height: 1px;
  background: linear-gradient(to right, var(--petal3), transparent);
  margin-bottom: 3rem;
}

/* Post body: slightly larger leading */
.post-body { font-size: 1.12rem; line-height: 2; }

/* In-post subscribe CTA */
.post-subscribe-cta {
  background: var(--bg2);
  border: 1px solid var(--border2);
  padding: 2.5rem 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.post-subscribe-cta::before {
  content: '❧';
  position: absolute;
  right: 1.5rem; bottom: 1rem;
  font-size: 3.5rem;
  color: var(--border);
  transform: rotate(-10deg);
  pointer-events: none;
}
.post-cta-label {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.3rem;
}
.post-cta-desc {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--cream3);
}

.subpage-nav {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ── RESPONSIVE sub-pages ── */
@media (max-width: 900px) {
  .subpage-wrap { padding: 7rem 1.5rem 5rem; }
  .subpage-thumb-full { height: 220px; }
  .post-subscribe-cta { padding: 2rem 1.5rem; }
}
@media (max-width: 580px) {
  .subpage-wrap { padding: 6rem 1.2rem 4rem; }
  .subpage-title { font-size: clamp(1.6rem, 7vw, 2.5rem); }
  .subpage-thumb-full { height: 180px; }
  .post-subscribe-cta { padding: 1.5rem 1.2rem; }
}
