/* Mercedes Tucker — Workflow B hybrid.
   Hero loop full-bleed, lower sections on solid cosmic navy.
   Editorial scroll: massive Cormorant, hot pink accent, side aligned blocks.
*/

:root {
  --bg: #0a0c22;          /* cosmic navy */
  --bg-deeper: #06081a;   /* near black for scroll */
  --bg-deepest: #04061a;
  --ink: #f3ede2;         /* cream */
  --ink-soft: rgba(243, 237, 226, 0.72);
  --ink-faint: rgba(243, 237, 226, 0.45);
  --pink: #ff5fa8;        /* hot magenta pink */
  --pink-bright: #ff7fb8;
  --pink-soft: rgba(255, 95, 168, 0.18);
  --amber: #f4c47a;
  --line: rgba(243, 237, 226, 0.12);

  --display: 'Cormorant Garamond', Georgia, serif;
  --ui: 'Jost', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-deeper);
  color: var(--ink);
  font-family: var(--ui);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2.4rem;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.logo {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 2px 26px rgba(0,0,0,0.55);
}

.nav {
  display: flex;
  gap: 2rem;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 2px 26px rgba(0,0,0,0.55);
  transition: color 0.25s ease;
}
.nav a:hover { color: var(--pink); }

/* Hamburger toggle — hidden on desktop, shown on mobile (replaces the logo
   in the top-left corner). */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 60;
}
.menu-toggle .bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease;
}
.site-header.open .menu-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .menu-toggle .bar:nth-child(2) { opacity: 0; }
.site-header.open .menu-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   PANEL / HERO
   ============================================================ */
.panel {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero {
  min-height: 100svh;
  padding: 0 6vw;
  text-align: center;
}

.hero .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #06081a url('../hero-poster.jpg') center/cover no-repeat;
}
.hero .bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 58% at 50% 50%, rgba(8, 10, 30, 0.52) 0%, rgba(8, 10, 30, 0.24) 40%, transparent 70%),
    /* Strong fade-to-navy at the bottom for a seamless hand-off to the lower sections */
    linear-gradient(180deg,
      rgba(6, 8, 26, 0.55) 0%,
      transparent 25%,
      transparent 55%,
      rgba(6, 8, 26, 0.6) 80%,
      var(--bg-deeper) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.hero-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: var(--ink);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 2px 26px rgba(0,0,0,0.55);
  margin-bottom: 0.2rem;
}

.kicker {
  font-family: var(--ui);
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 2px 26px rgba(0,0,0,0.55);
}

.display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.2vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 4px 36px rgba(0,0,0,0.6);
}
.display em {
  font-style: italic;
  color: var(--pink);
}

.cta {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.9rem 2.2rem;
  border: 1px solid rgba(243, 237, 226, 0.55);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  background: rgba(10, 12, 34, 0.18);
  backdrop-filter: blur(2px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.cta:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

/* ============================================================
   LOWER — solid cosmic navy
   ============================================================ */
.lower {
  position: relative;
  background: var(--bg-deeper);
  /* Continue the fade from the hero into the first section so there's
     no seam between the video bg and the solid bg below. */
}
.lower::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 24vh;
  background: linear-gradient(180deg, var(--bg-deeper) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.section {
  position: relative;
  padding: clamp(7rem, 13vw, 12rem) 6vw;
  overflow: hidden;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.container.narrow { max-width: 920px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

/* Ambient pink/violet glows so the lower sections still feel cosmic
   without playing a video underneath. */
.ambient {
  position: absolute;
  width: 80vw;
  height: 80vw;
  max-width: 1100px;
  max-height: 1100px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}
.ambient-left {
  background: radial-gradient(circle, rgba(255, 95, 168, 0.18) 0%, rgba(100, 30, 140, 0.12) 35%, transparent 70%);
  left: -25vw;
  top: -10vw;
}
.ambient-right {
  background: radial-gradient(circle, rgba(255, 95, 168, 0.16) 0%, rgba(80, 30, 130, 0.12) 35%, transparent 70%);
  right: -25vw;
  bottom: -10vw;
}

/* ============================================================
   TYPOGRAPHY — section heads
   ============================================================ */
.eyebrow {
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--pink);
}

.section-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.section-h em {
  font-style: italic;
  color: var(--pink);
}

.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }

.lede {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  margin: 2rem 0 1.6rem;
  max-width: 32ch;
}

.body {
  font-family: var(--ui);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 44ch;
}

/* ============================================================
   ABOUT
   ============================================================ */
/* Headshot framed in the right column above the client list. Soft rounded
   frame + pink/blue glow so the gray studio backdrop melts into the navy. */
.portrait {
  margin: 0 0 2.4rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(243, 237, 226, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(255, 95, 168, 0.10),
              0 18px 70px -20px rgba(255, 95, 168, 0.35);
  background: linear-gradient(160deg, var(--pink-soft), rgba(75, 95, 224, 0.10));
}
.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
}

.about .col-right .eyebrow { margin-bottom: 1.6rem; }

.brand-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.brand-list li {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  letter-spacing: -0.005em;
  line-height: 1;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  position: relative;
  transition: color 0.25s ease, padding-left 0.3s ease;
}
.brand-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px; height: 6px;
  background: var(--pink);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
}
.brand-list li:hover {
  color: var(--pink);
  padding-left: 1.6rem;
}
.brand-list li:hover::before { opacity: 1; }

/* ============================================================
   WORK — three crafts
   ============================================================ */
.crafts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.craft {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.craft::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 36px; height: 1px;
  background: var(--pink);
}
.craft-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--pink);
  letter-spacing: 0.02em;
}
.craft-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.05;
  color: var(--ink);
}
.craft-body {
  font-family: var(--ui);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ============================================================
   QUOTE
   ============================================================ */
.quote-panel {
  text-align: center;
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}
.quote-mark {
  font-family: var(--display);
  font-style: italic;
  font-size: 8rem;
  line-height: 0.5;
  color: var(--pink);
  opacity: 0.45;
  margin-bottom: 1.6rem;
  display: block;
}
.quote {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.2;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
}
.quote em {
  font-style: italic;
  color: var(--pink);
}
.cite {
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2.4rem;
}

/* ============================================================
   WRITING — featured posts
   ============================================================ */
.posts {
  display: flex;
  flex-direction: column;
}
.post {
  padding: clamp(2.4rem, 4vw, 3.2rem) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: baseline;
  transition: background 0.3s ease;
}
.post:last-of-type { border-bottom: 1px solid var(--line); }

.post-meta {
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.post-num {
  color: var(--pink);
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  margin-right: 0.4rem;
  letter-spacing: 0;
  text-transform: none;
}
.post-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  color: var(--ink);
  grid-column: 2;
}
.post-excerpt {
  font-family: var(--ui);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
  grid-column: 2;
  max-width: 56ch;
}
.post-link {
  font-family: var(--ui);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  text-decoration: none;
  align-self: center;
  grid-column: 3;
  grid-row: 1 / span 3;
  white-space: nowrap;
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}
.post-link:hover {
  color: var(--pink-bright);
  letter-spacing: 0.22em;
}

.more-link {
  display: inline-block;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--ui);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ink-faint);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.more-link:hover {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.project-feature {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) 0;
  max-width: 64ch;
  position: relative;
}
.project-feature::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 36px; height: 1px;
  background: var(--pink);
}
.project-meta {
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1.6rem;
}
.project-body {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 2rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-block { padding-top: 0.4rem; }
.contact-label {
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 1.6rem 0 0.5rem;
}
.contact-label:first-child { margin-top: 0; }

.contact-line {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 0.25s ease;
}
.contact-line:hover { color: var(--pink); }

.social-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-top: 0.4rem;
}
.social-list a {
  font-family: var(--ui);
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.social-list a:hover {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 6vw;
  background: var(--bg-deepest);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ui);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.foot-name {
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
}
.foot-mark { color: var(--ink-faint); }

/* ============================================================
   Reveal defaults
   ============================================================ */
.reveal, .rev { opacity: 1; }

/* ============================================================
   Reduced motion fallback
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero .bg video { display: none; }
  .hero .bg {
    background: #0a0c22 url('../hero-poster.jpg') center/cover no-repeat;
  }
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: clamp(2.5rem, 7vw, 4rem); }
  .crafts { grid-template-columns: 1fr; gap: 2.4rem; }
  .post {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .post-h, .post-excerpt { grid-column: 1; }
  .post-link {
    grid-column: 1;
    grid-row: auto;
    align-self: flex-start;
    margin-top: 0.6rem;
  }
}

@media (max-width: 720px) {
  .site-header { padding: 1rem 1.2rem; }

  /* Swap the wordmark for a hamburger in the top-left corner. */
  .logo { display: none; }
  .menu-toggle { display: inline-flex; }

  /* Nav becomes a full-width panel that drops down from the top. Solid
     cosmic navy (no glass), editorial serif links, slide-in on open. */
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5rem 1.6rem 1.8rem;
    background: var(--bg-deepest);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 60px rgba(0,0,0,0.55);
    font-family: var(--display);
    font-size: 1.7rem;
    letter-spacing: 0.01em;
    text-transform: none;
    transform: translateY(-105%);
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
    will-change: transform;
  }
  .site-header.open .nav { transform: translateY(0); }
  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    text-shadow: none;
  }
  .nav a:last-child { border-bottom: none; }

  .hero { padding: 0 5vw; }
  .display { font-size: clamp(2.2rem, 11vw, 4rem); }

  /* The loop is 16:9 with the rocket in the lower-left third. On portrait
     phones, shift the focal point left so the rocket stays in frame. Earth
     in the upper right crops instead — acceptable trade, rocket is the
     hero. Also nudge the headline block up so it sits above the rocket
     rather than overlapping it. */
  .hero .bg video { object-position: 28% 35%; }
  .hero { align-items: flex-start; padding-top: 18vh; }
}

/* For tall portrait phones with notch / dynamic island, give a touch more
   top space so the kicker clears the header. */
@media (max-width: 480px) {
  .hero { padding-top: 16vh; }
  .hero .bg video { object-position: 26% 30%; }
}

  .section { padding: clamp(5rem, 14vw, 8rem) 5vw; }
  .section-h { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .quote { font-size: clamp(1.6rem, 7vw, 2.4rem); }

  .footer-row {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }
}
