/* Data Dwarves portfolio: same tokens, fonts and components as datadwarves.com */
:root {
  --background: 40 33% 98%;
  --foreground: 25 50% 15%;
  --primary: 25 51% 41%;
  --primary-foreground: 40 33% 98%;
  --secondary: 43 100% 62%;
  --secondary-foreground: 25 50% 15%;
  --accent: 0 84% 47%;
  --accent-foreground: 0 0% 100%;
  --muted: 35 30% 90%;
  --muted-foreground: 25 30% 40%;
  --card: 40 33% 100%;
  --border: 30 30% 85%;
  --comp-coral: 5 85% 55%;
  --dd-red: 353 78% 56%;
  --dd-gold: 47 88% 66%;
  --dd-brown: 28 51% 28%;
  --footer-bg: 42 33% 94%;
  --footer-fg: 25 51% 41%;
  --footer-link-hover: 0 84% 47%;
  --footer-border: 30 20% 85%;
  --radius: 1rem;
  --font-display: "Outfit", "Trebuchet MS", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; border-color: hsl(var(--border)); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 650; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid hsl(var(--secondary)); outline-offset: 3px; border-radius: 6px; }

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 640px) { .container { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
@media (min-width: 1024px) { .container { padding-left: 32px; padding-right: 32px; } }
.section { padding-block: 5rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }

.text-gradient { background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.divider { width: 6rem; height: 4px; border-radius: 999px; background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary))); }
.divider.center { margin-inline: auto; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: hsl(var(--accent)); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: hsl(var(--muted-foreground)); max-width: 42rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.center { text-align: center; align-items: center; }
.center .lead { margin-inline: auto; }

/* Buttons (AnimatedButton) */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--font-body); padding: .95rem 1.5rem; border-radius: .75rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(.98); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .22), transparent); transform: translateX(-100%); }
.btn:hover::after { animation: shimmer 1.5s infinite; }
.btn svg { width: 1.15rem; height: 1.15rem; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.1rem; }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-accent { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); box-shadow: 0 0 20px rgb(230 57 70 / .3); }
.btn-accent:hover { box-shadow: 0 0 25px rgb(230 57 70 / .5); }
.btn-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.btn-outline { border-color: hsl(var(--primary)); color: hsl(var(--primary)); background: transparent; }
.btn-outline:hover { background: hsl(var(--primary) / .06); }
.btn-ghost { color: hsl(var(--foreground)); background: transparent; }
.btn-ghost:hover { background: hsl(var(--muted)); }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background-color .3s, box-shadow .3s, padding .3s; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; transition: padding .3s; }
.site-header.scrolled { background: hsl(var(--background) / .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 2px rgb(0 0 0 / .05); border-bottom: 1px solid hsl(var(--border)); }
.site-header.scrolled .bar { padding-block: .5rem; }
.brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.brand img { width: 12rem; height: 5rem; object-fit: cover; object-position: center; }
.brand .wordmark { display: none; font: 800 1.5rem var(--font-display); color: hsl(var(--primary)); }
.brand.no-logo img { display: none; }
.brand.no-logo .wordmark { display: inline; }
.brand .tag { font: 700 .7rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--accent)); border: 1.5px solid hsl(var(--accent) / .4); padding: .25rem .55rem; border-radius: 999px; white-space: nowrap; }
.nav { display: none; align-items: center; gap: 2rem; }
.nav a.link { position: relative; font-weight: 700; padding-block: .5rem; transition: color .2s; }
.nav a.link:hover, .nav a.link.active { color: hsl(var(--accent)); }
.nav a.link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, hsl(var(--accent)), hsl(var(--secondary))); }
.menu-toggle { display: inline-flex; background: none; border: 0; padding: .5rem; color: hsl(var(--foreground)); cursor: pointer; }
.menu-toggle svg { width: 1.75rem; height: 1.75rem; }
.mobile-menu { display: none; background: hsl(var(--background)); border-bottom: 1px solid hsl(var(--border)); box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1); }
.mobile-menu.open { display: block; }
.mobile-menu .container { display: flex; flex-direction: column; gap: .5rem; padding-block: 1.25rem; }
.mobile-menu a.link { font-size: 1.1rem; font-weight: 700; padding: 1rem; border-radius: .75rem; }
.mobile-menu a.link:hover { background: hsl(var(--muted)); }
.mobile-menu .btn { width: 100%; margin-top: .75rem; }
@media (min-width: 1024px) { .nav { display: flex; } .menu-toggle, .mobile-menu, .mobile-menu.open { display: none; } }
@media (max-width: 480px) { .brand img { width: 9rem; height: 3.75rem; } .brand .tag { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: calc(9rem + env(safe-area-inset-top, 0px)); padding-bottom: 5rem; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at top right, hsl(var(--accent) / .1), hsl(var(--background)) 55%, hsl(var(--secondary) / .12)); z-index: -1; }
.hero .pill { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: 0 1px 2px rgb(0 0 0 / .05); font-size: .9rem; font-weight: 700; }
.hero .pill .dot { width: .5rem; height: .5rem; border-radius: 50%; background: hsl(var(--accent)); animation: pulse 2s infinite; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1rem; }
.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.floaters svg { position: absolute; width: 3.5rem; height: 3.5rem; opacity: .28; animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-20px) rotate(8deg); } }
@keyframes pulse { 50% { opacity: .4; } }

/* Stats band (matches site's primary testimonial band) */
.band { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: 0; top: 0; width: 50%; height: 100%; background: linear-gradient(270deg, hsl(var(--accent) / .4), transparent); filter: blur(60px); pointer-events: none; }
.glass { position: relative; z-index: 1; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); border-radius: 1.5rem; padding: clamp(1.5rem, 4vw, 3.5rem); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .15); border-radius: 1rem; padding: 1.5rem; text-align: center; }
.stat b { display: block; font: 800 clamp(2.4rem, 5vw, 3.2rem)/1 var(--font-display); color: hsl(var(--secondary)); }
.stat span { display: block; margin-top: .5rem; font-size: .9rem; color: hsl(var(--primary-foreground) / .8); }

/* Filters + client cards */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-bottom: 3rem; }
.filter { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.25rem; border-radius: 999px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); font: 700 .9rem var(--font-body); color: hsl(var(--foreground)); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.filter:hover { border-color: hsl(var(--primary) / .5); }
.filter[aria-pressed="true"] { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } .card.wide { grid-column: span 2; } }
@media (min-width: 1100px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.three .card.wide { grid-column: span 3; } }
.card {
  display: flex; flex-direction: column; min-width: 0; background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 1.5rem; overflow: hidden; box-shadow: 0 1px 2px rgb(0 0 0 / .05); transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
a.card:hover { transform: translateY(-6px); box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); }
.card[hidden] { display: none; }
.card-head { position: relative; display: flex; align-items: center; gap: 1.1rem; padding: 1.75rem 2rem; color: #fff; }
.card-head .mono { width: 4rem; height: 4rem; flex-shrink: 0; display: grid; place-items: center; border-radius: 1rem; background: rgb(255 255 255 / .92); color: hsl(var(--dd-brown)); font: 800 1.45rem var(--font-display); box-shadow: 0 4px 10px rgb(0 0 0 / .12); }
.card-head h3 { color: #fff; }
.card-head .industry { font-size: .9rem; color: rgb(255 255 255 / .88); margin-top: .2rem; }
.card-head .since { position: absolute; top: 1rem; right: 1rem; font-size: .72rem; font-weight: 800; padding: .3rem .7rem; border-radius: 999px; background: rgb(255 255 255 / .2); }
.p-primary { background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / .75)); }
.p-accent { background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--comp-coral))); }
.p-secondary { background: linear-gradient(135deg, hsl(var(--dd-brown)), hsl(var(--primary))); }
.p-coral { background: linear-gradient(135deg, hsl(var(--comp-coral)), hsl(var(--accent))); }
.card-body { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.75rem 2rem 2rem; flex: 1; }
.card-body p { color: hsl(var(--muted-foreground)); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-chip { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px; background: hsl(var(--primary) / .1); color: hsl(var(--primary)); }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; color: hsl(var(--accent)); }
.more svg { width: 1rem; height: 1rem; transition: transform .2s; }
a.card:hover .more svg { transform: translateX(4px); }
.mini-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .5rem; padding: 0; margin: 0; list-style: none; }
.mini-sites li { font-size: .88rem; font-weight: 600; padding: .55rem .8rem; border-radius: .75rem; background: hsl(var(--muted)); }

/* Team */
.team { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1.5rem; padding: 1.75rem; box-shadow: 0 1px 2px rgb(0 0 0 / .05); transition: box-shadow .3s; }
.member:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1); }
.avatar { width: 6rem; height: 6rem; border-radius: 1rem; display: grid; place-items: center; color: #fff; font: 800 2rem var(--font-display); box-shadow: inset 0 2px 8px rgb(0 0 0 / .15); transition: transform .3s; }
.member:hover .avatar { transform: scale(1.05); }
.av-brown { background: hsl(var(--dd-brown)); } .av-red { background: hsl(var(--dd-red)); } .av-gold { background: hsl(var(--dd-gold)); color: hsl(var(--dd-brown)); }
.member h3 { color: hsl(var(--dd-brown)); transition: color .2s; }
.member:hover h3 { color: hsl(var(--dd-red)); }
.member .role { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--dd-brown) / .75); }
.member .focus { color: hsl(var(--muted-foreground)); }
.member .rule { height: 2px; width: 3rem; border-radius: 999px; background: hsl(var(--dd-gold)); opacity: .6; transition: width .3s, opacity .3s; }
.member:hover .rule { width: 6rem; opacity: 1; }

/* CTA (bg-gradient-brand) */
.cta { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: clamp(1.5rem, 4vw, 3rem); padding: clamp(2.5rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4rem); background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary)) 40%, hsl(var(--accent))); box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); }
.cta h2 { color: #fff; }
.cta p { color: rgb(255 255 255 / .9); font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 40rem; margin-inline: auto; }
.cta .contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.5rem; font-weight: 700; }
.cta .contact-row a { border-bottom: 2px solid rgb(255 255 255 / .35); }
.cta .contact-row a:hover { border-color: hsl(var(--secondary)); }

/* Process */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.25rem; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1.5rem; padding: 1.75rem; display: flex; flex-direction: column; gap: .6rem; }
.step b { font: 800 2.5rem/1 var(--font-display); color: hsl(var(--accent)); }
.step p { color: hsl(var(--muted-foreground)); }
.bg-muted { background: hsl(var(--muted)); }

/* Project page */
.project-hero { position: relative; color: #fff; padding-top: calc(9rem + env(safe-area-inset-top, 0px)); padding-bottom: 4.5rem; overflow: hidden; }
.project-hero::after { content: ""; position: absolute; right: -10%; top: -20%; width: 50vw; height: 50vw; border-radius: 50%; background: rgb(255 255 255 / .12); filter: blur(60px); pointer-events: none; }
.project-hero .container { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1.25rem; }
.project-hero h1 { color: #fff; }
.project-hero .meta { display: flex; flex-wrap: wrap; gap: .6rem; }
.project-hero .meta span { font-size: .85rem; font-weight: 700; padding: .4rem .9rem; border-radius: 999px; background: rgb(255 255 255 / .18); }
.project-hero .lead { color: rgb(255 255 255 / .92); }
.crumbs { font-size: .9rem; font-weight: 700; color: rgb(255 255 255 / .85); display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.project-body { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .project-body { grid-template-columns: 1.6fr 1fr; gap: 4rem; align-items: start; } }
.prose { display: flex; flex-direction: column; gap: 1.1rem; font-size: 1.125rem; color: hsl(var(--muted-foreground)); max-width: 44rem; min-width: 0; }
.prose h2 { color: hsl(var(--foreground)); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.panel { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1.5rem; padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; box-shadow: 0 1px 2px rgb(0 0 0 / .05); min-width: 0; }
@media (min-width: 1024px) { .panel { position: sticky; top: 7rem; } }
.panel h3 { font-size: 1.15rem; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks li::before { content: ""; flex-shrink: 0; width: 1.3rem; height: 1.3rem; margin-top: .15rem; border-radius: 50%; background: hsl(var(--secondary)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23382614' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat; }
.sites-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .75rem; }
.sites-grid li { display: flex; align-items: center; gap: .75rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1rem; padding: 1rem 1.1rem; font-weight: 700; color: hsl(var(--foreground)); font-size: 1rem; }
.sites-grid li i { font-style: normal; width: 2.2rem; height: 2.2rem; flex-shrink: 0; border-radius: .6rem; display: grid; place-items: center; background: hsl(var(--accent) / .1); color: hsl(var(--accent)); font: 800 .85rem var(--font-display); }
.gallery { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; border-radius: 1.5rem; overflow: hidden; border: 4px solid hsl(var(--card)); box-shadow: 0 25px 50px -12px rgb(0 0 0 / .2); background: hsl(var(--muted)); }
.gallery img { width: 100%; height: auto; }
.next-nav { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .next-nav { grid-template-columns: 1fr 1fr; } }
.next-nav a { display: flex; flex-direction: column; gap: .3rem; padding: 1.5rem; border-radius: 1.25rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); transition: border-color .2s, transform .2s; min-width: 0; }
.next-nav a:hover { border-color: hsl(var(--primary) / .5); transform: translateY(-3px); }
.next-nav small { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--accent)); }
.next-nav strong { font: 700 1.25rem var(--font-display); }
.next-nav a.next { text-align: right; }

/* Footer */
.site-footer { background: hsl(var(--footer-bg)); color: hsl(var(--footer-fg)); padding-top: 5rem; padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px)); position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { font-size: 1.1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.site-footer a { font-weight: 500; transition: color .2s; }
.site-footer a:hover { color: hsl(var(--footer-link-hover)); }
.site-footer .about { opacity: .85; font-size: 1.05rem; max-width: 26rem; margin-block: 1rem 1.5rem; }
.socials { display: flex; gap: .75rem; }
.socials a { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--footer-fg) / .1); transition: background-color .2s, color .2s, transform .2s; }
.socials a:hover { background: hsl(var(--footer-link-hover)); color: #fff; transform: translateY(-3px); }
.socials svg { width: 1.2rem; height: 1.2rem; }
.footer-bottom { border-top: 1px solid hsl(var(--footer-border)); padding-top: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .9rem; font-weight: 500; opacity: .8; }

/* Gentle entrance: content is visible by default; JS only adds motion */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }

/* Project pages: header sits on a coloured hero until the page scrolls */
.on-dark .site-header:not(.scrolled) .brand .wordmark,
.on-dark .site-header:not(.scrolled) .nav a.link,
.on-dark .site-header:not(.scrolled) .menu-toggle { color: #fff; }
.on-dark .site-header:not(.scrolled) .nav a.link.active::after { background: #fff; }
.on-dark .site-header:not(.scrolled) .brand .tag { color: #fff; border-color: rgb(255 255 255 / .55); }
.on-dark .site-header:not(.scrolled) .btn-accent { background: #fff; color: hsl(var(--accent)); box-shadow: none; }
.on-dark .site-header:not(.scrolled) .mobile-menu a.link { color: hsl(var(--foreground)); }

/* Second featured project spans two columns in the 3-column layout */
@media (min-width: 768px) { .grid .card.feature { grid-column: span 2; } }

.band-note { position: relative; margin-top: 1.25rem; font-size: .8rem; text-align: center; color: hsl(var(--primary-foreground) / .7); }
.stat span { text-wrap: balance; }

/* Services */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.service { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1.5rem; padding: 1.75rem; display: flex; flex-direction: column; gap: .6rem; transition: transform .3s, box-shadow .3s, border-color .3s; }
.service:hover { transform: translateY(-6px); box-shadow: 0 20px 25px -5px rgb(0 0 0 / .08); border-color: hsl(var(--accent) / .35); }
.service-ic { width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: grid; place-items: center; background: hsl(var(--accent) / .1); color: hsl(var(--accent)); margin-bottom: .5rem; transition: transform .3s; }
.service:nth-child(3n+2) .service-ic { background: hsl(var(--secondary)); color: hsl(var(--dd-brown)); }
.service:nth-child(3n) .service-ic { background: hsl(var(--primary) / .12); color: hsl(var(--primary)); }
.service:hover .service-ic { transform: rotate(-8deg) scale(1.08); }
.service-ic svg { width: 1.75rem; height: 1.75rem; }
.service h3 { font-size: 1.3rem; }
.service p { color: hsl(var(--muted-foreground)); }

.card-stat { padding: .85rem 1rem; border-radius: .9rem; background: hsl(var(--secondary) / .25); color: hsl(var(--dd-brown)) !important; font-size: .95rem; }
.card-stat b { font: 800 1.35rem var(--font-display); color: hsl(var(--accent)); margin-right: .25rem; }

/* Analytics */
.metric-cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .metric-cards.cols-2, .metric-cards.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .metric-cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.metric-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1.5rem; padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; box-shadow: 0 1px 2px rgb(0 0 0 / .05); min-width: 0; }
.metric-top { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.metric-top h3 { font-size: 1.2rem; }
.metric-top > div { min-width: 0; }
.ig-badge { width: 2.75rem; height: 2.75rem; flex-shrink: 0; border-radius: .8rem; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, hsl(var(--secondary)), hsl(var(--accent)) 55%, hsl(var(--primary))); }
.ig-badge svg { width: 1.4rem; height: 1.4rem; }
.handle { font-size: .9rem; font-weight: 700; color: hsl(var(--accent)); overflow-wrap: anywhere; }
.handle:hover { text-decoration: underline; }
.metric-hero b { display: block; font: 800 clamp(2.6rem, 5vw, 3.4rem)/1 var(--font-display); color: hsl(var(--primary)); font-variant-numeric: tabular-nums; }
.metric-hero span { font-size: .9rem; color: hsl(var(--muted-foreground)); }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 0; }
.metric-grid div { background: hsl(var(--muted) / .6); border-radius: .9rem; padding: .8rem .9rem; }
.metric-grid dt { font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: hsl(var(--muted-foreground)); }
.metric-grid dd { margin: .15rem 0 0; font: 800 1.35rem var(--font-display); font-variant-numeric: tabular-nums; }
.chart-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 1024px) { .chart-grid { grid-template-columns: 1fr 1fr; } .chart-grid.one { grid-template-columns: 1fr; } }
.chart { margin: 0; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1.5rem; padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.chart figcaption { display: flex; flex-direction: column; gap: .15rem; margin-bottom: .25rem; }
.chart figcaption b { font: 700 1.15rem var(--font-display); }
.chart figcaption span { font-size: .8rem; color: hsl(var(--muted-foreground)); }
.bar-row { display: grid; grid-template-columns: minmax(0, 9.5rem) 1fr auto; align-items: center; gap: .9rem; }
.bar-label { font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: .9rem; border-radius: 999px; background: hsl(var(--muted)); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent))); }
.bar-row:first-of-type .bar-fill { background: linear-gradient(90deg, hsl(var(--accent)), hsl(var(--comp-coral))); }
.bar-value { font-size: .9rem; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 4.5rem; text-align: right; }
@media (max-width: 520px) { .bar-row { grid-template-columns: 1fr auto; } .bar-label { grid-column: 1 / -1; } }
.source { margin-top: 1.5rem; font-size: .82rem; color: hsl(var(--muted-foreground)); max-width: 50rem; }
.sub-head { margin: 3rem 0 1.25rem; font-size: 1.5rem; }
.table-wrap { overflow-x: auto; border: 1px solid hsl(var(--border)); border-radius: 1.25rem; background: hsl(var(--card)); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 40rem; }
.data-table th, .data-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid hsl(var(--border)); }
.data-table th { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); background: hsl(var(--muted) / .5); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; color: hsl(var(--accent)); }

/* Films & reels */
.films { background: hsl(var(--dd-brown)); color: hsl(var(--primary-foreground)); }
.films h2, .films .sub-head { color: hsl(var(--primary-foreground)); }
.films .lead { color: hsl(var(--primary-foreground) / .8); }
.films .eyebrow { color: hsl(var(--secondary)); }
.films .chart { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .14); color: hsl(var(--primary-foreground)); }
.films .chart figcaption span { color: hsl(var(--primary-foreground) / .7); }
.films .bar-track { background: rgb(255 255 255 / .12); }
.films .bar-fill { background: linear-gradient(90deg, hsl(var(--secondary)), hsl(var(--dd-gold))); }
.video-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .video-grid { grid-template-columns: repeat(6, 1fr); } .video-card:nth-child(-n+2) { grid-column: span 3; } .video-card:nth-child(n+3) { grid-column: span 2; } }
.video-card { display: flex; flex-direction: column; border-radius: 1.25rem; overflow: hidden; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); transition: transform .3s, background-color .3s; min-width: 0; }
.video-card:hover { transform: translateY(-6px); background: rgb(255 255 255 / .12); }
.thumb { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent))); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-card:hover .thumb img { transform: scale(1.05); }
.play { position: absolute; inset: 0; margin: auto; width: 3.75rem; height: 3.75rem; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--accent)); color: #fff; box-shadow: 0 10px 25px rgb(0 0 0 / .35); transition: transform .3s; }
.play svg { width: 1.6rem; height: 1.6rem; margin-left: 3px; }
.video-card:hover .play { transform: scale(1.1); }
.views-pill { position: absolute; left: .75rem; bottom: .75rem; font-size: .8rem; font-weight: 800; padding: .3rem .7rem; border-radius: 999px; background: rgb(0 0 0 / .65); color: #fff; }
.video-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; }
.video-body h3 { font-size: 1.1rem; color: hsl(var(--primary-foreground)); }
.video-body p { font-size: .85rem; color: hsl(var(--primary-foreground) / .7); }
.reel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 900px) { .reel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.reel-card { position: relative; aspect-ratio: 9 / 13; max-width: 100%; border-radius: 1.25rem; overflow: hidden; padding: 1.1rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem; color: #fff; background: linear-gradient(160deg, hsl(var(--primary)) 0%, hsl(var(--dd-brown)) 45%, hsl(var(--accent)) 130%); border: 1px solid rgb(255 255 255 / .14); transition: transform .3s; }
.reel-card:nth-child(3n+2) { background: linear-gradient(160deg, hsl(var(--accent)) 0%, hsl(var(--dd-brown)) 60%); }
.reel-card:nth-child(3n) { background: linear-gradient(160deg, hsl(var(--dd-gold)) -20%, hsl(var(--primary)) 40%, hsl(var(--dd-brown)) 100%); }
.reel-card:hover { transform: translateY(-6px); }
.reel-play { position: absolute; top: 1rem; right: 1rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .2); backdrop-filter: blur(6px); }
.reel-play svg { width: 1.1rem; height: 1.1rem; margin-left: 2px; }
.reel-account { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--secondary)); }
.reel-body h3 { font-size: 1.05rem; color: #fff; line-height: 1.3; }
.reel-body { display: flex; flex-direction: column; gap: .35rem; }
.reel-body p { font-size: .8rem; color: rgb(255 255 255 / .75); }
.reel-cta { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 800; color: #fff; opacity: .9; }
.reel-cta svg { width: .9rem; height: .9rem; }
@media (max-width: 420px) { .reel-card { aspect-ratio: auto; min-height: 15rem; } }

/* Real reel covers */
.reel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s; }
.reel-card:hover .reel-img { transform: scale(1.05); }
.reel-card:has(.reel-img)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(0 0 0 / .05) 30%, rgb(30 18 8 / .92) 100%); }
.reel-card > *:not(.reel-img) { position: relative; z-index: 2; }
.reel-card > .reel-play { position: absolute; }
