:root {
  /* Dynamic Slate/Ice-Blue Palette */
  --bg-hue: 210;
  --bg-sat: 20%;
  --bg-light: 95%; /* Light slate background */
  
  --bg: hsl(var(--bg-hue), var(--bg-sat), var(--bg-light));
  --bg-deep: hsl(var(--bg-hue), var(--bg-sat), calc(var(--bg-light) - 8%));
  --paper: hsla(var(--bg-hue), var(--bg-sat), 100%, 0.75);
  --paper-strong: hsl(var(--bg-hue), var(--bg-sat), 100%);
  --panel: hsla(var(--bg-hue), var(--bg-sat), 98%, 0.8);
  
  --text-hue: 220;
  --text: hsl(var(--text-hue), 40%, 15%); /* Deep indigo navy */
  --muted: hsl(var(--text-hue), 20%, 45%);
  --line: hsla(var(--text-hue), 30%, 20%, 0.08);
  
  --primary-hue: 240; /* Indigo */
  --primary: hsl(var(--primary-hue), 65%, 55%);
  --primary-deep: hsl(var(--primary-hue), 70%, 40%);
  --primary-soft: hsla(var(--primary-hue), 65%, 55%, 0.1);
  
  --accent-hue: 180; /* Teal/Cyan */
  --accent: hsl(var(--accent-hue), 75%, 40%);
  --accent-soft: hsla(var(--accent-hue), 75%, 40%, 0.12);
  
  --ink: hsl(var(--text-hue), 50%, 8%);
  --shadow: 0 20px 50px hsla(var(--text-hue), 40%, 15%, 0.06);
  --radius: 24px;
  --frame-radius: 20px;
  --frame-inner-radius: 16px;
  --frame-inset: 10px;
  --card-inset: 14px;
  
  /* Body gradient additions */
  --body-glow-1: hsla(var(--accent-hue), 75%, 50%, 0.08);
  --body-glow-2: hsla(var(--primary-hue), 65%, 60%, 0.08);
  --body-grad-start: hsl(var(--bg-hue), var(--bg-sat), 98%);
  
  /* Chat widget variables */
  --chat-body-bg: hsl(var(--bg-hue), var(--bg-sat), 98%);
  --chat-bot-msg-bg: hsla(var(--primary-hue), 65%, 55%, 0.06);

  /* Card Hero, CTA & Button Variables for Light Theme */
  --hero-bg: linear-gradient(135deg, var(--primary), var(--primary-deep));
  --hero-text: #ffffff;
  --hero-border: var(--line);
  --cta-bg: linear-gradient(135deg, var(--primary), var(--primary-deep));
  --cta-text: #ffffff;
  --cta-border: var(--line);
  --footer-bg: linear-gradient(135deg, var(--primary), var(--primary-deep));
  --footer-text: #ffffff;
  --footer-border: hsla(0, 0%, 100%, 0.12);
  --footer-btn-bg: #ffffff;
  --footer-btn-text: var(--primary-deep);
  --footer-muted: rgba(255, 255, 255, 0.72);
  --footer-label-color: #ffffff;
  --btn-text: #ffffff;
}

[data-theme="dark"] {
  /* Obsidian/Pitch Black Palette */
  --bg-hue: 220;
  --bg-sat: 24%;
  --bg-light: 4%; /* Near black */
  
  --bg: hsl(var(--bg-hue), var(--bg-sat), var(--bg-light));
  --bg-deep: hsl(var(--bg-hue), var(--bg-sat), calc(var(--bg-light) + 2%));
  --paper: hsla(var(--bg-hue), var(--bg-sat), 8%, 0.65);
  --paper-strong: hsl(var(--bg-hue), var(--bg-sat), 9%);
  --panel: hsla(var(--bg-hue), var(--bg-sat), 7%, 0.7);
  
  --text: hsl(var(--bg-hue), 15%, 88%); /* Ice white */
  --muted: hsl(var(--bg-hue), 12%, 60%);
  --line: hsla(var(--bg-hue), 20%, 90%, 0.08);
  
  --primary: hsl(235, 75%, 65%); /* Bright electric indigo */
  --primary-deep: hsl(235, 80%, 75%);
  --primary-soft: hsla(235, 75%, 65%, 0.15);
  
  --accent: hsl(175, 80%, 45%); /* Neon Cyan/Teal */
  --accent-soft: hsla(175, 80%, 45%, 0.15);
  
  --ink: hsl(var(--bg-hue), 20%, 96%);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  
  --body-glow-1: hsla(175, 80%, 45%, 0.06);
  --body-glow-2: hsla(235, 75%, 65%, 0.06);
  --body-grad-start: hsl(var(--bg-hue), var(--bg-sat), 3%);
  
  --chat-body-bg: hsl(var(--bg-hue), var(--bg-sat), 6%);
  --chat-bot-msg-bg: hsla(235, 75%, 65%, 0.08);

  /* Card Hero, CTA & Button Variables for Dark Theme (Obsidian adaptation) */
  --hero-bg: linear-gradient(135deg, hsl(var(--bg-hue), var(--bg-sat), 8%), hsl(var(--bg-hue), var(--bg-sat), 4%));
  --hero-text: var(--text);
  --hero-border: hsla(var(--primary-hue), 70%, 55%, 0.18);
  --cta-bg: linear-gradient(135deg, hsl(var(--bg-hue), var(--bg-sat), 8%), hsl(var(--bg-hue), var(--bg-sat), 4%));
  --cta-text: var(--text);
  --cta-border: hsla(var(--primary-hue), 70%, 55%, 0.18);
  --footer-bg: linear-gradient(135deg, hsl(var(--bg-hue), var(--bg-sat), 7%), hsl(var(--bg-hue), var(--bg-sat), 4%));
  --footer-text: var(--text);
  --footer-border: var(--line);
  --footer-btn-bg: var(--primary);
  --footer-btn-text: hsl(var(--bg-hue), var(--bg-sat), 4%);
  --footer-muted: var(--muted);
  --footer-label-color: var(--text);
  --btn-text: hsl(var(--bg-hue), var(--bg-sat), 4%);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--body-glow-1), transparent 22%),
    radial-gradient(circle at top right, var(--body-glow-2), transparent 26%),
    linear-gradient(180deg, var(--body-grad-start) 0%, var(--bg) 52%, var(--bg-deep) 100%);
  overflow-x: hidden;
  font-size: 0.98rem;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand,
.section-title,
.display-title,
.footer-title {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

.site-noise,
.site-glow,
.shell-orb {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -3;
}

.site-noise {
  background-image: radial-gradient(rgba(53, 18, 19, 0.045) 0.75px, transparent 0.75px);
  background-size: 22px 22px;
  opacity: 0.22;
}

.site-glow::before,
.site-glow::after,
.shell-orb::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
}

.site-glow::before {
  width: 340px;
  height: 340px;
  top: 60px;
  left: -100px;
  background: var(--body-glow-2);
}

.site-glow::after {
  width: 300px;
  height: 300px;
  right: -80px;
  bottom: 14%;
  background: var(--body-glow-1);
}

.shell-orb.orb-one::before {
  width: 210px;
  height: 210px;
  top: 20%;
  right: 10%;
  background: var(--body-glow-2);
}

.shell-orb.orb-two::before {
  width: 200px;
  height: 200px;
  bottom: 8%;
  left: 8%;
  background: rgba(185, 107, 67, 0.08);
}

.glass-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

main > section {
  position: relative;
}

main > section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1120px, calc(100% - 2rem));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.section-pad {
  padding: 6.25rem 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
}

.section-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-title {
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.96;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.section-lead,
.text-muted-soft {
  color: var(--muted) !important;
}

.section-lead {
  max-width: 680px;
  font-size: 1.04rem;
}

.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.pill-label i {
  color: var(--accent);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1040;
}

.navbar {
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  background: var(--paper) !important;
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text) !important;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.navbar-toggler {
  color: var(--text) !important;
  border-color: var(--line) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

[data-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav .nav-link {
  color: var(--muted);
  font-weight: 600;
  padding: 0.5rem 0.95rem !important;
  border-radius: 999px;
  transition: 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: var(--btn-text) !important;
  font-weight: 800;
  box-shadow: 0 8px 20px var(--primary-soft);
  transition: all 0.25s ease;
}

.hero {
  padding: 4.1rem 0 2.4rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 4rem;
  min-height: 690px;
  background: linear-gradient(135deg, var(--paper-strong), var(--bg-deep));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: var(--card-inset);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 10px);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -5% -16% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--body-glow-1), transparent 70%);
}

.hero-panel .hero-copy,
.hero-panel .hero-side {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 2rem;
  align-items: stretch;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-kicker i {
  color: var(--accent);
}

.hero-copy {
  max-width: 700px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.display-title {
  font-size: clamp(3.5rem, 6vw, 6.6rem);
  line-height: 0.9;
  margin: 1.4rem 0 1.2rem;
  letter-spacing: -0.05em;
}

.hero-copy .lead {
  color: var(--muted);
  max-width: 590px;
  font-size: 1.1rem;
}

.hero-copy-support {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  margin-top: 1.6rem;
  max-width: 640px;
  align-items: stretch;
}

.hero-copy-support .resume-strip-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-copy-support .resume-strip-card::after {
  border-color: var(--line);
}

.hero-copy-support .resume-strip-card strong,
.hero-copy-support .resume-strip-card span,
.hero-copy-support .resume-strip-card a {
  color: var(--text);
}

.hero-copy-support .resume-strip-card a {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-main,
.btn-outline-main,
.btn-ghost-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 999px;
  padding: 0.95rem 1.45rem;
  font-weight: 800;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
}

.btn-main {
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: var(--btn-text) !important;
  box-shadow: 0 10px 24px var(--primary-soft);
}

.btn-outline-main {
  border: 1px solid var(--primary);
  color: var(--primary) !important;
  background: transparent;
}

.btn-ghost-main {
  border: 1px solid var(--line);
  color: var(--text) !important;
  background: var(--paper);
}

.btn-main:hover,
.btn-outline-main:hover,
.btn-ghost-main:hover,
.nav-cta:hover,
.footer-cta-link:hover {
  transform: translateY(-2px);
}

.hero-metrics {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.metric-card {
  padding: 1.15rem 1rem;
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--text);
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 2rem;
  color: var(--primary);
}

.hero-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.resume-strip {
  display: grid;
  gap: 1rem;
}

.resume-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.profile-card-hero,
.mini-panel,
.signature-panel,
.resume-strip-card,
.band-card,
.contact-card,
.timeline-card,
.service-card,
.project-card,
.info-card,
.quote-card,
.page-hero-card,
.footer-panel {
  position: relative;
  overflow: hidden;
}

.profile-card-hero,
.mini-panel,
.signature-panel,
.resume-strip-card,
.band-card,
.contact-card,
.timeline-card,
.service-card,
.project-card,
.info-card,
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.profile-card-hero,
.mini-panel,
.signature-panel,
.resume-strip-card {
  padding: 1.35rem;
}

.profile-card-hero {
  min-height: 300px;
  padding: var(--frame-inset);
  background: var(--paper);
}

.profile-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--frame-inner-radius);
}

.status-pill {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 0.62rem 0.92rem;
  border-radius: 999px;
  background: var(--primary-deep);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
}

.profile-card-hero::after {
  content: "";
  position: absolute;
  inset: var(--frame-inset);
  border: 1px solid var(--line);
  border-radius: var(--frame-inner-radius);
  pointer-events: none;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-content: flex-start;
}

.skill-chip {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  border: 1px solid var(--line);
}

.signal-list,
.timeline-list,
.process-list,
.check-list {
  display: grid;
  gap: 0.85rem;
}

.signal-item,
.check-list span {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
}

.signal-item i,
.check-list i {
  color: var(--primary);
}

.info-card,
.service-card,
.project-card,
.contact-card,
.timeline-card,
.quote-card,
.band-card {
  height: 100%;
  padding: 1.85rem;
}

.timeline-card,
.quote-card,
.signature-panel,
.mini-panel,
.resume-strip-card {
  display: flex;
  flex-direction: column;
}

.project-card,
.info-card,
.service-card,
.contact-card {
  display: flex;
  flex-direction: column;
}

.info-card::after,
.service-card::after,
.project-card::after,
.timeline-card::after,
.contact-card::after,
.quote-card::after,
.resume-strip-card::after,
.signature-panel::after,
.mini-panel::after {
  content: "";
  position: absolute;
  inset: var(--card-inset);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 10px);
  pointer-events: none;
}

.info-card i,
.service-card i,
.contact-icon,
.band-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.info-card,
.service-card,
.project-card,
.band-card {
  transition: transform 0.28s ease;
}

.info-card:hover,
.service-card:hover,
.project-card:hover,
.band-card:hover {
  transform: translateY(-4px);
}

.card-index,
.project-tag,
.service-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.76rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--primary-soft);
  color: var(--primary);
}

.metric-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
}

.metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.page-hero {
  padding: 3.4rem 0 1.5rem;
}

.page-hero-card {
  padding: 3rem;
  background: var(--hero-bg);
  border: 1px solid var(--hero-border);
  box-shadow: var(--shadow);
  border-radius: calc(var(--radius) + 4px);
}

.page-hero-card::after,
.footer-panel::after {
  content: "";
  position: absolute;
  inset: var(--card-inset);
  border: 1px solid var(--hero-border);
  border-radius: calc(var(--radius) - 10px);
  pointer-events: none;
}

.page-hero-card .section-title,
.page-hero-card .lead,
.page-hero-card .section-eyebrow,
.page-hero-card .crumbs {
  color: var(--hero-text);
}

.crumbs {
  font-size: 0.9rem;
  opacity: 0.78;
}

.timeline-card strong,
.process-list strong {
  display: block;
  margin-bottom: 0.45rem;
}

.showcase-grid {
  display: grid;
  gap: 1.5rem;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.project-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--frame-radius);
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  padding: var(--frame-inset);
}

.project-media::before {
  content: "";
  position: absolute;
  inset: var(--frame-inset);
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  border-radius: var(--frame-inner-radius);
  z-index: 1;
  pointer-events: none;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: var(--frame-inset);
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.3) 100%);
  border-radius: var(--frame-inner-radius);
  pointer-events: none;
  z-index: 1;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--frame-inner-radius);
  filter: saturate(0.9) contrast(1.02);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.project-card img[src*="pos.png"],
.project-card img[src*="edu_teens.jpg"] {
  object-fit: contain;
  background: var(--bg-deep);
  padding: 24px;
}

.project-card:hover img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.04);
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.signature-panel {
  display: grid;
  gap: 1rem;
}

.resume-strip-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.resume-strip-card strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.resume-strip-card span,
.resume-strip-card a {
  color: var(--text);
  font-weight: 700;
}

.divi-section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.row.g-4 > [class*="col-"] > .info-card,
.row.g-4 > [class*="col-"] > .timeline-card,
.row.g-4 > [class*="col-"] > .quote-card,
.row.g-4 > [class*="col-"] > .project-card {
  height: 100%;
}

.divi-cta-band {
  padding: 2rem;
  background: var(--cta-bg);
  border-radius: calc(var(--radius) + 4px);
  color: var(--cta-text);
  border: 1px solid var(--cta-border);
  box-shadow: var(--shadow);
}

.divi-cta-band .section-eyebrow,
.divi-cta-band .section-title,
.divi-cta-band .section-lead {
  color: var(--cta-text) !important;
}

.portfolio-action {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary);
  font-weight: 800;
}

.smart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
}

.smart-toolbar-stack {
  align-items: flex-start;
}

.smart-toolbar-copy {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.smart-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.smart-chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 800;
  transition: 0.24s ease;
}

.smart-chip:hover,
.smart-chip.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

[data-filter-item].is-hidden {
  display: none;
}

.smart-empty-state {
  margin-top: 1.5rem;
  padding: 1.4rem 1.5rem;
  border-radius: 22px;
  background: var(--primary-soft);
  border: 1px dashed var(--line);
}

.smart-empty-state.is-hidden {
  display: none;
}

.service-grid-intro {
  max-width: 760px;
  margin-bottom: 2rem;
}

.service-feature-card {
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-feature-card::after {
  content: "";
  position: absolute;
  inset: var(--card-inset);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 10px);
  pointer-events: none;
}

.service-meta {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.service-meta span {
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-flow {
  display: grid;
  gap: 1rem;
}

.service-flow-step {
  padding: 1.2rem 1.25rem;
  border-radius: 22px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
}

.service-flow-step strong {
  display: block;
  margin-bottom: 0.35rem;
}

.visual-stack,
.service-mosaic,
.contact-visual {
  display: grid;
  gap: 1rem;
}

.visual-stack {
  height: 100%;
}

.visual-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--frame-radius);
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: var(--frame-inset);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: var(--frame-inset);
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  border-radius: var(--frame-inner-radius);
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--frame-inner-radius);
}

.media-frame.tall {
  min-height: 300px;
}

.media-frame.medium {
  min-height: 180px;
}

.media-frame.short {
  min-height: 110px;
}

.timeline-card .check-list,
.timeline-card .timeline-list,
.quote-card .check-list {
  margin-top: auto;
}

.project-card .project-meta {
  margin-top: auto;
}

.project-card .portfolio-action {
  margin-top: 0.9rem;
}

.contact-visual {
  height: 100%;
}

.contact-visual .media-frame.short img {
  object-fit: contain;
  padding: 1.1rem;
  background: var(--paper);
}

.service-mosaic {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.service-mosaic-side {
  display: grid;
  gap: 1rem;
}

.image-caption-card {
  padding: 1.2rem 1.3rem;
  border-radius: 22px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
}

.image-caption-card strong {
  display: block;
  margin-bottom: 0.4rem;
}

.signature-quote {
  font-size: 1.1rem;
  color: var(--primary-deep);
  line-height: 1.8;
}

.quote-card {
  background: var(--paper);
}

.contact-form .form-control,
.contact-form .form-select {
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 1rem 1rem;
  background: var(--paper);
  color: var(--text);
}

.contact-form .form-control::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  box-shadow: 0 0 0 0.25rem var(--primary-soft);
  border-color: var(--primary);
  background: var(--paper-strong);
  color: var(--text);
}

.alert {
  border-radius: 18px;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 3rem;
}

.footer-panel {
  padding: 2.5rem;
  background: var(--footer-bg);
  border: 1px solid var(--footer-border);
  box-shadow: var(--shadow);
  border-radius: calc(var(--radius) + 4px);
  color: var(--footer-text);
}

.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.8rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--footer-border);
}

.footer-title {
  max-width: 640px;
  margin: 0.9rem 0 0;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 1.05;
}

.footer-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  background: var(--footer-btn-bg);
  color: var(--footer-btn-text) !important;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
}

.footer-copy,
.footer-contact,
.footer-links a,
.footer-meta {
  color: var(--footer-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-label {
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--footer-label-color);
  font-weight: 800;
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  margin-top: 1.8rem;
  border-top: 1px solid hsla(0, 0%, 100%, 0.12);
  font-size: 0.82rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.social-links a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 239, 230, 0.12);
  transition: 0.25s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1050;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #ffffff;
  box-shadow: 0 16px 30px var(--primary-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.28s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-toggle,
.whatsapp-float {
  position: fixed;
  z-index: 1050;
  border: 0;
  box-shadow: 0 16px 30px rgba(76, 20, 27, 0.16);
}

.chat-toggle {
  left: 22px;
  bottom: 22px;
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  background: #fff3ea;
  color: var(--primary-deep);
  font-weight: 800;
}

.whatsapp-float {
  right: 22px;
  bottom: 84px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #25d366;
}

.chat-widget {
  position: fixed;
  left: 22px;
  bottom: 84px;
  width: min(370px, calc(100vw - 28px));
  border-radius: 24px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: 0.28s ease;
  z-index: 1050;
}

.chat-widget.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-header,
.chat-footer {
  padding: 1rem;
  background: var(--primary-deep);
  color: #fff6f0;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-body {
  height: 310px;
  overflow-y: auto;
  padding: 1rem;
  background: var(--chat-body-bg);
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

.chat-suggestions button {
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  transition: all 0.2s ease;
}

.chat-suggestions button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.chat-message {
  display: flex;
  margin-bottom: 0.85rem;
}

.chat-message span {
  max-width: 88%;
  border-radius: 18px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.chat-message.bot span {
  background: var(--chat-bot-msg-bg);
  color: var(--text);
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.user span {
  background: linear-gradient(135deg, var(--primary), #8f3844);
  color: #fff7f0;
}

.chat-footer .input-group {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.35rem;
}

.chat-footer .form-control {
  border: 0;
  background: transparent;
  color: #fff6f0;
}

.chat-footer .form-control::placeholder {
  color: rgba(255, 246, 240, 0.62);
}

.chat-footer .form-control:focus {
  box-shadow: none;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-ring {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 6px solid var(--primary-soft);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1199.98px) {
  .hero-grid,
  .showcase-row {
    grid-template-columns: 1fr;
  }

  .hero-copy-support {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .navbar {
    border-radius: 28px;
  }

  .hero-panel,
  .page-hero-card,
  .footer-panel {
    padding: 2rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .section-pad {
    padding: 4.4rem 0;
  }

  .hero {
    padding-top: 3.15rem;
  }

  .hero-panel {
    min-height: auto;
    padding: 1.5rem;
  }

  .profile-card-hero,
  .profile-photo {
    min-height: auto;
  }

  .display-title {
    font-size: 3.2rem;
  }

  .smart-toolbar {
    padding: 0.9rem;
  }

  .profile-card-hero,
  .mini-panel,
  .signature-panel,
  .info-card,
  .service-card,
  .project-card,
  .contact-card,
  .timeline-card,
  .quote-card,
  .band-card {
    padding: 1.35rem;
  }

  .chat-widget {
    left: 14px;
    bottom: 78px;
  }

  .chat-toggle {
    left: 14px;
    bottom: 14px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 74px;
  }

  .scroll-top {
    right: 14px;
    bottom: 14px;
  }
}

.hover-link {
  transition: color 0.25s ease, opacity 0.25s ease;
}
.hover-link:hover {
  color: var(--primary) !important;
  opacity: 0.95;
}

