/* ============================================================
   Whirley World — styles
   Theme: whirl / motion abstract. Cream ground, candy accents,
   chunky rounded display type, everything slightly bouncy.
   ============================================================ */

:root {
  --cream: #fbf5ea;
  --ink: #23201b;
  --ink-soft: #55504a;
  --coral: #ff5c4d;
  --violet: #7b5cff;
  --teal: #14b8a0;
  --tangerine: #ffb03a;
  --pink: #ff8fc7;
  --card: #fffdf8;

  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; }

a { color: inherit; }

/* ---------- grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 14px 10px 18px;
  background: rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 4px 4px 0 var(--ink);
  white-space: nowrap;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.logo-whirl { width: 26px; height: 26px; color: var(--coral); transition: transform 0.6s var(--bounce); }
.nav-logo:hover .logo-whirl { transform: rotate(360deg); }

.nav-links { display: flex; align-items: center; gap: 6px; }

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.2s;
}
.nav-links a:hover { background: rgba(35, 32, 27, 0.08); }

.nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
}
.nav-links a.nav-cta:hover { background: var(--coral); }

@media (max-width: 560px) {
  .nav { gap: 8px; padding: 8px 10px 8px 12px; max-width: calc(100vw - 20px); }
  .nav-logo span { display: none; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 11px; font-size: 0.9rem; }
}

/* ---------- buttons & badges ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--bounce), background 0.2s;
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--card);
  color: var(--ink);
}
.btn:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn-primary { background: var(--coral); color: #fff; }
.btn-ghost { background: transparent; }
.btn-outline { margin-top: 28px; }

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 7px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--card);
  box-shadow: 3px 3px 0 var(--ink);
}
.badge-tilt-l { transform: rotate(-3deg); }
.badge-tilt-r { transform: rotate(2.5deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-spiral {
  position: absolute;
  width: min(90vw, 720px);
  height: min(90vw, 720px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.spin-slow { animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 700;
  margin: 24px 0 20px;
}

.hero-whirl-word {
  display: inline-block;
  color: var(--coral);
  animation: wobble 5s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}

.squiggle {
  background-image: linear-gradient(120deg, var(--tangerine) 0%, var(--pink) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.35em;
  background-position: 0 88%;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 14px;
}

.hero-pronounce { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 34px; }
.hero-pronounce em { color: var(--violet); font-style: normal; font-weight: 700; }

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* floating stickers */
.sticker { position: absolute; z-index: 2; animation: floaty 6s ease-in-out infinite; }
.sticker-1 { top: 18%; left: 8%; background: var(--tangerine); transform: rotate(-6deg); animation-delay: 0s; }
.sticker-2 { top: 68%; right: 7%; background: var(--pink); transform: rotate(4deg); animation-delay: 1.5s; }
.sticker-3 { bottom: 12%; left: 12%; background: var(--teal); color: #fff; transform: rotate(-3deg); animation-delay: 3s; }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

@media (max-width: 720px) {
  .sticker { display: none; }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  padding: 12px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  animation: marquee 28s linear infinite;
}
.marquee-track span { padding-right: 12px; }
.marquee-reverse { animation-direction: reverse; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section head ---------- */
.section-head { text-align: center; padding: 90px 24px 30px; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; margin-top: 8px; }

/* ---------- pillars ---------- */
.pillar { padding: 70px 24px; }

.pillar-inner { max-width: 980px; margin: 0 auto; }

.pillar-label { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }

.pillar-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--card);
  box-shadow: 3px 3px 0 var(--ink);
}

.pillar h3 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 16px; }

.pillar-lede { font-size: 1.15rem; max-width: 680px; color: var(--ink-soft); }

/* accent tints per pillar */
.pillar-coral     { background: #ffe9e6; }
.pillar-violet    { background: #ece7ff; }
.pillar-teal      { background: #dff5f0; }
.pillar-tangerine { background: #fff0d9; }

.pillar-coral h3     { color: var(--coral); }
.pillar-violet h3    { color: var(--violet); }
.pillar-teal h3      { color: var(--teal); }
.pillar-tangerine h3 { color: #e08900; }

/* cards */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.3s var(--bounce), box-shadow 0.3s var(--bounce);
}
.card:hover { transform: translate(-3px, -3px) rotate(-0.5deg); box-shadow: 9px 9px 0 var(--ink); }

.card-emoji { font-size: 2rem; display: block; margin-bottom: 10px; }
.card h4 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { font-size: 0.98rem; color: var(--ink-soft); }

/* chips */
.chip-cloud { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.chip {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 18px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--bounce);
}
.chip:hover { transform: rotate(-2deg) scale(1.06); }

/* polaroids */
.polaroids {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
}

.polaroid {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 12px 12px 8px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.3s var(--bounce);
}
.polaroid:hover { transform: rotate(0deg) scale(1.05) !important; }

.tilt-l  { transform: rotate(-4deg); }
.tilt-r  { transform: rotate(3deg); }
.tilt-l2 { transform: rotate(-2deg); }

.polaroid-img {
  width: 190px; height: 150px;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 3rem;
}
.ph-1 { background: linear-gradient(135deg, var(--pink), var(--violet)); }
.ph-2 { background: linear-gradient(135deg, var(--teal), var(--tangerine)); }
.ph-3 { background: linear-gradient(135deg, var(--coral), var(--pink)); }

.polaroid figcaption {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-align: center;
  padding-top: 8px;
}

/* ---------- about ---------- */
.about { padding: 110px 24px; }

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: center;
}

.about-avatar svg { width: 100%; height: auto; }

.about h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 18px; }
.about-text p { margin-bottom: 16px; color: var(--ink-soft); }
.about-text strong { color: var(--ink); }

.about-links { display: flex; gap: 22px; margin-top: 24px; flex-wrap: wrap; }
.about-links a {
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid var(--tangerine);
  transition: border-color 0.2s;
}
.about-links a:hover { border-color: var(--coral); }

@media (max-width: 720px) {
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-avatar { max-width: 180px; margin: 0 auto; }
  .about-links { justify-content: center; }
  .chip-cloud { justify-content: center; }
}

/* ---------- contact ---------- */
.contact {
  padding: 110px 24px 130px;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}

.contact h2 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 16px; }
.contact p { max-width: 540px; margin: 0 auto 36px; opacity: 0.85; }

.btn-copy { border-color: var(--cream); box-shadow: 4px 4px 0 var(--coral); font-size: 1.15rem; }
.btn-copy:hover { box-shadow: 7px 7px 0 var(--coral); }
.btn-copy:active { box-shadow: 1px 1px 0 var(--coral); }

.contact-alt { margin-top: 30px !important; font-size: 0.98rem; }
.contact-alt a { color: var(--tangerine); font-weight: 700; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--cream); }

.footer .marquee { border-color: var(--cream); background: var(--coral); color: #fff; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 32px;
  font-size: 0.9rem;
  opacity: 0.9;
}
.footer-inner a { color: var(--tangerine); }
.footer-spin { animation: wobble 4s ease-in-out infinite; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 200;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 14px 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.4s var(--bounce);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s var(--bounce);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin-slow, .marquee-track, .hero-whirl-word, .sticker, .footer-spin { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- pillar 02: things I've built (banana) ---- */
.pillar-banana    { background: #fff6d6; }
.pillar-banana h3 { color: #c99700; }

/* ---- social icon links ---- */
.social-icon { width: 20px; height: 20px; display: block; }
.about-links .social-link { display: inline-flex; align-items: center; gap: 8px; }
.footer-social { display: flex; gap: 18px; align-items: center; }
.footer-social a { color: inherit; opacity: 0.85; transition: opacity 0.2s ease, transform 0.2s ease; }
.footer-social a:hover { opacity: 1; transform: translateY(-2px) rotate(-4deg); color: var(--coral); }

/* ---- credibility strip ---- */
.cred-strip {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; align-items: center;
  padding: 26px 24px 34px;
}

/* ---- real photos: polaroids ---- */
.polaroid-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* ---- hero orbit photo ---- */
.hero-orbit {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 0;
  pointer-events: none;
  animation: spin 48s linear infinite;
}
.orbit-arm { transform: translateX(min(42vw, 336px)); }
.orbit-photo {
  width: 116px; height: 116px;
  margin: -58px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--violet);
  box-shadow: 4px 4px 0 var(--ink);
  animation: spin-reverse 48s linear infinite;
}
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
@media (max-width: 720px) {
  .orbit-photo { width: 76px; height: 76px; margin: -38px; border-width: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orbit, .orbit-photo { animation: none !important; }
}
