/* =====================================================
   main.css — design tokens, layout, components
   Solvenek — light theme
   ===================================================== */

:root {
  /* — Surfaces — */
  --bg:            #ffffff;
  --bg-soft:       #f6f8fb;
  --bg-soft-2:     #eef1f5;
  --surface:       #ffffff;
  --surface-2:     #f4f6f9;

  /* — Borders — */
  --line:          #e4e8ee;
  --line-soft:     rgba(16, 24, 32, 0.07);
  --line-strong:   rgba(16, 24, 32, 0.14);

  /* — Text — */
  --ink:           #10161c;
  --ink-soft:      #4b5563;
  --ink-faint:     #7c8794;
  --ink-mute:      #b3bac3;

  /* — Accent (blue family) — */
  --blue:          #0a66c2;
  --blue-bright:   #2f8ae0;
  --blue-dark:     #084d92;
  --blue-soft:     rgba(10, 102, 194, 0.08);
  --blue-faint:    rgba(10, 102, 194, 0.045);
  --blue-glow:     rgba(10, 102, 194, 0.22);

  --error:         #d0342c;

  /* — Typography — */
  --font-display:  'Instrument Serif', 'Times New Roman', serif;
  --font-body:     'Geist', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* — Spacing — */
  --pad-x:         clamp(1.5rem, 5vw, 4rem);
  --section-y:     clamp(4.5rem, 10vw, 7.5rem);
  --max-w:         1440px;

  /* — Easing — */
  --ease:          cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.83, 0, 0.17, 1);

  /* — Radii — */
  --r-sm:          6px;
  --r-md:          10px;
  --r-lg:          16px;
  --r-xl:          24px;

  /* — Shadows — */
  --shadow-sm:     0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.05);
  --shadow-md:     0 4px 12px -2px rgba(16, 24, 40, 0.07), 0 2px 4px -2px rgba(16, 24, 40, 0.05);
  --shadow-lg:     0 16px 40px -12px rgba(16, 24, 40, 0.14);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* — Utility classes — */
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 400;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Grain overlay removed for the light theme — was a dark-mode
   texture effect that doesn't read on a white background. */

/* =====================================================
   LOADER
   ===================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0s 0.7s linear;
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
}
.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  width: min(360px, 70vw);
}
.loader__logo {
  width: 52px;
  height: 52px;
  animation: loaderPulse 2s var(--ease-in-out) infinite;
}
.loader__logo img { width: 100%; height: 100%; object-fit: contain; }
.loader__text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}
.loader__pct {
  color: var(--blue);
}
.loader__bar {
  width: 100%;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader__bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--blue), var(--blue-bright));
  transform: translateX(-100%);
  animation: loaderBar 1.4s var(--ease-out) forwards;
}

/* =====================================================
   CUSTOM CURSOR
   ===================================================== */
.cursor,
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: normal;
}
.cursor {
  width: 32px;
  height: 32px;
  border: 1px solid var(--blue-glow);
  border-radius: 50%;
  transition:
    width 0.25s var(--ease),
    height 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.cursor.is-hover {
  width: 50px;
  height: 50px;
  background: var(--blue-faint);
  border-color: var(--blue);
}
.cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
}
@media (max-width: 900px) {
  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
}
@media (min-width: 901px) {
  body { cursor: auto; }
  a, button, summary { cursor: pointer; }
}

/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem var(--pad-x);
  transition:
    padding 0.4s var(--ease),
    background 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav.is-scrolled {
  padding: 0.85rem var(--pad-x);
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--ink);
  font-weight: 500;
  z-index: 110;
}
.nav__logo-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease);
}
.nav__logo:hover .nav__logo-mark {
  transform: scale(1.05);
}
.nav__logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav__logo-text {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  position: relative;
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}
.nav__links a::before {
  content: attr(data-num);
  position: absolute;
  top: -8px;
  left: -10px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--blue);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  transform: translateY(4px);
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
}
.nav__links a:hover::before,
.nav__links a.is-active::before {
  opacity: 1;
  transform: translateY(0);
}
.nav__links a.is-active {
  font-weight: 500;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--ink);
  font-size: 0.82rem;
  color: var(--bg);
  transition: all 0.3s var(--ease);
}
.nav__cta:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.nav__cta svg {
  transition: transform 0.3s var(--ease);
}
.nav__cta:hover svg {
  transform: translate(2px, -2px);
}

.nav__burger {
  display: none;
  width: 36px;
  height: 36px;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 8px;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 20px; }
.nav__burger.is-open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 9rem var(--pad-x) 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  z-index: 2;
  opacity: 0.7;
}
.hero__corner--bl { bottom: 2rem; left:  var(--pad-x); border-right: none; border-top:    none; }
.hero__corner--br { bottom: 2rem; right: var(--pad-x); border-left:  none; border-top:    none; }

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 0.2s forwards;
}
.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue-glow);
  animation: dotPulse 2s var(--ease-in-out) infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 2.5rem;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}
.hero__title .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: lineReveal 1.1s var(--ease-out) forwards;
}
.hero__title .line:nth-child(1) .word { animation-delay: 0.4s; }
.hero__title .line:nth-child(2) .word { animation-delay: 0.55s; }
.hero__title .line:nth-child(3) .word:nth-child(1) { animation-delay: 0.7s; }
.hero__title .line:nth-child(3) .word:nth-child(2) { animation-delay: 0.85s; }

.hero__title .word.italic {
  color: var(--blue);
}

.hero__sub {
  max-width: 540px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1.2s forwards;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1.4s forwards;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.3s var(--ease);
  overflow: hidden;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 1px var(--blue), 0 8px 24px -8px var(--blue-glow);
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: var(--blue-dark);
  box-shadow: 0 0 0 1px var(--blue-dark), 0 12px 32px -8px var(--blue-glow);
}
.btn--primary:hover::before {
  transform: translateX(100%);
}
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--blue-faint);
  border-color: var(--blue);
  color: var(--blue);
}
.btn__arrow svg {
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__arrow svg {
  transform: translate(2px, -2px);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1.6s forwards;
}
.stat {
  padding: 0 1.5rem;
  border-right: 1px solid var(--line);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat__num em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.5em;
  color: var(--blue);
  margin-left: 2px;
  vertical-align: super;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  z-index: 3;
  opacity: 0;
  animation: fadeIn 0.9s var(--ease-out) 2s forwards;
}
.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}

/* =====================================================
   TRUST STRIP / MARQUEE
   ===================================================== */
.trust {
  padding: 2.4rem var(--pad-x);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.trust__label {
  white-space: nowrap;
  color: var(--blue);
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: inline-flex;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--ink-mute);
  white-space: nowrap;
  animation: marquee 46s linear infinite;
}
.marquee__track span:nth-child(odd) {
  color: var(--ink);
}

/* =====================================================
   SECTIONS — generic
   ===================================================== */
section[id] {
  scroll-margin-top: 90px;
}

.page-hero {
  padding: 9.5rem var(--pad-x) 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-hero__num { margin-bottom: 1.4rem; color: var(--blue); }
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.4rem;
  max-width: 900px;
}
.page-hero__sub {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 620px;
}

.services,
.work,
.process,
.faq {
  padding: var(--section-y) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 700px;
  margin-bottom: 4.5rem;
}
.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head__num {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--blue);
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.section-head__sub {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 540px;
}

/* =====================================================
   SERVICES
   ===================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service {
  position: relative;
  padding: 2.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), var(--blue-faint), transparent 45%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
  transform-style: preserve-3d;
}
.service:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
}
.service__num {
  color: var(--blue);
  margin-bottom: 1.4rem;
}
.service__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.4rem;
  color: var(--blue);
  transition: transform 0.4s var(--ease);
}
.service:hover .service__icon {
  transform: scale(1.08) rotate(-3deg);
}
.service__icon svg { width: 100%; height: 100%; }
.service__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.service__copy {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.service__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.service__list li {
  position: relative;
  padding-left: 1.2rem;
}
.service__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 1px;
  background: var(--blue);
}

/* =====================================================
   TAG / BADGE PILLS
   ===================================================== */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--surface-2);
}
.tag-pill--progress {
  border-color: rgba(180, 130, 10, 0.35);
  color: #9a6a00;
  background: rgba(245, 190, 60, 0.12);
}
.tag-pill--progress::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d99a1c;
}
.tag-pill--example {
  border-color: var(--line-strong);
  color: var(--ink-faint);
  background: var(--surface-2);
}
.tag-pill--live {
  border-color: rgba(10, 130, 70, 0.3);
  color: #0a7a45;
  background: rgba(20, 170, 90, 0.1);
}
.tag-pill--live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22a35b;
}

/* =====================================================
   WORK / CASE STUDY
   ===================================================== */
.work__intro {
  margin-bottom: 3.5rem;
}

.case-study {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 3rem;
  margin-bottom: 4rem;
}
.case-study__top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}
.case-study__tag {
  margin-bottom: 1.1rem;
  color: var(--blue);
}
.case-study__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.case-study__copy {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.case-study__headline {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--r-md);
  background: var(--blue-faint);
  border: 1px solid var(--blue-soft);
}
.case-study__headline strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--blue);
  line-height: 1;
}
.case-study__headline span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.case-study__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: grid;
  place-items: center;
}

/* — Browser mockup — */
.case__browser {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.case__browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.case__browser-bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.case__browser-bar > span:nth-child(1) { background: #e8a5a5; }
.case__browser-bar > span:nth-child(2) { background: #e8d59a; }
.case__browser-bar > span:nth-child(3) { background: #a5d9b3; }
.case__browser-url {
  margin-left: auto;
  margin-right: auto;
  padding: 0.2rem 0.8rem;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  font-size: 0.65rem;
  color: var(--ink-faint);
}
.case__browser-body {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.case__skeleton {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-soft-2), var(--surface), var(--bg-soft-2));
  background-size: 200% 100%;
  animation: skeleton 2.5s ease-in-out infinite;
}
.case__skeleton--lg { width: 70%; height: 18px; }
.case__skeleton--md { width: 90%; }
.case__skeleton--sm { width: 50%; }
@keyframes skeleton {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.case__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.case__card {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--bg-soft-2), var(--surface));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.case__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, var(--blue-soft) 50%, transparent 60%);
  animation: shimmer 3s ease-in-out infinite;
}
.case__card:nth-child(2)::after { animation-delay: 0.5s; }
.case__card:nth-child(3)::after { animation-delay: 1s; }
@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* — Case-study chart — */
.case-chart {
  border-top: 1px solid var(--line);
  padding-top: 2.4rem;
  margin-bottom: 2.4rem;
}
.case-chart__label {
  margin-bottom: 1.4rem;
  color: var(--ink-faint);
}
.case-chart__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.case-chart__bar {
  fill: var(--blue);
  transition: fill 0.2s var(--ease);
}
.case-chart__bar:hover {
  fill: var(--blue-dark);
}
.case-chart__value {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--ink);
}
.case-chart__week {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.case-chart__baseline {
  stroke: var(--line);
  stroke-width: 1;
}
.case-chart__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* — Testimonial (inline in case study) — */
.case-study__quote {
  border-top: 1px solid var(--line);
  padding-top: 2.4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: flex-start;
}
.case-study__quote-mark {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.8;
  color: var(--blue);
  opacity: 0.35;
}
.case-study__quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 1rem;
}
.case-study__quote-attrib {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.case-study__quote-attrib strong {
  color: var(--ink);
  font-weight: 500;
}

/* — Secondary work items grid (in progress / examples) — */
.work__section {
  margin-top: 5rem;
}
.work__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.4rem;
}
.work__section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--ink);
}
.work__section-note {
  font-size: 0.92rem;
  color: var(--ink-faint);
  max-width: 420px;
}

.work-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.work-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.work-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}
.work-card__visual {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.work-card__body {
  padding: 1.6rem;
}
.work-card__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.work-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.work-card__copy {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.work-card__list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
}

/* — Placeholder / scaffold visual (Nepal barber shops) — */
.placeholder-visual {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 0.6rem;
  color: var(--ink-mute);
}
.placeholder-visual svg { width: 40px; height: 40px; }
.placeholder-visual span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* — Generative grid — */
.case__gen {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.case__gen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.case__gen-tile {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--blue-soft), var(--bg-soft-2));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  animation: genReveal 4s var(--ease-out) infinite;
  animation-delay: var(--d, 0s);
}
.case__gen-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--blue-bright), transparent);
  opacity: 0;
  animation: genFill 4s var(--ease-out) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes genReveal {
  0%, 90%, 100% { border-color: var(--line); }
  10%, 80% { border-color: var(--blue); }
}
@keyframes genFill {
  0%, 90%, 100% { opacity: 0; transform: translateY(100%); }
  10% { opacity: 0.35; transform: translateY(0); }
  80% { opacity: 0.12; transform: translateY(0); }
}
.case__gen-label {
  text-align: center;
  color: var(--blue);
}

/* — Flow diagram — */
.case__flow {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  position: relative;
}
.case__flow-node {
  width: 80%;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  text-align: center;
  position: relative;
  transition: all 0.4s var(--ease);
}
.case__flow-node--in {
  border-color: var(--blue-soft);
  background: var(--blue-faint);
}
.case__flow-node--out {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}
.case__flow-node .mono {
  color: inherit;
  font-size: 0.7rem;
}
.case__flow-arrow {
  width: 1px;
  height: 16px;
  background: linear-gradient(to bottom, var(--line-strong), var(--blue));
  position: relative;
}
.case__flow-arrow::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--blue);
  border-bottom: 1px solid var(--blue);
}
.case__flow-pulse {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue-glow);
  animation: flowPulse 3s linear infinite;
}
@keyframes flowPulse {
  0%   { top: 0%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* — Chat mockup (reused in example cards) — */
.case__chat {
  width: 100%;
  height: 100%;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: flex-end;
}
.case__chat-msg {
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  font-size: 0.76rem;
  max-width: 78%;
  line-height: 1.4;
}
.case__chat-msg--user {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.case__chat-msg--bot {
  align-self: flex-start;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.case__chat-msg strong { color: var(--blue); }

/* =====================================================
   PROCESS
   ===================================================== */
.process__steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 900px;
}
.process__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 36px;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent,
    var(--line-strong) 10%,
    var(--line-strong) 90%,
    transparent
  );
}
.process__step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
}
.process__marker {
  width: 80px;
  display: grid;
  place-items: center;
}
.process__marker span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--blue);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease);
}
.process__step:hover .process__marker span {
  border-color: var(--blue);
  background: var(--blue-faint);
  box-shadow: 0 0 0 4px var(--blue-faint);
}
.process__content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--ink);
  margin-bottom: 0.8rem;
}
.process__content p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
  max-width: 560px;
}
.process__time {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--blue-faint);
  border: 1px solid var(--blue-soft);
  border-radius: var(--r-sm);
  color: var(--blue);
  font-size: 0.7rem;
}

/* =====================================================
   TESTIMONIAL (standalone section, e.g. Home page)
   ===================================================== */
.testimonial {
  padding: var(--section-y) var(--pad-x);
  position: relative;
  z-index: 1;
  background: var(--bg-soft);
}
.testimonial__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.testimonial__mark {
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 9rem;
  line-height: 1;
  color: var(--blue);
  opacity: 0.18;
  pointer-events: none;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 2.5rem;
}
.testimonial__quote em {
  color: var(--blue);
  font-style: italic;
}
.testimonial__attrib {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--blue-bright), var(--blue));
  border: 1px solid var(--blue-soft);
}
.testimonial__person {
  text-align: left;
  display: flex;
  flex-direction: column;
}
.testimonial__person strong {
  font-weight: 500;
  color: var(--ink);
}

/* =====================================================
   FAQ
   ===================================================== */
.faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.qa {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  padding: 1.7rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--blue); }
.qa__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: 1rem;
}
.qa__icon::before,
.qa__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 100%;
  height: 1px;
  background: var(--blue);
  transition: transform 0.4s var(--ease);
}
.qa__icon::after {
  transform: rotate(90deg);
}
.qa[open] .qa__icon::after {
  transform: rotate(0deg);
}
.qa__body {
  padding-bottom: 1.8rem;
  max-width: 700px;
}
.qa__body p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact {
  position: relative;
  padding: var(--section-y) var(--pad-x);
  overflow: hidden;
  z-index: 1;
}
.contact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}
.contact__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
  margin-bottom: 3.5rem;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 2.6rem;
  box-shadow: var(--shadow-md);
}
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
.field label {
  color: var(--ink-faint);
  font-size: 0.7rem;
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.3s var(--ease);
  resize: vertical;
}
.field textarea {
  min-height: 120px;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-mute);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.chip {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--surface);
  transition: all 0.3s var(--ease);
}
.chip:hover {
  color: var(--ink);
  border-color: var(--blue);
}
.chip.is-active {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}

.btn--submit {
  align-self: flex-start;
  margin-top: 1rem;
}

.contact__alt {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.contact__alt a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--blue);
  background: linear-gradient(currentColor, currentColor) bottom left / 0% 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.contact__alt a:hover {
  background-size: 100% 1px;
}

.contact__socials {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.contact__socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: all 0.3s var(--ease);
}
.contact__socials a:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-faint);
  transform: translateY(-2px);
}
.contact__socials svg { width: 18px; height: 18px; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  padding: 5rem var(--pad-x) 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  font-weight: 500;
}
.footer__logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.footer__tag {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 320px;
}
.footer__clock {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--ink-faint);
}
.footer__clock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: dotPulse 2s ease-in-out infinite;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer__col h4 {
  margin-bottom: 1.2rem;
  color: var(--blue);
  font-size: 0.65rem;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer__col a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}
.footer__col a:hover {
  color: var(--blue);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  color: var(--ink-faint);
  font-size: 0.68rem;
}
