@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

:root {
  --navy: #0f1923;
  --cream: #e8e4df;
  --muted: #b5afa8;
  --gold: #d4a853;
  --gold-muted: #b8923f;
  --body-text: #2e2a25;
  --body-muted: #4a4540;
  --white: #ffffff;
  --rust: #7b2d26;
  --ivory: #f2ece1;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ===== background sparkles ===== */
.sparkles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.sparkle path { fill: var(--gold); }
.sparkle {
  position: absolute;
  animation-name: wnmeTwinkle;
  animation-timing-function: cubic-bezier(.4,0,.2,1);
  animation-iteration-count: infinite;
}
@keyframes wnmeTwinkle { 0%, 100% { opacity: .08; } 50% { opacity: .40; } }

/* ===== page content ===== */
.home {
  position: relative;
  z-index: 2;
  max-width: 420px;
  margin: 0 auto;
  padding: 56px 22px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px var(--gold-muted);
}

.intro { text-align: center; overflow-wrap: anywhere; }
.intro h1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.6px;
  color: #fff;
  margin: 0 0 6px;
}
.intro p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.intro .identity {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 10px 0 12px;
  color: var(--cream);
}
.identity strong { font-size: 15px; font-weight: 600; }

.home a:focus-visible,
.home button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  color: var(--cream);
  padding: 15px 18px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
  transition: background 200ms cubic-bezier(.4,0,.2,1);
}
.row:hover { background: rgba(255,255,255,0.10); }
.row span { color: var(--gold); flex-shrink: 0; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding-top: 4px;
}
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(212,168,83,0.35);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--gold);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}
.icon-link:hover { background: rgba(212,168,83,0.12); border-color: var(--gold); }
.icon-link svg { display: block; width: 22px; height: 22px; }

/* ===== testimonials ===== */
.testimonials {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section-label {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.carousel {
  position: relative;
  width: 100%;
  height: clamp(238px, 31vw, 292px);
  touch-action: pan-y;
  cursor: pointer;
}
.quote-stage {
  position: absolute;
  inset: 0;
  isolation: isolate;
  background: #f8f5f1;
  border: 1px solid rgba(232,228,223,.9);
  border-radius: 12px;
  overflow: hidden;
  --bloom-x: 50%;
  --bloom-y: 100%;
  --bloom-drift-x: 6%;
  --bloom-drift-y: -12%;
  --bloom-counter-x: -4%;
  --bloom-counter-y: -10%;
  --bloom-rotate: 3deg;
  --rust-delay: 0s;
  --gold-delay: .28s;
  --navy-delay: .62s;
  --front-a-delay: .56s;
  --front-b-delay: .94s;
  --rust-peak: .73;
  --gold-peak: .59;
  --navy-peak: .46;
  --back-angle: -28deg;
  --front-angle: -12deg;
}
.quote-stage[data-bloom-pattern="1"] {
  --rust-delay: .5s;
  --gold-delay: 0s;
  --navy-delay: .34s;
  --front-a-delay: .82s;
  --front-b-delay: .48s;
  --rust-peak: .56;
  --gold-peak: .73;
  --navy-peak: .42;
  --back-angle: 152deg;
  --front-angle: 168deg;
}
.quote-stage[data-bloom-pattern="2"] {
  --rust-delay: .26s;
  --gold-delay: .58s;
  --navy-delay: 0s;
  --front-a-delay: .44s;
  --front-b-delay: .9s;
  --rust-peak: .63;
  --gold-peak: .53;
  --navy-peak: .59;
  --back-angle: 68deg;
  --front-angle: 84deg;
}
.quote-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.48) 0 22%, rgba(255,255,255,.08) 54%, transparent 76%);
}
.smoke {
  position: absolute;
  inset: -18%;
  width: 136%;
  height: 136%;
  pointer-events: none;
  backface-visibility: hidden;
}
.smoke--back { z-index: 1; opacity: .88; transform: translateZ(0); }
.smoke--front { z-index: 4; opacity: .16; mix-blend-mode: multiply; transform: translateZ(0); }
.smoke-plume,
.smoke-wisp {
  transform-box: view-box;
  transform-origin: center;
  will-change: opacity;
}
.smoke-plume { transform: rotate(var(--back-angle)); }
.smoke-wisp { transform: rotate(var(--front-angle)); filter: blur(18px); }
.quote-stage.is-blooming .smoke-plume--red { animation: smokeRiseA 7.3s ease-in-out var(--rust-delay) both; }
.quote-stage.is-blooming .smoke-plume--magenta { animation: smokeRiseB 7.3s ease-in-out var(--gold-delay) both; }
.quote-stage.is-blooming .smoke-plume--blue { animation: smokeRiseC 7.3s ease-in-out var(--navy-delay) both; }
.quote-stage.is-blooming .smoke-wisp--red { animation: smokeFront 7.3s ease-in-out var(--front-a-delay) both; }
.quote-stage.is-blooming .smoke-wisp--blue { animation: smokeFront 7.3s ease-in-out var(--front-b-delay) both; }

.pull-quote {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: clamp(24px, 7vw, 48px);
  color: var(--navy);
  transform: translateY(7px) scale(.985);
  filter: blur(2.5px);
  letter-spacing: .018em;
  transition:
    opacity 760ms ease,
    transform 1120ms cubic-bezier(.22,1,.36,1),
    filter 920ms ease,
    letter-spacing 1120ms cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform, filter;
}
.pull-quote.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  letter-spacing: normal;
}
.pull-quote.is-leaving {
  opacity: 0;
  transform: translateY(-5px) scale(1.012);
  filter: blur(2px);
  letter-spacing: .025em;
}
.pull-quote .quote-mark {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 0.4;
  color: var(--gold-muted);
  height: 24px;
}
.pull-quote p {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(18px, 4.8vw, 23px);
  line-height: 1.35;
  text-wrap: balance;
  max-width: 32ch;
  text-shadow: 0 1px 10px rgba(255,255,255,.9);
  margin: 0;
}
.pull-quote cite {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-style: normal;
}
.pull-quote cite span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--body-text);
}
.pull-quote cite span:last-child {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
  color: var(--body-muted);
}

@keyframes smokeRiseA {
  0% { opacity: 0; }
  16% { opacity: .16; }
  35% { opacity: var(--rust-peak); }
  53% { opacity: var(--rust-peak); }
  72% { opacity: .38; }
  88% { opacity: .16; }
  100% { opacity: .06; }
}
@keyframes smokeRiseB {
  0%, 10% { opacity: 0; }
  28% { opacity: .14; }
  45% { opacity: var(--gold-peak); }
  62% { opacity: var(--gold-peak); }
  79% { opacity: .25; }
  100% { opacity: .04; }
}
@keyframes smokeRiseC {
  0%, 17% { opacity: 0; }
  34% { opacity: .12; }
  52% { opacity: var(--navy-peak); }
  68% { opacity: var(--navy-peak); }
  84% { opacity: .18; }
  100% { opacity: .03; }
}
@keyframes smokeFront {
  0%, 31%, 100% { opacity: 0; }
  43% { opacity: .06; }
  54% { opacity: .18; }
  66% { opacity: .08; }
  76% { opacity: 0; }
}

/* ===== pins / pagination ===== */
.pins-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.chevron {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
}
.chevron svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pins {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  height: 24px;
}
.pin-btn {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
}
.pin-ball svg { width: 18px; height: 18px; }
.pin-standing svg, .pin-knocked svg { width: 9px; height: 22px; }
.pin-knocked svg { transform: rotate(64deg); transform-origin: bottom center; opacity: .26; }

/* ===== skill card ===== */
.skill-card {
  display: block;
  width: 100%;
  margin-top: 2px;
  text-decoration: none;
}
.skill-card .card-inner {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.skill-card img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--white);
}
.skill-caption {
  background: rgba(255,255,255,0.06);
  padding: 12px 16px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  text-align: center;
}

/* ===== footer attribution ===== */
.attribution {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 0;
  text-align: center;
}
.attribution a { color: var(--muted); text-decoration: underline; }
.attribution a:hover { color: var(--cream); }

@media (min-width: 700px) {
  .home { max-width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  .sparkle,
  .smoke-plume,
  .smoke-wisp { animation: none !important; }
  .smoke--back { opacity: .38; }
  .smoke--front { display: none; }
  .pull-quote {
    transform: none;
    filter: none;
    letter-spacing: normal;
    transition: opacity 180ms ease;
  }
  .pull-quote.is-leaving { transform: none; filter: none; letter-spacing: normal; }
}

/* MadMeetings announcement */
.madmeetings-card { display: block; width: 100%; padding: 30px 26px; border: 1px solid rgba(212,168,83,.5); border-radius: 12px; background: var(--ivory); color: var(--body-text); text-decoration: none; }
.madmeetings-brand { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 20px; }
.madmeetings-logo { flex: 0 0 48px; width: 48px; height: 58px; }
.madmeetings-brand h2 { font-family: 'DM Sans', sans-serif; font-size: clamp(24px, 6.4vw, 32px); font-weight: 700; letter-spacing: -.8px; }
.madmeetings-card p { font-size: 15px; line-height: 1.65; color: var(--body-muted); text-align: center; }
.madmeetings-cta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; padding: 12px 16px; border-radius: 6px; background: var(--navy); color: var(--cream); font-size: 14px; font-weight: 600; }
.madmeetings-card:hover { border-color: var(--gold); }
.madmeetings-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
