/* =========================================================================
   LAB63 — "Majentha" Design System
   We Invest in People vs Result
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Core palette — light theme */
  --bg: #ffffff;
  --bg-alt: #f6f1fb;
  --bg-soft: #f8f4fd;
  --surface: #ffffff;
  --surface-2: #f7f1fc;
  --surface-solid: #ffffff;
  --border: rgba(76, 29, 149, 0.12);
  --border-strong: rgba(76, 29, 149, 0.24);

  --text: #1d1130;
  --text-muted: #5c5372;
  --text-dim: #857c98;

  /* Majentha brand ramp */
  --indigo: #3d1a78;
  --violet: #6d28d9;
  --purple: #9333ea;
  --magenta: #c026d3;
  --pink: #e83a9c;
  --rose: #e83a9c;
  --accent: #a5177a;

  --gradient-brand: linear-gradient(135deg, #4c1d95 0%, #9333ea 45%, #e83a9c 100%);
  --gradient-brand-hover: linear-gradient(135deg, #5b21b6 0%, #a855f7 45%, #f0479f 100%);
  --gradient-text: linear-gradient(92deg, #7c3aed 0%, #c026d3 55%, #db2b86 100%);
  --gradient-border: linear-gradient(135deg, rgba(147, 51, 234, 0.6), rgba(232, 58, 156, 0.6));
  --gradient-radial: radial-gradient(circle at 30% 20%, rgba(147, 51, 234, 0.12), transparent 60%);

  --glow-magenta: 0 0 80px rgba(192, 38, 211, 0.16);
  --glow-soft: 0 20px 50px -18px rgba(124, 42, 180, 0.35);
  --shadow-rest: 0 4px 18px -8px rgba(76, 29, 149, 0.14);
  --shadow-card: 0 20px 40px -16px rgba(76, 29, 149, 0.28);

  /* Status colors */
  --status-live: #059669;
  --status-mvp: #b45309;
  --status-dev: #0369a1;
  --status-early: #9333ea;
  --status-concept: #64748b;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --container: 1260px;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--magenta); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--violet), var(--magenta)); border-radius: 10px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(192, 38, 211, 0.08);
  border: 1px solid rgba(192, 38, 211, 0.24);
  padding: 7px 16px;
  border-radius: var(--radius-full);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px rgba(192, 38, 211, 0.6);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 18px;
}
.section-head p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.08rem;
}
.grad-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section { position: relative; padding: 120px 0; }
section.tight { padding: 90px 0; }

/* Background ambience shared by sections */
.section-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.section-glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.14;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(192, 38, 211, 0.55);
}
.btn-primary:hover {
  background: var(--gradient-brand-hover);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -8px rgba(192, 38, 211, 0.7);
}
.btn-ghost {
  background: var(--bg-soft);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--magenta);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon.filled { fill: currentColor; stroke: none; }

/* ---------- Top announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, #fbe7f4, #f3e3fb, #fbe7f4);
  color: #7a1266;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  position: relative;
  z-index: 60;
  border-bottom: 1px solid rgba(76, 29, 149, 0.1);
}
.announce a { text-decoration: underline; text-underline-offset: 3px; color: #7c1fa8; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.7);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
header.site-header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px -18px rgba(76, 29, 149, 0.3);
  padding: 12px 0;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); }
.brand img { height: 42px; width: auto; }
.brand .brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand .brand-name span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-soft); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle.active .icon-menu { display: none; }
.nav-toggle.active .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 60px; overflow: hidden; }
.hero-blobs { position: absolute; inset: -10% -10% auto -10%; height: 900px; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  animation: float-blob 16s ease-in-out infinite;
}
.blob-1 { width: 480px; height: 480px; background: radial-gradient(circle, #a855f7, transparent 70%); top: -120px; left: -80px; }
.blob-2 { width: 420px; height: 420px; background: radial-gradient(circle, #f472b6, transparent 70%); top: 60px; right: -100px; animation-delay: -5s; }
.blob-3 { width: 360px; height: 360px; background: radial-gradient(circle, #c4b5fd, transparent 70%); top: 340px; left: 34%; animation-delay: -9s; }

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-24px, 26px) scale(0.95); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  margin-top: 22px;
}
.hero-copy p.lead {
  margin-top: 24px;
  font-size: 1.16rem;
  color: var(--text-muted);
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 34px;
  margin-top: 56px;
}
.hero-stats .stat h3 {
  font-size: 2rem;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats .stat span { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--text-dim); font-weight: 600; }

/* Hero visual: orbiting cards */
.hero-visual { position: relative; height: 480px; z-index: 2; }
.orbit-ring {
  position: absolute; inset: 0;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
  margin: auto;
  width: 92%; height: 92%;
}
.orbit-ring.ring-2 { width: 66%; height: 66%; border-style: solid; border-color: var(--border); }
.hero-center-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 132px; height: 132px; border-radius: 34px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-soft);
}
.hero-center-badge img { width: 78px; }

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-strong);
  padding: 10px 16px 10px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  animation: drift 7s ease-in-out infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}
.float-card .tile { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--gradient-brand); }
.float-card .tile img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.float-card small { display: block; font-weight: 500; color: var(--text-dim); font-size: 0.7rem; }
.fc-1 { top: 4%; left: 2%; animation-delay: 0s; }
.fc-2 { top: 12%; right: 0%; animation-delay: -2s; }
.fc-3 { bottom: 18%; left: -2%; animation-delay: -4s; }
.fc-4 { bottom: 6%; right: 6%; animation-delay: -6s; }

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Marquee ---------- */
.marquee-wrap {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
}
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; opacity: 0.85; }
.marquee-item .tile { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.marquee-item .tile img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.marquee-item .tile svg { width: 16px; height: 16px; color: var(--accent); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.03s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.27s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.33s; }
.reveal-stagger.in-view > *:nth-child(n+7) { transition-delay: 0.38s; }

/* ---------- About / Philosophy ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; position: relative; z-index: 1; }
.about-quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-rest);
}
.about-quote .mark { font-family: var(--font-display); font-size: 3.4rem; color: var(--magenta); line-height: 0.6; display: block; margin-bottom: 6px; }
.about-quote p { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; color: var(--text); }
.about-quote footer { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.about-quote .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; color: #fff; }
.about-quote footer strong { display: block; font-size: 0.92rem; }
.about-quote footer span { font-size: 0.8rem; color: var(--text-dim); }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-rest);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.value-card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); box-shadow: var(--shadow-card); }
.value-card .icon-wrap {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand);
  margin-bottom: 16px;
}
.value-card .icon-wrap .icon { width: 22px; height: 22px; color: #fff; stroke-width: 1.8; }
.value-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.value-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Portfolio ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 42px; position: relative; z-index: 1; }
.filter-pill {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  box-shadow: var(--shadow-rest);
  transition: all 0.3s var(--ease);
}
.filter-pill .count { opacity: 0.6; margin-left: 4px; }
.filter-pill:hover { color: var(--text); border-color: var(--border-strong); }
.filter-pill.active { background: var(--gradient-brand); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(192, 38, 211, 0.6); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
  z-index: 1;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-rest);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-radial);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
}
.product-card:hover::before { opacity: 1; }
.product-card.hide { display: none; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; position: relative; z-index: 1; }
.logo-tile {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-tile img { width: 72%; height: 72%; object-fit: contain; }
.logo-tile.fallback { background: var(--gradient-brand); }
.logo-tile.fallback .icon { width: 26px; height: 26px; color: #fff; stroke-width: 1.6; }

.status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.status-live { color: var(--status-live); background: rgba(5, 150, 105, 0.1); border: 1px solid rgba(5, 150, 105, 0.28); }
.status-mvp { color: var(--status-mvp); background: rgba(180, 83, 9, 0.1); border: 1px solid rgba(180, 83, 9, 0.28); }
.status-dev { color: var(--status-dev); background: rgba(3, 105, 161, 0.1); border: 1px solid rgba(3, 105, 161, 0.28); }
.status-early { color: var(--status-early); background: rgba(147, 51, 234, 0.1); border: 1px solid rgba(147, 51, 234, 0.28); }
.status-concept { color: var(--status-concept); background: rgba(100, 116, 139, 0.1); border: 1px solid rgba(100, 116, 139, 0.28); }

.product-card h3 { font-size: 1.2rem; position: relative; z-index: 1; }
.product-category {
  font-size: 0.76rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 6px 0 12px; position: relative; z-index: 1;
}
.product-card p.desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-grow: 1;
  position: relative; z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
}
.card-foot .visit { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.card-foot .visit .icon { width: 15px; height: 15px; }
.card-foot .owner { color: var(--text-dim); font-weight: 500; font-size: 0.78rem; }

.portfolio-empty { text-align: center; padding: 60px 0; color: var(--text-dim); display: none; }
.portfolio-empty.show { display: block; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(40, 24, 66, 0.45);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-panel {
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 620px; width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s var(--ease);
  box-shadow: 0 40px 90px -20px rgba(76, 29, 149, 0.4);
}
.modal-overlay.open .modal-panel { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--surface-2); }
.modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.modal-head .logo-tile { width: 64px; height: 64px; border-radius: 18px; }
.modal-head h3 { font-size: 1.5rem; }
.modal-panel .product-category { margin: 4px 0 0; }
.modal-body { margin-top: 22px; color: var(--text-muted); font-size: 0.98rem; white-space: pre-line; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.modal-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Projects / Notewell ---------- */
.projects-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px; position: relative; z-index: 1; }
.notewell-card {
  background: linear-gradient(160deg, rgba(192,38,211,0.08), rgba(76,29,149,0.08));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-rest);
}
.notewell-card .logo-tile { width: 84px; height: 84px; border-radius: 22px; background: #fff; padding: 12px; box-shadow: var(--shadow-rest); }
.notewell-card .logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.notewell-card h3 { font-size: 1.9rem; margin: 24px 0 4px; }
.notewell-card .tagline { color: var(--accent); font-family: var(--font-display); font-weight: 700; margin-bottom: 16px; }
.notewell-card p.body-text { color: var(--text-muted); font-size: 1rem; max-width: 460px; }
.notewell-card .modal-actions { margin-top: 28px; }
.notewell-meta { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.notewell-meta div span { display: block; font-size: 0.76rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.notewell-meta div strong { font-family: var(--font-display); font-size: 0.95rem; }

.services-list { display: flex; flex-direction: column; gap: 16px; }
.service-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex; gap: 16px; align-items: flex-start;
  box-shadow: var(--shadow-rest);
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.service-item:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateX(4px); box-shadow: var(--shadow-card); }
.service-item .icon-wrap { width: 42px; height: 42px; border-radius: 12px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-item .icon-wrap .icon { color: var(--accent); width: 20px; height: 20px; }
.service-item h4 { font-size: 0.98rem; margin-bottom: 4px; }
.service-item p { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; position: relative; z-index: 1; }
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-rest);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.team-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.team-avatar {
  width: 66px; height: 66px; border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: #fff;
}
.team-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.team-card span { font-size: 0.76rem; color: var(--text-dim); display: block; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: 64px 50px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="60" height="60"%3E%3Ccircle cx="2" cy="2" r="1.4" fill="%23ffffff" fill-opacity="0.18"/%3E%3C/svg%3E');
  opacity: 0.5;
}
.cta-banner h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 560px; position: relative; z-index: 1; color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-top: 10px; position: relative; z-index: 1; }
.cta-banner .btn-ghost { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.3); color: #fff; position: relative; z-index: 1; }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.26); }

/* ---------- Call Us ---------- */
.call-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 54px 40px;
  box-shadow: var(--shadow-rest);
  position: relative;
  z-index: 1;
}
.call-icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand);
  box-shadow: var(--glow-soft);
}
.call-icon .icon { width: 30px; height: 30px; color: #fff; stroke-width: 1.7; }
.call-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.call-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
}
.call-hint { margin-top: 14px; color: var(--text-muted); font-size: 0.95rem; }
.call-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Footer ---------- */
footer.site-footer { border-top: 1px solid var(--border); padding: 70px 0 30px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-rest);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.footer-social a:hover { background: var(--gradient-brand); border-color: transparent; transform: translateY(-3px); }
.footer-social .icon { width: 17px; height: 17px; }
.footer-col h5 { font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  color: var(--text-dim); font-size: 0.84rem;
}
.back-to-top {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
  position: fixed; bottom: 28px; right: 28px; z-index: 40;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--gradient-brand); border-color: transparent; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .projects-layout { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  section { padding: 80px 0; }
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 50px 0 30px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cta-banner { flex-direction: column; align-items: flex-start; text-align: left; padding: 40px 28px; }
  .modal-panel { padding: 26px; }
  .call-card { padding: 40px 24px; }

  /* Mobile nav overlay */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--bg);
    padding: 110px 32px 40px;
    gap: 8px;
    z-index: 45;
  }
  .nav-links.mobile-open a { font-size: 1.3rem; padding: 14px 10px; width: 100%; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
