/* ============================================
   Yedla New Vision — Base
   ============================================ */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --brand: #0b5cab;        /* primary blue */
  --brand-dark: #073e74;
  --brand-soft: #e8f0fb;
  --accent: #ff7a1a;       /* orange highlight */
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 30px -18px rgba(15, 23, 42, 0.25);
  --shadow-lg: 0 25px 60px -28px rgba(15, 23, 42, 0.35);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0.02em; }
p  { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 0.65rem;
}

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0a1628;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .brand-sub { color: #fff; }
.site-header .nav-toggle { border-color: rgba(255, 255, 255, 0.2); }
.site-header .nav-toggle span { background: #fff; }

.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 76px;
  gap: 1.5rem;
  padding: 0 2rem;
  position: relative;
}
.nav-wrap > .brand { justify-self: start; grid-column: 1; }
.nav-wrap > .nav-toggle { grid-column: 3; justify-self: end; }
.nav-wrap > .nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-wrap > .nav .nav-list { margin: 0; }
.nav-wrap > .nav .nav-actions {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.brand-text {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}
.brand-text strong { font-weight: 700; color: var(--brand); }

.brand-text-only { gap: 0; }
.brand-text-only .brand-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
}
.brand-mark-text {
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ffb072 0%, #ff8a3d 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.brand-sub {
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.005em;
}
.brand-light.brand-text-only .brand-sub { color: #fff; }
.brand-light .brand-mark-text {
  background: linear-gradient(135deg, #ffc89a 0%, #ffa15c 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}
.brand-tagline {
  font-family: 'Fraunces', serif;
  font-size: 0.72rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  line-height: 1;
}
.brand-light .brand-tagline { color: rgba(255, 255, 255, 0.78); }
@media (max-width: 480px) {
  .brand-tagline { font-size: 0.65rem; letter-spacing: 0.06em; }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list > li > a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: color 0.2s;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-list > li > a:hover { color: #ffb072; }
.caret { font-size: 0.7rem; opacity: 0.7; }

.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 0.6rem 1.1rem !important;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--brand-dark); color: #fff !important; }

/* Merged phone + Contact pill (desktop nav-actions) */
.nav-actions {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
}
.nav-phone-merged,
.nav-cta-merged {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.nav-phone-merged {
  color: #fff;
  background: transparent;
}
.nav-phone-merged svg { color: #ffb072; flex-shrink: 0; }
.nav-phone-merged:hover { background: rgba(255, 255, 255, 0.08); color: #ffb072; }
.nav-phone-merged:hover svg { color: #ff8a3d; }
.nav-cta-merged {
  background: var(--brand);
  color: #fff;
}
.nav-cta-merged:hover { background: var(--brand-dark); color: #fff; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}
.dropdown li a:hover { background: var(--brand-soft); color: var(--brand); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(11, 92, 171, 0.6);
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

/* Animated gradient backdrop */
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(11, 92, 171, 0.22) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 122, 26, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 80%, rgba(11, 92, 171, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 90%, rgba(255, 122, 26, 0.12) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: heroDrift 18s ease-in-out infinite alternate;
  filter: blur(40px);
}

/* Floating orbs */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 25%, rgba(11, 92, 171, 0.35) 0%, transparent 12%),
    radial-gradient(circle at 85% 15%, rgba(255, 122, 26, 0.30) 0%, transparent 10%),
    radial-gradient(circle at 75% 75%, rgba(11, 92, 171, 0.25) 0%, transparent 14%),
    radial-gradient(circle at 25% 80%, rgba(255, 122, 26, 0.20) 0%, transparent 11%);
  filter: blur(60px);
  animation: heroFloat 14s ease-in-out infinite alternate;
}

/* Subtle grid pattern overlay */
.hero > .container {
  position: relative;
  z-index: 1;
}

@keyframes heroDrift {
  0%   { background-position:   0%   0%; transform: rotate(0deg) scale(1); }
  50%  { background-position: 100% 100%; transform: rotate(2deg) scale(1.05); }
  100% { background-position:  50%  50%; transform: rotate(-2deg) scale(1); }
}

@keyframes heroFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 1%, 0) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after { animation: none; }
}

.hero-inner { max-width: 820px; position: relative; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.tagline {
  font-size: 1.15rem;
  color: var(--body);
  max-width: 640px;
  margin: 1.25rem 0 2rem;
}

.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-trust {
  list-style: none;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: rgba(11, 92, 171, 0.07);
  border: 1px solid rgba(11, 92, 171, 0.18);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink, #0b1f3a);
}
.hero-trust li svg { flex-shrink: 0; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  color: var(--ink);
  line-height: 1;
}
.hero-stats span {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ============================================
   Sections
   ============================================ */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; color: var(--muted); }

/* ============================================
   Service cards
   ============================================ */
.grid { display: grid; gap: 1.75rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.service-card > p { font-size: 1rem; line-height: 1.55; }
.service-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}
.service-icon svg { width: 28px; height: 28px; }
.icon-marketing { color: var(--accent); }
.icon-web       { color: var(--brand); }
.icon-mobile    { color: #a259ff; }
.icon-infra     { color: #0f9d58; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.check-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  font-size: 0.95rem;
  color: var(--body);
  border-top: 1px dashed var(--line);
}
.check-list li:first-child { border-top: none; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.4rem;
  color: var(--brand);
  font-weight: 700;
}

/* ============================================
   Testimonials
   ============================================ */
.quote-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.quote-card blockquote {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.55;
}
.quote-card figcaption {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.quote-card strong { color: var(--ink); font-weight: 600; }

/* ============================================
   About
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.about-portrait {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  aspect-ratio: 4/5;
  max-width: 420px;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-portrait figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(10, 22, 40, 0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.about-portrait figcaption strong {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
}
.about-portrait figcaption span {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}
.meta-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--body);
}
.meta-list strong { display: inline-block; width: 140px; color: var(--ink); }

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 1rem;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0.85rem 0 0;
  color: var(--body);
  font-size: 0.95rem;
}

/* ============================================
   Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.info-list li { display: flex; flex-direction: column; gap: 0.2rem; }
.info-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}
.info-value {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
}
.info-value.muted { color: var(--muted); font-style: italic; font-weight: 400; }
a.info-value:hover { color: var(--brand); }

.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-form span { margin-bottom: 0.4rem; }
.contact-form em {
  font-style: normal;
  font-weight: 700;
  color: var(--brand);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.15);
}

.captcha-row {
  background: var(--brand-soft);
  padding: 0.85rem 1rem;
  border-radius: 10px;
}
.captcha-row span { color: var(--ink); }

.form-status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.25rem;
}
.form-status.success { color: #0f9d58; font-weight: 600; }
.form-status.error   { color: #c0392b; font-weight: 600; }

.contact-form button { align-self: flex-start; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #0a1628;
  color: #cbd5e1;
  padding: 4rem 0 1.5rem;
  font-size: 0.92rem;
}
.brand-light .brand-text,
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text strong { color: #ffb487; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.footer-tag {
  margin-top: 1rem;
  color: #94a3b8;
  line-height: 1.55;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.site-footer a { color: #cbd5e1; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }

.footer-social-label {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.site-footer ul.footer-social { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.site-footer ul.footer-social li { margin: 0; padding: 0; }
.site-footer ul.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.site-footer ul.footer-social a:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
}
.site-footer ul.footer-social svg { display: block; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 360px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-wrap { grid-template-columns: 1fr auto; padding: 0 1.25rem; gap: 1rem; }
  .nav-wrap > .brand { grid-column: 1; }
  .nav-wrap > .nav-toggle { grid-column: 2; display: block; }
  .nav-toggle { display: block; }
  .nav-wrap > .nav {
    grid-column: 1 / -1;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #0a1628;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }
  .nav.is-open { max-height: 600px; padding: 0.5rem 0; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem;
  }
  .nav-list > li > a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    color: #fff;
  }
  .nav-list > li:last-child > a { border-bottom: none; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0.5rem 0.75rem;
    min-width: 0;
  }
  .nav-cta { display: inline-block; margin-top: 0.5rem; }
  /* Mobile: unmerge the pill, stack the actions */
  .nav-wrap > .nav .nav-actions {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 0;
  }
  .nav-phone-merged,
  .nav-cta-merged {
    justify-content: center;
    padding: 0.75rem 1rem;
  }
  .nav-phone-merged { background: rgba(255, 255, 255, 0.06); }

  .hero { padding: 4rem 0 3rem; }
  .section { padding: 4rem 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .meta-list strong { width: 100px; }
}

/* ============================================
   Multi-page additions
   ============================================ */

/* Page header (sub-page banner) */
.page-header {
  padding: 5rem 0 3.5rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(11, 92, 171, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 122, 26, 0.10) 0%, transparent 55%);
  filter: blur(30px);
}
.page-header .container { max-width: 820px; }
.page-header .kicker { margin-bottom: .5rem; }
.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: .25rem 0 1rem;
  line-height: 1.1;
}
.page-header p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Narrow content container for prose */
.container.narrow { max-width: 760px; }
.container.container-wide { max-width: 1320px; }

/* Service detail blocks on Services page */
.service-detail { max-width: 920px; margin: 0 auto; }
.service-detail .service-icon { margin-bottom: 1.25rem; }
.service-detail h2 { margin: .25rem 0 1rem; }
.service-detail > p { font-size: 1.1rem; color: var(--muted); margin-bottom: 2rem; }
.service-feature-grid { margin-top: 1.5rem; }
.service-feature-grid .feature {
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
}
.service-feature-grid .feature h4 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.service-feature-grid .feature p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}

/* "Learn more" link in service cards on the home page */
.card-link {
  display: inline-block;
  margin-top: .5rem;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* Value cards on About page */
.value-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.value-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.value-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.15rem;
}
.value-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Standalone stats row */
.hero-stats--standalone {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
}

/* CTA strip section */
.cta-strip {
  background: linear-gradient(135deg, rgba(11, 92, 171, 0.06), rgba(255, 122, 26, 0.06));
}
.cta-strip .container { max-width: 720px; }
.cta-strip h2 { margin-bottom: .75rem; }
.cta-strip p { color: var(--muted); margin-bottom: 1.5rem; }
.cta-strip .btn { margin-top: .5rem; }

/* Two-column grid helper */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================
   Brand logo pills
   ============================================ */
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 1.15rem .55rem .55rem;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  user-select: none;
}
.brand-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  border-color: var(--brand-color, var(--line));
}
.brand-pill-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: var(--brand-color);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.brand-pill-icon svg { width: 100%; height: 100%; display: block; }
.brand-pill-text { color: var(--ink); line-height: 1; }

.brand-pill-row-section {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--line);
}
.brand-pill-row-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 0 0 1rem;
}
.brand-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ============================================
   Logo marquee
   ============================================ */
.logo-marquee-section {
  padding: 3rem 0;
  background: var(--surface, #fff);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.logo-marquee-label {
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin: 0 0 1.75rem;
}
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.logo-marquee-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  animation: ynvMarquee 40s linear infinite;
  will-change: transform;
}
.logo-marquee-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
  flex-shrink: 0;
}
.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}
/* 4 groups in the track; -50% = exactly 2 group widths, snaps seamlessly */
@keyframes ynvMarquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
}

/* ============================================
   Scroll reveal animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Service card / icon hover bounce
   ============================================ */
.service-icon svg {
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.service-card:hover .service-icon svg {
  transform: scale(1.18) rotate(-4deg);
}

/* Card link arrow nudge */
.card-link {
  display: inline-block;
  margin-top: .5rem;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease;
}
.card-link:hover { transform: translateX(3px); text-decoration: underline; }

/* ============================================
   Primary button shimmer + lift
   ============================================ */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: skewX(-18deg);
  transition: left .7s ease;
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(11, 92, 171, 0.28);
}
.btn-primary:hover::after { left: 140%; }

/* Hero stats pop on visible */
.hero-stats strong {
  display: inline-block;
  transition: transform .4s ease;
}

/* FAQ summary chevron rotate */
.faq-item summary {
  transition: color .2s ease;
}
.faq-item[open] summary { color: var(--brand); }

/* ============================================
   Blog
   ============================================ */
.blog-grid { gap: 2rem; }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
  border-color: transparent;
}
.post-card-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(11, 92, 171, 0.10), rgba(255, 122, 26, 0.10));
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card-thumb--placeholder span {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--brand);
  opacity: .35;
}
.post-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.post-card-meta {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.post-card-meta a { color: var(--brand); text-decoration: none; }
.post-card-meta a:hover { text-decoration: underline; }
.post-card-dot { margin: 0 .4rem; opacity: .5; }
.post-card-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}
.post-card-title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--brand), var(--brand));
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .3s ease;
}
.post-card-title a:hover { background-size: 100% 2px; }
.post-card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
  flex: 1;
}

/* Pagination */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}
.pagination .nav-links {
  display: inline-flex;
  gap: .35rem;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 .85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface, #fff);
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .dots { border: none; background: transparent; }

/* Single post */
.post-meta {
  color: var(--muted);
  font-size: .95rem;
}
.post-hero-image {
  margin: -1rem 0 2rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}
.post-hero-image img { display: block; width: 100%; height: auto; }

.post-content {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}
.post-content > * + * { margin-top: 1.25em; }
.post-content h2 {
  font-size: 1.7rem;
  margin-top: 2.25rem;
  line-height: 1.25;
}
.post-content h3 {
  font-size: 1.3rem;
  margin-top: 1.75rem;
}
.post-content p { margin: 0 0 1em; }
.post-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.post-content blockquote {
  border-left: 4px solid var(--brand);
  padding: .5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
  background: rgba(11, 92, 171, 0.04);
  border-radius: 0 10px 10px 0;
}
.post-content ul,
.post-content ol { padding-left: 1.4em; }
.post-content li { margin: .35em 0; }
.post-content img,
.post-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 1.5rem auto;
}
.post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
  background: rgba(15, 23, 42, 0.06);
  padding: .15em .4em;
  border-radius: 4px;
}
.post-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
}
.post-content pre code { background: transparent; color: inherit; padding: 0; }

.post-tags {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.post-tag {
  display: inline-block;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
.post-tag:hover { color: var(--brand); border-color: var(--brand); }

.post-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s ease, transform .2s ease;
}
.post-nav-link:hover { border-color: var(--brand); transform: translateY(-2px); }
.post-nav-link.next { text-align: right; grid-column: 2; }
.post-nav-link.prev:only-child { grid-column: 1; }
.post-nav-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
}
.post-nav-title {
  font-weight: 600;
  font-size: 1rem;
}
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.next { grid-column: 1; text-align: left; }
}

/* Comments */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.comments-area .comments-title,
.comments-area .comment-reply-title {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}
.comment-list { list-style: none; padding: 0; }
.comment-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--surface, #fff);
  margin-top: .35rem;
}
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.search-form { display: flex; gap: .5rem; max-width: 480px; margin: 1rem auto 0; }
.search-form input[type="search"] { margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============ Cookie banner ============ */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 40px -10px rgba(15, 23, 42, 0.25);
  padding: 1rem 1.25rem;
  max-width: 880px;
  margin: 0 auto;
  animation: cookieSlideUp 0.45s ease-out both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 320px; min-width: 0; }
.cookie-banner-text strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.cookie-banner-text p {
  margin: 0;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-banner .btn { padding: 0.55rem 1.1rem; font-size: 0.92rem; }
.cookie-banner .btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #cbd5e1;
}
.cookie-banner .btn-ghost:hover { background: #f1f5f9; }
@media (max-width: 560px) {
  .cookie-banner { padding: 1rem; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}


  /* ============================================
     Portfolio page
     ============================================ */
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 2.5rem;
  }
  .portfolio-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.25);
    border-color: rgba(255, 138, 61, 0.35);
  }
  .portfolio-card-visual {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #14233f 100%);
    color: #fff;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .visual-glow {
    position: absolute;
    inset: -40% -20% auto auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 138, 61, 0.45) 0%, transparent 65%);
    pointer-events: none;
  }
  .visual-glow-purple { background: radial-gradient(circle, rgba(139, 92, 246, 0.45) 0%, transparent 65%); }
  .visual-glow-green  { background: radial-gradient(circle, rgba(34, 197, 94, 0.4) 0%, transparent 65%); }

  .visual-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
  }
  .visual-chip .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #ffb072;
    box-shadow: 0 0 0 3px rgba(255, 176, 114, 0.2);
  }
  .visual-chip .dot-purple { background: #c4b5fd; box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.2); }
  .visual-chip .dot-green  { background: #86efac; box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.2); }

  /* Sales Copilot visual */
  .visual-window {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.65rem;
    position: relative;
    z-index: 1;
  }
  .visual-window-header {
    display: flex; gap: 4px; margin-bottom: 0.55rem;
  }
  .visual-window-header span {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
  }
  .visual-bars { display: flex; flex-direction: column; gap: 5px; margin-bottom: 0.6rem; }
  .visual-bar {
    height: 6px; border-radius: 3px;
    background: linear-gradient(90deg, #ffb072, rgba(255, 176, 114, 0.2));
  }
  .visual-row {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.78rem;
  }
  .visual-pill {
    background: rgba(255, 176, 114, 0.18); color: #ffb072;
    padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600;
  }
  .visual-row strong { color: #fff; font-size: 0.95rem; }

  /* AI Signals visual */
  .visual-engines {
    display: flex; flex-wrap: wrap; gap: 6px;
    position: relative; z-index: 1;
  }
  .engine-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
  }
  .visual-graph { position: relative; z-index: 1; color: #c4b5fd; }
  .visual-graph svg { width: 100%; height: 60px; display: block; }

  /* Price Comparison visual */
  .price-rows { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; }
  .price-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 0.78rem;
  }
  .price-row.best {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(134, 239, 172, 0.35);
  }
  .price-store { color: rgba(255, 255, 255, 0.7); }
  .price-val { font-weight: 700; color: #fff; }
  .price-row.best .price-val { color: #86efac; }

  .portfolio-card-body { padding: 1.5rem 1.5rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
  .portfolio-tag {
    text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem;
    font-weight: 700; color: var(--brand); margin: 0 0 0.5rem;
  }
  .portfolio-card-body h3 {
    font-family: 'Fraunces', serif; font-size: 1.45rem;
    margin: 0 0 0.5rem; color: var(--ink); line-height: 1.15;
  }
  .portfolio-card-body > p {
    color: var(--muted, #64748b); margin: 0 0 1rem; line-height: 1.55;
  }
  .portfolio-meta {
    list-style: none; padding: 0; margin: auto 0 0;
    display: flex; flex-direction: column; gap: 0.4rem;
    border-top: 1px solid var(--line); padding-top: 1rem;
  }
  .portfolio-meta li {
    font-size: 0.85rem; color: var(--ink); position: relative;
    padding-left: 1.1rem;
  }
  .portfolio-meta li::before {
    content: "";
    position: absolute; left: 0; top: 0.55em;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand);
  }

  /* Sites grid */
  .portfolio-intro { color: var(--muted, #64748b); max-width: 640px; margin: 0.5rem 0 2.5rem; }
  .portfolio-sites-grid { gap: 1.5rem; margin-top: 1rem; }
  .portfolio-site {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .portfolio-site:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px -20px rgba(15, 23, 42, 0.22);
  }
  .portfolio-site-thumb {
    height: 160px;
    display: flex; align-items: center; justify-content: center;
    padding: 1.25rem;
  }
  .thumb-1 { background: linear-gradient(135deg, #fde68a 0%, #fb923c 100%); }
  .thumb-2 { background: linear-gradient(135deg, #93c5fd 0%, #6366f1 100%); }
  .thumb-3 { background: linear-gradient(135deg, #fca5a5 0%, #ef4444 100%); }
  .thumb-4 { background: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%); }
  .thumb-5 { background: linear-gradient(135deg, #cbd5e1 0%, #475569 100%); }
  .thumb-6 { background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 100%); }
  .thumb-browser {
    width: 100%; max-width: 220px;
    background: #fff; border-radius: 8px; padding: 0.6rem;
    box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.35);
  }
  .thumb-browser-bar { display: flex; gap: 4px; margin-bottom: 0.6rem; }
  .thumb-browser-bar span {
    width: 7px; height: 7px; border-radius: 50%;
    background: #e2e8f0;
  }
  .thumb-headline {
    height: 14px; border-radius: 4px;
    background: linear-gradient(90deg, #0f172a, #334155);
    width: 70%; margin-bottom: 0.55rem;
  }
  .thumb-lines { display: flex; flex-direction: column; gap: 4px; }
  .thumb-lines span {
    height: 5px; border-radius: 3px;
    background: #e2e8f0;
  }
  .thumb-lines span:nth-child(2) { width: 85%; }
  .thumb-lines span:nth-child(3) { width: 60%; }

  .portfolio-site-link { display: block; text-decoration: none; color: inherit; }
  .portfolio-site-link:hover { text-decoration: none; }
  .portfolio-site-thumb-image {
    height: 200px;
    padding: 0;
    background: #f1f5f9;
    overflow: hidden;
  }
  .portfolio-site-thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
  }
  .portfolio-site-link:hover .portfolio-site-thumb-image img { transform: scale(1.04); }
  .portfolio-site-url {
    margin-top: 0.75rem !important;
    color: var(--brand, #0b5cab) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
  }

  .portfolio-site-body { padding: 1.1rem 1.25rem 1.4rem; }
  .portfolio-site-body h4 {
    font-family: 'Fraunces', serif; font-size: 1.15rem;
    margin: 0.25rem 0 0.4rem; color: var(--ink);
  }
  .portfolio-site-body p {
    font-size: 0.9rem; color: var(--muted, #64748b); margin: 0; line-height: 1.5;
  }

  @media (max-width: 980px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 720px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-sites-grid { grid-template-columns: 1fr; }
  }
  
/* ============ CASE STUDIES ============ */
.case-study {
  max-width: 980px;
  margin: 0 auto;
}

/* ---- Top-level case study card (foldable) ---- */
.case-study-card {
  background: #fff;
  border: 1px solid var(--line, #e5e8ee);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(11, 31, 58, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.case-study-card:hover {
  border-color: rgba(11, 92, 171, 0.35);
  box-shadow: 0 12px 36px rgba(11, 31, 58, 0.08);
}
.case-study-card[open] {
  border-color: rgba(11, 92, 171, 0.35);
  box-shadow: 0 12px 36px rgba(11, 31, 58, 0.08);
}

.case-study-card > summary.case-study-card-summary {
  list-style: none;
  cursor: pointer;
  padding: 2rem 2.25rem;
  display: block;
  position: relative;
  user-select: none;
}
.case-study-card > summary.case-study-card-summary::-webkit-details-marker { display: none; }
.case-study-card > summary.case-study-card-summary::after {
  content: "";
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--brand, #0b5cab);
  border-bottom: 2px solid var(--brand, #0b5cab);
  transform: rotate(45deg);
  transition: transform 0.25s;
  opacity: 0.7;
}
.case-study-card[open] > summary.case-study-card-summary::after {
  transform: rotate(-135deg);
}

.case-study-card-head { margin-bottom: 1.5rem; padding-right: 2.5rem; }

/* Index grid: 2 cards in 1 row that link to a detail page */
.case-study-index-grid { gap: 2rem; align-items: stretch; }
.case-study-index-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.case-study-index-card:hover,
.case-study-index-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11, 31, 58, 0.10);
  border-color: rgba(11, 92, 171, 0.35);
}
.case-study-index-card .case-study-card-head { padding-right: 0; }
.case-study-index-card .case-study-card-head h2 { font-size: 1.4rem; line-height: 1.3; }
.case-study-index-card .case-study-stats { margin-top: auto; }
.case-study-index-card .case-study-card-cta {
  margin-top: 1.25rem;
  display: inline-block;
  color: var(--brand, #0b5cab);
  font-weight: 700;
}
.case-study-index-card:hover .case-study-card-cta { text-decoration: underline; }

/* Detail view (when ?cs=1 or ?cs=2) */
.case-study-detail {
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
}
.case-study-detail-header { margin-bottom: 2rem; }
.case-study-back-wrap { margin-top: 2rem; }
.case-study-back { color: var(--brand, #0b5cab); text-decoration: none; font-weight: 600; }
.case-study-back:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .case-study-detail { padding: 1.5rem; }
}


/* Big highlighted service-tag badge at the top of each case study card */
.case-study-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 1rem 0.55rem 0.65rem;
  background: linear-gradient(135deg, rgba(11, 92, 171, 0.10), rgba(11, 92, 171, 0.04));
  border: 1px solid rgba(11, 92, 171, 0.25);
  border-radius: 999px;
  margin-bottom: 1rem;
  max-width: 100%;
}
.case-study-badge-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand, #0b5cab);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  line-height: 1;
}
.case-study-badge-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink, #0b1f3a);
  letter-spacing: 0.01em;
}
.case-study-badge-sem .case-study-badge-tag { background: #f97316; }
.case-study-badge-sem { background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(249,115,22,0.04)); border-color: rgba(249,115,22,0.3); }
.case-study-badge-seo .case-study-badge-tag { background: #0f9d58; }
.case-study-badge-seo { background: linear-gradient(135deg, rgba(15,157,88,0.12), rgba(15,157,88,0.04)); border-color: rgba(15,157,88,0.3); }
.case-study-badge-smm .case-study-badge-tag { background: #a259ff; }
.case-study-badge-smm { background: linear-gradient(135deg, rgba(162,89,255,0.12), rgba(162,89,255,0.04)); border-color: rgba(162,89,255,0.3); }
.case-study-card-head h2 { margin: 0.25rem 0 0; }
.case-study-card-head .case-study-sub { margin-top: 0.75rem; }

.case-study-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--brand, #0b5cab);
  font-size: 0.95rem;
}
.case-study-card-cta::after {
  content: "\2192";
  transition: transform 0.2s;
}
.case-study-card:hover .case-study-card-cta::after { transform: translateX(3px); }
.case-study-card .cta-close { display: none; }
.case-study-card[open] .cta-open { display: none; }
.case-study-card[open] .cta-close { display: inline; }

/* Body content of an opened case study card */
.case-study-card > *:not(summary) {
  padding-left: 2.25rem;
  padding-right: 2.25rem;
}
.case-study-card > .case-chart:first-of-type { margin-top: 0.5rem; }
.case-study-card > .case-study-note { padding-bottom: 2rem; }

@media (max-width: 720px) {
  .case-study-card > summary.case-study-card-summary { padding: 1.5rem 1.25rem; }
  .case-study-card > summary.case-study-card-summary::after { top: 1.5rem; right: 1.25rem; }
  .case-study-card-head { padding-right: 2rem; }
  .case-study-card > *:not(summary) { padding-left: 1.25rem; padding-right: 1.25rem; }
}

.case-study-head { margin-bottom: 2rem; }
.case-study-head h2 { margin-top: 0.25rem; }
.case-study-sub {
  font-size: 1.1rem;
  color: var(--muted, #555);
  margin-top: 0.75rem;
}
.case-study-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.case-study-stats > div {
  background: var(--surface, #f5f7fb);
  border: 1px solid var(--line, #e5e8ee);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}
.case-study-stats strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brand, #0b5cab);
  line-height: 1.1;
}
.case-study-stats span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted, #666);
}
.case-study-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
  background: var(--surface, #f5f7fb);
  border-radius: 12px;
  border: 1px solid var(--line, #e5e8ee);
  margin-bottom: 2rem;
}
.case-study-meta .kicker { margin: 0 0 0.25rem; }
.case-study-meta p { margin: 0; }
.case-study-section { margin: 2.25rem 0; }
.case-study-section h3 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line, #e5e8ee);
}
.case-study-section h4 {
  margin: 1.75rem 0 0.75rem;
}
.case-study-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.case-study-list li {
  padding: 0.6rem 0 0.6rem 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--line, #eef0f5);
}
.case-study-list li:last-child { border-bottom: 0; }
.case-study-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand, #0b5cab);
}
.case-study-callout {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: rgba(11, 92, 171, 0.06);
  border-left: 3px solid var(--brand, #0b5cab);
  border-radius: 6px;
}
.case-study-callout p { margin: 0.25rem 0; }
.case-study-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line, #e5e8ee);
  border-radius: 10px;
}
.case-study-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.case-study-table th,
.case-study-table td {
  text-align: left;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line, #eef0f5);
}
.case-study-table thead th {
  background: var(--surface, #f5f7fb);
  font-weight: 600;
}
.case-study-table tbody tr:last-child td { border-bottom: 0; }
.case-study-phases { margin-top: 1rem; }
.case-study-phases .feature {
  background: #fff;
  border: 1px solid var(--line, #e5e8ee);
  border-radius: 12px;
  padding: 1.25rem;
}
.case-study-phases .feature .kicker { margin-bottom: 0.25rem; }
.case-study-phases .feature h4 { margin: 0 0 0.5rem; }
.case-study-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted, #777);
}
@media (max-width: 720px) {
  .case-study-stats { grid-template-columns: 1fr; }
  .case-study-meta { grid-template-columns: 1fr; }
}

/* ---- Foldable case-study sections (native <details>) ---- */
.case-study-fold {
  margin: 1rem 0;
  border: 1px solid var(--line, #e5e8ee);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.case-study-fold[open] {
  border-color: rgba(11, 92, 171, 0.35);
  box-shadow: 0 4px 18px rgba(11, 92, 171, 0.06);
}
.case-study-fold > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink, #0b1f3a);
  user-select: none;
}
.case-study-fold > summary::-webkit-details-marker { display: none; }
.case-study-fold > summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-right: 4px;
  opacity: 0.6;
}
.case-study-fold[open] > summary::after { transform: rotate(-135deg); }
.case-study-fold > summary:hover { background: rgba(11, 92, 171, 0.04); }
.case-study-fold > summary span { display: inline-block; }
.case-study-fold-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--line, #eef0f5);
  padding-top: 1.25rem;
}
.case-study-fold-body > *:first-child { margin-top: 0; }
.case-study-fold-body h4 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.05rem;
}
.case-study-fold-body h4:first-child { margin-top: 0; }

/* ---- Charts ---- */
.case-chart {
  margin: 1.5rem 0 1.75rem;
  padding: 1.25rem 1.25rem 1rem;
  background: #fff;
  border: 1px solid var(--line, #e5e8ee);
  border-radius: 14px;
}
.case-chart figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.case-chart-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink, #0b1f3a);
}
.case-chart-sub {
  font-size: 0.85rem;
  color: var(--muted, #6b7689);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.case-chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.legend-before { background: #9aa9c2; }
.legend-after  { background: #2b6cff; }
.case-chart-svg-wrap {
  width: 100%;
  overflow-x: auto;
}
.case-chart-svg-wrap svg {
  width: 100%;
  height: auto;
  min-width: 480px;
  display: block;
}

/* ============ NEW PORTFOLIO VISUALS ============ */
.visual-glow-orange { background: radial-gradient(circle, rgba(249, 115, 22, 0.45) 0%, transparent 65%); }
.visual-glow-teal   { background: radial-gradient(circle, rgba(20, 184, 166, 0.42) 0%, transparent 65%); }
.visual-chip .dot-orange { background: #fdba74; box-shadow: 0 0 0 3px rgba(253, 186, 116, 0.2); }
.visual-chip .dot-teal   { background: #5eead4; box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.2); }

/* CRM Daddy — kanban-ish board */
.visual-crm-daddy { position: relative; overflow: hidden; }
.crm-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
  width: 100%;
  height: 100%;
}
.crm-col {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.crm-col-label {
  margin: 0 0 4px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}
.crm-card {
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
}
.crm-card-won {
  background: linear-gradient(90deg, #fdba74, #f97316);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.55);
}

/* AgencyHub — tile grid */
.visual-agencyhub { position: relative; overflow: hidden; }
.hub-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px;
  width: 100%;
  height: 100%;
}
.hub-tile {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ============ PORTFOLIO IMAGE VISUAL ============ */
.portfolio-card-visual-image {
  padding: 0;
  background: #0f172a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-card-visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
