/* ── tokens ─────────────────────────────────────────── */
:root {
  --bg: #fff7ee;
  --card: #ffffff;
  --ink: #221a3f;
  --ink-soft: #5c5478;
  --coral: #ff6b5b; /* decorative only — fails contrast as text on cream */
  --coral-text: #e84a35; /* AA large-text on --bg */
  --yellow: #ffc145;
  --pink: #ff8fb2;
  --teal: #19c2b8;
  --purple: #845cff;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(34, 26, 63, 0.1);
  --font: "Bricolage Grotesque", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--yellow); color: var(--ink); }

img, video { max-width: 100%; display: block; }

h1, h2 { font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1.5rem; }

section { padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 6vw, 6rem); }

/* ── a11y + chrome ──────────────────────────────────── */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 0.75rem 1.25rem;
}
.skip:focus { left: 0; }

.progress {
  position: fixed; inset: 0 0 auto 0; height: 5px; z-index: 60;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--teal), var(--purple));
  transform: scaleX(0); transform-origin: left;
}

/* ── nav ────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem clamp(1.25rem, 6vw, 6rem);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
}

.logo {
  font-size: 1.5rem; font-weight: 800; color: var(--ink);
  text-decoration: none; letter-spacing: -0.03em;
}
.logo__dot { color: var(--coral); }

.nav nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.nav nav > a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.nav nav > a:not(.btn):hover {
  text-decoration: underline wavy var(--coral);
  text-underline-offset: 5px;
}

/* ── buttons ────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--ink); color: var(--bg);
  font-weight: 600; text-decoration: none;
  padding: 0.9rem 1.75rem; border-radius: 99px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  background: var(--coral); color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.btn--small { padding: 0.5rem 1.15rem; font-size: 0.95rem; }
.btn--big { font-size: clamp(1.1rem, 3vw, 1.6rem); padding: 1.1rem 2.25rem; }

/* ── hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: flex; flex-direction: column; justify-content: center;
  gap: 1.75rem;
}

.hero__title { font-size: clamp(2.6rem, 8vw, 6rem); }

.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line { display: block; }

.swap { display: inline-block; overflow: hidden; vertical-align: bottom; }
.swap__word {
  display: inline-block; color: var(--coral-text);
  text-decoration: underline wavy var(--yellow);
  text-decoration-thickness: 0.06em; text-underline-offset: 0.12em;
}

.hero__sub { font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: var(--ink-soft); }

.hero__cta { align-self: flex-start; }

.blob {
  position: absolute; border-radius: 50%; filter: blur(60px);
  opacity: 0.55; pointer-events: none; z-index: -1;
}
.blob--1 { width: 34vw; height: 34vw; right: 4vw; top: 8vh; background: var(--yellow); }
.blob--2 { width: 26vw; height: 26vw; right: 22vw; bottom: 2vh; background: var(--pink); }
.blob--3 { width: 20vw; height: 20vw; left: -6vw; bottom: 20vh; background: var(--teal); }

.spark {
  position: absolute; color: var(--coral); pointer-events: none;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  animation: spin 14s linear infinite;
}
.spark--1 { top: 16vh; right: 12vw; }
.spark--2 { bottom: 12vh; left: 8vw; color: var(--purple); }
.spark--3 { top: 3rem; right: 14vw; color: var(--yellow); }

@keyframes spin { to { transform: rotate(1turn); } }

/* ── marquee ────────────────────────────────────────── */
.marquee {
  background: var(--ink); color: var(--bg);
  overflow: hidden; padding: 0.9rem 0;
  transform: rotate(-1.5deg) scale(1.02);
}
.marquee__track {
  display: flex; width: max-content; white-space: nowrap;
  font-weight: 600; font-size: 1.15rem; text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: marquee 22s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── work grid ──────────────────────────────────────── */
.grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
}

.card {
  position: relative; overflow: hidden;
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 18px 44px rgba(34, 26, 63, 0.18);
}

/* 800px = width where two 340px tracks actually fit; below that a span-2
   forces a lopsided implicit column (e.g. iPad portrait at 768px) */
@media (min-width: 800px) {
  .card--featured { grid-column: span 2; }
}

.card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); }

.card figcaption, .card__caption {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: 1rem 1.25rem 1.15rem;
}
.card__title { font-weight: 700; font-size: 1.1rem; }
.card__meta { color: var(--ink-soft); font-size: 0.9rem; white-space: nowrap; }

/* coming-soon tiles */
.card--soon {
  aspect-ratio: 16 / 11;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem;
  text-align: center; padding: 1.5rem;
}
.card--soon .card__title { font-size: 1.15rem; }
.card--soon .card__meta { font-size: 0.95rem; }
.card--soon-a { background: linear-gradient(135deg, #fff1d6, #ffe3ec); }
.card--soon-b { background: linear-gradient(135deg, #d9f6f1, #ece4ff); }

.soon__shapes { display: flex; gap: 0.9rem; margin-bottom: 0.75rem; }
.soon__shapes span {
  width: 26px; height: 26px; display: block;
  animation: bob 2.6s ease-in-out infinite;
}
.soon__shapes span:nth-child(1) { background: var(--coral); border-radius: 50%; }
.soon__shapes span:nth-child(2) { background: var(--yellow); border-radius: 6px; animation-delay: 0.3s; }
.soon__shapes span:nth-child(3) { background: var(--teal); border-radius: 50% 50% 0 50%; animation-delay: 0.6s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(12deg); }
}

/* ── about ──────────────────────────────────────────── */
.about {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 820px) { .about { grid-template-columns: 2fr 3fr; } }

.about__pic {
  aspect-ratio: 1; max-width: 380px; width: 100%; margin-inline: auto;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(5rem, 12vw, 9rem); font-weight: 800; color: var(--bg);
  background: linear-gradient(140deg, var(--coral), var(--pink) 55%, var(--yellow));
  border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%;
  animation: morph 9s ease-in-out infinite alternate;
}
@keyframes morph {
  to { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; }
}

.about__text p { max-width: 55ch; color: var(--ink-soft); }

.chips { list-style: none; padding: 0; margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips li {
  background: var(--card); border: 2px solid var(--ink);
  border-radius: 99px; padding: 0.35rem 1rem; font-weight: 600; font-size: 0.95rem;
}

/* ── contact ────────────────────────────────────────── */
.contact {
  position: relative;
  background: var(--ink); color: var(--bg);
  border-radius: clamp(24px, 5vw, 56px) clamp(24px, 5vw, 56px) 0 0;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
}
.contact h2 { font-size: clamp(2.4rem, 7vw, 5rem); }
.contact .btn { background: var(--yellow); color: var(--ink); }
.contact .btn:hover { background: var(--coral); color: var(--ink); }

.socials { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.socials a {
  color: var(--bg); text-decoration: none; font-weight: 600;
  border: 2px solid color-mix(in srgb, var(--bg) 35%, transparent);
  border-radius: 99px; padding: 0.5rem 1.25rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.socials a:hover { border-color: var(--yellow); color: var(--yellow); }

footer {
  background: var(--ink); color: color-mix(in srgb, var(--bg) 65%, transparent);
  text-align: center; padding: 1.5rem; font-size: 0.95rem;
}

/* ── reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .spark, .soon__shapes span, .about__pic { animation: none; }
  .btn, .card { transition: none; }
}
