/* ==========================================================================
   BrandMotion v2 — Design Tokens
   ========================================================================== */

:root {
  --plum: #2e1638;
  --plum-soft: #45254f;
  --plum-deep: #190d1f;
  --cream: #fbf3e7;
  --cream-dim: #f0e4d2;
  --coral: #ff3366;
  --coral-dim: #e0184b;
  --gold: #ffc300;
  --teal: #2ee6c9;
  --teal-dim: #17b8a0;
  --ink: #221226;
  --stone: #7c6c83;
  --stone-light: #baa9c2;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --font-ticker: "Space Grotesk", "Sora", sans-serif;

  --container: 1240px;
  --edge: clamp(20px, 5vw, 64px);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 8px;
  background: var(--gold);
  display: inline-block;
  border-radius: 1px;
  transform: rotate(-3deg);
}

.section-ink .eyebrow { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 600;
}

p { color: var(--stone); max-width: 62ch; }

/* Doodle underline — signature accent under key words */
.doodle {
  position: relative;
  white-space: nowrap;
}

.doodle svg {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.3em;
  overflow: visible;
}

.doodle svg path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 1.1s ease forwards 0.3s;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .doodle svg path { animation: none; stroke-dashoffset: 0; } }

/* Logo mark */
.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-mark:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }

/* Blob background shapes */
.blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(0px);
}

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

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-mark .dot {
  width: 10px;
  height: 10px;
  background: var(--coral);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav-links a { position: relative; padding: 4px 0; }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  background: var(--teal);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--ink);
  color: var(--cream);
  padding: 11px 22px;
  border-radius: 30px;
  transition: transform 0.2s ease, background 0.2s ease;
  display: inline-block;
  border: 2px solid var(--ink);
}

.nav-cta:hover { background: var(--coral); border-color: var(--coral); transform: rotate(-2deg); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 66px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px var(--edge) 32px;
    border-bottom: 2px solid var(--ink);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    gap: 20px;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 15px 28px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 2px solid var(--ink);
}

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--coral); border-color: var(--coral); color: var(--white); transform: rotate(-1.5deg); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral-dim); transform: rotate(1.5deg); }

.section-ink .btn-ghost { color: var(--cream); border-color: var(--cream); }
.section-ink .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--plum);
  color: var(--cream);
  padding: clamp(64px, 11vh, 110px) 0 clamp(56px, 9vh, 96px);
  overflow: hidden;
}

.hero .blob-a {
  top: -10%; right: -8%; width: 46%; aspect-ratio: 1;
  background: radial-gradient(circle at 35% 35%, var(--coral), transparent 70%);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  opacity: 0.5;
}

.hero .blob-b {
  bottom: -18%; left: -6%; width: 34%; aspect-ratio: 1;
  background: radial-gradient(circle at 40% 40%, var(--gold), transparent 70%);
  border-radius: 58% 42% 37% 63% / 52% 40% 60% 48%;
  opacity: 0.35;
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 28px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-badge:hover { transform: rotate(-2deg) scale(1.03); background: var(--teal); }

.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255,61,113,0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,61,113,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255,61,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,61,113,0); }
}

@media (prefers-reduced-motion: reduce) { .hero-badge .pulse { animation: none; } }

.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.4rem);
  max-width: 15ch;
  color: var(--cream);
}

.hero-sub {
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 54ch;
  color: var(--stone-light);
}

.hero-actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--coral); border-color: var(--coral); color: var(--white); }
.hero .btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.hero .btn-ghost, .about-hero .btn-ghost, .contact-hero .btn-ghost { color: var(--cream); border-color: var(--cream); }
.hero .btn-ghost:hover, .about-hero .btn-ghost:hover, .contact-hero .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee-section {
  background: var(--cream-dim);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 26px 0;
  overflow: hidden;
}

.marquee-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone);
  padding: 0 var(--edge) 16px;
}

.marquee-track { display: flex; width: max-content; animation: scroll 30s linear infinite; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marquee-item {
  font-family: var(--font-ticker);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding: 0 clamp(24px, 3.5vw, 48px);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 48px);
  transition: color 0.2s ease, transform 0.2s ease;
}

.marquee-item:hover {
  color: var(--coral);
  transform: scale(1.06);
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item::after { content: "✳"; color: var(--gold); font-style: normal; font-size: 0.8em; transition: transform 0.3s ease; }
.marquee-item:hover::after { transform: rotate(90deg); color: var(--coral); }

/* ==========================================================================
   Sections
   ========================================================================== */

section { position: relative; padding: clamp(64px, 10vh, 110px) 0; }

.section-ink { background: var(--plum); color: var(--cream); }
.section-ink p { color: var(--stone-light); }
.section-ink h2, .section-ink h3, .section-ink h4 { color: var(--cream); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 4.3vw, 3.2rem); }

/* Available-for-work banner */
.avail-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--gold);
  color: var(--ink);
  padding: 16px 24px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.avail-banner strong { font-family: var(--font-body); font-weight: 700; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 36px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.service-card:nth-child(2) { transform: rotate(-0.6deg); }
.service-card:nth-child(3) { transform: rotate(0.6deg); }

.service-card:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 8px 8px 0 var(--ink);
}

.service-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--plum);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease;
}

.service-icon svg { width: 22px; height: 22px; stroke: var(--cream); }
.service-card:hover .service-icon { background: var(--coral); transform: scale(1.12) rotate(-8deg); }

.service-num {
  position: absolute;
  top: 30px; right: 28px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--stone);
}

.service-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.service-card p { font-size: 0.95rem; margin-bottom: 18px; }

.service-list { list-style: none; font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.service-list li::before { content: "→ "; color: var(--coral); }

/* Case-file cards (signature element) */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 44px);
}

@media (max-width: 820px) { .work-grid { grid-template-columns: 1fr; } }

.case-file {
  background: var(--cream);
  color: var(--ink);
  border-radius: 4px;
  padding: 28px 28px 30px;
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
  position: relative;
}

.case-file:nth-child(odd) { transform: rotate(-1.4deg); }
.case-file:nth-child(even) { transform: rotate(1.4deg); }

.case-file:hover { transform: rotate(0deg) translateY(-8px) scale(1.02); box-shadow: 0 26px 46px rgba(0,0,0,0.34); }
.case-file { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease; }

.case-tape { transition: transform 0.3s ease; }
.case-file:hover .case-tape { transform: rotate(2deg) translateY(-2px); }

.case-tape {
  position: absolute;
  top: -14px; left: 32px;
  width: 74px; height: 26px;
  background: rgba(242, 183, 5, 0.85);
  transform: rotate(-4deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.case-file .stamp {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral-dim);
  border: 1.5px solid var(--coral-dim);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  transform: rotate(-2deg);
  margin-bottom: 16px;
}

.case-file h3 { font-size: 1.5rem; margin-bottom: 10px; }
.case-file p { font-size: 0.95rem; color: var(--stone); margin-bottom: 16px; }

.case-stats { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 14px; border-top: 1.5px dashed rgba(34,18,38,0.25); }
.case-stats > div { transition: transform 0.2s ease; cursor: default; }
.case-stats > div:hover { transform: translateY(-3px); }
.case-stats > div:hover .stat-num { color: var(--teal-dim); }
.case-stats .stat-num { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--coral-dim); display: block; transition: color 0.2s ease; }
.case-stats .stat-label { font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--stone); }

/* Manifesto / stats */
.manifesto { overflow: hidden; }

.manifesto-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  line-height: 1.2;
  max-width: 20ch;
  color: var(--cream);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 820px) { .manifesto-grid { grid-template-columns: 1fr; } }

.stat-row { display: flex; flex-direction: column; gap: 26px; }
.stat { border-top: 1.5px solid rgba(251, 243, 231, 0.2); padding-top: 16px; transition: transform 0.25s ease, border-color 0.25s ease; }
.stat:hover { transform: translateX(8px); border-color: var(--teal); }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); display: block; transition: color 0.25s ease; }
.stat:hover .num { color: var(--teal); }
.stat .label { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--stone-light); }

/* CTA band */
.cta-band { background: var(--coral); color: var(--white); overflow: hidden; }
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 4.3vw, 3.1rem); max-width: 16ch; }
.cta-band .btn-primary { background: var(--ink); border-color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; position: relative; z-index: 1; }

/* Footer */
.site-footer { background: var(--ink); color: var(--stone-light); padding: 52px 0 30px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(251,243,231,0.14); }
.footer-brand { font-family: var(--font-display); font-style: italic; color: var(--cream); font-size: 1.2rem; margin-bottom: 10px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stone-light); margin-bottom: 12px; font-weight: 500; }
.footer-col a, .footer-col p { display: block; font-size: 0.9rem; color: var(--cream); margin-bottom: 7px; }
.footer-col a { transition: color 0.2s ease, transform 0.2s ease; }
.footer-col a:hover { color: var(--teal); transform: translateX(4px); }
.footer-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 0.76rem; }

/* ==========================================================================
   About page
   ========================================================================== */

.about-hero { background: var(--plum); color: var(--cream); padding: clamp(56px, 9vh, 96px) 0 clamp(40px, 6vh, 60px); position: relative; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

.about-lede { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: clamp(1.3rem, 2.5vw, 1.7rem); line-height: 1.35; color: var(--ink); margin-bottom: 22px; }
.about-body p { max-width: none; margin-bottom: 17px; font-size: 1.02rem; }
.about-body strong { color: var(--ink); }

.timeline { display: flex; flex-direction: column; }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 18px 0; border-top: 1.5px dashed rgba(34,18,38,0.2); transition: transform 0.2s ease, padding-left 0.2s ease; }
.timeline-item:hover { transform: translateX(6px); }
.timeline-item:hover .timeline-role { color: var(--coral-dim); }
.timeline-item:first-child { border-top: none; }
.timeline-year { font-family: var(--font-mono); font-size: 0.78rem; color: var(--coral-dim); padding-top: 3px; }
.timeline-role { font-weight: 700; font-size: 1rem; color: var(--ink); transition: color 0.2s ease; }
.timeline-org { font-family: var(--font-mono); font-size: 0.78rem; color: var(--stone); margin-top: 2px; }

.portrait-frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(120% 100% at 25% 0%, rgba(255,61,113,0.55), transparent 60%), linear-gradient(160deg, var(--plum) 0%, var(--plum-soft) 100%);
  border: 3px solid var(--ink);
}

.portrait-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--stone-light); text-align: center; padding: 24px; }
.portrait-placeholder svg { width: 60px; height: 60px; opacity: 0.85; }
.portrait-placeholder .label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }

.daisy-card { background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: 26px; margin-top: 24px; }
.daisy-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.daisy-card p { font-size: 0.92rem; }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-hero { background: var(--plum); color: var(--cream); padding: clamp(56px, 9vh, 96px) 0 clamp(30px, 5vh, 50px); position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card { background: var(--ink); color: var(--cream); padding: clamp(28px, 4vw, 44px); border-radius: 16px; }
.contact-card h3 { color: var(--cream); font-size: 1.3rem; margin-bottom: 22px; }
.contact-line { display: block; padding: 14px 0; border-top: 1px solid rgba(251,243,231,0.14); font-size: 1.05rem; }
.contact-line:first-of-type { border-top: none; }
.contact-line .k { display: block; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--stone-light); margin-bottom: 4px; }
.contact-line a:hover { color: var(--coral); }

.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--stone); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--white); font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px; color: var(--ink); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--coral); box-shadow: 3px 3px 0 var(--coral); outline: none; }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--stone); margin-top: 8px; }

.mt-lg { margin-top: 56px; }
