/* ============================================================
   DUNCAN GICHU — Portfolio CSS v2
   Design: Editorial / Refined Minimal with bold type & warmth
   Fonts: Fraunces (display) + DM Sans (body)
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap");
@import url(https://db.onlinewebfonts.com/c/cec88e5a4cf367c4620cd23c5a184439?family=PolySans+Median);

/* ── CSS Variables ── */
:root {
  --bg: #faf9f7;
  --bg-card: #f4f2ee;
  --bg-card-hover: #edeae4;
  --surface: #ffffff;
  --text-primary: #1a1814;
  --text-secondary: #6b6560;
  --text-muted: #a09890;
  --accent: #c8562a;
  --accent-light: #f5e8e1;
  --accent-2: #2d4a7a;
  --border: rgba(26, 24, 20, 0.08);
  --border-mid: rgba(26, 24, 20, 0.14);
  --shadow-sm: 0 2px 8px rgba(26, 24, 20, 0.06);
  --shadow-md: 0 8px 32px rgba(26, 24, 20, 0.1);
  --shadow-lg: 0 20px 60px rgba(26, 24, 20, 0.14);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --nav-height: 72px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", "Inclusive Sans", sans-serif;
  --font-ui: "PolySans Median", "DM Sans", sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #141210;
  --bg-card: #1e1c19;
  --bg-card-hover: #252320;
  --surface: #1a1814;
  --text-primary: #f0ece4;
  --text-secondary: #9a9088;
  --text-muted: #5a5650;
  --accent: #e06035;
  --accent-light: #2a1f18;
  --accent-2: #6b8fc4;
  --border: rgba(240, 236, 228, 0.08);
  --border-mid: rgba(240, 236, 228, 0.14);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  font-size: 16px;
}

  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

body {
  /*min-height: 100vh;*/
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition:
    background var(--transition),
    color var(--transition);
  /*overflow-x: hidden;*/
}

/* ── Grid background (home only) ── */
/* .hmepge body::before,
html.hmepge::before { */

header::before {
  --size: 48px;
  --line: color-mix(in hsl, canvasText, transparent 93%);
  content: "";
  height: 100%;
  width: 100vw;
  position: absolute;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px var(--size))
      calc(var(--size) * 0.36) 50% / var(--size) var(--size),
    linear-gradient(var(--line) 1px, transparent 1px var(--size)) 0%
      calc(var(--size) * 0.32) / var(--size) var(--size);
  -webkit-mask: linear-gradient(-15deg, transparent 40%, white 70%);
  mask: linear-gradient(-15deg, transparent 40%, white 70%);
  top: 0;
  pointer-events: none;
  z-index: 0;
}

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

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-ui);
  text-transform: capitalize;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
}
h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

p {
  color: var(--text-secondary) !important;
  line-height: 1.75;
  font-size: 0.975rem;
}

b,
strong {
  color: var(--text-primary);
  font-weight: 600;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

figcaption {
  font-size: 0.75rem;
  color: var(--text-muted) !important;
  text-align: center;
  margin-top: 8px;
}

img {
  border-radius: var(--radius);
}

ul {
  margin: 16px 0;
  padding-left: 20px;
}
ul li,
ol li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

hr {
  border: 1px solid var(--border);
}

/* ── Navigation ── */
/* nav {
  padding: 0 12px;
  position: fixed;
  z-index: 200;
  width: 640px;
  max-width: 92%;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 100px;
  height: var(--nav-height);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm), 0 1px 0 rgba(255,255,255,0.8) inset;
  animation: slideNavDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transition: background var(--transition), border-color var(--transition);
} */

nav {
  padding: 0 8px;
  position: fixed;
  z-index: 200;
  width: 640px;
  max-width: 90%;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 100px;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow:
    var(--shadow-sm),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  animation: slideNavDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transition:
    background var(--transition),
    border-color var(--transition);
}

nav li {
  margin: 0;
}

[data-theme="dark"] nav {
  background: rgba(20, 18, 16, 0.85);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

nav li {
  display: inline-flex;
  align-items: center;
}

nav li a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 8px 14px;
  border-radius: 100px;
  transition: all var(--transition);
  white-space: nowrap;
}

nav li a:hover,
nav li a.active {
  background: var(--bg-card);
  color: var(--text-primary);
}

nav li a.active {
  background: var(--text-primary);
  color: var(--bg);
}

/* 
LIST STYLE
 */
ol.styled {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
}

ol.styled li {
  counter-increment: item;
  margin: 10px 0;
  padding-left: 40px;
  position: relative;
}

ol.styled li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: #464646;
  color: white;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hmemnu a {
  background: var(--bg-card) !important;
  border-radius: 100px !important;
  font-family: var(--font-ui);
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  font-size: 0.85rem;
  padding: 8px 14px !important;
}

#jh {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* nav utilities */
#nav-dark-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 6px;
  transition: all var(--transition);
  flex-shrink: 0;
}
#nav-dark-toggle:hover {
  background: var(--bg-card-hover);
}
#nav-dark-toggle svg {
  transition: transform var(--transition);
}

/* ── Back to Top ── */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 150;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--transition),
    transform var(--transition),
    background var(--transition);
  box-shadow: var(--shadow-md);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ── Scroll progress ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 999;
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Hero / Header ── */
header {
  position: relative;
}

.header-bg {
  position: relative;
  max-width: 1024px;
  margin: 0 auto;
  overflow: visible;
}

.header-bg__pink {
  z-index: -1;
  position: absolute;
  left: -280px;
  top: -60px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    #ffd7ef 0%,
    rgba(253, 228, 243, 0) 100%
  );
  animation: floatBlob 8s ease-in-out infinite;
  pointer-events: none;
}

.header-bg__purple {
  z-index: -1;
  position: absolute;
  right: -100px;
  bottom: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    #dde4ff 0%,
    rgba(221, 228, 255, 0) 100%
  );
  animation: floatBlob 10s ease-in-out infinite reverse;
  pointer-events: none;
}

.cover.js-parallax {
  will-change: transform;
}

.ttl {
  padding: calc(var(--nav-height) + 48px) 16px 0;
  font-size: 1.5rem;
}

.title {
  /* font-family: var(--font-display); */
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.18;
  animation: heroReveal 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
  text-transform: none !important;
  /* max-width: 860px; */
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-primary);

  will-change: filter, transform, opacity;
  transition:
    filter 0.1s linear,
    transform 0.1s linear,
    opacity 0.1s linear;
}

.grad {
  background-image: linear-gradient(130deg, #bb00d4 10%, #2026ee 90%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

.starr {
  margin-left: -12px;
  vertical-align: middle;
}

/* Open to work badge */
.otw-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: #eaffea;
  color: #00b84a !important;
  padding: 7px 16px;
  border-radius: 100px;
  animation: heroReveal 0.8s both;
  border: 1.5px solid rgba(0, 184, 74, 0.2);
}
[data-theme="dark"] .otw-badge {
  background: #0d2a14;
  border-color: rgba(0, 184, 74, 0.3);
}

/* md-chip */
.md-chip {
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  display: inline-block;
  padding: 5px 12px;
  color: var(--text-secondary) !important;
  background: var(--surface);
  transition: all var(--transition);
  margin: 2px;
}

.hmepge .md-chip {
  cursor: pointer;
}

.md-chip:hover {
  background: var(--bg-card);

  border-color: var(--text-primary);
  color: var(--text-primary) !important;
}

.active-chip:hover {
  color: var(--bg) !important;
  background: var(--bg-card);
}

.active-chip {
  color: var(--bg) !important;
}

/* ── Stats strip ── */
.stats-strip {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: stretch;
  max-width: 640px;
  margin: 0 auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: heroReveal 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}
.stat-item {
  flex: 1;
  padding: 20px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.stat-item:last-child {
  border-right: none;
}
.stat-item:hover {
  background: var(--bg-card);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--text-primary);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
  display: block;
}

/* ── Main ── */
main {
  max-width: 1024px;
  padding: 0 16px;
  margin: 0 auto;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
  position: relative;
}

/* ── Section labels ── */
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  margin-bottom: 12px;
  display: block;
}

/* ── Divider ── */
.divider {
  position: relative;
  overflow: visible;
  margin: 56px 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: calc(50% + 28px);
  height: 1px;
  background: var(--border);
  top: 50%;
}
.divider::after {
  content: "";
  position: absolute;
  right: 0;
  left: calc(50% + 28px);
  height: 1px;
  background: var(--border);
  top: 50%;
}
.divider .divider__icon {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 auto;
}
.twa-sparkles {
  background-image: url(./public/2728.svg);
}
.twa-lg {
  height: 1.33em;
  width: 1.33em;
  margin: 0 0.07em;
  vertical-align: -0.13em;
  background-size: 1.33em 1.33em;
}
.twa {
  display: inline-block;
  height: 1em;
  width: 1em;
  margin: 0 0.05em 0 0.1em;
  vertical-align: -0.1em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1em 1em;
}

/* ── Project cards ── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card-hme {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  will-change: transform;
}
.card-hme:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-mid);
}

/* Featured card — wide layout */
.card-hme.card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
}
.card-hme.card-featured .card-img {
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.card-hme.card-featured .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform var(--transition-slow);
}
.card-hme.card-featured:hover .card-img img {
  transform: scale(1.04);
}
.card-hme.card-featured .card-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* Standard card */
.card-hme .card-img {
  overflow: hidden;
}
.card-hme .card-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  transition: transform var(--transition-slow);
}
.card-hme:hover .card-img img {
  transform: scale(1.03);
}
.card-hme .card-body {
  padding: 20px 22px 22px;
}

.card-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent) !important;
}

.card-title {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 6px 0 8px;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary) !important;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.card-arrow {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--transition),
    transform var(--transition);
  flex-shrink: 0;
}
.card-hme:hover .card-arrow {
  background: var(--text-primary);
}
.card-hme:hover .card-arrow svg {
  stroke: var(--bg);
}

/* Two-column grid */
.twogrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* ── Brands section ── */
.brands-section {
  text-align: center;
  padding: 40px 0;
}
.brands-section p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted) !important;
  margin-bottom: 24px;
}
.brands-section img {
  width: 100%;
  opacity: 0.6;
  filter: grayscale(1);
  transition: opacity var(--transition);
  border-radius: var(--radius);
}
.brands-section:hover img {
  opacity: 0.8;
}

/* ── JD Fit checker ── */
.jd-checker {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin: 32px 0;
}
.jd-checker h3 {
  margin-bottom: 8px;
}
.jd-checker p {
  margin-bottom: 16px;
}

/* ── Testimonials ── */
.testimonials-section {
  margin: 48px 0;
}
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
}
.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-muted) !important;
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 0.75rem;
  margin-bottom: 2px;
}

/* ── Carousel (More Projects popup) ── */
.carousel-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
}
.carousel-trigger-btn:hover {
  background: var(--text-primary);
  color: var(--bg);
}

.carousel-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.carousel-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.carousel-modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: min(860px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition);
}
.carousel-overlay.open .carousel-modal {
  transform: none;
}

.carousel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.carousel-close:hover {
  background: var(--text-primary);
}
.carousel-close:hover svg {
  stroke: var(--bg);
}

.carousel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.carousel-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.carousel-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.carousel-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0;
}
.carousel-item-info {
  padding: 12px;
}
.carousel-item-info h4 {
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.carousel-item-info p {
  font-size: 0.75rem;
}

/* ── Footer / Contact ── */
.footer-section {
  max-width: 1024px;
  margin: 0 auto;
  padding: 64px 16px;
}

.footer-inner {
  background: var(--text-primary);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.footer-inner::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 86, 42, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.footer-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: #f0ece4 !important;
  line-height: 1.2;
  margin-bottom: 16px;
}
.footer-sub {
  color: #9a9088 !important;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff !important;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.footer-email-btn:hover {
  background: #b04422;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 86, 42, 0.4);
}

.footer-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c0b8ac !important;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}
.footer-copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #f0ece4 !important;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #c0b8ac;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition);
}
.social-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #f0ece4;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding: 24px 16px;
  font-size: 0.75rem;
  color: var(--text-muted) !important;
}

/* ── Buttons ── */
.btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--text-primary);
  color: var(--bg) !important;
  border: none;
  font-weight: 500;
  border-radius: 100px;
  padding: 12px 28px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.o-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-mid);
  font-weight: 500;
  border-radius: 100px;
  padding: 12px 28px;
  cursor: pointer;
  transition: all var(--transition);
}
.o-btn:hover {
  background: var(--bg-card);
}

input[type="button"] {
  cursor: pointer;
  font-family: var(--font-body);
}

/* ── Copy status ── */
#copyStatus,
#copyStatus2 {
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary) !important;
  display: inline-block;
}
#copyStatus:hover,
#copyStatus2:hover {
  background: var(--bg-card-hover);
}

/* ── Open to work / status dot ── */
.sticky-header__available-circle {
  position: relative;
  box-sizing: content-box;
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: #4daa57;
  display: inline-block;
}
.sticky-header__available-circle::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: pulse 2s infinite;
  border-radius: 50%;
  box-shadow: 0 0 0 0 #4daa57;
}

/* ── Scroll animations (Intersection Observer) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ── Popup / Image lightbox ── */
.img-popup {
  position: fixed;
  z-index: 400;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}
.img-popup img {
  max-width: 96%;
  width: 1200px;
  opacity: 0;
  transform: scale(0.95);
  border-radius: var(--radius-lg);
}
.img-popup.opened {
  display: flex;
}
.img-popup.opened img {
  animation: popupIn 0.3s ease forwards;
}
@keyframes popupIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  transition: background var(--transition);
}
.close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.close-btn .bar {
  height: 2px;
  background: #fff;
  width: 16px;
}
.close-btn .bar:nth-child(1) {
  transform: rotate(45deg) translateY(3.5px);
}
.close-btn .bar:nth-child(2) {
  transform: rotate(-45deg) translateY(-3.5px);
}

/* ── Container ── */
.container {
  max-width: 1024px;
  padding: 0 16px;
  margin: 0 auto;
}

/* ── Box cells (used in case studies) ── */
.box-cell {
  margin-bottom: 12px;
}
.box-cell.two {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

@media only screen and (min-width: 720px) {
  .boxes {
    display: table;
    width: 100%;
    border-spacing: 16px;
  }
  .box-row {
    display: table-row;
  }
  .box-cell {
    display: table-cell;
    vertical-align: top;
  }
  .box-cell.one {
    width: 62%;
    padding-right: 16px;
  }
  .box-cell.two {
    width: 38%;
  }
}

/* ── Columns ── */
.column {
  float: left;
  width: 50%;
  padding: 8px;
}
.row {
  margin: 0 -8px;
}
.row::after {
  content: "";
  display: table;
  clear: both;
}
@media (max-width: 600px) {
  .column {
    width: 100%;
  }
}

/* ── Card (used in case study image grids) ── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}
.card:hover {
  transform: translateY(-2px);
}
.card img {
  border-radius: 0;
}

/* ── lp-cs wrapper ── */
.lp-cs {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px;
  animation: fadeInUp 0.8s ease both;
}

/* ── Case study hero ── */
.cs-hero {
  text-align: center;
  padding: calc(var(--nav-height) + 64px) 20px 48px;
  max-width: 720px;
  margin: 0 auto;
  z-index: 5;
  position: relative;
}
.cs-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 16px;
  line-height: 1.2;
  text-transform: none !important;
  position: relative;
  z-index: 3;
}
.cs-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary) !important;
}

/* ── Case study sections ── */
.info {
  margin-bottom: 48px;
}
.info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  margin-bottom: 16px;
  text-transform: none !important;
}
.info h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: 14px;
}
.info h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.info p + p {
  margin-top: 12px;
}
.info ul {
  padding-left: 0;
  list-style: none;
}
.info ul li {
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.info ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-mid);
}
.info ul li b {
  color: var(--text-primary);
}

/* ── Process steps (visual flow) ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin: 32px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: none;
}
.process-step {
  padding: 20px 16px;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: background var(--transition);
  position: relative;
}
.process-step:last-child {
  border-right: none;
}
.process-step:hover {
  background: var(--bg-card-hover);
}
.process-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.process-step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── Disclaimer ── */
.disclaimer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  font-size: 0.8rem;
  color: var(--text-muted) !important;
  margin: 24px 0;
  line-height: 1.6;
}

/* ── Container img holder ── */
.container__img-holder {
  margin: 24px 0;
  cursor: zoom-in;
}
.container__img-holder img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform var(--transition);
}
.container__img-holder:hover img {
  transform: scale(1.01);
}

/* ── dcontainer (alternating text+image) ── */
.dcontainer {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  margin: 48px 0;
}
.dimage img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
}
.dtext {
  max-width: 500px;
}

/* ── Restricted / Password ── */
.restricted {
  padding-top: 4%;
  position: fixed;
  z-index: 300;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nscrll {
  overflow: hidden !important;
  height: 100%;
}
.err {
  color: red;
  border-color: red !important;
}

input[type="password"] {
  width: 100%;
  padding: 14px 20px;
  margin: 8px 0;
  display: block;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  background: var(--surface);
  height: 52px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
}
input[type="password"]:focus {
  border-color: var(--accent);
}
.err input {
  border-color: red;
}

/* ── Bal (case study hero center) ── */
.bal {
  margin: 0;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  max-width: 100%;
}

/* ── Hoverable cards ── */
.hvrc {
  padding: 6px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.hvrc:hover {
  background: var(--bg-card);
}

/* ── Animations ── */
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes floatBlob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-60px);
  }
}
@keyframes slideNavDown {
  from {
    opacity: 0;
    top: 4px;
  }
  to {
    opacity: 1;
    top: 20px;
  }
}
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(77, 170, 87, 0.8);
  }
  50% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(77, 170, 87, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(77, 170, 87, 0);
  }
}
@keyframes spin {
  100% {
    transform: rotateY(360deg);
  }
}

/* ── CHAT WINDOW (preserved from original, lightly updated) ── */
.chat-window,
#chat-window {
  font-family: var(--font-body);
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  max-height: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  animation: heroReveal 1s ease both 0.6s;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
#chat-window:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.12);
}
.chat-header {
  background: linear-gradient(
    120deg,
    rgba(124, 194, 255, 0.2),
    rgba(255, 170, 216, 0.18)
  );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    inset 0 -10px 30px rgba(255, 255, 255, 0.2);
}

.chat-header-text {
  line-height: 1.2;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  background: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-header-text strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #111;
}
.chat-header-text span {
  font-size: 12px;
  color: #444;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
  max-height: 340px;
}
#chat-messages::-webkit-scrollbar {
  width: 3px;
}
#chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.msg {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  animation: fadeInUp 0.2s ease;
  word-break: break-word;
}
.msg.bot {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  color: #111;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.msg.user {
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.msg.error {
  background: rgba(255, 240, 240, 0.9);
  color: #c0392b;
  align-self: flex-start;
  font-size: 12px;
}
.msg.bot a {
  color: #111;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.link-card {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: #111;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}
.link-card:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}
.msg.typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.msg.typing span {
  width: 6px;
  height: 6px;
  background: #4a4a4a;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.msg.typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.msg.typing span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}
#suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 12px 10px;
  animation: fadeInUp 1s ease both 1s;
}
.chip {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
   border: 1px solid var(--bg-card);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: #111;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-body);
}
.chip:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}
.chat-input-row {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}
#chat-input {
  flex: 1;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  padding: 9px 14px;
  font-size: 13px;
  color: #111;
  font-family: var(--font-body);
}
#chat-input::placeholder {
  color: #666;
}
#chat-input:focus {
  background: rgba(255, 255, 255, 0.7);
}
#voice-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
#voice-btn:hover {
  background: #eee;
}
#voice-btn.listening {
  background: #111;
  border-color: #111;
  animation: voicePulse 1.1s ease-in-out infinite;
}
#voice-btn.listening svg {
  stroke: #fff;
}
@keyframes voicePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(17, 17, 17, 0.35);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(17, 17, 17, 0);
  }
}
#chat-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    opacity 0.15s,
    transform 0.1s;
}
#chat-send:hover {
  opacity: 0.85;
  transform: scale(0.96);
}
#chat-send:disabled {
  opacity: 0.3;
  cursor: default;
}
#voice-status {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
#voice-status.show {
  display: flex;
}
.voice-dot {
  width: 7px;
  height: 7px;
  background: #111;
  border-radius: 50%;
  animation: typingBounce 1s infinite;
}

@keyframes text {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}
.text-animate {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  animation: text linear 1s forwards;
  animation-delay: 0.5s;
  display: inline-block;
}

/* glowing border (preserved) */
.glowing-border {
  --gradient-glow:
    var(--clr-1), var(--clr-2), var(--clr-3), var(--clr-4), var(--clr-5),
    var(--clr-1);
  border: 3px solid transparent;
  border-radius: 100px;
  background:
    linear-gradient(white 0 0) padding-box,
    conic-gradient(from var(--glow-deg), var(--gradient-glow)) border-box;
  isolation: isolate;
  animation: glow 10s infinite linear;
}
@property --glow-deg {
  syntax: "<angle>";
  inherits: true;
  initial-value: -90deg;
}
@property --clr-1 {
  syntax: "<color>";
  inherits: true;
  initial-value: red;
}
@property --clr-2 {
  syntax: "<color>";
  inherits: true;
  initial-value: yellow;
}
@property --clr-3 {
  syntax: "<color>";
  inherits: true;
  initial-value: green;
}
@property --clr-4 {
  syntax: "<color>";
  inherits: true;
  initial-value: blue;
}
@property --clr-5 {
  syntax: "<color>";
  inherits: true;
  initial-value: purple;
}
@keyframes glow {
  100% {
    --glow-deg: 270deg;
  }
}

/* Pyramid loader (preserved) */
.pyramid-loader {
  position: relative;
  width: 300px;
  height: 300px;
  display: block;
  transform-style: preserve-3d;
  transform: rotateX(-20deg);
  padding: 220px 0;
}
.wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: spin 4s linear infinite;
}
.pyramid-loader .wrapper .side {
  width: 170px;
  height: 170px;
  position: absolute;
  inset: 0;
  margin: auto;
  transform-origin: center top;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.pyramid-loader .wrapper .side1 {
  transform: rotateZ(-30deg) rotateY(90deg);
  background: conic-gradient(#2bdeac, #f028fd, #d8cce6, #2f2585);
}
.pyramid-loader .wrapper .side2 {
  transform: rotateZ(30deg) rotateY(90deg);
  background: conic-gradient(#2f2585, #d8cce6, #f028fd, #2bdeac);
}
.pyramid-loader .wrapper .side3 {
  transform: rotateX(30deg);
  background: conic-gradient(#2f2585, #d8cce6, #f028fd, #2bdeac);
}
.pyramid-loader .wrapper .side4 {
  transform: rotateX(-30deg);
  background: conic-gradient(#2bdeac, #f028fd, #d8cce6, #2f2585);
}
.pyramid-loader .wrapper .shadow {
  width: 160px;
  height: 160px;
  background: #8b5ad5;
  position: absolute;
  inset: 0;
  bottom: -100px;
  margin: auto;
  transform: rotateX(90deg) translateZ(-40px);
  filter: blur(12px);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav {
    height: 56px;
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    left: 16px !important;
    transform: none !important;
    padding: 0 8px;
  }
  nav ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    overflow: hidden;
    padding: 0 4px;
  }
  /* Override all inline float styles on nav children */
  nav ul li[style],
  nav ul span[style] {
    float: none !important;
  }
  nav li a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .hmemnu {
    display: none !important;
  }
  #jh {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: static !important;
    transform: none !important;
    float: none !important;
    flex: 1;
    gap: 2px;
    margin-left: 0 !important;
  }
  #jh li {
    flex: 1;
    text-align: center;
    padding: 0;
    float: none !important;
  }
  #jh li a {
    padding: 6px 8px;
    display: block;
    text-align: center;
  }
  /* Dark mode toggle — keep it compact, prevent float */
  nav ul > li:last-child {
    float: none !important;
    margin-left: 4px;
    flex-shrink: 0;
  }

  .title {
    font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
  }

  .stats-strip {
    flex-direction: column;
    gap: 0;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .stat-item:last-child {
    border-bottom: none;
  }

  .card-hme.card-featured {
    grid-template-columns: 1fr;
  }
  .card-hme.card-featured .card-img {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .card-hme.card-featured .card-img img {
    height: 200px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 24px;
  }

  .dcontainer {
    flex-direction: column;
    text-align: center;
  }
  .dimage img {
    max-width: 100%;
  }

  main {
    padding: 0 12px 60px;
  }
  .lp-cs {
    padding: 16px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-step {
    border-bottom: 1px solid var(--border);
  }

  #chat-window {
    /* margin: 20px 0; */
    max-width: 96%;
  }

  .twogrid {
    grid-template-columns: 1fr;
  }

  .cs-hero {
    padding: calc(var(--nav-height) + 32px) 16px 32px;
  }

  #back-to-top {
    bottom: 20px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .stats-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  .stat-item {
    border-bottom: 1px solid var(--border);
  }

  .footer-section {
    padding: 40px 12px;
  }
  .testimonials-track {
    grid-template-columns: 1fr;
  }
  .carousel-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Landing page helper classes ── */
.landing-page {
  position: relative;
}
.landing-page header {
  min-height: 80px;
  display: flex;
}

/* ── Utility ── */
.text-center {
  text-align: center;
}
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mt-48 {
  margin-top: 48px;
}
.mb-24 {
  margin-bottom: 24px;
}
.mb-48 {
  margin-bottom: 48px;
}

/* ============================================================
   ADDITIONS v2 — dark blobs, dark chat, marquee, JD checker,
   reading time, print button, scrolling carousel
   ============================================================ */

/* ── Dark mode: tone down hero blobs ── */
[data-theme="dark"] .header-bg__pink {
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(120, 40, 100, 0.18) 0%,
    rgba(100, 30, 80, 0) 100%
  );
}
[data-theme="dark"] .header-bg__purple {
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(40, 55, 120, 0.18) 0%,
    rgba(30, 45, 100, 0) 100%
  );
}

/* ── Dark mode: chat window ── */
[data-theme="dark"] #chat-window,
[data-theme="dark"] .chat-window {
  background: rgba(26, 24, 20, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .chat-header {
  background: linear-gradient(
    120deg,
    rgba(40, 60, 100, 0.35),
    rgba(80, 30, 70, 0.25)
  );
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .chat-header-text strong {
  color: #e8e4dc;
}
[data-theme="dark"] .chat-header-text span {
  color: #8a8480;
}
[data-theme="dark"] #chat-window > div:nth-child(2) {
  background: #1a1814;
}
[data-theme="dark"] .msg.bot {
  background: rgba(255, 255, 255, 0.07);
  color: #e8e4dc;
}
[data-theme="dark"] .msg.bot a {
  color: #e8e4dc;
}
[data-theme="dark"] .msg.user {
  background: rgba(255, 255, 255, 0.85);
  color: #111;
}
[data-theme="dark"] .chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #c0b8ac;
}
[data-theme="dark"] .chip:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}
[data-theme="dark"] .link-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e0dbd2;
}
[data-theme="dark"] .link-card:hover {
  background: #fff;
  color: #111;
}
[data-theme="dark"] .chat-input-row {
  background: rgba(255, 255, 255, 0.05);
  border-top-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] #chat-input {
  background: rgba(255, 255, 255, 0.08);
  color: #e8e4dc;
}
[data-theme="dark"] #chat-input::placeholder {
  color: #6a6460;
}
[data-theme="dark"] #chat-input:focus {
  background: rgba(255, 255, 255, 0.14);
}
[data-theme="dark"] #voice-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] #voice-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
[data-theme="dark"] #voice-btn svg {
  stroke: #a09888;
}
[data-theme="dark"] .msg.typing {
  background: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .msg.typing span {
  background: #8a8480;
}

/* ── Reading time badge ── */
.reading-time-badge {
  display: none;
  /* display: inline-flex; */
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted) !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 16px;
}

/* ── Print / PDF button ── */
.print-btn {
  /* display: inline-flex; */
  display: none;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  text-decoration: none;
}
.print-btn:hover {
  background: var(--text-primary);
  color: var(--bg) !important;
  border-color: var(--text-primary);
}
.print-btn:hover svg {
  stroke: var(--bg);
}

/* ── JD Fit Checker ── */
.jd-fit-section {
  /*background: var(--bg-card);*/
  border: 2.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  margin: 48px 0;
}
.jd-fit-section h3 {
  margin-bottom: 4px;
}
.jd-fit-section > p {
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.jd-fit-textarea {
  width: 100%;
  min-height: 120px;
  background: var(--surface);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-primary);
  resize: vertical;
  outline: none;
  transition: border-color var(--transition);
  line-height: 1.6;
}
.jd-fit-textarea:focus {
  border-color: var(--accent);
}
.jd-fit-textarea::placeholder {
  color: var(--text-muted);
}
.jd-fit-result {
  margin-top: 16px;
  display: none;
  animation: fadeInUp 0.4s ease both;
}
.jd-fit-result.visible {
  display: block;
}
.jd-score-bar {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin: 12px 0 8px;
}
.jd-score-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--accent);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}
.jd-score-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
}
.jd-match-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.jd-match-chip {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}
.jd-match-chip.match {
  background: #eaffea;
  color: #00b84a;
  border: 1px solid rgba(0, 184, 74, 0.2);
}
.jd-match-chip.partial {
  background: #fff8e1;
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.jd-match-chip.miss {
  background: var(--bg-card-hover);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.jd-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 12px 0;
}
.jd-loading-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.2s infinite;
  margin: 0 2px;
}
.jd-loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.jd-loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
[data-theme="dark"] .jd-match-chip.match {
  background: #0d2a14;
}
[data-theme="dark"] .jd-match-chip.partial {
  background: #2a1f08;
}

/* ── Scrolling project marquee carousel ── */
.marquee-section {
  margin: 48px 0;
  overflow: hidden;
  position: relative;
}
.marquee-section::before,
.marquee-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-section::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.marquee-section::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
  cursor: grab;
}
.marquee-track:active {
  cursor: grabbing;
}
.marquee-section:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-card {
  width: 240px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  position: relative;
}
.marquee-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 3;
}
.marquee-card-img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.5s ease;
}
.marquee-card:hover .marquee-card-img {
  transform: scale(1.06);
}
.marquee-card-body {
  padding: 12px 14px;
}
.marquee-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent) !important;
}
.marquee-card-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 4px 0 0;
  line-height: 1.3;
}

/* Image zoom overlay (marquee click) */
.img-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.img-zoom-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.img-zoom-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  transform: scale(0.92);
  transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
}
.img-zoom-overlay.open img {
  transform: scale(1);
}

.img-zoom-overlay.open video,
.img-zoom-overlay.open img {
  border-radius: 16px;
  overflow: hidden;
}

.img-zoom-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.img-zoom-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ── AI chat avatar override ── */
.chat-avatar {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* ── Print styles ── */
@media print {
  nav,
  #back-to-top,
  #scroll-progress,
  .footer-section,
  .footer-bottom,
  .print-btn,
  .reading-time-badge,
  .divider,
  .cs-hero .md-chip,
  .img-popup,
  .restricted,
  .jd-fit-section,
  .marquee-section {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #111 !important;
  }
  .lp-cs {
    max-width: 100%;
    padding: 0;
  }
  .info h1 {
    font-size: 1.4rem;
  }
  .container__img-holder img {
    max-height: 300px;
    object-fit: contain;
  }
  a {
    color: #111 !important;
    text-decoration: none;
  }
  .process-steps {
    border: 1px solid #ccc;
  }
}

/* ── Responsive additions ── */
@media (max-width: 600px) {
  .jd-fit-section {
    padding: 20px 16px;
  }
  .marquee-card {
    width: 200px;
  }
  .marquee-card-img {
    height: 120px;
  }
}

/* glowing - added thia */
@property --glow-deg {
  syntax: "<angle>";
  inherits: true;
  initial-value: -90deg;
}

/* the colors don't need to be registed */
@property --clr-1 {
  syntax: "<color>";
  inherits: true;
  initial-value: red;
}

@property --clr-2 {
  syntax: "<color>";
  inherits: true;
  initial-value: yellow;
}

@property --clr-3 {
  syntax: "<color>";
  inherits: true;
  initial-value: green;
}

@property --clr-4 {
  syntax: "<color>";
  inherits: true;
  initial-value: blue;
}

@property --clr-5 {
  syntax: "<color>";
  inherits: true;
  initial-value: purple;
}

.glowing-border {
  --gradient-glow:
    var(--clr-1), var(--clr-2), var(--clr-3), var(--clr-4), var(--clr-5),
    var(--clr-1);
  border: var(--border-width, 3px) solid transparent;
  margin-block: 3rem;
  /* padding: 8rem 3rem; 
  max-width: 60ch;

 
  border-left: 0;
  border-radius: 0 100vw 100vw 0;*/
  background:
    linear-gradient(var(--surface, canvas) 0 0) padding-box,
    conic-gradient(from var(--glow-deg), var(--gradient-glow)) border-box;

  position: relative;
  isolation: isolate;

  animation: glow 10s infinite linear;
}

@keyframes glow {
  100% {
    --glow-deg: 270deg;
  }
}

.glowing-border::before,
.glowing-border::after {
  content: "";
  position: absolute;
  border-radius: inherit;
}

.glowing-border::before {
  z-index: -1;
  background: var(--surface, canvas);
  inset: 0.5rem;
  /* scale: 1.2 1; */
  transform-origin: right;
  filter: blur(var(--glow-size, 1rem));
}

.glowing-border::after {
  z-index: -2;
  inset: -1.5rem;
  background: conic-gradient(from var(--glow-deg), var(--gradient-glow));
  filter: blur(var(--glow-size, 1rem));
  opacity: var(--glow-intensity, 0.125);
}

@keyframes pwShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-6px);
  }
  80% {
    transform: translateX(6px);
  }
}
input[type="password"].err {
  border-color: #e53e3e !important;
  background: rgba(229, 62, 62, 0.04) !important;
}

/* Currently Reading sidebar */
.currently-reading-sidebar {
  display: none !important;
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.currently-reading-sidebar.visible {
  opacity: 1;
}
.cr-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  margin-bottom: 10px;
  padding-left: 14px;
}
.currently-reading-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.currently-reading-sidebar li a {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted) !important;
  padding: 5px 14px;
  border-left: 2px solid var(--border);
  transition: all 0.2s ease;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.currently-reading-sidebar li a:hover,
.currently-reading-sidebar li a.cr-active {
  color: var(--text-primary) !important;
  border-left-color: var(--accent);
}
@media (max-width: 1280px) {
  .currently-reading-sidebar {
    display: none;
  }
}

.tldr-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
  margin-top: 12px;
}
/*.tldr-btn:hover {*/
/*  background: var(--text-primary);*/
/*  color: var(--bg) !important;*/
/*  border-color: var(--text-primary);*/
/*}*/
.tldr-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}
.tldr-result {
  margin-top: 16px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  animation: fadeInUp 0.3s ease both;
  text-align: left;
}
.tldr-result li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

/* chat AI */

.project-chat-wrap {
 margin: 16px auto;
}
.project-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
  display: block;
  margin: 0 auto;
}
.project-chat-toggle:hover,
.project-chat-toggle[aria-expanded="true"] {
  background: var(--text-primary);
  color: var(--bg);
}
.project-chat-toggle[aria-expanded="true"] svg {
  stroke: var(--bg);
}
.project-chat-panel {
  /*margin-top: 12px;*/
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  animation: fadeInUp 0.25s ease;
  max-width: 700px;
  margin: 12PX auto;
  width: 96%;
}
.project-chat-msgs {
  min-height: 80px;
  max-height: 280px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pct-msg {
  max-width: 86%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.55;
}
.pct-msg.bot {
  background: var(--bg-card);
  align-self: flex-start;
  color: var(--text-primary);
}
.pct-msg.usr {
  background: var(--text-primary);
  color: var(--bg);
  align-self: flex-end;
}
.project-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.project-chat-input-row input {
  flex: 1;
  border: none;
  outline: none;
  /*background: transparent;*/
  font-size: 0.85rem;
  color: var(--text-primary);
  font-family: var(--font-body);
    border-radius: 50px;
  padding: 0 16px;
}
.project-chat-input-row button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}
.project-chat-input-row button:hover {
  opacity: 0.8;
}

/* 
listen
 */

.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
  margin-top: 8px;
}
.audio-btn:hover {
  background: var(--text-primary);
  color: var(--bg) !important;
}
.audio-btn:hover svg {
  stroke: var(--bg);
}
.audio-btn.playing {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}
.audio-btn.playing svg {
  stroke: #fff;
}

/* 
stats GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0;
}

.stat-cell {
  background: var(--card);
  padding: 1.5rem;
}
.stat-num.accent {
  color: var(--black);
  background: var(--accent);
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
}
.stat-num {
  /* font-family: "Syne", sans-serif; */
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label2 {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Learnings grid */
.learnings-grid {
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  max-width: 820px; */

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.learning-card {
  /* background: var(--black); */

  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;

  /* color: var(--white); 
  border-radius: 12px;
  padding: 1.5rem;*/
}

.learning-card .l-num {
  font-size: 2.5rem;

  line-height: 1;
  margin-bottom: 0.75rem;
}

.learning-card h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.learning-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* style new card */

.ia-alt {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 32px;
}

.ia-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.ia-row.reverse {
  direction: rtl;
}

.ia-row.reverse .ia-text,
.ia-row.reverse .ia-image {
  direction: ltr;
}

.ia-image img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.ia-text h4 {
  margin-bottom: 8px;
}

.ia-text p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* SIMPLE (no image rows) */
.ia-row.simple {
  grid-template-columns: 1fr;
}

.ia-text.full {
  max-width: 600px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .ia-row {
    grid-template-columns: 1fr;
  }

  .ia-row.reverse {
    direction: ltr;
  }
}

/* markdown to HTML */
/* ── Claude response markdown styles ── */
.msg.bot p.md-p {
  color: inherit !important;
  margin: 0 0 10px;
  line-height: 1.65;
  font-size: 13px;
}
.msg.bot p.md-p:last-child {
  margin-bottom: 0;
}

.msg.bot .md-h1,
.msg.bot .md-h2,
.msg.bot .md-h3 {
  font-family: var(--font-ui, sans-serif);
  color: inherit;
  margin: 14px 0 6px;
  line-height: 1.25;
}
.msg.bot .md-h1 {
  font-size: 1rem;
  font-weight: 600;
}
.msg.bot .md-h2 {
  font-size: 0.92rem;
  font-weight: 600;
}
.msg.bot .md-h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.msg.bot .md-ul,
.msg.bot .md-ol {
  padding-left: 18px;
  margin: 8px 0 10px;
}
.msg.bot .md-ul li,
.msg.bot .md-ol li {
  font-size: 13px;
  color: inherit;
  margin-bottom: 5px;
  line-height: 1.55;
  padding: 0;
  border: none;
}
.msg.bot .md-ul li::marker {
  color: var(--accent);
}
.msg.bot .md-ol li::marker {
  color: var(--accent);
  font-weight: 600;
}

.msg.bot .md-blockquote {
  border-left: 3px solid var(--accent, #c8562a);
  margin: 10px 0;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  font-size: 12px;
  color: inherit;
}
[data-theme="dark"] .msg.bot .md-blockquote {
  background: rgba(255, 255, 255, 0.05);
}

.msg.bot .md-strong {
  font-weight: 700;
  color: inherit;
}
.msg.bot .md-em {
  font-style: italic;
  color: inherit;
}

.msg.bot .md-code {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  font-family: "SF Mono", "Fira Code", monospace;
  color: var(--accent);
}
[data-theme="dark"] .msg.bot .md-code {
  background: rgba(255, 255, 255, 0.1);
}

.msg.bot .md-pre {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0;
  overflow-x: auto;
  font-size: 11px;
  font-family: "SF Mono", "Fira Code", monospace;
  line-height: 1.5;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .msg.bot .md-pre {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.msg.bot .md-hr {
  border: none;
  border-top: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  margin: 12px 0;
}

.msg.bot .md-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.msg.bot .md-link:hover {
  opacity: 0.8;
}

/* ── Project chat bubble ── */
/*.project-chat-wrap {*/
/*  margin: 40px 0 32px;*/
/*}*/

/*.project-chat-toggle {*/
/*  display: inline-flex;*/
/*  align-items: center;*/
/*  gap: 8px;*/
/*  background: var(--bg-card);*/
/*  border: 1px solid var(--border-mid);*/
/*  border-radius: 100px;*/
/*  padding: 10px 20px;*/
/*  font-size: 0.85rem;*/
/*  font-weight: 500;*/
/*  color: var(--text-primary);*/
/*  cursor: pointer;*/
/*  font-family: var(--font-body);*/
/*  transition: all var(--transition);*/
/*}*/
.project-chat-toggle:hover,
.project-chat-toggle.open {
  background: var(--text-primary);
  color: var(--bg);
}
.project-chat-toggle.open svg,
.project-chat-toggle:hover svg {
  stroke: var(--bg);
}

/*.project-chat-panel {*/
/*  margin-top: 12px;*/
/*  border: 1px solid var(--border);*/
/*  border-radius: var(--radius-lg);*/
/*  overflow: hidden;*/
/*  background: var(--surface);*/
/*  animation: fadeInUp 0.25s ease both;*/
/*}*/

/*.project-chat-msgs {*/
/*  min-height: 64px;*/
/*  max-height: 320px;*/
/*  overflow-y: auto;*/
/*  padding: 14px 14px 8px;*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  gap: 10px;*/
/*  scroll-behavior: smooth;*/
/*}*/
.project-chat-msgs::-webkit-scrollbar {
  width: 3px;
}
.project-chat-msgs::-webkit-scrollbar-thumb {
  background: var(--border-mid);
  border-radius: 4px;
}

/* Messages — match main chat window style */
.pct-msg {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
  animation: fadeInUp 0.18s ease both;
}
.pct-msg.bot {
  background: var(--bg-card);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  text-align: left;
}
.pct-msg.usr {
  background: var(--text-primary);
  color: var(--bg);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* Markdown inside bot messages — same as main chat */
.pct-msg.bot p {
  color: var(--text-primary) !important;
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.6;
}
.pct-msg.bot p:last-child {
  margin-bottom: 0;
}
.pct-msg.bot ul,
.pct-msg.bot ol {
  padding-left: 16px;
  margin: 6px 0;
}
.pct-msg.bot li {
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text-primary);
  padding: 0;
  border: none;
}
.pct-msg.bot strong {
  font-weight: 700;
  color: var(--text-primary);
}
.pct-msg.bot em {
  font-style: italic;
}
.pct-msg.bot code {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.07);
  padding: 1px 4px;
  border-radius: 3px;
}
[data-theme="dark"] .pct-msg.bot code {
  background: rgba(255, 255, 255, 0.1);
}

/* Typing dots indicator */
.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 2px 0;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Input row */
.project-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.project-chat-input-row input::placeholder {
  color: var(--text-muted);
}
.project-chat-input-row button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.project-chat-input-row button:hover {
  opacity: 0.8;
}
[data-theme="dark"] .pct-msg.usr {
  background: #f0ece4;
  color: #1a1814;
}

 /*── AI-themed Generate Rewrites button ── */
    @keyframes ai-border-spin {
      0%   { background-position: 0% 50%; }
      50%  { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }
    @keyframes ai-pulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(108,210,255,0.4), 0 2px 8px rgba(108,210,255,0.3); }
      50%       { box-shadow: 0 0 0 4px rgba(108,210,255,0.1), 0 4px 16px rgba(167,139,250,0.35); }
    }
    .btn-ai-generate {
       color: #fff !important;
  border: none;
   background: linear-gradient(135deg, #6CD2FF, #a78bfa, #6CD2FF);
      background-size: 200% 200%;
      animation: ai-border-spin 3s ease infinite, ai-pulse 2.5s ease-in-out infinite;
      transition: transform 0.15s ease, filter 0.15s ease;
 
    }
    .btn-ai-generate:hover { transform: translateY(-1px); filter: brightness(1.06); }
    .btn-ai-generate:active { transform: scale(0.98); }
    
    /*.btn-ai-generate::before {*/
    /*  content: ''; position: absolute; inset: -1.5px; border-radius: 11px; z-index: -1;*/
    /*  background: linear-gradient(135deg, #6CD2FF, #a78bfa, #ff8fab, #6CD2FF);*/
    /*  background-size: 300% 300%;*/
    /*  animation: ai-border-spin 3s ease infinite;*/
    /*  filter: blur(4px); opacity: 0.5;*/
    /*}*/

 
    /* ── Delight: AI shimmer on write-paste-card ── */
    @keyframes shimmer-move {
      0%   { transform: translateX(-100%); }
      100% { transform: translateX(200%); }
    }
    
    /* ============================================================
   GRID TOGGLE — add to style.css
   ============================================================ */

/* Toggle button group */
.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
}
.view-toggle-btn {
  width: 32px; height: 32px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.view-toggle-btn:hover { color: var(--text-primary); }
.view-toggle-btn.active {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
[data-theme="dark"] .view-toggle-btn.active {
  background: var(--bg-card-hover);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* List view — single column, horizontal card */
.card-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-grid.list-view .card-link { display: block; }
.card-grid.list-view .card-hme {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 120px;
}
.card-grid.list-view .card-hme .card-img {
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  height: 100%;
}
.card-grid.list-view .card-hme .card-img img,
.card-grid.list-view .card-hme .card-img video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.card-grid.list-view .card-hme .card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-grid.list-view .card-hme .card-desc { display: none; } /* cleaner in list */
.card-grid.list-view .card-hme.card-featured {
  grid-template-columns: 280px 1fr;
}

/* Grid view — 2 columns */
.card-grid.grid-view {
  grid-template-columns: repeat(2, 1fr);
}
.card-grid.grid-view .card-hme.card-featured {
  grid-column: span 2;
}

/* Default (auto) stays as-is: 1 col or auto-fit */
@media (max-width: 600px) {
  .card-grid.list-view .card-hme {
    grid-template-columns: 100px 1fr;
  }
  .card-grid.grid-view {
    grid-template-columns: 1fr;
  }
  .card-grid.grid-view .card-hme.card-featured {
    grid-column: span 1;
  }
  .view-toggle { display: none; } /* hide on mobile — single col is fine */
}
     
/* ── MOBILE NAV FIX ── */
/* Ensure body/html never overflow on mobile */
@media (max-width: 768px) {
  /*html, body {*/
  /*  overflow-x: hidden;*/
  /*  max-width: 100%;*/
  /*}*/

  nav {
    /* Pin to edges with margin instead of % calc */
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    margin: 4px 16px 0 !important;
    top: 4px !important;
    padding: 0 6px !important;
    height: 52px !important;
    border-radius: 100px !important;
  }

  nav ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    width: 100% !important;
    padding: 0 4px !important;
    gap: 0 !important;
  }

  /* Kill ALL floats inside nav */
  nav ul *,
  nav ul li,
  nav ul span {
    float: none !important;
  }

  .hmemnu {
    display: none !important;
  }

  #jh {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
    position: static !important;
    transform: none !important;
  }

  #jh li {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    float: none !important;
    padding: 0 !important;
  }

  #jh li a,
  nav li a {
    padding: 5px 8px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
  }

  .nav-toggle-li,
  nav ul > li:last-child {
    float: none !important;
    flex-shrink: 0 !important;
    margin-left: 2px !important;
  }
}

.coming-soon{
    background-color: #c9c9c9;
  border-radius: 50px;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 4px 8px;
  color: #000;
  position: absolute;
  margin: 16px;
  right: 0;
  font-weight: 700;
}

.pull {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-style: italic;
  font-weight: 300;
  color: #141410;
  line-height: 1.6;
  border-left: 3px solid #1a5c3a;
  padding: 18px 28px;
  margin: 40px 0;
  background: #1a5c3a;
  border-radius: 0 8px 8px 0;
}

/* ─── PERSONA CARDS ─── */
  .persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 36px 0;
  }
  @media (max-width: 640px) { .persona-grid { grid-template-columns: 1fr; } }

  .persona-card {
    background: #fff;
    border: 1px solid #d8d6c8;
    border-radius: 8px;
    padding: 24px;
  }
  .persona-card__name {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1a5c3a;
    margin-bottom: 12px;
    display: block;
  }
  .persona-card__quote {
    font-size: 0.88rem;
    color: #3d3d36;
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 14px;
  }
  .persona-card__translation {
    font-size: 0.82rem;
    color: #3d3d36;
    line-height: 1.6;
    padding-top: 14px;
    border-top: 1px solid #d8d6c8;
  }
  .persona-card__translation strong {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b84a00;
    margin-bottom: 4px;
    font-style: normal;
  }
