/* =====================================================================
   HumansOfCoding — style.css
   1. Tokens          6. Hero
   2. Reset/base      7. Sections (problem → contact)
   3. Layout          8. Footer + mobile bar
   4. Components      9. Responsive
   5. Nav            10. Reduced motion
   ===================================================================== */

/* ------------------------------ 1. TOKENS ------------------------------ */
:root {
  --bg: #f6f9fd;
  --bg-2: #e9f1fa;
  --card: #ffffff;
  --fg: #0e1a26;
  --fg-2: #55667c;
  --line: #d9e5f1;
  --line-strong: #b7cade;
  /* --accent carries text and button fills, so it is the contrast-safe blue
     (5.2:1 on white, 4.9:1 on the page background).
     --accent-light is decoration only: doodles, sketch strokes, sparks. */
  --accent: #0f6ccc;
  --accent-hover: #0b57a8;
  --accent-light: #4da3f5;
  --accent-fg: #ffffff;
  --accent-soft: #e3f0fd;
  --accent-glow: 15, 108, 204;
  --shadow-sm: 0 2px 0 var(--line-strong);
  --shadow-md: 0 10px 30px rgba(14, 26, 38, .08);
  --shadow-lg: 0 24px 60px rgba(14, 26, 38, .13);

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;

  --radius: 20px;
  --radius-hand: 22px 20px 24px 18px / 20px 24px 18px 22px;
  --nav-h: 62px;
  --ease: cubic-bezier(.22, .9, .3, 1);
  --maxw: 1180px;
}

:root[data-theme="dark"] {
  --bg: #0b1219;
  --bg-2: #101a25;
  --card: #14202c;
  --fg: #eaf2fa;
  --fg-2: #93a6bb;
  --line: #22303f;
  --line-strong: #34485d;
  --accent: #56aaff;
  --accent-hover: #83c2ff;
  --accent-light: #7dc0ff;
  --accent-fg: #06121e;
  --accent-soft: rgba(86, 170, 255, .15);
  --accent-glow: 86, 170, 255;
  --shadow-sm: 0 2px 0 var(--line-strong);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}

/* ---------------------------- 2. RESET/BASE ---------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}

::selection { background: var(--accent); color: var(--accent-fg); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; }

/* scroll progress */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ----------------------------- 3. LAYOUT ------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section {
  position: relative;
  padding-block: clamp(60px, 10vw, 104px);
}
.section--alt { background: var(--bg-2); }

.sec-head { max-width: 44rem; margin-bottom: clamp(32px, 6vw, 56px); }
.sec-head--center { margin-inline: auto; text-align: center; }

.sec-title {
  font-size: clamp(1.85rem, 6.6vw, 3.15rem);
  margin-block: 12px 0;
  text-wrap: balance;
}
.sec-sub {
  margin-top: 16px;
  color: var(--fg-2);
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); }
  50% { box-shadow: 0 0 0 7px transparent; }
}

/* ---------------------------- 4. COMPONENTS ---------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 19px; height: 19px; flex: none; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-fg);
  box-shadow: 0 6px 20px rgba(var(--accent-glow), .3);
}
.btn--primary:hover { --btn-bg: var(--accent-hover); box-shadow: 0 12px 28px rgba(var(--accent-glow), .4); }

.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--fg); background: var(--card); }

.btn--outline {
  border-color: currentColor;
  background: transparent;
}
.btn--outline:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.btn--sm { min-height: 42px; padding: 10px 18px; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 1.04rem; }
.btn--xl { min-height: 60px; padding: 18px 34px; font-size: 1.08rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 7px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 2px solid transparent;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: 10px; }

.card {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-hand);
  padding: clamp(20px, 4vw, 28px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card h3 {
  font-size: 1.16rem;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.card p { color: var(--fg-2); font-size: .97rem; }
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.cards { display: grid; gap: clamp(14px, 2.6vw, 22px); }

/* reveal-on-scroll — only hidden when JS is available to reveal it again */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------- 5. NAV -------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; padding-block: 5px; font-weight: 600; }
.brand__mark {
  width: 34px; height: 34px;
  color: var(--accent);
  flex: none;
  transition: transform .5s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.06); }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.nav__links { display: none; gap: 20px; }
.nav__links a {
  position: relative;
  font-size: .93rem;
  color: var(--fg-2);
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--fg); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__cta { display: none; }

.icon-btn {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.icon-btn:hover { border-color: var(--fg); transform: rotate(18deg); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

.burger {
  width: 44px; height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 17px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: var(--bg);
  overflow-y: auto;
  animation: menuIn .3s var(--ease);
}
.menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

.menu__inner {
  display: flex;
  flex-direction: column;
  padding: 22px clamp(20px, 5vw, 40px) 40px;
  max-width: var(--maxw);
  margin-inline: auto;
}
.menu__inner > a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 2px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: 1.5px solid var(--line);
}
.menu__inner > a span {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
}
.menu__cta { display: grid; gap: 12px; margin-top: 26px; }

/* ------------------------------- 6. HERO ------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(28px, 8vw, 62px));
  padding-bottom: 0;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(115% 78% at 50% 6%, #000 0%, transparent 72%);
  mask-image: radial-gradient(115% 78% at 50% 6%, #000 0%, transparent 72%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.blob--1 { width: 300px; height: 300px; top: -80px; right: -60px; background: var(--accent-soft); }
.blob--2 { width: 260px; height: 260px; bottom: 40px; left: -100px; background: var(--accent-soft); opacity: .4; }

.hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(28px, 6vw, 40px); }

/* grid/flex children default to min-width:auto — that lets long words push
   the track wider than the viewport. Never let that happen. */
.hero__inner > *, .problem__layout > *, .about__inner > *, .cards > * { min-width: 0; }

.hero__title {
  font-size: clamp(2.2rem, 10.4vw, 4.6rem);
  margin-top: 14px;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
}
.hero__title .line { display: block; }
.hl { position: relative; display: inline-block; white-space: nowrap; }
.hl__stroke {
  position: absolute;
  left: -2%;
  bottom: -.08em;
  width: 104%;
  height: .32em;
  color: var(--accent-light);
  overflow: visible;
}
.hl__stroke path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw 1s var(--ease) .7s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__sub {
  margin-top: 20px;
  max-width: 32rem;
  font-size: clamp(1.03rem, 3.6vw, 1.24rem);
  color: var(--fg-2);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero__actions .btn { flex: 1 1 auto; min-width: 175px; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 26px;
}
.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 13px;
  border: 1.5px dashed var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: .95rem;
}
:root[data-theme="dark"] .price-badge { color: var(--accent-hover); }
.price-badge svg { width: 17px; height: 17px; }
.hero__note { font-size: .88rem; color: var(--fg-2); }

/* hero art */
.hero__art { position: relative; }
.art-stage {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
  aspect-ratio: 400 / 344;
  color: var(--fg);
}
.char { width: 100%; height: 100%; }
.char--adil { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.char .draw {
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  animation: draw 1.4s var(--ease) forwards;
}
.char g[class] { transform-box: view-box; }
.char--adil .head { animation: tilt 7s ease-in-out infinite; transform-origin: 150px 180px; }
@keyframes tilt { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(2.5deg); } }
.char .eye {
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  animation: blink 5.5s infinite;
  transform-origin: center;
}
@keyframes blink {
  0%, 92%, 100% { opacity: 1; }
  94%, 97% { opacity: .12; }
}
.char--adil .arm { animation: point 5s ease-in-out infinite; transform-origin: 206px 240px; }
@keyframes point { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-7deg); } }

.ui-card {
  position: absolute;
  top: 2%;
  right: -2%;
  width: 44%;
  padding: 10px;
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  animation: float 5.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}
.ui-card__bar { display: flex; gap: 4px; margin-bottom: 9px; }
.ui-card__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.ui-card__bar i:first-child { background: var(--accent); }
.ui-row { height: 7px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.ui-row--title { width: 62%; height: 10px; background: var(--fg); opacity: .75; }
.ui-row--short { width: 44%; }
.ui-chart { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin: 11px 0; }
.ui-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: var(--accent-soft);
  border-top: 2px solid var(--accent);
  animation: grow 2.4s var(--ease) infinite alternate;
}
.ui-chart span:nth-child(2) { animation-delay: .2s; }
.ui-chart span:nth-child(3) { animation-delay: .4s; }
.ui-chart span:nth-child(4) { animation-delay: .6s; }
.ui-chart span:nth-child(5) { animation-delay: .8s; }
@keyframes grow { from { height: calc(var(--h) * .55); } to { height: var(--h); } }
.ui-btn {
  padding: 6px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: .68rem;
  font-weight: 600;
  text-align: center;
}

.doodle {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  line-height: 1;
  animation: floaty 6s ease-in-out infinite;
}
.doodle em {
  font-family: var(--font-hand);
  font-style: normal;
  font-size: .62em;
  color: var(--fg-2);
}
.doodle--idea { top: 1%; left: 3%; animation-delay: 0s; }
.doodle--code { top: 32%; left: 0; animation-delay: .8s; font-family: var(--font-display); color: var(--accent); }
.doodle--app { bottom: 24%; right: 3%; animation-delay: 1.6s; }
.doodle--rocket { bottom: 5%; left: 7%; animation-delay: 2.4s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-13px) rotate(4deg); }
}

.spark {
  position: absolute;
  top: 6%;
  right: 46%;
  width: 34px;
  color: var(--accent-light);
  opacity: .8;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* marquee */
.marquee {
  position: relative;
  z-index: 1;
  margin-top: clamp(30px, 7vw, 56px);
  padding-block: 14px;
  border-block: 1.5px solid var(--line);
  background: var(--card);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: slide 32s linear infinite; }
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.95rem, 3vw, 1.15rem);
  letter-spacing: -.01em;
  white-space: nowrap;
  padding-right: 1rem;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ----------------------------- 7. SECTIONS ----------------------------- */
/* problem */
.problem__layout { display: grid; gap: clamp(24px, 5vw, 44px); }
.problem__list { display: grid; gap: 12px; }
.prob {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-hand);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.prob:hover { transform: translateX(5px); border-color: var(--accent); }
.prob h3 { font-size: 1.02rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.prob__x {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
}

.problem__art { display: grid; place-items: center; }
.problem__art .char { width: min(80%, 290px); color: var(--fg); }
.char--stressed .head--wobble { animation: wobble 3.4s ease-in-out infinite; transform-origin: 150px 150px; }
@keyframes wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.q-marks .q { color: var(--accent); animation: qpop 3s ease-in-out infinite; }
.q-marks .q2 { animation-delay: .5s; }
.q-marks .q3 { animation-delay: 1s; }
.q-marks .q4 { animation-delay: 1.5s; }
@keyframes qpop {
  0%, 100% { opacity: .35; transform: translateY(4px) scale(.94); }
  50% { opacity: 1; transform: translateY(-4px) scale(1.06); }
}

.handoff {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: clamp(34px, 7vw, 54px);
}
.handoff__scribble {
  font-family: var(--font-hand);
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  color: var(--accent);
  transform: rotate(-2deg);
}
.handoff__arrow { width: clamp(48px, 12vw, 74px); color: var(--fg-2); transform: rotate(6deg); }

/* services */
.card--service { padding-top: clamp(24px, 4vw, 30px); }
.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 18px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  color: var(--accent);
  background: var(--accent-soft);
  transition: transform .4s var(--ease), border-radius .4s var(--ease);
}
.card__icon svg { width: 27px; height: 27px; }
.card--service:hover .card__icon { transform: rotate(-8deg) scale(1.06); border-radius: 50%; }
.card__corner {
  position: absolute;
  right: 14px; bottom: 14px;
  width: 16px; height: 16px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 0 0 6px 0;
  opacity: 0;
  transform: translate(-6px, -6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.card--service:hover .card__corner { opacity: 1; transform: none; }

.cards__foot, .ind__foot, .contact__foot {
  margin-top: clamp(26px, 5vw, 38px);
  text-align: center;
  color: var(--fg-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}

/* industries */
.card--ind { overflow: hidden; }
.card--ind::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
  transform: scale(.6);
}
.card--ind:hover::before { opacity: 1; transform: scale(1); }
.card--ind > * { position: relative; }
.ind__emoji {
  display: inline-block;
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 14px;
  transition: transform .4s var(--ease);
}
.card--ind:hover .ind__emoji { transform: translateY(-4px) rotate(-8deg) scale(1.12); }

/* MVP */
.section--mvp { padding-block: clamp(40px, 8vw, 80px); }
.mvp__panel {
  position: relative;
  padding: clamp(34px, 7vw, 66px) clamp(20px, 5vw, 54px) clamp(30px, 6vw, 54px);
  background: var(--card);
  border: 2px solid var(--fg);
  border-radius: 28px 24px 30px 22px / 24px 30px 22px 28px;
  box-shadow: 10px 10px 0 var(--accent);
  text-align: center;
  overflow: hidden;
}
.mvp__tape {
  position: absolute;
  top: 18px; left: -46px;
  padding: 6px 52px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  transform: rotate(-38deg);
}
.section--mvp .sec-head { margin-bottom: clamp(26px, 5vw, 40px); }

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 6px;
  margin-bottom: clamp(28px, 6vw, 42px);
}
.flow__step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.flow__step:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--accent-soft); }
.flow__dot { font-size: .95rem; line-height: 1; }
.flow__arrow { color: var(--accent); font-weight: 700; }

.price { margin-bottom: clamp(24px, 5vw, 34px); }
.price__label {
  display: block;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 2px;
}
.price__value {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 16vw, 6rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.price__cur { font-size: .52em; margin-top: .18em; color: var(--accent); }
.price__hand {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-hand);
  font-size: clamp(1.15rem, 4.4vw, 1.5rem);
  color: var(--accent);
  transform: rotate(-2deg);
}

.mvp__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.mvp__actions .btn { flex: 1 1 auto; min-width: 200px; max-width: 320px; }
.disclaimer { margin-top: 18px; font-size: .85rem; color: var(--fg-2); }

/* process timeline */
.timeline { position: relative; display: grid; gap: 26px; padding-left: 42px; }
.tl__line {
  position: absolute;
  left: 17px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.tl__line i {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--accent);
  transform: scaleY(var(--p, 0));
  transform-origin: 50% 0;
  transition: transform .2s linear;
}
.tl { position: relative; }
.tl__num {
  position: absolute;
  left: -42px;
  top: -2px;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--bg-2);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.tl.is-in .tl__num { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.tl__body h3 { font-size: 1.22rem; margin-bottom: 6px; }
.tl__body p { color: var(--fg-2); }

/* about */
.section--about { background: var(--bg-2); padding-top: clamp(44px, 6vw, 72px); }
#process { padding-bottom: clamp(36px, 5vw, 60px); }
.about__inner { display: grid; gap: clamp(26px, 5vw, 52px); align-items: center; }
.about__frame {
  position: relative;
  width: min(100%, 340px);
  margin-inline: auto;
  padding: 18px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-hand);
  box-shadow: var(--shadow-md);
  transform: rotate(-2deg);
  transition: transform .5s var(--ease);
}
.about__frame:hover { transform: rotate(1deg) translateY(-4px); }
.char--wave { color: var(--fg); }
.char--wave .wave-arm { animation: wave 2.6s ease-in-out infinite; transform-origin: 206px 240px; }
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-16deg); }
  60% { transform: rotate(10deg); }
}
.about__sticker {
  position: absolute;
  right: -10px; bottom: -12px;
  padding: 7px 15px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 999px;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  transform: rotate(-6deg);
  box-shadow: var(--shadow-sm);
}
.about__lead {
  margin-top: 20px;
  font-size: clamp(1.06rem, 3.4vw, 1.28rem);
  font-weight: 500;
  text-wrap: pretty;
}
.about__text { margin-top: 14px; color: var(--fg-2); text-wrap: pretty; }
.about__sign {
  margin-top: 18px;
  font-family: var(--font-hand);
  font-size: 1.85rem;
  color: var(--accent);
}
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.about__actions .btn { flex: 1 1 auto; min-width: 190px; }
.wave-emoji { display: inline-block; animation: waveHand 2.8s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes waveHand {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(16deg); }
  20%, 40% { transform: rotate(-8deg); }
}

/* portfolio */
.proj { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.proj__thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 18px;
  border-bottom: 1.5px solid var(--line);
  background: var(--bg-2);
  color: var(--fg-2);
}
.proj__thumb--a { background: linear-gradient(160deg, var(--accent-soft), var(--bg-2)); }
.proj__thumb--c { background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 10px, var(--bg) 10px, var(--bg) 20px); }
.proj__thumb svg { width: 78%; transition: transform .5s var(--ease); }
.proj:hover .proj__thumb svg { transform: scale(1.06) rotate(-1.5deg); color: var(--accent); }
.proj__img { width: 100%; height: 100%; object-fit: cover; }
.proj__cat {
  align-self: flex-start;
  margin: 20px clamp(18px, 3vw, 24px) 0;
  padding: 4px 11px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.proj h3 { margin: 12px clamp(18px, 3vw, 24px) 0; font-size: 1.14rem; }
.proj p { margin: 8px clamp(18px, 3vw, 24px) clamp(20px, 3.4vw, 26px); }

.work__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 5vw, 42px);
}
.hand-note {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--accent);
  transform: rotate(-2deg);
}

/* testimonials */
.t { display: flex; flex-direction: column; padding-top: 30px; }
.t__flag {
  position: absolute;
  top: 12px; right: 12px;
  padding: 3px 9px;
  border: 1.5px dashed var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.t__quote {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: .6;
  color: var(--accent);
  margin-bottom: 12px;
}
.t blockquote { color: var(--fg-2); font-size: 1rem; flex: 1; }
.t figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1.5px solid var(--line);
}
.t__avatar {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--fg-2);
}
.t__avatar svg { width: 24px; height: 24px; }
.t__name { font-weight: 600; font-size: .95rem; }
.t__role { font-size: .82rem; color: var(--fg-2); }

/* final CTA */
.cta {
  position: relative;
  padding-block: clamp(70px, 13vw, 130px);
  background: var(--fg);
  color: var(--bg);
  overflow: hidden;
  text-align: center;
}
.cta__bg { position: absolute; inset: 0; pointer-events: none; }
.blob--3 {
  width: 420px; height: 420px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  opacity: .22;
  filter: blur(90px);
}
.cta__doodle { position: absolute; width: clamp(56px, 13vw, 96px); color: var(--accent-light); opacity: .6; }
.cta__doodle--1 { top: 12%; left: 6%; animation: floaty 8s ease-in-out infinite; }
.cta__doodle--2 { bottom: 12%; right: 6%; animation: floaty 9s ease-in-out 1.4s infinite; }
.cta__inner { position: relative; }
.cta__title {
  font-size: clamp(2.1rem, 8.4vw, 4rem);
  text-wrap: balance;
}
.cta__sub {
  margin-top: 16px;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.cta__actions .btn { flex: 1 1 auto; min-width: 220px; max-width: 340px; }
.cta .btn--outline { color: var(--bg); }
.cta .btn--outline:hover { background: var(--bg); color: var(--fg); border-color: var(--bg); }
.cta__note { margin-top: 22px; font-size: .95rem; opacity: .72; }

/* contact */
.contact-card { display: block; text-align: center; }
.contact__icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform .35s var(--ease);
}
.contact__icon svg { width: 24px; height: 24px; }
.contact-card:hover .contact__icon { transform: scale(1.08) rotate(-8deg); }
.contact__value { font-weight: 600; color: var(--fg) !important; word-break: break-word; }
.contact__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap .25s var(--ease);
}
.contact-card:hover .contact__go { gap: 11px; }

/* human + AI */
.human-card { padding-top: 30px; }
.human__step {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--fg-2);
  opacity: .55;
}
.human-card:hover .card__icon { transform: rotate(-8deg) scale(1.06); border-radius: 50%; }

.human__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: clamp(28px, 5vw, 46px);
  text-align: center;
}
.human__stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2.4vw, 14px);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  line-height: 1;
}
.human__stamp span { animation: floaty 6s ease-in-out infinite; }
.human__stamp span:nth-of-type(2) { animation-delay: .9s; }
.human__stamp span:nth-of-type(3) { animation-delay: 1.8s; }
.human__stamp i {
  font-family: var(--font-hand);
  font-style: normal;
  font-size: .82em;
  color: var(--accent);
}
.human__note {
  margin-top: 6px;
  font-family: var(--font-hand);
  font-size: clamp(1.35rem, 5.4vw, 1.9rem);
  color: var(--accent);
  transform: rotate(-1.5deg);
}
.human__note .hl__stroke { color: var(--accent); opacity: .5; }
.human__note .hl__stroke path { animation: none; stroke-dashoffset: 0; }

/* about: credibility strip */
.about__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1.5px solid var(--line);
}
.about__stats li { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.about__stats strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.about__stats span { font-size: .82rem; color: var(--fg-2); }

/* portfolio: honest "this is an example, not client work" chip */
.proj__flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 10px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 84%, transparent);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-2);
}

/* --------------------- 8. FOOTER + STICKY MOBILE BAR -------------------- */
.footer {
  border-top: 1.5px solid var(--line);
  padding-top: clamp(34px, 6vw, 56px);
  padding-bottom: 24px;
  background: var(--bg);
}
.footer__inner {
  display: grid;
  gap: 26px;
  padding-bottom: 26px;
  border-bottom: 1.5px solid var(--line);
}
.footer__tag {
  margin-top: 10px;
  color: var(--fg-2);
  font-size: .93rem;
  letter-spacing: .02em;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.footer__nav a {
  padding-block: 9px;
  color: var(--fg-2);
  font-size: .93rem;
  transition: color .2s var(--ease);
}
.footer__nav a:hover { color: var(--accent); }
.footer__ig {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: .93rem;
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.footer__ig svg { width: 19px; height: 19px; }
.footer__ig:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 20px;
  font-size: .85rem;
  color: var(--fg-2);
}

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: flex;
  gap: 10px;
  padding: 10px clamp(14px, 4vw, 20px);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1.5px solid var(--line);
  transform: translateY(120%);
  transition: transform .35s var(--ease);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar__ig {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px; height: 50px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  color: var(--fg);
}
.mobile-bar__ig svg { width: 22px; height: 22px; }

/* room for the sticky bar so it never covers the footer */
@media (max-width: 767px) {
  body { padding-bottom: 84px; }
}

/* --------------------------- 9. RESPONSIVE ---------------------------- */
@media (min-width: 480px) {
  .cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problem__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  body { padding-bottom: 0 !important; }
  .mobile-bar { display: none; }
  .hero__actions .btn, .about__actions .btn { flex: 0 0 auto; }
  .footer__inner { grid-template-columns: 1fr auto auto; column-gap: 40px; align-items: start; }
  .footer__nav { justify-content: center; }
  .footer__social { justify-self: end; }
  .sec-head--center .sec-sub { margin-inline: auto; }
  .section--problem .container {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    column-gap: clamp(24px, 4vw, 48px);
    align-items: start;
  }
  .problem__layout { display: contents; }
  .section--problem .sec-head { grid-column: 1; margin-bottom: 30px; }
  .problem__list { grid-column: 1; }
  .problem__art { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .problem__art .char { width: 100%; max-width: 330px; }
  .handoff { grid-column: 1 / -1; }

  /* horizontal timeline */
  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding-left: 0;
    padding-top: 62px;
  }
  .tl__line {
    left: 19px;
    right: calc((100% - 72px) / 4 - 19px);
    top: 18px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .tl__line i { transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
  .tl__num { left: 0; top: -62px; width: 38px; height: 38px; }
}

@media (min-width: 900px) {
  :root { --nav-h: 72px; }
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .hero { padding-top: calc(var(--nav-h) + 46px); }
  .art-stage { width: min(100%, 470px); }
  .about__inner { grid-template-columns: .85fr 1.15fr; }
  .about__frame { width: min(100%, 380px); }
  .sec-head { margin-bottom: 56px; }
}

@media (min-width: 980px) {
  .about__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .burger { display: none; }
}

@media (min-width: 1120px) {
  .hero__title { font-size: 4.5rem; }
  .art-stage { width: 100%; max-width: 520px; }
}

/* very small phones (<=360px): keep everything inside the viewport */
@media (max-width: 374px) {
  .hero__actions .btn, .mvp__actions .btn, .cta__actions .btn { min-width: 100%; }
  .brand__text { font-size: .95rem; }
  .flow__step { font-size: .72rem; padding: 8px 12px; }
}

/* ------------------------- 10. REDUCED MOTION -------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .char .draw { stroke-dashoffset: 0 !important; }
  .hl__stroke path { stroke-dashoffset: 0 !important; }
  .marquee__track { animation: none !important; }
  .mobile-bar { transition: none !important; }
}
