/* =========================================================
   APTO – styles
   Display font: Fredoka · Body font: DM Sans
   ========================================================= */
:root {
  --ink: #1D1B3A;          /* deep navy – text & dark sections */
  --ink-soft: #4A4868;     /* secondary text */
  --violet: #6C4DF6;       /* primary brand */
  --violet-dark: #5536E0;
  --violet-soft: #EEE9FF;
  --coral: #FF6B4A;        /* accent / energy */
  --sun: #FFC93C;          /* highlight */
  --mint: #2DD4A7;         /* success / fresh */
  --lilac: #B79CFF;
  --cream: #FFF8EE;        /* page background */
  --cream-deep: #FDEFD9;   /* tinted sections */
  --white: #FFFFFF;
  --danger: #D93A2B;

  --font-display: 'Fredoka', 'Baloo 2', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px -12px rgba(29, 27, 58, .25);
  --shadow-pop: 6px 6px 0 var(--ink);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1.2);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--violet); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 2.5rem); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2.5px solid var(--ink);
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease;
  box-shadow: 0 0 0 var(--ink);
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--ink); }
.btn-primary { --bg: var(--violet); }
.btn-primary:hover { --bg: var(--violet-dark); }
.btn-ghost { --bg: transparent; --fg: var(--ink); }
.btn-ghost:hover { --bg: var(--white); }
.btn-outline { --bg: var(--white); --fg: var(--ink); }
.btn-outline:hover { --bg: var(--sun); }
.btn-light { --bg: var(--sun); --fg: var(--ink); }
.btn-light:hover { --bg: #fff; }
.btn-large { padding: 1rem 1.7rem; font-size: 1.15rem; }
.btn-small { padding: .5rem 1.1rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 238, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(29, 27, 58, .08); box-shadow: 0 6px 20px -14px rgba(29, 27, 58, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark svg { transition: transform .35s var(--ease); }
.brand:hover .brand-mark svg { transform: rotate(-10deg) scale(1.06); }
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: .02em; line-height: 1;
  display: inline-flex; align-items: center;
}
.wordmark-o {
  display: inline-grid; place-items: center;
  color: transparent; position: relative; width: .8em; height: .8em; margin-left: .06em;
  border-radius: 50%; border: .17em solid var(--coral);
  background: var(--sun);
  font-size: 1em; overflow: hidden;
}
.brand:hover .wordmark-o { animation: bounce .6s var(--ease); }

.nav-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  border: 2.5px solid var(--ink); background: var(--white); cursor: pointer; padding: 0;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s ease, background .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--cream); border-bottom: 2px solid rgba(29, 27, 58, .08);
  padding: .5rem 1.25rem 1.25rem; box-shadow: 0 20px 30px -20px rgba(29, 27, 58, .3);
  display: none;
}
.site-nav.is-open { display: block; animation: drop .25s ease; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.site-nav a:not(.btn) {
  display: block; padding: .75rem .5rem; color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; border-radius: var(--radius-sm);
}
.site-nav a:not(.btn):hover { background: var(--violet-soft); color: var(--violet); }
.nav-cta-item { margin-top: .5rem; }
.nav-cta-item .btn { width: 100%; }
.no-js .site-nav { display: block; position: static; }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; padding: 0; box-shadow: none; }
  .site-nav ul { display: flex; align-items: center; gap: .3rem; }
  .site-nav a:not(.btn) { padding: .45rem .8rem; font-size: 1.05rem; position: relative; }
  .site-nav a:not(.btn):hover { background: none; }
  .site-nav a:not(.btn)::after {
    content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 3px; border-radius: 3px;
    background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
  }
  .site-nav a:not(.btn):hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
  .nav-cta-item { margin: 0 0 0 .6rem; }
  .nav-cta-item .btn { width: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.hero-inner { position: relative; display: grid; gap: 3rem; align-items: center; }
.hero-copy { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.25rem;
  font-weight: 700; font-size: .92rem; letter-spacing: .02em;
  background: var(--white); border: 2px solid var(--ink); padding: .4rem .9rem; border-radius: 999px;
}
.eyebrow .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(45, 212, 167, .6); animation: pulse 2s infinite; }
.hl { position: relative; white-space: nowrap; color: var(--violet); }
.hl::after {
  content: ''; position: absolute; left: -.05em; right: -.05em; bottom: .02em; height: .32em; z-index: -1;
  background: var(--sun); border-radius: .2em; transform: rotate(-1.5deg);
}
.hero h1 { position: relative; z-index: 0; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 36em; }
.lead em { font-style: normal; font-weight: 700; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 1.6rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-weight: 500; color: var(--ink-soft); font-size: .98rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points li::before {
  content: ''; width: 1.15rem; height: 1.15rem; border-radius: 50%; flex: none;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231D1B3A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

.hero-blobs .blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .9; z-index: -1; }
.blob-1 { width: 420px; height: 420px; background: radial-gradient(circle at 30% 30%, #D9CEFF, transparent 70%); top: -120px; right: -120px; animation: floaty 12s ease-in-out infinite; }
.blob-2 { width: 300px; height: 300px; background: radial-gradient(circle at 50% 50%, #FFE1A1, transparent 70%); bottom: -80px; left: -100px; animation: floaty 14s ease-in-out infinite reverse; }
.blob-3 { width: 180px; height: 180px; background: radial-gradient(circle at 50% 50%, #C4F5E6, transparent 70%); top: 40%; left: 45%; animation: floaty 10s ease-in-out infinite; }
.hero { isolation: isolate; }

/* Mascot */
.hero-visual { position: relative; justify-self: center; width: min(100% - 1.5rem, 360px); margin-top: 1.5rem; }
@media (max-width: 479px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .float-card { font-size: .8rem; padding: .5rem .75rem; }
}
.mascot-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.mascot-clip {
  position: absolute; inset: 0; border-radius: 50%;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .28), transparent 45%),
    linear-gradient(145deg, var(--violet) 0%, #8B6CFF 55%, var(--lilac) 100%);
  /* concentric rings: cream gap + ink outline, plus a soft centred drop shadow */
  box-shadow: 0 0 0 6px var(--cream), 0 0 0 9px var(--ink), 0 18px 36px rgba(26, 22, 64, .18);
}
/* ink ring drawn on top of the picture so the clipped edge looks crisp */
.mascot-clip::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 3px solid var(--ink); z-index: 2; pointer-events: none; }
/* Whole mascot, desk and computer sit inside the circle. The cut-out's straight
   right/bottom edges are faded out with a mask so no hard edge shows. */
.mascot-img {
  position: absolute; width: 92%; height: 92%; max-width: none; left: 3%; top: 8%;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 99%), linear-gradient(to bottom, #000 80%, transparent 98%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 88%, transparent 99%), linear-gradient(to bottom, #000 80%, transparent 98%);
  mask-composite: intersect;
}
.has-mascot .mascot-img { animation: bob 5s ease-in-out infinite; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .6rem;
  background: var(--white); border: 2.5px solid var(--ink); border-radius: 18px; padding: .6rem .9rem;
  font-size: .85rem; line-height: 1.25; box-shadow: 4px 4px 0 var(--ink);
}
.float-card strong { font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.fc-icon { font-size: 1.4rem; }
.float-card { z-index: 4; }
.float-card-1 { left: -4%; bottom: 7%; animation: bob 5s ease-in-out infinite; }
.float-card-2 { right: -5%; top: 6%; animation: bob 6s ease-in-out infinite reverse; }
@media (max-width: 479px) {
  .float-card-1 { left: -.5rem; bottom: 3%; }
  .float-card-2 { right: -.5rem; top: 2%; }
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 2.5rem; }
  .hero-visual { justify-self: end; width: min(100%, 470px); margin-top: 1rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section-tinted { background: var(--cream-deep); }
.section-ink { background: var(--ink); color: #F3F1FF; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .section-sub { color: #C9C6E8; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.section-sub { color: var(--ink-soft); font-size: 1.12rem; }
.kicker {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--violet); background: var(--violet-soft); padding: .3rem .9rem; border-radius: 999px; margin-bottom: 1rem;
}
.kicker-light { color: var(--ink); background: var(--sun); }
.price-inline { color: var(--violet); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: s; }
.step {
  position: relative; background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem; transition: transform .25s var(--ease), box-shadow .25s ease;
}
.step:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-pop); }
.step-num {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 16px; margin-bottom: 1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; border: 2.5px solid var(--ink);
}
.step:nth-child(1) .step-num { background: var(--sun); }
.step:nth-child(2) .step-num { background: var(--mint); }
.step:nth-child(3) .step-num { background: var(--coral); color: #fff; }
.step:nth-child(4) .step-num { background: var(--violet); color: #fff; }
.step p { color: var(--ink-soft); margin: 0; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step:not(:last-child)::after {
    content: ''; position: absolute; top: 2.9rem; right: -1.1rem; width: 1rem; height: 3px; border-radius: 2px; background: var(--ink);
  }
}

/* Features */
.features { display: grid; gap: 1.25rem; }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.5rem; border: 2px solid rgba(29, 27, 58, .08);
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .2s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(29, 27, 58, .2); }
.feature p { color: var(--ink-soft); margin: 0; }
.feature-icon { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 16px; margin-bottom: 1rem; transition: transform .3s var(--ease); }
.feature:hover .feature-icon { transform: rotate(-8deg) scale(1.08); }
.feature-icon svg { width: 1.6rem; height: 1.6rem; }
.fi-violet { background: var(--violet-soft); color: var(--violet); }
.fi-coral { background: #FFE4DD; color: #E14B2A; }
.fi-mint { background: #D3F7EC; color: #0E9E78; }
.fi-sun { background: #FFF0C7; color: #B98200; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* Pricing */
.pricing { display: grid; gap: 1.5rem; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--radius-lg); padding: 2rem 1.75rem 1.75rem;
  transition: transform .25s var(--ease), box-shadow .25s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.price-card h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; }
.amount { font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: 1; }
.per { font-weight: 700; color: var(--ink-soft); }
.price-note { color: var(--ink-soft); font-size: .95rem; margin: .4rem 0 1.25rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .7rem; flex: 1; align-content: start; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231D1B3A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}
.price-tag { align-self: flex-start; font-family: var(--font-display); font-weight: 600; font-size: .85rem; padding: .25rem .8rem; border-radius: 999px; margin-bottom: .9rem; border: 2px solid var(--ink); }
.tag-mint { background: var(--mint); }
.tag-coral { background: var(--coral); color: #fff; }
.tag-coral { background: var(--coral); color: #fff; }
.price-card-featured { background: var(--violet); color: #fff; box-shadow: 8px 8px 0 var(--ink); }
.price-card-featured:hover { box-shadow: 12px 12px 0 var(--ink); }
.price-card-featured .per, .price-card-featured .price-note { color: #E3DCFF; }
.price-card-featured .ticks li::before { background-color: var(--sun); }
.price-badge {
  position: absolute; top: -1rem; right: 1.5rem; transform: rotate(4deg);
  background: var(--sun); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; padding: .3rem 1rem; font-size: .95rem;
}
.price-card-featured h3 { margin-top: .2rem; }
.was { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1; opacity: .85; }
.was s { text-decoration-thickness: 3px; text-decoration-color: var(--sun); }
.price-card-featured .price-note { font-weight: 600; }
.intro-note { max-width: 46rem; margin: 2.2rem auto 0; text-align: center; background: var(--sun); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: .9rem 1.2rem; font-size: 1rem; box-shadow: 4px 4px 0 var(--ink); }
.intro-note + .pricing-footnote { margin-top: 1.2rem; }
.hero-points li.intro-li::before { display: none; }
.intro-chip { font-size: .82rem; font-weight: 700; background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: .05rem .55rem; white-space: nowrap; }
.was-inline { display: inline-block; font-size: .5em; color: var(--ink-soft); font-weight: 600; vertical-align: middle; }
.pricing-footnote { text-align: center; color: var(--ink-soft); margin-top: 2rem; font-size: .98rem; }
@media (min-width: 900px) {
  .pricing { grid-template-columns: 1.15fr 1fr 1fr; }
  .price-card-featured { transform: translateY(-10px); }
  .price-card-featured:hover { transform: translateY(-16px); }
}

/* Our work / portfolio */
.work { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .work { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .work { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .work { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } .work-body { padding: 1.2rem 1.25rem 1.4rem; } .work-body h3 { font-size: 1.25rem; } .work-body p { font-size: .98rem; } }
.work-card[hidden] { display: none; }
.tag-concept { background: var(--violet-soft); color: var(--violet-dark); border: 2px dashed var(--violet); }
.work-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .6rem; text-align: center; max-width: 760px; margin: 1.8rem auto 0; color: var(--ink-soft); font-size: .95rem; }
.work-filters { display: none; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: -1rem 0 2rem; }
.js .work-filters { display: flex; }
.work-filter {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; cursor: pointer;
  padding: .45rem 1.1rem; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--white); color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s ease, background .2s;
}
.work-filter:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.work-filter[aria-pressed="true"] { background: var(--violet); color: #fff; }
.work-card {
  display: flex; flex-direction: column; background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s ease;
}
.work-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-pop); }
.work-thumb { display: block; position: relative; background: var(--cream-deep); border-bottom: 2.5px solid var(--ink); overflow: hidden; text-decoration: none; }
.work-thumb-bar { display: flex; align-items: center; gap: .35rem; padding: .55rem .8rem; background: var(--ink); }
.work-thumb-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--coral); }
.work-thumb-bar i:nth-child(2) { background: var(--sun); }
.work-thumb-bar i:nth-child(3) { background: var(--mint); }
.work-url { margin-left: .5rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; color: #C9C6E8; background: #2A2850; border-radius: 999px; padding: .1rem .7rem; }
.work-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.work-body p { color: var(--ink-soft); }
.work-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; }
.tag { font-family: var(--font-display); font-weight: 600; font-size: .82rem; padding: .2rem .75rem; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); }
.tag-sun { background: var(--sun); }
.tag-mint { background: var(--mint); }
.tag-outline { background: var(--white); }
.work-link {
  margin-top: auto; align-self: flex-start; display: inline-flex; gap: .35rem; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--violet); text-decoration: none;
  border-bottom: 3px solid var(--sun); padding-bottom: .1rem; transition: gap .2s var(--ease), color .2s;
}
.work-link:hover { gap: .6rem; color: var(--violet-dark); }
.work-card-placeholder { border-style: dashed; background: transparent; }
.work-card-placeholder:hover { transform: none; box-shadow: none; }
.work-thumb-empty { border-bottom-style: dashed; }
.work-empty-inner { aspect-ratio: 16 / 10; display: grid; place-content: center; justify-items: center; gap: .3rem; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink-soft); }
.work-empty-icon { font-size: 2.2rem; animation: bob 4s ease-in-out infinite; }

/* Industries */
.industries { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .industries { grid-template-columns: repeat(3, 1fr); } }
.industry {
  position: relative; background: #2A2850; border: 2px solid #3A3870; border-radius: var(--radius); padding: 1.5rem 1.4rem 1.4rem;
  transition: transform .25s var(--ease), border-color .2s ease, background .2s;
}
.industry:hover { transform: translateY(-6px) rotate(.5deg); border-color: var(--accent); background: #302E5C; }
.industry-icon {
  display: inline-grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 18px; font-size: 1.9rem; margin-bottom: 1rem;
  background: var(--accent); border: 2.5px solid #fff; box-shadow: 4px 4px 0 rgba(0, 0, 0, .35); transition: transform .3s var(--ease);
}
.industry:hover .industry-icon { transform: rotate(-10deg) scale(1.08); }
.industry h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.industry p { color: #C9C6E8; font-size: .98rem; margin-bottom: 1rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { font-size: .88rem; font-weight: 500; color: #fff; background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: .2rem .7rem; transition: background .2s, color .2s; }
.industry:hover .chips li { border-color: var(--accent); }
.examples-cta { text-align: center; margin: 2.5rem 0 0; color: #C9C6E8; }
.examples-cta a { color: var(--sun); font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: .85rem; }
.faq details {
  background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s ease, transform .2s var(--ease);
}
.faq details:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.faq details[open] { box-shadow: 4px 4px 0 var(--violet); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--sun); border: 2px solid var(--ink); font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease), background .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--mint); }
.faq-body { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.faq-body p { margin: 0; }
.faq details[open] .faq-body { animation: drop .3s ease; }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
.contact-intro .section-sub { max-width: 30em; }
.contact-intro h2 { margin-bottom: .6rem; }
.contact-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.contact-points li { display: flex; gap: .85rem; align-items: flex-start; }
.cp-icon { flex: none; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; font-size: 1.2rem; }
.placeholder-link { font-weight: 700; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 3.5rem; } }

.enquiry-form {
  background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.3rem); box-shadow: 8px 8px 0 var(--ink);
  display: grid; gap: 1.1rem;
}
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-weight: 700; font-size: .98rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 2px solid rgba(29, 27, 58, .22); border-radius: 14px; padding: .8rem .95rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%231D1B3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 1rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(29, 27, 58, .45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(108, 77, 246, .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #FFF5F3; }
.field-error { margin: 0; color: var(--danger); font-size: .9rem; font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: 16px; padding: 1rem 1.15rem; font-weight: 500; border: 2px solid var(--ink); display: flex; gap: .8rem; align-items: flex-start; animation: pop .35s var(--ease); }
.form-status[hidden] { display: none; }
.form-status .fs-icon { flex: none; font-size: 1.4rem; line-height: 1.2; }
.form-status strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; display: block; }
.form-status.is-success { background: #D3F7EC; }
.form-status.is-error { background: #FFE4DD; }
.form-status.is-info { background: #FFF0C7; }
.form-status a { color: var(--ink); font-weight: 700; }

.spinner { display: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .85; }

/* Footer */
.site-footer { background: var(--ink); color: #C9C6E8; padding: 3.5rem 0 1.5rem; border-top: 6px solid var(--sun); }
.footer-inner { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #3A3870; }
.brand-footer { color: #fff; }
.footer-brand p { margin: .6rem 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer-nav a, .footer-contact a { color: #fff; text-decoration: none; font-weight: 500; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--sun); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-top: 1.5rem; font-size: .92rem; }
.footer-base p { margin: 0; }
.to-top { color: var(--sun); text-decoration: none; font-weight: 700; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.3fr 2fr 1fr; align-items: center; } .footer-contact { justify-self: end; } }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes floaty { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(20px, -25px) scale(1.06); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes morph {
  0%, 100% { border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
  50% { border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45, 212, 167, .6); } 70% { box-shadow: 0 0 0 10px rgba(45, 212, 167, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 212, 167, 0); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } 70% { transform: translateY(2px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Simple pages (thanks / 404) ---------- */
.simple-page { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.simple-card { display: grid; justify-items: center; }
.simple-card .brand { margin-bottom: 2rem; }
.simple-card h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.simple-emoji { font-size: 3.5rem; line-height: 1; margin-bottom: 1rem; animation: bob 4s ease-in-out infinite; }
.simple-actions { justify-content: center; }

/* Mascot peeking in the contact section */
.contact-peek { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.contact-peek picture { flex: none; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  background: linear-gradient(145deg, var(--violet), #8B6CFF 60%, var(--lilac)); }
.contact-peek img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18) translate(2%, -8%); }
.peek-bubble { position: relative; background: var(--white); border: 2.5px solid var(--ink); border-radius: 16px; padding: .4rem .85rem; font-family: var(--font-display); font-weight: 600; }
.peek-bubble::before { content: ''; position: absolute; left: -9px; top: 50%; width: 14px; height: 14px; background: var(--white); border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-50%) rotate(45deg); }
.contact-intro:hover .contact-peek picture { animation: bounce .6s var(--ease); }

/* small phones: compact badges sitting on the circle edge, not over the mascot */
@media (max-width: 400px) {
  .float-card { font-size: .72rem; padding: .4rem .6rem; gap: .45rem; border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); }
  .float-card strong { font-size: .85rem; }
  .fc-icon { font-size: 1.1rem; }
  .float-card-1 { left: -.5rem; bottom: -3%; }
  .float-card-2 { right: -.5rem; top: -3%; }
}
