/* ═══════════════════════════════════════════
   TB CREATIVE — Global Styles
   tbcreative.com.au
═══════════════════════════════════════════ */

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

:root {
  /* Palette — light base, art provides colour */
  --bg:        #f2efe9;
  --bg-warm:   #ece8e0;
  --white:     #faf8f5;
  --ink:       #141414;
  --ink-mid:   #3a3a3a;
  --ink-soft:  #7a7a7a;
  --border:    #d8d4cc;
  --border-dk: #b8b4ac;

  /* Accent colours pulled from Tessa's artwork */
  --pink:      #e8527a;
  --teal:      #2eada0;
  --coral:     #f0703c;
  --sage:      #6ea882;
  --yellow:    #f0c040;
  --lavender:  #9b7ec8;

  /* Type */
  --display:   'Archivo Black', sans-serif;
  --serif:     'Playfair Display', serif;
  --body:      'Jost', sans-serif;

  /* Spacing */
  --nav-h:     68px;
  --pad:       clamp(24px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--pink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: multiply;
}

.cursor.hovered {
  width: 40px; height: 40px;
  background: var(--teal);
}

/* ── ANIMATED COLOUR BAR ── */
.colour-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  height: 4px;
  z-index: 499;
  overflow: hidden;
}

.colour-bar-track {
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg,
    #e8527a 0%,
    #f5a0c0 10%,
    #5bc0eb 20%,
    #43c6ac 30%,
    #6ea882 40%,
    #7ec8e3 50%,
    #e8527a 60%,
    #f5a0c0 70%,
    #5bc0eb 80%,
    #43c6ac 90%,
    #e8527a 100%
  );
  animation: slideBar 8s linear infinite;
}

.colour-bar-track span { display: none; }

@keyframes slideBar {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── NAV DRIPS (disabled) ── */
.nav-drips { display: none; }
.colour-bar-thick { display: none; }

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  transition: box-shadow 0.3s;
}

.site-nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.06); }

.nav-logo {
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  transition: color 0.2s;
}

.nav-logo:hover { color: var(--pink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0 20px;
  height: var(--nav-h);
  line-height: var(--nav-h);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20px; right: 20px;
  height: 2.5px;
  background: var(--pink);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  margin-left: 16px;
  padding: 10px 24px !important;
  height: auto !important;
  line-height: 1 !important;
  background: var(--ink);
  color: var(--white) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--pink) !important; color: var(--white) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
}

/* ── PAGE WRAP ── */
.page-wrap { padding-top: var(--nav-h); }

/* ── TYPOGRAPHY ── */
.display-xl {
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 130px);
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.display-lg {
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 84px);
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.display-md {
  font-family: var(--display);
  font-size: clamp(30px, 3.5vw, 52px);
  letter-spacing: 0.03em;
  line-height: 1.05;
}

.serif-lg {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.3;
}

.label {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.label-pink { color: var(--pink); }
.label-teal { color: var(--teal); }
.label-coral { color: var(--coral); }
.label-sage { color: var(--sage); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform 0.22s ease;
  z-index: 0;
}

.btn:hover { color: var(--white); }
.btn:hover::before { transform: translateY(0); }
.btn span { position: relative; z-index: 1; }

.btn-filled {
  background: var(--ink);
  color: var(--white);
}

.btn-filled::before { background: var(--pink); }
.btn-filled:hover { color: var(--white); border-color: var(--pink); }

.btn-pink {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

.btn-pink::before { background: var(--ink); }
.btn-pink:hover { border-color: var(--ink); }

.btn-ghost {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.btn-ghost::before { background: var(--white); }
.btn-ghost:hover { color: var(--ink); }

/* ── SECTION DIVIDERS ── */
.rule { border: none; border-top: 1.5px solid var(--border); }
.rule-dark { border-top-color: var(--ink); }

/* ═══════════════════════════════════════════
   ARTSY UPGRADES — Paint drips, textures, expression
═══════════════════════════════════════════ */

/* ── PAINT DRIP DIVIDER ── */
.paint-drip {
  position: relative;
  height: 60px;
  overflow: hidden;
  background: transparent;
}

.paint-drip svg { width: 100%; height: 100%; display: block; }

.paint-drip--pink { color: var(--pink); }
.paint-drip--teal { color: var(--teal); }
.paint-drip--ink { color: var(--ink); }

/* ── SPLATTER HOVER EFFECT ── */
.splatter-hover {
  position: relative;
  overflow: hidden;
}

.splatter-hover::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, var(--pink) 0%, transparent 30%),
              radial-gradient(circle at 70% 60%, var(--teal) 0%, transparent 25%),
              radial-gradient(circle at 50% 30%, var(--coral) 0%, transparent 20%),
              radial-gradient(circle at 20% 80%, var(--yellow) 0%, transparent 22%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.splatter-hover:hover::after { opacity: 0.2; }

/* ── HAND-DRAWN UNDERLINE ── */
.artsy-underline {
  position: relative;
  display: inline-block;
}

.artsy-underline::after {
  content: '';
  position: absolute;
  bottom: -2px; left: -10px; right: -10px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20'%3E%3Cpath d='M2 14 Q20 4 50 11 Q80 18 110 8 Q140 -2 170 10 Q185 16 198 7' stroke='%23e8527a' stroke-width='4.5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M5 10 Q30 18 60 8 Q90 -2 120 12 Q150 20 180 9 Q192 5 198 11' stroke='%23e8527a' stroke-width='2.5' fill='none' stroke-linecap='round' opacity='0.4'/%3E%3C/svg%3E") no-repeat center;
  background-size: 100% 100%;
  opacity: 0.8;
}

/* ── CANVAS TEXTURE OVERLAY ── */
.canvas-texture {
  position: relative;
}

.canvas-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='transparent'/%3E%3Crect x='0' y='0' width='1' height='1' fill='rgba(0,0,0,0.02)'/%3E%3Crect x='2' y='2' width='1' height='1' fill='rgba(0,0,0,0.015)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ── PAINT STROKE BACKGROUND ── */
.paint-stroke-bg {
  position: relative;
}

.paint-stroke-bg::before {
  content: '';
  position: absolute;
  top: 50%; left: -10px;
  width: calc(100% + 20px);
  height: 60%;
  transform: translateY(-50%) rotate(-1.5deg);
  background: var(--pink);
  opacity: 0.12;
  border-radius: 4px 50px 4px 50px;
  z-index: -1;
}

/* ── ANIMATED PAINT SPLASH (on scroll) ── */
.paint-splash {
  position: relative;
  overflow: hidden;
}

.paint-splash::before,
.paint-splash::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.8s ease, transform 1s ease;
  pointer-events: none;
  z-index: 0;
}

.paint-splash::before {
  top: -20px; right: -30px;
  width: 180px; height: 180px;
  background: radial-gradient(ellipse, var(--pink) 0%, transparent 70%);
  transform: scale(0.3);
}

.paint-splash::after {
  bottom: -30px; left: -20px;
  width: 140px; height: 140px;
  background: radial-gradient(ellipse, var(--teal) 0%, transparent 70%);
  transform: scale(0.3);
}

.paint-splash.visible::before,
.paint-splash.visible::after {
  opacity: 0.25;
  transform: scale(1);
}

/* ── DRIP ANIMATION ── */
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  60% { transform: scaleY(1.1); }
  80% { transform: scaleY(0.95); }
  100% { transform: scaleY(1); transform-origin: top; }
}

.drip-in {
  animation: drip 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ── TILT HOVER ── */
.tilt-hover {
  transition: transform 0.3s ease;
}

.tilt-hover:hover {
  transform: rotate(-1.5deg) scale(1.02);
}

/* ── SCRIBBLE CIRCLE HIGHLIGHT ── */
.scribble-circle {
  position: relative;
  display: inline-block;
}

.scribble-circle::before {
  content: '';
  position: absolute;
  top: -12px; left: -16px; right: -16px; bottom: -12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80'%3E%3Cellipse cx='100' cy='40' rx='95' ry='35' stroke='%232eada0' stroke-width='2.5' fill='none' stroke-dasharray='8 4' transform='rotate(-2 100 40)'/%3E%3C/svg%3E") no-repeat center;
  background-size: 100% 100%;
  pointer-events: none;
  opacity: 0.6;
}

/* ── COLOUR BLOB BACKGROUNDS ── */
.blob-bg {
  position: relative;
  overflow: hidden;
}

.blob-bg::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 50%; height: 70%;
  background: radial-gradient(ellipse at center,
    var(--pink) 0%, transparent 60%);
  opacity: 0.08;
  filter: blur(60px);
  pointer-events: none;
  animation: blobFloat 12s ease-in-out infinite alternate;
}

.blob-bg::after {
  content: '';
  position: absolute;
  bottom: -15%; left: -5%;
  width: 40%; height: 60%;
  background: radial-gradient(ellipse at center,
    var(--teal) 0%, transparent 60%);
  opacity: 0.08;
  filter: blur(50px);
  pointer-events: none;
  animation: blobFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.15); }
}

/* ── SKEWED ACCENT STRIP ── */
.skew-strip {
  transform: skewY(-1.5deg);
  margin: -20px 0;
  padding: 60px var(--pad);
  position: relative;
  z-index: 1;
}

.skew-strip > * { transform: skewY(1.5deg); }

/* ── PAINT SPATTER DOTS ── */
.spatter-dots {
  position: relative;
}

.spatter-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 3px, var(--pink) 100%, transparent 100%),
    radial-gradient(circle 2px, var(--teal) 100%, transparent 100%),
    radial-gradient(circle 4px, var(--coral) 100%, transparent 100%),
    radial-gradient(circle 2px, var(--yellow) 100%, transparent 100%),
    radial-gradient(circle 3px, var(--sage) 100%, transparent 100%),
    radial-gradient(circle 2px, var(--pink) 100%, transparent 100%),
    radial-gradient(circle 3px, var(--teal) 100%, transparent 100%),
    radial-gradient(circle 1.5px, var(--coral) 100%, transparent 100%);
  background-position:
    5% 15%, 92% 8%, 78% 85%, 15% 72%,
    45% 5%, 88% 55%, 25% 90%, 60% 40%;
  background-size: 6px 6px, 4px 4px, 8px 8px, 4px 4px, 6px 6px, 4px 4px, 6px 6px, 3px 3px;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* ── EXPRESSIVE IMAGE HOVER ── */
.art-hover {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}

.art-hover:hover {
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow: 8px 12px 32px rgba(0,0,0,0.12),
              -2px 4px 0 var(--pink),
              4px -2px 0 var(--teal);
}

/* ── COLOUR BAR UPGRADE — thicker, more energetic ── */
.colour-bar-thick {
  height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--pink) 0px, var(--pink) 60px,
    var(--coral) 60px, var(--coral) 110px,
    var(--yellow) 110px, var(--yellow) 170px,
    var(--teal) 170px, var(--teal) 240px,
    var(--sage) 240px, var(--sage) 290px,
    var(--lavender) 290px, var(--lavender) 340px);
  background-size: 340px 100%;
  animation: barSlide 6s linear infinite;
}

@keyframes barSlide {
  from { background-position: 0 0; }
  to { background-position: 340px 0; }
}

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  background: var(--ink);
  padding: 0;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--white);
}

.marquee-gem { color: var(--pink); font-size: 14px; }

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

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  color: var(--white);
  margin-top: 0;
}

.footer-inner {
  padding: 70px var(--pad) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid #2a2a2a;
}

.footer-brand-logo {
  font-family: var(--display);
  font-size: 40px;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1;
}

.footer-tagline {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-socials { display: flex; gap: 14px; }

.footer-social-btn {
  width: 38px; height: 38px;
  border: 1px solid #333;
  display: flex; align-items: center; justify-content: center;
  color: #888;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-social-btn:hover { border-color: var(--pink); color: var(--pink); }

.footer-col-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: #888;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-contact-line { color: #888; font-size: 13px; margin-bottom: 10px; }

.footer-bottom {
  padding: 0 var(--pad);
  overflow: hidden;
  position: relative;
}

.footer-wordmark {
  font-family: var(--display);
  font-size: clamp(60px, 10vw, 140px);
  letter-spacing: 0.05em;
  color: #3a3a3a;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  text-align: center;
}

.footer-copy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 28px;
  border-top: 1px solid #1e1e1e;
  margin-top: -4px;
}

.footer-copy { font-size: 11px; color: #444; letter-spacing: 0.06em; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--sage);
  color: var(--white);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  z-index: 9998;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ── PAGE ENTRANCE ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── STAGGER DELAYS ── */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── MOBILE NAV ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  body { cursor: auto; }
  .cursor { display: none; }

  .nav-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--bg);
    padding: 40px var(--pad);
    gap: 0;
    align-items: flex-start;
    z-index: 400;
  }

  .nav-mobile-open .nav-links a {
    height: auto;
    line-height: 1;
    padding: 18px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .nav-mobile-open .nav-links a::after { display: none; }
  .nav-cta { margin-left: 0 !important; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
