/*
GLOBAL/UTILITY CLASSES:
- .section, .section-alt: Section containers
- .section-title: Section headings
- .section-divider: Section dividers
- .pullquote: Pull quote block
- .skill-badges: Skill/tech tags
- .cta-block: Call-to-action block
- .nav-links .active: Active nav link
- .fade-in-up: Fade/slide-in animation
- .hero-title, .hero-sub: Main page hero heading/subheading
- .btn, .btn-secondary: Buttons
- .lead: Prominent intro/lead text
- .mt-1/.mt-2/.mb-1/.mb-2/.pt-1/.pt-2: Margin/padding utilities
*/

/* === Custom Color Palette === */
:root {
  --primary-accent: #cba135;
  --primary-hover: #a6782d;
  --heading-color: #621c38;
  --text-color: #2c1810;
  --card-background: #f4f2ef;
  --border-color: #d6c6ae;
  --background-color: #ffffff;
  --section-alt-bg: #f8f6f3;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Space Grotesk', 'Suisse Int\'l', Arial, sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
  /* Add padding-top to prevent content from being hidden under the fixed navbar */
  padding-top: 72px; /* Adjust to match navbar height */
}

/* Global Grain Texture Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/service-bg.png');
  background-size: 200px 200px;
  background-repeat: repeat;
  opacity: 0.08;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

/* Ensure content appears above grain overlay */
main, header, footer, section {
  position: relative;
  z-index: 2;
}

/* Scroll-triggered Fade-in Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-section.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-section.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for child elements */
.fade-in-section.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.fade-in-section.stagger-children.visible > *:nth-child(2) { transition-delay: 0.25s; }
.fade-in-section.stagger-children.visible > *:nth-child(3) { transition-delay: 0.4s; }
.fade-in-section.stagger-children.visible > *:nth-child(4) { transition-delay: 0.55s; }
.fade-in-section.stagger-children.visible > *:nth-child(5) { transition-delay: 0.7s; }
.fade-in-section.stagger-children.visible > *:nth-child(6) { transition-delay: 0.85s; }

/* Apply fade-in classes to specific sections */
#services-preview,
#featured-work,
#contact-cta {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

#services-preview.visible,
#featured-work.visible,
#contact-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger service cards */
.service-grid.visible .service-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-grid.visible .service-item:nth-child(1) { transition-delay: 0.1s; }
.service-grid.visible .service-item:nth-child(2) { transition-delay: 0.25s; }
.service-grid.visible .service-item:nth-child(3) { transition-delay: 0.4s; }

.service-grid.visible .service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
/* Navbar styles moved to Navbar.astro component */

/* --- END HEADER & NAVBAR ENHANCEMENTS --- */

/* Hamburger Menu */
/* Hamburger styles moved to Navbar.astro component */

/* Mobile Navigation */
/* Mobile navigation styles moved to Navbar.astro component */

@media (max-width: 768px) {
  /* Navbar styles moved to Navbar.astro component */

  .hero h1 {
    font-size: 2rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .service-item {
    padding: 1.5rem;
  }
  .price {
    font-size: 1.25rem;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

/* Hero Section */
.hero {
  background: #f5f5f5;
  padding: 6rem 0 3rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.3rem;
  color: #444;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Section Styles */
/* .section { ... } removed (migrated to Section.astro) */
/* .section:not(:last-child) { ... } removed (migrated to Section.astro) */
/* .section h2 { ... } removed (migrated to Section.astro) */
/* .section-divider { ... } removed (migrated to Section.astro) */

/* Accordion Styles */
.accordion {
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.04);
  background: none;
  overflow: hidden;
}

.accordion-item {
  margin-bottom: 1.25rem;
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--background-color);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(33,150,243,0.04);
  border: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  font-weight: bold;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 1.08rem;
  transition: background 0.18s, box-shadow 0.18s;
  color: var(--heading-color);
}

.accordion-header:hover, .accordion-header:focus {
  background: var(--card-background);
  box-shadow: 0 4px 16px rgba(33,150,243,0.08);
  outline: none;
}

.accordion-arrow {
  display: inline-block;
  font-size: 1.25em;
  margin-right: 0.5em;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  color: var(--primary-accent);
}

.accordion-header[aria-expanded="true"] .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  border: none;
  background: var(--card-background);
  border-radius: 0 0 10px 10px;
  transition: max-height 0.25s cubic-bezier(.4,0,.2,1), opacity 0.25s cubic-bezier(.4,0,.2,1), padding 0.2s;
}

.accordion-body.open {
  max-height: 2000px;
  opacity: 1;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-color);
  border-top: none;
  background: var(--card-background);
  border-radius: 0 0 10px 10px;
}

.accordion-body ul, 
.accordion-body p, 
.accordion-body h4 {
  margin-top: 0.75rem;
}

.accordion-body ul {
  margin-bottom: 0.75rem;
  margin-left: 1.5rem;
}

.accordion-item .accordion-body {
  border-radius: 0 0 0.5rem 0.5rem;
}

/* Service Grid Styles */
.services-preview {
  margin-top: 0;
}
.services-preview h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #621c38;
  font-size: 3rem;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-preview.visible h2 {
  opacity: 1;
  transform: translateY(0);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  justify-content: center;
  align-items: start;
  padding: 0;
  background: none;
  border: none;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.service-item {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-item:nth-child(2) {
  margin-top: 16px;
}
.service-item h3 {
  font-family: 'Playfair Display', serif;
  font-variant: small-caps;
  font-style: italic;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: #621c38;
  text-align: left;
  min-height: 2.5em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  margin-top: 0;
  position: relative;
  display: block;
  transition: color 0.2s;
}
.service-item h3::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: -0.3em;
  width: 0%;
  height: 2px;
  background: #cba135;
  transition: width 0.22s cubic-bezier(.4,0,.2,1);
}
.service-item:hover h3::after,
.service-item h3:focus::after {
  width: 100%;
}
.service-item:hover h3,
.service-item h3:focus {
  color: #cba135;
}
.service-item:hover, .service-item:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: #cba135;
  border-radius: 20px;
}
.service-item p,
.service-item .service-lead {
  font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
  color: #3a3a38;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 1.1em;
  margin-top: 0;
}
.service-item > :last-child {
  margin-bottom: 1.25rem;
}
.service-item .ghost-link {
  display: none;
  font-family: 'Inter', Arial, sans-serif;
  text-transform: uppercase;
  font-size: 0.93em;
  color: #a6782d;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-top: auto;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.18s;
  align-self: flex-start;
}
.service-item:hover .ghost-link {
  display: inline-block;
  opacity: 1;
}
.btn, .btn-secondary {
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  background: #cba135;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 2rem;
  font-size: 1.08rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  margin-top: 2rem;
  transition: background 0.18s;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}
.btn::after, .btn-secondary::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 45%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, #ffe9a7 40%, rgba(255,255,255,0.0) 100%);
  opacity: 0.7;
  transform: skewX(-18deg);
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}
.btn:hover, .btn:focus, .btn-secondary:hover, .btn-secondary:focus {
  background: linear-gradient(90deg, #cba135 0%, #a6782d 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(203,161,53,0.13);
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.step {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid var(--border-color);
}

.step h3 {
  color: var(--heading-color);
  margin-bottom: 1rem;
}

/* Pricing and Add-ons */
.price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-accent);
  margin: 0.5rem 0 0.25rem 0;
}

.timeline {
  color: #666;
  font-style: italic;
  margin-bottom: 1rem;
}

.limitations {
  margin-top: auto;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 1em 1.25em;
  font-size: 1em;
  margin-bottom: 0.5em;
  color: #222;
}

.add-ons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.add-on-item {
  background: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
  padding: 1.25rem;
  min-width: 180px;
  max-width: 260px;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border-color);
}

.add-on-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 32px rgba(25, 118, 210, 0.13), 0 2px 8px rgba(0,0,0,0.10);
  z-index: 2;
}

.add-on-item h3 {
  color: var(--heading-color);
  margin-bottom: 1rem;
}

/* Policies */
.policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.policy-item {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border-color);
}

.policy-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 32px rgba(25, 118, 210, 0.13), 0 2px 8px rgba(0,0,0,0.10);
  z-index: 2;
}

.policy-item h3 {
  color: var(--heading-color);
  margin-bottom: 1rem;
}

.policy-item ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.policy-item ul li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.policy-item ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-accent);
}

/* Buttons and CTAs */
.btn-secondary {
  background: var(--card-background);
  color: var(--primary-accent);
  border: 1px solid var(--primary-accent);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.04);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--background-color);
  color: var(--primary-hover);
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.10);
  outline: none;
}

/* Footer */
.footer {
  background: var(--heading-color);
  color: var(--card-background);
  text-align: center;
  padding: 3rem 0;
  margin-top: 0;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: var(--card-background);
  text-decoration: none;
  margin: 0 1rem;
}

.footer-links a:hover {
  color: var(--primary-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Navbar styles moved to Navbar.astro component */

  .hero h1 {
    font-size: 2rem;
  }

  .service-grid,
  .process-steps,
  .add-ons-grid,
  .policies-grid {
    grid-template-columns: 1fr;
  }

  .service-item,
  .step,
  .add-on-item,
  .policy-item {
    padding: 1.5rem;
  }

  .price {
    font-size: 1.25rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

/* Contact Form Styles */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.contact-info h3 {
  color: var(--heading-color);
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--heading-color);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  margin: 2rem 0;
}

.contact-form h3 {
  color: var(--heading-color);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: var(--card-background);
  color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 2px #ede9fe;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .btn {
  margin-top: 1rem;
}

/* Social Links Section */
#social-links {
  text-align: center;
}

#social-links a {
  color: var(--heading-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

#social-links a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#identity.section {
  padding-top: 3rem;
}

.identity-content {
  margin-top: 0;
  padding-top: 0.5rem;
}

/* Alternate Section Background */
.section-alt {
  background: #f5f7fa;
  box-shadow: none;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

/* Remove previous section-specific background rules */
#services-preview.section,
#featured-work.section,
#contact-cta.section {
  background: unset;
  box-shadow: unset;
  border-radius: unset;
  border: unset;
}

#featured-work.section {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-radius: 12px;
  border: none;
}

.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.work-more-link {
  color: var(--primary-accent);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  transition: color 0.2s, background 0.2s, text-decoration 0.2s;
  display: inline-block;
}

.work-more-link:hover,
.work-more-link:focus {
  color: var(--primary-hover);
  text-decoration: underline;
  text-decoration-color: var(--primary-accent);
  background: #f0f7ff;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
}

#featured-work.section,
#contact-cta.section {
  border-top: 1px solid #e0e0e0;
}

.btn,
.cta-buttons .btn {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* --- Global Section Titles --- */
.section-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.25em;
  display: inline-block;
  text-align: left;
  scroll-margin-top: 5rem;
}

[id] {
  scroll-margin-top: 5rem;
}

.project-row {
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.project-row:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.quote-attribution {
  color: #888;
  font-variant: small-caps;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* --- Section Divider --- */
.section-divider {
  text-align: center;
  color: #bbb;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.2em;
}

/* --- Pull Quote --- */
.pullquote {
  border-left: 3px solid var(--primary-accent);
  color: var(--text-color);
  font-style: normal;
  margin: 2rem 2.5rem 2rem 0;
  padding-left: 2.25rem;
  font-size: 1.15rem;
  background: #f8f9fa;
  max-width: 38rem;
  position: relative;
  text-align: left;
}
.pullquote .quote-mark {
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 2.5rem;
  color: #bdbdbd;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pullquote .quote-text {
  font-style: italic;
  color: var(--primary-accent);
}

/* --- Skill Badges --- */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

/* Work page grid modifier */
.skills-grid-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .skills-grid-badges {
    grid-template-columns: 1fr;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skills-category h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--primary-accent);
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.skill-badges li:hover {
  opacity: 0.7;
}

/* --- CTA Block --- */
.cta-block {
  background: #f5f7fa;
  border-radius: 14px;
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 38rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(33,150,243,0.04);
}
.cta-block p { margin-bottom: 0.75rem; font-size:1.15rem; color:var(--primary-accent); }

/* --- About Hero Title/Sub --- */
.hero-title { padding: 2.5rem 0 0.5rem 0; margin-top: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: #888; font-style: italic; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  .pullquote { margin: 1.5rem 0.5rem 1.5rem 0; padding-left: 1.25rem; }
  .cta-block { padding: 1.5rem 0.5rem 2.5rem 0.5rem; }
}

/* --- Nav Active State --- */
.nav-links .active {
  color: var(--primary-accent);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-accent);
}

/* --- Fade In Up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About Hero Title Spacing --- */
.about-hero-title {
  margin-top: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.mt-1 { margin-top: 0.75rem !important; }
.mt-2 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.75rem !important; }
.mb-2 { margin-bottom: 1.5rem !important; }
.pt-1 { padding-top: 0.75rem !important; }
.pt-2 { padding-top: 1.5rem !important; }
.pb-1 { padding-bottom: 0.75rem !important; }
.pb-2 { padding-bottom: 1.5rem !important; }

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

.external-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.external-link:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.external-link span[aria-hidden="true"] {
  font-size: 0.95em;
  margin-left: 0.2em;
  vertical-align: text-top;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: start;
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

.skill-badges li {
  min-width: 160px;
  max-width: 180px;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
  border-radius: 999px;
  background: var(--card-background);
  color: var(--primary-accent);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
  cursor: default;
  gap: 0.5em;
  box-sizing: border-box;
}
.skill-badges .spacer {
  visibility: hidden;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skill-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .skill-badges li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .skill-badges {
    grid-template-columns: 1fr;
  }
}

#skills-tools .cta-block {
  background: #fff;
}

/* Callout labels for packages */
.package-label {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 1em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.package-label.popular {
  background: #ede9fe;
  color: var(--primary-accent);
}
.package-label.entry {
  background: #e0f2f1;
  color: var(--secondary-accent);
}
.package-label.premium {
  background: #fff3e0;
  color: #f57c00;
}

/* Featured/premium card elevation */
.service-item.featured, .service-item.premium {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  border: 1.5px solid #e3f2fd;
  z-index: 1;
  position: relative;
}

/* Timeline badge */
.timeline-badge {
  display: inline-block;
  background: var(--background-color);
  color: var(--primary-accent);
  font-size: 0.95em;
  font-weight: 500;
  border-radius: 1em;
  padding: 0.15em 0.8em 0.15em 0.5em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Section intro/subheader */
.section-intro {
  font-size: 1.1rem;
  color: var(--primary-accent);
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Process step rhythm */
.process-steps {
  gap: 1.25rem;
  margin: 1.5rem 0 1.5rem 0;
}
.process-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.process-step p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Anchor link style */
.anchor-link {
  color: var(--primary-accent);
  text-decoration: underline dotted;
  font-size: 0.98em;
  margin-left: 0.25em;
  cursor: pointer;
}

/* For card alignment: invisible label placeholder */
.package-label.invisible {
  visibility: hidden;
  height: 1.8em;
  display: inline-block;
  margin-bottom: 0.5em;
}

#services-cta .cta-block {
  background: #fff;
}

/* Contact page layout */
.contact-flex {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact-info-block {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-card {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
  font-size: 1.1rem;
}
.contact-icon {
  font-size: 1.1em;
  margin-right: 0.5em;
  vertical-align: middle;
}
.social-block {
  margin-top: 0.5rem;
}
.social-block h3 {
  font-size: 1.05rem;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--primary-accent);
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.2s;
}
.social-link .social-icon {
  font-size: 1.15em;
  opacity: 0.7;
  margin-right: 0.3em;
  transition: opacity 0.2s;
}
.social-link:hover {
  color: var(--primary-hover);
}
.social-link:hover .social-icon {
  opacity: 1;
}
.contact-form-block {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 420px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}
.form-title {
  font-size: 1.15rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
  margin-top: 0;
}
.form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 0.3em;
  color: var(--text-color);
}
.form-group input,
.form-group textarea {
  padding: 0.6em 0.9em;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  background: var(--card-background);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-color);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-accent);
  outline: none;
  box-shadow: 0 0 0 2px #ede9fe;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form .btn {
  margin-top: 1rem;
}

/* Social Links Section */
#social-links {
  text-align: center;
}

#social-links a {
  color: var(--heading-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

#social-links a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#identity.section {
  padding-top: 3rem;
}

.identity-content {
  margin-top: 0;
  padding-top: 0.5rem;
}

/* Alternate Section Background */
.section-alt {
  background: #f5f7fa;
  box-shadow: none;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

/* Remove previous section-specific background rules */
#services-preview.section,
#featured-work.section,
#contact-cta.section {
  background: unset;
  box-shadow: unset;
  border-radius: unset;
  border: unset;
}

#featured-work.section {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-radius: 12px;
  border: none;
}

.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.work-more-link {
  color: var(--primary-accent);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  transition: color 0.2s, background 0.2s, text-decoration 0.2s;
  display: inline-block;
}

.work-more-link:hover,
.work-more-link:focus {
  color: var(--primary-hover);
  text-decoration: underline;
  text-decoration-color: var(--primary-accent);
  background: #f0f7ff;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
}

#featured-work.section,
#contact-cta.section {
  border-top: 1px solid #e0e0e0;
}

.btn,
.cta-buttons .btn {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* --- Global Section Titles --- */
.section-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.25em;
  display: inline-block;
  text-align: left;
  scroll-margin-top: 5rem;
}

[id] {
  scroll-margin-top: 5rem;
}

.project-row {
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.project-row:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.quote-attribution {
  color: #888;
  font-variant: small-caps;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* --- Section Divider --- */
.section-divider {
  text-align: center;
  color: #bbb;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.2em;
}

/* --- Pull Quote --- */
.pullquote {
  border-left: 3px solid var(--primary-accent);
  color: var(--text-color);
  font-style: normal;
  margin: 2rem 2.5rem 2rem 0;
  padding-left: 2.25rem;
  font-size: 1.15rem;
  background: #f8f9fa;
  max-width: 38rem;
  position: relative;
  text-align: left;
}
.pullquote .quote-mark {
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 2.5rem;
  color: #bdbdbd;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pullquote .quote-text {
  font-style: italic;
  color: var(--primary-accent);
}

/* --- Skill Badges --- */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

/* Work page grid modifier */
.skills-grid-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .skills-grid-badges {
    grid-template-columns: 1fr;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skills-category h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--primary-accent);
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.skill-badges li:hover {
  opacity: 0.7;
}

/* --- CTA Block --- */
.cta-block {
  background: #f5f7fa;
  border-radius: 14px;
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 38rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(33,150,243,0.04);
}
.cta-block p { margin-bottom: 0.75rem; font-size:1.15rem; color:var(--primary-accent); }

/* --- About Hero Title/Sub --- */
.hero-title { padding: 2.5rem 0 0.5rem 0; margin-top: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: #888; font-style: italic; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  .pullquote { margin: 1.5rem 0.5rem 1.5rem 0; padding-left: 1.25rem; }
  .cta-block { padding: 1.5rem 0.5rem 2.5rem 0.5rem; }
}

/* --- Nav Active State --- */
.nav-links .active {
  color: var(--primary-accent);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-accent);
}

/* --- Fade In Up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About Hero Title Spacing --- */
.about-hero-title {
  margin-top: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.mt-1 { margin-top: 0.75rem !important; }
.mt-2 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.75rem !important; }
.mb-2 { margin-bottom: 1.5rem !important; }
.pt-1 { padding-top: 0.75rem !important; }
.pt-2 { padding-top: 1.5rem !important; }
.pb-1 { padding-bottom: 0.75rem !important; }
.pb-2 { padding-bottom: 1.5rem !important; }

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

.external-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.external-link:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.external-link span[aria-hidden="true"] {
  font-size: 0.95em;
  margin-left: 0.2em;
  vertical-align: text-top;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: start;
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

.skill-badges li {
  min-width: 160px;
  max-width: 180px;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
  border-radius: 999px;
  background: var(--card-background);
  color: var(--primary-accent);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
  cursor: default;
  gap: 0.5em;
  box-sizing: border-box;
}
.skill-badges .spacer {
  visibility: hidden;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skill-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .skill-badges li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .skill-badges {
    grid-template-columns: 1fr;
  }
}

#skills-tools .cta-block {
  background: #fff;
}

/* Callout labels for packages */
.package-label {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 1em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.package-label.popular {
  background: #ede9fe;
  color: var(--primary-accent);
}
.package-label.entry {
  background: #e0f2f1;
  color: var(--secondary-accent);
}
.package-label.premium {
  background: #fff3e0;
  color: #f57c00;
}

/* Featured/premium card elevation */
.service-item.featured, .service-item.premium {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  border: 1.5px solid #e3f2fd;
  z-index: 1;
  position: relative;
}

/* Timeline badge */
.timeline-badge {
  display: inline-block;
  background: var(--background-color);
  color: var(--primary-accent);
  font-size: 0.95em;
  font-weight: 500;
  border-radius: 1em;
  padding: 0.15em 0.8em 0.15em 0.5em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Section intro/subheader */
.section-intro {
  font-size: 1.1rem;
  color: var(--primary-accent);
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Process step rhythm */
.process-steps {
  gap: 1.25rem;
  margin: 1.5rem 0 1.5rem 0;
}
.process-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.process-step p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Anchor link style */
.anchor-link {
  color: var(--primary-accent);
  text-decoration: underline dotted;
  font-size: 0.98em;
  margin-left: 0.25em;
  cursor: pointer;
}

/* For card alignment: invisible label placeholder */
.package-label.invisible {
  visibility: hidden;
  height: 1.8em;
  display: inline-block;
  margin-bottom: 0.5em;
}

#services-cta .cta-block {
  background: #fff;
}

/* Contact page layout */
.contact-flex {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact-info-block {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-card {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
  font-size: 1.1rem;
}
.contact-icon {
  font-size: 1.1em;
  margin-right: 0.5em;
  vertical-align: middle;
}
.social-block {
  margin-top: 0.5rem;
}
.social-block h3 {
  font-size: 1.05rem;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--primary-accent);
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.2s;
}
.social-link .social-icon {
  font-size: 1.15em;
  opacity: 0.7;
  margin-right: 0.3em;
  transition: opacity 0.2s;
}
.social-link:hover {
  color: var(--primary-hover);
}
.social-link:hover .social-icon {
  opacity: 1;
}
.contact-form-block {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 420px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}
.form-title {
  font-size: 1.15rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
  margin-top: 0;
}
.form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 0.3em;
  color: var(--text-color);
}
.form-group input,
.form-group textarea {
  padding: 0.6em 0.9em;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  background: var(--card-background);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-color);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-accent);
  outline: none;
  box-shadow: 0 0 0 2px #ede9fe;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form .btn {
  margin-top: 1rem;
}

/* Social Links Section */
#social-links {
  text-align: center;
}

#social-links a {
  color: var(--heading-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

#social-links a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#identity.section {
  padding-top: 3rem;
}

.identity-content {
  margin-top: 0;
  padding-top: 0.5rem;
}

/* Alternate Section Background */
.section-alt {
  background: #f5f7fa;
  box-shadow: none;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

/* Remove previous section-specific background rules */
#services-preview.section,
#featured-work.section,
#contact-cta.section {
  background: unset;
  box-shadow: unset;
  border-radius: unset;
  border: unset;
}

#featured-work.section {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-radius: 12px;
  border: none;
}

.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.work-more-link {
  color: var(--primary-accent);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  transition: color 0.2s, background 0.2s, text-decoration 0.2s;
  display: inline-block;
}

.work-more-link:hover,
.work-more-link:focus {
  color: var(--primary-hover);
  text-decoration: underline;
  text-decoration-color: var(--primary-accent);
  background: #f0f7ff;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
}

#featured-work.section,
#contact-cta.section {
  border-top: 1px solid #e0e0e0;
}

.btn,
.cta-buttons .btn {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* --- Global Section Titles --- */
.section-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.25em;
  display: inline-block;
  text-align: left;
  scroll-margin-top: 5rem;
}

[id] {
  scroll-margin-top: 5rem;
}

.project-row {
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.project-row:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.quote-attribution {
  color: #888;
  font-variant: small-caps;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* --- Section Divider --- */
.section-divider {
  text-align: center;
  color: #bbb;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.2em;
}

/* --- Pull Quote --- */
.pullquote {
  border-left: 3px solid var(--primary-accent);
  color: var(--text-color);
  font-style: normal;
  margin: 2rem 2.5rem 2rem 0;
  padding-left: 2.25rem;
  font-size: 1.15rem;
  background: #f8f9fa;
  max-width: 38rem;
  position: relative;
  text-align: left;
}
.pullquote .quote-mark {
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 2.5rem;
  color: #bdbdbd;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pullquote .quote-text {
  font-style: italic;
  color: var(--primary-accent);
}

/* --- Skill Badges --- */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

/* Work page grid modifier */
.skills-grid-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .skills-grid-badges {
    grid-template-columns: 1fr;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skills-category h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--primary-accent);
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.skill-badges li:hover {
  opacity: 0.7;
}

/* --- CTA Block --- */
.cta-block {
  background: #f5f7fa;
  border-radius: 14px;
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 38rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(33,150,243,0.04);
}
.cta-block p { margin-bottom: 0.75rem; font-size:1.15rem; color:var(--primary-accent); }

/* --- About Hero Title/Sub --- */
.hero-title { padding: 2.5rem 0 0.5rem 0; margin-top: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: #888; font-style: italic; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  .pullquote { margin: 1.5rem 0.5rem 1.5rem 0; padding-left: 1.25rem; }
  .cta-block { padding: 1.5rem 0.5rem 2.5rem 0.5rem; }
}

/* --- Nav Active State --- */
.nav-links .active {
  color: var(--primary-accent);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-accent);
}

/* --- Fade In Up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About Hero Title Spacing --- */
.about-hero-title {
  margin-top: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.mt-1 { margin-top: 0.75rem !important; }
.mt-2 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.75rem !important; }
.mb-2 { margin-bottom: 1.5rem !important; }
.pt-1 { padding-top: 0.75rem !important; }
.pt-2 { padding-top: 1.5rem !important; }
.pb-1 { padding-bottom: 0.75rem !important; }
.pb-2 { padding-bottom: 1.5rem !important; }

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

.external-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.external-link:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.external-link span[aria-hidden="true"] {
  font-size: 0.95em;
  margin-left: 0.2em;
  vertical-align: text-top;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: start;
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

.skill-badges li {
  min-width: 160px;
  max-width: 180px;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
  border-radius: 999px;
  background: var(--card-background);
  color: var(--primary-accent);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
  cursor: default;
  gap: 0.5em;
  box-sizing: border-box;
}
.skill-badges .spacer {
  visibility: hidden;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skill-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .skill-badges li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .skill-badges {
    grid-template-columns: 1fr;
  }
}

#skills-tools .cta-block {
  background: #fff;
}

/* Callout labels for packages */
.package-label {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 1em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.package-label.popular {
  background: #ede9fe;
  color: var(--primary-accent);
}
.package-label.entry {
  background: #e0f2f1;
  color: var(--secondary-accent);
}
.package-label.premium {
  background: #fff3e0;
  color: #f57c00;
}

/* Featured/premium card elevation */
.service-item.featured, .service-item.premium {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  border: 1.5px solid #e3f2fd;
  z-index: 1;
  position: relative;
}

/* Timeline badge */
.timeline-badge {
  display: inline-block;
  background: var(--background-color);
  color: var(--primary-accent);
  font-size: 0.95em;
  font-weight: 500;
  border-radius: 1em;
  padding: 0.15em 0.8em 0.15em 0.5em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Section intro/subheader */
.section-intro {
  font-size: 1.1rem;
  color: var(--primary-accent);
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Process step rhythm */
.process-steps {
  gap: 1.25rem;
  margin: 1.5rem 0 1.5rem 0;
}
.process-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.process-step p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Anchor link style */
.anchor-link {
  color: var(--primary-accent);
  text-decoration: underline dotted;
  font-size: 0.98em;
  margin-left: 0.25em;
  cursor: pointer;
}

/* For card alignment: invisible label placeholder */
.package-label.invisible {
  visibility: hidden;
  height: 1.8em;
  display: inline-block;
  margin-bottom: 0.5em;
}

#services-cta .cta-block {
  background: #fff;
}

/* Contact page layout */
.contact-flex {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact-info-block {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-card {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
  font-size: 1.1rem;
}
.contact-icon {
  font-size: 1.1em;
  margin-right: 0.5em;
  vertical-align: middle;
}
.social-block {
  margin-top: 0.5rem;
}
.social-block h3 {
  font-size: 1.05rem;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--primary-accent);
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.2s;
}
.social-link .social-icon {
  font-size: 1.15em;
  opacity: 0.7;
  margin-right: 0.3em;
  transition: opacity 0.2s;
}
.social-link:hover {
  color: var(--primary-hover);
}
.social-link:hover .social-icon {
  opacity: 1;
}
.contact-form-block {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 420px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}
.form-title {
  font-size: 1.15rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
  margin-top: 0;
}
.form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 0.3em;
  color: var(--text-color);
}
.form-group input,
.form-group textarea {
  padding: 0.6em 0.9em;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  background: var(--card-background);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-color);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-accent);
  outline: none;
  box-shadow: 0 0 0 2px #ede9fe;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form .btn {
  margin-top: 1rem;
}

/* Social Links Section */
#social-links {
  text-align: center;
}

#social-links a {
  color: var(--heading-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

#social-links a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#identity.section {
  padding-top: 3rem;
}

.identity-content {
  margin-top: 0;
  padding-top: 0.5rem;
}

/* Alternate Section Background */
.section-alt {
  background: #f5f7fa;
  box-shadow: none;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

/* Remove previous section-specific background rules */
#services-preview.section,
#featured-work.section,
#contact-cta.section {
  background: unset;
  box-shadow: unset;
  border-radius: unset;
  border: unset;
}

#featured-work.section {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-radius: 12px;
  border: none;
}

.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.work-more-link {
  color: var(--primary-accent);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  transition: color 0.2s, background 0.2s, text-decoration 0.2s;
  display: inline-block;
}

.work-more-link:hover,
.work-more-link:focus {
  color: var(--primary-hover);
  text-decoration: underline;
  text-decoration-color: var(--primary-accent);
  background: #f0f7ff;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
}

#featured-work.section,
#contact-cta.section {
  border-top: 1px solid #e0e0e0;
}

.btn,
.cta-buttons .btn {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* --- Global Section Titles --- */
.section-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.25em;
  display: inline-block;
  text-align: left;
  scroll-margin-top: 5rem;
}

[id] {
  scroll-margin-top: 5rem;
}

.project-row {
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.project-row:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.quote-attribution {
  color: #888;
  font-variant: small-caps;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* --- Section Divider --- */
.section-divider {
  text-align: center;
  color: #bbb;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.2em;
}

/* --- Pull Quote --- */
.pullquote {
  border-left: 3px solid var(--primary-accent);
  color: var(--text-color);
  font-style: normal;
  margin: 2rem 2.5rem 2rem 0;
  padding-left: 2.25rem;
  font-size: 1.15rem;
  background: #f8f9fa;
  max-width: 38rem;
  position: relative;
  text-align: left;
}
.pullquote .quote-mark {
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 2.5rem;
  color: #bdbdbd;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pullquote .quote-text {
  font-style: italic;
  color: var(--primary-accent);
}

/* --- Skill Badges --- */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

/* Work page grid modifier */
.skills-grid-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .skills-grid-badges {
    grid-template-columns: 1fr;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skills-category h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--primary-accent);
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.skill-badges li:hover {
  opacity: 0.7;
}

/* --- CTA Block --- */
.cta-block {
  background: #f5f7fa;
  border-radius: 14px;
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 38rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(33,150,243,0.04);
}
.cta-block p { margin-bottom: 0.75rem; font-size:1.15rem; color:var(--primary-accent); }

/* --- About Hero Title/Sub --- */
.hero-title { padding: 2.5rem 0 0.5rem 0; margin-top: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: #888; font-style: italic; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  .pullquote { margin: 1.5rem 0.5rem 1.5rem 0; padding-left: 1.25rem; }
  .cta-block { padding: 1.5rem 0.5rem 2.5rem 0.5rem; }
}

/* --- Nav Active State --- */
.nav-links .active {
  color: var(--primary-accent);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-accent);
}

/* --- Fade In Up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About Hero Title Spacing --- */
.about-hero-title {
  margin-top: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.mt-1 { margin-top: 0.75rem !important; }
.mt-2 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.75rem !important; }
.mb-2 { margin-bottom: 1.5rem !important; }
.pt-1 { padding-top: 0.75rem !important; }
.pt-2 { padding-top: 1.5rem !important; }
.pb-1 { padding-bottom: 0.75rem !important; }
.pb-2 { padding-bottom: 1.5rem !important; }

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

.external-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.external-link:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.external-link span[aria-hidden="true"] {
  font-size: 0.95em;
  margin-left: 0.2em;
  vertical-align: text-top;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: start;
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

.skill-badges li {
  min-width: 160px;
  max-width: 180px;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
  border-radius: 999px;
  background: var(--card-background);
  color: var(--primary-accent);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
  cursor: default;
  gap: 0.5em;
  box-sizing: border-box;
}
.skill-badges .spacer {
  visibility: hidden;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skill-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .skill-badges li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .skill-badges {
    grid-template-columns: 1fr;
  }
}

#skills-tools .cta-block {
  background: #fff;
}

/* Callout labels for packages */
.package-label {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 1em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.package-label.popular {
  background: #ede9fe;
  color: var(--primary-accent);
}
.package-label.entry {
  background: #e0f2f1;
  color: var(--secondary-accent);
}
.package-label.premium {
  background: #fff3e0;
  color: #f57c00;
}

/* Featured/premium card elevation */
.service-item.featured, .service-item.premium {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  border: 1.5px solid #e3f2fd;
  z-index: 1;
  position: relative;
}

/* Timeline badge */
.timeline-badge {
  display: inline-block;
  background: var(--background-color);
  color: var(--primary-accent);
  font-size: 0.95em;
  font-weight: 500;
  border-radius: 1em;
  padding: 0.15em 0.8em 0.15em 0.5em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Section intro/subheader */
.section-intro {
  font-size: 1.1rem;
  color: var(--primary-accent);
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Process step rhythm */
.process-steps {
  gap: 1.25rem;
  margin: 1.5rem 0 1.5rem 0;
}
.process-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.process-step p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Anchor link style */
.anchor-link {
  color: var(--primary-accent);
  text-decoration: underline dotted;
  font-size: 0.98em;
  margin-left: 0.25em;
  cursor: pointer;
}

/* For card alignment: invisible label placeholder */
.package-label.invisible {
  visibility: hidden;
  height: 1.8em;
  display: inline-block;
  margin-bottom: 0.5em;
}

#services-cta .cta-block {
  background: #fff;
}

/* Contact page layout */
.contact-flex {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact-info-block {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-card {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
  font-size: 1.1rem;
}
.contact-icon {
  font-size: 1.1em;
  margin-right: 0.5em;
  vertical-align: middle;
}
.social-block {
  margin-top: 0.5rem;
}
.social-block h3 {
  font-size: 1.05rem;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--primary-accent);
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.2s;
}
.social-link .social-icon {
  font-size: 1.15em;
  opacity: 0.7;
  margin-right: 0.3em;
  transition: opacity 0.2s;
}
.social-link:hover {
  color: var(--primary-hover);
}
.social-link:hover .social-icon {
  opacity: 1;
}
.contact-form-block {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 420px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}
.form-title {
  font-size: 1.15rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
  margin-top: 0;
}
.form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 0.3em;
  color: var(--text-color);
}
.form-group input,
.form-group textarea {
  padding: 0.6em 0.9em;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  background: var(--card-background);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-color);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-accent);
  outline: none;
  box-shadow: 0 0 0 2px #ede9fe;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form .btn {
  margin-top: 1rem;
}

/* Social Links Section */
#social-links {
  text-align: center;
}

#social-links a {
  color: var(--heading-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

#social-links a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#identity.section {
  padding-top: 3rem;
}

.identity-content {
  margin-top: 0;
  padding-top: 0.5rem;
}

/* Alternate Section Background */
.section-alt {
  background: #f5f7fa;
  box-shadow: none;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

/* Remove previous section-specific background rules */
#services-preview.section,
#featured-work.section,
#contact-cta.section {
  background: unset;
  box-shadow: unset;
  border-radius: unset;
  border: unset;
}

#featured-work.section {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-radius: 12px;
  border: none;
}

.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.work-more-link {
  color: var(--primary-accent);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  transition: color 0.2s, background 0.2s, text-decoration 0.2s;
  display: inline-block;
}

.work-more-link:hover,
.work-more-link:focus {
  color: var(--primary-hover);
  text-decoration: underline;
  text-decoration-color: var(--primary-accent);
  background: #f0f7ff;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
}

#featured-work.section,
#contact-cta.section {
  border-top: 1px solid #e0e0e0;
}

.btn,
.cta-buttons .btn {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* --- Global Section Titles --- */
.section-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.25em;
  display: inline-block;
  text-align: left;
  scroll-margin-top: 5rem;
}

[id] {
  scroll-margin-top: 5rem;
}

.project-row {
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.project-row:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.quote-attribution {
  color: #888;
  font-variant: small-caps;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* --- Section Divider --- */
.section-divider {
  text-align: center;
  color: #bbb;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.2em;
}

/* --- Pull Quote --- */
.pullquote {
  border-left: 3px solid var(--primary-accent);
  color: var(--text-color);
  font-style: normal;
  margin: 2rem 2.5rem 2rem 0;
  padding-left: 2.25rem;
  font-size: 1.15rem;
  background: #f8f9fa;
  max-width: 38rem;
  position: relative;
  text-align: left;
}
.pullquote .quote-mark {
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 2.5rem;
  color: #bdbdbd;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pullquote .quote-text {
  font-style: italic;
  color: var(--primary-accent);
}

/* --- Skill Badges --- */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

/* Work page grid modifier */
.skills-grid-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .skills-grid-badges {
    grid-template-columns: 1fr;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skills-category h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--primary-accent);
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.skill-badges li:hover {
  opacity: 0.7;
}

/* --- CTA Block --- */
.cta-block {
  background: #f5f7fa;
  border-radius: 14px;
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 38rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(33,150,243,0.04);
}
.cta-block p { margin-bottom: 0.75rem; font-size:1.15rem; color:var(--primary-accent); }

/* --- About Hero Title/Sub --- */
.hero-title { padding: 2.5rem 0 0.5rem 0; margin-top: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: #888; font-style: italic; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  .pullquote { margin: 1.5rem 0.5rem 1.5rem 0; padding-left: 1.25rem; }
  .cta-block { padding: 1.5rem 0.5rem 2.5rem 0.5rem; }
}

/* --- Nav Active State --- */
.nav-links .active {
  color: var(--primary-accent);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-accent);
}

/* --- Fade In Up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About Hero Title Spacing --- */
.about-hero-title {
  margin-top: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.mt-1 { margin-top: 0.75rem !important; }
.mt-2 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.75rem !important; }
.mb-2 { margin-bottom: 1.5rem !important; }
.pt-1 { padding-top: 0.75rem !important; }
.pt-2 { padding-top: 1.5rem !important; }
.pb-1 { padding-bottom: 0.75rem !important; }
.pb-2 { padding-bottom: 1.5rem !important; }

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

.external-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.external-link:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.external-link span[aria-hidden="true"] {
  font-size: 0.95em;
  margin-left: 0.2em;
  vertical-align: text-top;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: start;
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

.skill-badges li {
  min-width: 160px;
  max-width: 180px;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
  border-radius: 999px;
  background: var(--card-background);
  color: var(--primary-accent);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
  cursor: default;
  gap: 0.5em;
  box-sizing: border-box;
}
.skill-badges .spacer {
  visibility: hidden;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skill-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .skill-badges li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .skill-badges {
    grid-template-columns: 1fr;
  }
}

#skills-tools .cta-block {
  background: #fff;
}

/* Callout labels for packages */
.package-label {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 1em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.package-label.popular {
  background: #ede9fe;
  color: var(--primary-accent);
}
.package-label.entry {
  background: #e0f2f1;
  color: var(--secondary-accent);
}
.package-label.premium {
  background: #fff3e0;
  color: #f57c00;
}

/* Featured/premium card elevation */
.service-item.featured, .service-item.premium {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  border: 1.5px solid #e3f2fd;
  z-index: 1;
  position: relative;
}

/* Timeline badge */
.timeline-badge {
  display: inline-block;
  background: var(--background-color);
  color: var(--primary-accent);
  font-size: 0.95em;
  font-weight: 500;
  border-radius: 1em;
  padding: 0.15em 0.8em 0.15em 0.5em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Section intro/subheader */
.section-intro {
  font-size: 1.1rem;
  color: var(--primary-accent);
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Process step rhythm */
.process-steps {
  gap: 1.25rem;
  margin: 1.5rem 0 1.5rem 0;
}
.process-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.process-step p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Anchor link style */
.anchor-link {
  color: var(--primary-accent);
  text-decoration: underline dotted;
  font-size: 0.98em;
  margin-left: 0.25em;
  cursor: pointer;
}

/* For card alignment: invisible label placeholder */
.package-label.invisible {
  visibility: hidden;
  height: 1.8em;
  display: inline-block;
  margin-bottom: 0.5em;
}

#services-cta .cta-block {
  background: #fff;
}

/* Contact page layout */
.contact-flex {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact-info-block {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-card {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
  font-size: 1.1rem;
}
.contact-icon {
  font-size: 1.1em;
  margin-right: 0.5em;
  vertical-align: middle;
}
.social-block {
  margin-top: 0.5rem;
}
.social-block h3 {
  font-size: 1.05rem;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--primary-accent);
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.2s;
}
.social-link .social-icon {
  font-size: 1.15em;
  opacity: 0.7;
  margin-right: 0.3em;
  transition: opacity 0.2s;
}
.social-link:hover {
  color: var(--primary-hover);
}
.social-link:hover .social-icon {
  opacity: 1;
}
.contact-form-block {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 420px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}
.form-title {
  font-size: 1.15rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
  margin-top: 0;
}
.form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 0.3em;
  color: var(--text-color);
}
.form-group input,
.form-group textarea {
  padding: 0.6em 0.9em;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  background: var(--card-background);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-color);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-accent);
  outline: none;
  box-shadow: 0 0 0 2px #ede9fe;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form .btn {
  margin-top: 1rem;
}

/* Social Links Section */
#social-links {
  text-align: center;
}

#social-links a {
  color: var(--heading-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

#social-links a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#identity.section {
  padding-top: 3rem;
}

.identity-content {
  margin-top: 0;
  padding-top: 0.5rem;
}

/* Alternate Section Background */
.section-alt {
  background: #f5f7fa;
  box-shadow: none;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

/* Remove previous section-specific background rules */
#services-preview.section,
#featured-work.section,
#contact-cta.section {
  background: unset;
  box-shadow: unset;
  border-radius: unset;
  border: unset;
}

#featured-work.section {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-radius: 12px;
  border: none;
}

.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.work-more-link {
  color: var(--primary-accent);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  transition: color 0.2s, background 0.2s, text-decoration 0.2s;
  display: inline-block;
}

.work-more-link:hover,
.work-more-link:focus {
  color: var(--primary-hover);
  text-decoration: underline;
  text-decoration-color: var(--primary-accent);
  background: #f0f7ff;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
}

#featured-work.section,
#contact-cta.section {
  border-top: 1px solid #e0e0e0;
}

.btn,
.cta-buttons .btn {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* --- Global Section Titles --- */
.section-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.25em;
  display: inline-block;
  text-align: left;
  scroll-margin-top: 5rem;
}

[id] {
  scroll-margin-top: 5rem;
}

.project-row {
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.project-row:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.quote-attribution {
  color: #888;
  font-variant: small-caps;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* --- Section Divider --- */
.section-divider {
  text-align: center;
  color: #bbb;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.2em;
}

/* --- Pull Quote --- */
.pullquote {
  border-left: 3px solid var(--primary-accent);
  color: var(--text-color);
  font-style: normal;
  margin: 2rem 2.5rem 2rem 0;
  padding-left: 2.25rem;
  font-size: 1.15rem;
  background: #f8f9fa;
  max-width: 38rem;
  position: relative;
  text-align: left;
}
.pullquote .quote-mark {
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 2.5rem;
  color: #bdbdbd;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pullquote .quote-text {
  font-style: italic;
  color: var(--primary-accent);
}

/* --- Skill Badges --- */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

/* Work page grid modifier */
.skills-grid-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .skills-grid-badges {
    grid-template-columns: 1fr;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skills-category h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--primary-accent);
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.skill-badges li:hover {
  opacity: 0.7;
}

/* --- CTA Block --- */
.cta-block {
  background: #f5f7fa;
  border-radius: 14px;
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 38rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(33,150,243,0.04);
}
.cta-block p { margin-bottom: 0.75rem; font-size:1.15rem; color:var(--primary-accent); }

/* --- About Hero Title/Sub --- */
.hero-title { padding: 2.5rem 0 0.5rem 0; margin-top: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: #888; font-style: italic; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  .pullquote { margin: 1.5rem 0.5rem 1.5rem 0; padding-left: 1.25rem; }
  .cta-block { padding: 1.5rem 0.5rem 2.5rem 0.5rem; }
}

/* --- Nav Active State --- */
.nav-links .active {
  color: var(--primary-accent);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-accent);
}

/* --- Fade In Up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About Hero Title Spacing --- */
.about-hero-title {
  margin-top: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.mt-1 { margin-top: 0.75rem !important; }
.mt-2 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.75rem !important; }
.mb-2 { margin-bottom: 1.5rem !important; }
.pt-1 { padding-top: 0.75rem !important; }
.pt-2 { padding-top: 1.5rem !important; }
.pb-1 { padding-bottom: 0.75rem !important; }
.pb-2 { padding-bottom: 1.5rem !important; }

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

.external-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.external-link:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.external-link span[aria-hidden="true"] {
  font-size: 0.95em;
  margin-left: 0.2em;
  vertical-align: text-top;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: start;
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

.skill-badges li {
  min-width: 160px;
  max-width: 180px;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
  border-radius: 999px;
  background: var(--card-background);
  color: var(--primary-accent);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
  cursor: default;
  gap: 0.5em;
  box-sizing: border-box;
}
.skill-badges .spacer {
  visibility: hidden;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skill-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .skill-badges li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .skill-badges {
    grid-template-columns: 1fr;
  }
}

#skills-tools .cta-block {
  background: #fff;
}

/* Callout labels for packages */
.package-label {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 1em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.package-label.popular {
  background: #ede9fe;
  color: var(--primary-accent);
}
.package-label.entry {
  background: #e0f2f1;
  color: var(--secondary-accent);
}
.package-label.premium {
  background: #fff3e0;
  color: #f57c00;
}

/* Featured/premium card elevation */
.service-item.featured, .service-item.premium {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  border: 1.5px solid #e3f2fd;
  z-index: 1;
  position: relative;
}

/* Timeline badge */
.timeline-badge {
  display: inline-block;
  background: var(--background-color);
  color: var(--primary-accent);
  font-size: 0.95em;
  font-weight: 500;
  border-radius: 1em;
  padding: 0.15em 0.8em 0.15em 0.5em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Section intro/subheader */
.section-intro {
  font-size: 1.1rem;
  color: var(--primary-accent);
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Process step rhythm */
.process-steps {
  gap: 1.25rem;
  margin: 1.5rem 0 1.5rem 0;
}
.process-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.process-step p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Anchor link style */
.anchor-link {
  color: var(--primary-accent);
  text-decoration: underline dotted;
  font-size: 0.98em;
  margin-left: 0.25em;
  cursor: pointer;
}

/* For card alignment: invisible label placeholder */
.package-label.invisible {
  visibility: hidden;
  height: 1.8em;
  display: inline-block;
  margin-bottom: 0.5em;
}

#services-cta .cta-block {
  background: #fff;
}

/* Contact page layout */
.contact-flex {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact-info-block {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-card {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
  font-size: 1.1rem;
}
.contact-icon {
  font-size: 1.1em;
  margin-right: 0.5em;
  vertical-align: middle;
}
.social-block {
  margin-top: 0.5rem;
}
.social-block h3 {
  font-size: 1.05rem;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--primary-accent);
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.2s;
}
.social-link .social-icon {
  font-size: 1.15em;
  opacity: 0.7;
  margin-right: 0.3em;
  transition: opacity 0.2s;
}
.social-link:hover {
  color: var(--primary-hover);
}
.social-link:hover .social-icon {
  opacity: 1;
}
.contact-form-block {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 420px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}
.form-title {
  font-size: 1.15rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
  margin-top: 0;
}
.form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 0.3em;
  color: var(--text-color);
}
.form-group input,
.form-group textarea {
  padding: 0.6em 0.9em;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  background: var(--card-background);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-color);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-accent);
  outline: none;
  box-shadow: 0 0 0 2px #ede9fe;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form .btn {
  margin-top: 1rem;
}

/* Social Links Section */
#social-links {
  text-align: center;
}

#social-links a {
  color: var(--heading-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

#social-links a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#identity.section {
  padding-top: 3rem;
}

.identity-content {
  margin-top: 0;
  padding-top: 0.5rem;
}

/* Alternate Section Background */
.section-alt {
  background: #f5f7fa;
  box-shadow: none;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

/* Remove previous section-specific background rules */
#services-preview.section,
#featured-work.section,
#contact-cta.section {
  background: unset;
  box-shadow: unset;
  border-radius: unset;
  border: unset;
}

#featured-work.section {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-radius: 12px;
  border: none;
}

.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.work-more-link {
  color: var(--primary-accent);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  transition: color 0.2s, background 0.2s, text-decoration 0.2s;
  display: inline-block;
}

.work-more-link:hover,
.work-more-link:focus {
  color: var(--primary-hover);
  text-decoration: underline;
  text-decoration-color: var(--primary-accent);
  background: #f0f7ff;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
}

#featured-work.section,
#contact-cta.section {
  border-top: 1px solid #e0e0e0;
}

.btn,
.cta-buttons .btn {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* --- Global Section Titles --- */
.section-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.25em;
  display: inline-block;
  text-align: left;
  scroll-margin-top: 5rem;
}

[id] {
  scroll-margin-top: 5rem;
}

.project-row {
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.project-row:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.quote-attribution {
  color: #888;
  font-variant: small-caps;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* --- Section Divider --- */
.section-divider {
  text-align: center;
  color: #bbb;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.2em;
}

/* --- Pull Quote --- */
.pullquote {
  border-left: 3px solid var(--primary-accent);
  color: var(--text-color);
  font-style: normal;
  margin: 2rem 2.5rem 2rem 0;
  padding-left: 2.25rem;
  font-size: 1.15rem;
  background: #f8f9fa;
  max-width: 38rem;
  position: relative;
  text-align: left;
}
.pullquote .quote-mark {
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 2.5rem;
  color: #bdbdbd;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pullquote .quote-text {
  font-style: italic;
  color: var(--primary-accent);
}

/* --- Skill Badges --- */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

/* Work page grid modifier */
.skills-grid-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .skills-grid-badges {
    grid-template-columns: 1fr;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skills-category h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--primary-accent);
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.skill-badges li:hover {
  opacity: 0.7;
}

/* --- CTA Block --- */
.cta-block {
  background: #f5f7fa;
  border-radius: 14px;
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 38rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(33,150,243,0.04);
}
.cta-block p { margin-bottom: 0.75rem; font-size:1.15rem; color:var(--primary-accent); }

/* --- About Hero Title/Sub --- */
.hero-title { padding: 2.5rem 0 0.5rem 0; margin-top: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: #888; font-style: italic; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  .pullquote { margin: 1.5rem 0.5rem 1.5rem 0; padding-left: 1.25rem; }
  .cta-block { padding: 1.5rem 0.5rem 2.5rem 0.5rem; }
}

/* --- Nav Active State --- */
.nav-links .active {
  color: var(--primary-accent);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-accent);
}

/* --- Fade In Up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About Hero Title Spacing --- */
.about-hero-title {
  margin-top: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.mt-1 { margin-top: 0.75rem !important; }
.mt-2 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.75rem !important; }
.mb-2 { margin-bottom: 1.5rem !important; }
.pt-1 { padding-top: 0.75rem !important; }
.pt-2 { padding-top: 1.5rem !important; }
.pb-1 { padding-bottom: 0.75rem !important; }
.pb-2 { padding-bottom: 1.5rem !important; }

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

.external-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.external-link:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.external-link span[aria-hidden="true"] {
  font-size: 0.95em;
  margin-left: 0.2em;
  vertical-align: text-top;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: start;
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

.skill-badges li {
  min-width: 160px;
  max-width: 180px;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
  border-radius: 999px;
  background: var(--card-background);
  color: var(--primary-accent);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
  cursor: default;
  gap: 0.5em;
  box-sizing: border-box;
}
.skill-badges .spacer {
  visibility: hidden;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skill-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .skill-badges li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .skill-badges {
    grid-template-columns: 1fr;
  }
}

#skills-tools .cta-block {
  background: #fff;
}

/* Callout labels for packages */
.package-label {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 1em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.package-label.popular {
  background: #ede9fe;
  color: var(--primary-accent);
}
.package-label.entry {
  background: #e0f2f1;
  color: var(--secondary-accent);
}
.package-label.premium {
  background: #fff3e0;
  color: #f57c00;
}

/* Featured/premium card elevation */
.service-item.featured, .service-item.premium {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  border: 1.5px solid #e3f2fd;
  z-index: 1;
  position: relative;
}

/* Timeline badge */
.timeline-badge {
  display: inline-block;
  background: var(--background-color);
  color: var(--primary-accent);
  font-size: 0.95em;
  font-weight: 500;
  border-radius: 1em;
  padding: 0.15em 0.8em 0.15em 0.5em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Section intro/subheader */
.section-intro {
  font-size: 1.1rem;
  color: var(--primary-accent);
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Process step rhythm */
.process-steps {
  gap: 1.25rem;
  margin: 1.5rem 0 1.5rem 0;
}
.process-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.process-step p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Anchor link style */
.anchor-link {
  color: var(--primary-accent);
  text-decoration: underline dotted;
  font-size: 0.98em;
  margin-left: 0.25em;
  cursor: pointer;
}

/* For card alignment: invisible label placeholder */
.package-label.invisible {
  visibility: hidden;
  height: 1.8em;
  display: inline-block;
  margin-bottom: 0.5em;
}

#services-cta .cta-block {
  background: #fff;
}

/* Contact page layout */
.contact-flex {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact-info-block {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-card {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
  font-size: 1.1rem;
}
.contact-icon {
  font-size: 1.1em;
  margin-right: 0.5em;
  vertical-align: middle;
}
.social-block {
  margin-top: 0.5rem;
}
.social-block h3 {
  font-size: 1.05rem;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--primary-accent);
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.2s;
}
.social-link .social-icon {
  font-size: 1.15em;
  opacity: 0.7;
  margin-right: 0.3em;
  transition: opacity 0.2s;
}
.social-link:hover {
  color: var(--primary-hover);
}
.social-link:hover .social-icon {
  opacity: 1;
}
.contact-form-block {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 420px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}
.form-title {
  font-size: 1.15rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
  margin-top: 0;
}
.form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 0.3em;
  color: var(--text-color);
}
.form-group input,
.form-group textarea {
  padding: 0.6em 0.9em;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  background: var(--card-background);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-color);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-accent);
  outline: none;
  box-shadow: 0 0 0 2px #ede9fe;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form .btn {
  margin-top: 1rem;
}

/* Social Links Section */
#social-links {
  text-align: center;
}

#social-links a {
  color: var(--heading-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

#social-links a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#identity.section {
  padding-top: 3rem;
}

.identity-content {
  margin-top: 0;
  padding-top: 0.5rem;
}

/* Alternate Section Background */
.section-alt {
  background: #f5f7fa;
  box-shadow: none;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

/* Remove previous section-specific background rules */
#services-preview.section,
#featured-work.section,
#contact-cta.section {
  background: unset;
  box-shadow: unset;
  border-radius: unset;
  border: unset;
}

#featured-work.section {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-radius: 12px;
  border: none;
}

.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.work-more-link {
  color: var(--primary-accent);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  transition: color 0.2s, background 0.2s, text-decoration 0.2s;
  display: inline-block;
}

.work-more-link:hover,
.work-more-link:focus {
  color: var(--primary-hover);
  text-decoration: underline;
  text-decoration-color: var(--primary-accent);
  background: #f0f7ff;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
}

#featured-work.section,
#contact-cta.section {
  border-top: 1px solid #e0e0e0;
}

.btn,
.cta-buttons .btn {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* --- Global Section Titles --- */
.section-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.25em;
  display: inline-block;
  text-align: left;
  scroll-margin-top: 5rem;
}

[id] {
  scroll-margin-top: 5rem;
}

.project-row {
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.project-row:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.quote-attribution {
  color: #888;
  font-variant: small-caps;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* --- Section Divider --- */
.section-divider {
  text-align: center;
  color: #bbb;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.2em;
}

/* --- Pull Quote --- */
.pullquote {
  border-left: 3px solid var(--primary-accent);
  color: var(--text-color);
  font-style: normal;
  margin: 2rem 2.5rem 2rem 0;
  padding-left: 2.25rem;
  font-size: 1.15rem;
  background: #f8f9fa;
  max-width: 38rem;
  position: relative;
  text-align: left;
}
.pullquote .quote-mark {
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 2.5rem;
  color: #bdbdbd;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pullquote .quote-text {
  font-style: italic;
  color: var(--primary-accent);
}

/* --- Skill Badges --- */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

/* Work page grid modifier */
.skills-grid-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .skills-grid-badges {
    grid-template-columns: 1fr;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skills-category h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--primary-accent);
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.skill-badges li:hover {
  opacity: 0.7;
}

/* --- CTA Block --- */
.cta-block {
  background: #f5f7fa;
  border-radius: 14px;
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 38rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(33,150,243,0.04);
}
.cta-block p { margin-bottom: 0.75rem; font-size:1.15rem; color:var(--primary-accent); }

/* --- About Hero Title/Sub --- */
.hero-title { padding: 2.5rem 0 0.5rem 0; margin-top: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: #888; font-style: italic; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  .pullquote { margin: 1.5rem 0.5rem 1.5rem 0; padding-left: 1.25rem; }
  .cta-block { padding: 1.5rem 0.5rem 2.5rem 0.5rem; }
}

/* --- Nav Active State --- */
.nav-links .active {
  color: var(--primary-accent);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-accent);
}

/* --- Fade In Up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About Hero Title Spacing --- */
.about-hero-title {
  margin-top: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.mt-1 { margin-top: 0.75rem !important; }
.mt-2 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.75rem !important; }
.mb-2 { margin-bottom: 1.5rem !important; }
.pt-1 { padding-top: 0.75rem !important; }
.pt-2 { padding-top: 1.5rem !important; }
.pb-1 { padding-bottom: 0.75rem !important; }
.pb-2 { padding-bottom: 1.5rem !important; }

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

.external-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.external-link:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.external-link span[aria-hidden="true"] {
  font-size: 0.95em;
  margin-left: 0.2em;
  vertical-align: text-top;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: start;
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

.skill-badges li {
  min-width: 160px;
  max-width: 180px;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
  border-radius: 999px;
  background: var(--card-background);
  color: var(--primary-accent);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
  cursor: default;
  gap: 0.5em;
  box-sizing: border-box;
}
.skill-badges .spacer {
  visibility: hidden;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skill-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .skill-badges li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .skill-badges {
    grid-template-columns: 1fr;
  }
}

#skills-tools .cta-block {
  background: #fff;
}

/* Callout labels for packages */
.package-label {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 1em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.package-label.popular {
  background: #ede9fe;
  color: var(--primary-accent);
}
.package-label.entry {
  background: #e0f2f1;
  color: var(--secondary-accent);
}
.package-label.premium {
  background: #fff3e0;
  color: #f57c00;
}

/* Featured/premium card elevation */
.service-item.featured, .service-item.premium {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  border: 1.5px solid #e3f2fd;
  z-index: 1;
  position: relative;
}

/* Timeline badge */
.timeline-badge {
  display: inline-block;
  background: var(--background-color);
  color: var(--primary-accent);
  font-size: 0.95em;
  font-weight: 500;
  border-radius: 1em;
  padding: 0.15em 0.8em 0.15em 0.5em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Section intro/subheader */
.section-intro {
  font-size: 1.1rem;
  color: var(--primary-accent);
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Process step rhythm */
.process-steps {
  gap: 1.25rem;
  margin: 1.5rem 0 1.5rem 0;
}
.process-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.process-step p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Anchor link style */
.anchor-link {
  color: var(--primary-accent);
  text-decoration: underline dotted;
  font-size: 0.98em;
  margin-left: 0.25em;
  cursor: pointer;
}

/* For card alignment: invisible label placeholder */
.package-label.invisible {
  visibility: hidden;
  height: 1.8em;
  display: inline-block;
  margin-bottom: 0.5em;
}

#services-cta .cta-block {
  background: #fff;
}

/* Contact page layout */
.contact-flex {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact-info-block {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-card {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
  font-size: 1.1rem;
}
.contact-icon {
  font-size: 1.1em;
  margin-right: 0.5em;
  vertical-align: middle;
}
.social-block {
  margin-top: 0.5rem;
}
.social-block h3 {
  font-size: 1.05rem;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--primary-accent);
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.2s;
}
.social-link .social-icon {
  font-size: 1.15em;
  opacity: 0.7;
  margin-right: 0.3em;
  transition: opacity 0.2s;
}
.social-link:hover {
  color: var(--primary-hover);
}
.social-link:hover .social-icon {
  opacity: 1;
}
.contact-form-block {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 420px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}
.form-title {
  font-size: 1.15rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
  margin-top: 0;
}
.form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 0.3em;
  color: var(--text-color);
}
.form-group input,
.form-group textarea {
  padding: 0.6em 0.9em;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  background: var(--card-background);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-color);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-accent);
  outline: none;
  box-shadow: 0 0 0 2px #ede9fe;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form .btn {
  margin-top: 1rem;
}

/* Social Links Section */
#social-links {
  text-align: center;
}

#social-links a {
  color: var(--heading-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

#social-links a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#identity.section {
  padding-top: 3rem;
}

.identity-content {
  margin-top: 0;
  padding-top: 0.5rem;
}

/* Alternate Section Background */
.section-alt {
  background: #f5f7fa;
  box-shadow: none;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

/* Remove previous section-specific background rules */
#services-preview.section,
#featured-work.section,
#contact-cta.section {
  background: unset;
  box-shadow: unset;
  border-radius: unset;
  border: unset;
}

#featured-work.section {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-radius: 12px;
  border: none;
}

.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.work-more-link {
  color: var(--primary-accent);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  transition: color 0.2s, background 0.2s, text-decoration 0.2s;
  display: inline-block;
}

.work-more-link:hover,
.work-more-link:focus {
  color: var(--primary-hover);
  text-decoration: underline;
  text-decoration-color: var(--primary-accent);
  background: #f0f7ff;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
}

#featured-work.section,
#contact-cta.section {
  border-top: 1px solid #e0e0e0;
}

.btn,
.cta-buttons .btn {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* --- Global Section Titles --- */
.section-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.25em;
  display: inline-block;
  text-align: left;
  scroll-margin-top: 5rem;
}

[id] {
  scroll-margin-top: 5rem;
}

.project-row {
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.project-row:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.quote-attribution {
  color: #888;
  font-variant: small-caps;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* --- Section Divider --- */
.section-divider {
  text-align: center;
  color: #bbb;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.2em;
}

/* --- Pull Quote --- */
.pullquote {
  border-left: 3px solid var(--primary-accent);
  color: var(--text-color);
  font-style: normal;
  margin: 2rem 2.5rem 2rem 0;
  padding-left: 2.25rem;
  font-size: 1.15rem;
  background: #f8f9fa;
  max-width: 38rem;
  position: relative;
  text-align: left;
}
.pullquote .quote-mark {
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 2.5rem;
  color: #bdbdbd;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pullquote .quote-text {
  font-style: italic;
  color: var(--primary-accent);
}

/* --- Skill Badges --- */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

/* Work page grid modifier */
.skills-grid-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .skills-grid-badges {
    grid-template-columns: 1fr;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skills-category h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--primary-accent);
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.skill-badges li:hover {
  opacity: 0.7;
}

/* --- CTA Block --- */
.cta-block {
  background: #f5f7fa;
  border-radius: 14px;
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 38rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(33,150,243,0.04);
}
.cta-block p { margin-bottom: 0.75rem; font-size:1.15rem; color:var(--primary-accent); }

/* --- About Hero Title/Sub --- */
.hero-title { padding: 2.5rem 0 0.5rem 0; margin-top: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: #888; font-style: italic; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  .pullquote { margin: 1.5rem 0.5rem 1.5rem 0; padding-left: 1.25rem; }
  .cta-block { padding: 1.5rem 0.5rem 2.5rem 0.5rem; }
}

/* --- Nav Active State --- */
.nav-links .active {
  color: var(--primary-accent);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-accent);
}

/* --- Fade In Up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About Hero Title Spacing --- */
.about-hero-title {
  margin-top: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.mt-1 { margin-top: 0.75rem !important; }
.mt-2 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.75rem !important; }
.mb-2 { margin-bottom: 1.5rem !important; }
.pt-1 { padding-top: 0.75rem !important; }
.pt-2 { padding-top: 1.5rem !important; }
.pb-1 { padding-bottom: 0.75rem !important; }
.pb-2 { padding-bottom: 1.5rem !important; }

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

.external-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.external-link:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.external-link span[aria-hidden="true"] {
  font-size: 0.95em;
  margin-left: 0.2em;
  vertical-align: text-top;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: start;
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

.skill-badges li {
  min-width: 160px;
  max-width: 180px;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
  border-radius: 999px;
  background: var(--card-background);
  color: var(--primary-accent);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
  cursor: default;
  gap: 0.5em;
  box-sizing: border-box;
}
.skill-badges .spacer {
  visibility: hidden;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skill-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .skill-badges li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .skill-badges {
    grid-template-columns: 1fr;
  }
}

#skills-tools .cta-block {
  background: #fff;
}

/* Callout labels for packages */
.package-label {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 1em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.package-label.popular {
  background: #ede9fe;
  color: var(--primary-accent);
}
.package-label.entry {
  background: #e0f2f1;
  color: var(--secondary-accent);
}
.package-label.premium {
  background: #fff3e0;
  color: #f57c00;
}

/* Featured/premium card elevation */
.service-item.featured, .service-item.premium {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  border: 1.5px solid #e3f2fd;
  z-index: 1;
  position: relative;
}

/* Timeline badge */
.timeline-badge {
  display: inline-block;
  background: var(--background-color);
  color: var(--primary-accent);
  font-size: 0.95em;
  font-weight: 500;
  border-radius: 1em;
  padding: 0.15em 0.8em 0.15em 0.5em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Section intro/subheader */
.section-intro {
  font-size: 1.1rem;
  color: var(--primary-accent);
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Process step rhythm */
.process-steps {
  gap: 1.25rem;
  margin: 1.5rem 0 1.5rem 0;
}
.process-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.process-step p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Anchor link style */
.anchor-link {
  color: var(--primary-accent);
  text-decoration: underline dotted;
  font-size: 0.98em;
  margin-left: 0.25em;
  cursor: pointer;
}

/* For card alignment: invisible label placeholder */
.package-label.invisible {
  visibility: hidden;
  height: 1.8em;
  display: inline-block;
  margin-bottom: 0.5em;
}

#services-cta .cta-block {
  background: #fff;
}

/* Contact page layout */
.contact-flex {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact-info-block {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-card {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
  font-size: 1.1rem;
}
.contact-icon {
  font-size: 1.1em;
  margin-right: 0.5em;
  vertical-align: middle;
}
.social-block {
  margin-top: 0.5rem;
}
.social-block h3 {
  font-size: 1.05rem;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--primary-accent);
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.2s;
}
.social-link .social-icon {
  font-size: 1.15em;
  opacity: 0.7;
  margin-right: 0.3em;
  transition: opacity 0.2s;
}
/*
GLOBAL/UTILITY CLASSES:
- .section, .section-alt: Section containers
- .section-title: Section headings
- .section-divider: Section dividers
- .pullquote: Pull quote block
- .skill-badges: Skill/tech tags
- .cta-block: Call-to-action block
- .nav-links .active: Active nav link
- .fade-in-up: Fade/slide-in animation
- .hero-title, .hero-sub: Main page hero heading/subheading
- .btn, .btn-secondary: Buttons
- .lead: Prominent intro/lead text
- .mt-1/.mt-2/.mb-1/.mb-2/.pt-1/.pt-2: Margin/padding utilities
*/

/* === Custom Color Palette === */
:root {
  --primary-accent: #cba135;
  --primary-hover: #a6782d;
  --heading-color: #621c38;
  --text-color: #2c1810;
  --card-background: #f4f2ef;
  --border-color: #d6c6ae;
  --background-color: #ffffff;
  --section-alt-bg: #f8f6f3;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Space Grotesk', 'Suisse Int\'l', Arial, sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
  /* Add padding-top to prevent content from being hidden under the fixed navbar */
  padding-top: 72px; /* Adjust to match navbar height */
}

/* Global Grain Texture Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/service-bg.png');
  background-size: 200px 200px;
  background-repeat: repeat;
  opacity: 0.08;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

/* Ensure content appears above grain overlay */
main, header, footer, section {
  position: relative;
  z-index: 2;
}

/* Scroll-triggered Fade-in Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-section.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-section.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for child elements */
.fade-in-section.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.fade-in-section.stagger-children.visible > *:nth-child(2) { transition-delay: 0.25s; }
.fade-in-section.stagger-children.visible > *:nth-child(3) { transition-delay: 0.4s; }
.fade-in-section.stagger-children.visible > *:nth-child(4) { transition-delay: 0.55s; }
.fade-in-section.stagger-children.visible > *:nth-child(5) { transition-delay: 0.7s; }
.fade-in-section.stagger-children.visible > *:nth-child(6) { transition-delay: 0.85s; }

/* Apply fade-in classes to specific sections */
#services-preview,
#featured-work,
#contact-cta {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

#services-preview.visible,
#featured-work.visible,
#contact-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger service cards */
.service-grid.visible .service-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-grid.visible .service-item:nth-child(1) { transition-delay: 0.1s; }
.service-grid.visible .service-item:nth-child(2) { transition-delay: 0.25s; }
.service-grid.visible .service-item:nth-child(3) { transition-delay: 0.4s; }

.service-grid.visible .service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
/* Navbar styles moved to Navbar.astro component */

/* --- END HEADER & NAVBAR ENHANCEMENTS --- */

/* Hamburger Menu */
/* Hamburger styles moved to Navbar.astro component */

/* Mobile Navigation */
/* Mobile navigation styles moved to Navbar.astro component */

@media (max-width: 768px) {
  /* Navbar styles moved to Navbar.astro component */

  .hero h1 {
    font-size: 2rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .service-item {
    padding: 1.5rem;
  }
  .price {
    font-size: 1.25rem;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

/* Hero Section */
.hero {
  background: #f5f5f5;
  padding: 6rem 0 3rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.3rem;
  color: #444;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Section Styles */
/* .section { ... } removed (migrated to Section.astro) */
/* .section:not(:last-child) { ... } removed (migrated to Section.astro) */
/* .section h2 { ... } removed (migrated to Section.astro) */
/* .section-divider { ... } removed (migrated to Section.astro) */

/* Accordion Styles */
.accordion {
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.04);
  background: none;
  overflow: hidden;
}

.accordion-item {
  margin-bottom: 1.25rem;
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--background-color);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(33,150,243,0.04);
  border: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  font-weight: bold;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 1.08rem;
  transition: background 0.18s, box-shadow 0.18s;
  color: var(--heading-color);
}

.accordion-header:hover, .accordion-header:focus {
  background: var(--card-background);
  box-shadow: 0 4px 16px rgba(33,150,243,0.08);
  outline: none;
}

.accordion-arrow {
  display: inline-block;
  font-size: 1.25em;
  margin-right: 0.5em;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  color: var(--primary-accent);
}

.accordion-header[aria-expanded="true"] .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  border: none;
  background: var(--card-background);
  border-radius: 0 0 10px 10px;
  transition: max-height 0.25s cubic-bezier(.4,0,.2,1), opacity 0.25s cubic-bezier(.4,0,.2,1), padding 0.2s;
}

.accordion-body.open {
  max-height: 2000px;
  opacity: 1;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-color);
  border-top: none;
  background: var(--card-background);
  border-radius: 0 0 10px 10px;
}

.accordion-body ul, 
.accordion-body p, 
.accordion-body h4 {
  margin-top: 0.75rem;
}

.accordion-body ul {
  margin-bottom: 0.75rem;
  margin-left: 1.5rem;
}

.accordion-item .accordion-body {
  border-radius: 0 0 0.5rem 0.5rem;
}

/* Service Grid Styles */
.services-preview {
  margin-top: 0;
}
.services-preview h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #621c38;
  font-size: 3rem;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-preview.visible h2 {
  opacity: 1;
  transform: translateY(0);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  justify-content: center;
  align-items: start;
  padding: 0;
  background: none;
  border: none;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.service-item {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-item:nth-child(2) {
  margin-top: 16px;
}
.service-item h3 {
  font-family: 'Playfair Display', serif;
  font-variant: small-caps;
  font-style: italic;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: #621c38;
  text-align: left;
  min-height: 2.5em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  margin-top: 0;
  position: relative;
  display: block;
  transition: color 0.2s;
}
.service-item h3::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: -0.3em;
  width: 0%;
  height: 2px;
  background: #cba135;
  transition: width 0.22s cubic-bezier(.4,0,.2,1);
}
.service-item:hover h3::after,
.service-item h3:focus::after {
  width: 100%;
}
.service-item:hover h3,
.service-item h3:focus {
  color: #cba135;
}
.service-item:hover, .service-item:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: #cba135;
  border-radius: 20px;
}
.service-item p,
.service-item .service-lead {
  font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
  color: #3a3a38;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 1.1em;
  margin-top: 0;
}
.service-item > :last-child {
  margin-bottom: 1.25rem;
}
.service-item .ghost-link {
  display: none;
  font-family: 'Inter', Arial, sans-serif;
  text-transform: uppercase;
  font-size: 0.93em;
  color: #a6782d;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-top: auto;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.18s;
  align-self: flex-start;
}
.service-item:hover .ghost-link {
  display: inline-block;
  opacity: 1;
}
.btn, .btn-secondary {
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  background: #cba135;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 2rem;
  font-size: 1.08rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  margin-top: 2rem;
  transition: background 0.18s;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}
.btn::after, .btn-secondary::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 45%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, #ffe9a7 40%, rgba(255,255,255,0.0) 100%);
  opacity: 0.7;
  transform: skewX(-18deg);
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}
.btn:hover, .btn:focus, .btn-secondary:hover, .btn-secondary:focus {
  background: linear-gradient(90deg, #cba135 0%, #a6782d 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(203,161,53,0.13);
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.step {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid var(--border-color);
}

.step h3 {
  color: var(--heading-color);
  margin-bottom: 1rem;
}

/* Pricing and Add-ons */
.price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-accent);
  margin: 0.5rem 0 0.25rem 0;
}

.timeline {
  color: #666;
  font-style: italic;
  margin-bottom: 1rem;
}

.limitations {
  margin-top: auto;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 1em 1.25em;
  font-size: 1em;
  margin-bottom: 0.5em;
  color: #222;
}

.add-ons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.add-on-item {
  background: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
  padding: 1.25rem;
  min-width: 180px;
  max-width: 260px;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border-color);
}

.add-on-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 32px rgba(25, 118, 210, 0.13), 0 2px 8px rgba(0,0,0,0.10);
  z-index: 2;
}

.add-on-item h3 {
  color: var(--heading-color);
  margin-bottom: 1rem;
}

/* Policies */
.policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.policy-item {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border-color);
}

.policy-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 32px rgba(25, 118, 210, 0.13), 0 2px 8px rgba(0,0,0,0.10);
  z-index: 2;
}

.policy-item h3 {
  color: var(--heading-color);
  margin-bottom: 1rem;
}

.policy-item ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.policy-item ul li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.policy-item ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-accent);
}

/* Buttons and CTAs */
.btn-secondary {
  background: var(--card-background);
  color: var(--primary-accent);
  border: 1px solid var(--primary-accent);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.04);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--background-color);
  color: var(--primary-hover);
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.10);
  outline: none;
}

/* Footer */
.footer {
  background: var(--heading-color);
  color: var(--card-background);
  text-align: center;
  padding: 3rem 0;
  margin-top: 0;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: var(--card-background);
  text-decoration: none;
  margin: 0 1rem;
}

.footer-links a:hover {
  color: var(--primary-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Navbar styles moved to Navbar.astro component */

  .hero h1 {
    font-size: 2rem;
  }

  .service-grid,
  .process-steps,
  .add-ons-grid,
  .policies-grid {
    grid-template-columns: 1fr;
  }

  .service-item,
  .step,
  .add-on-item,
  .policy-item {
    padding: 1.5rem;
  }

  .price {
    font-size: 1.25rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

/* Contact Form Styles */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.contact-info h3 {
  color: var(--heading-color);
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--heading-color);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  margin: 2rem 0;
}

.contact-form h3 {
  color: var(--heading-color);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: var(--card-background);
  color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 2px #ede9fe;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .btn {
  margin-top: 1rem;
}

/* Social Links Section */
#social-links {
  text-align: center;
}

#social-links a {
  color: var(--heading-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

#social-links a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#identity.section {
  padding-top: 3rem;
}

.identity-content {
  margin-top: 0;
  padding-top: 0.5rem;
}

/* Alternate Section Background */
.section-alt {
  background: #f5f7fa;
  box-shadow: none;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

/* Remove previous section-specific background rules */
#services-preview.section,
#featured-work.section,
#contact-cta.section {
  background: unset;
  box-shadow: unset;
  border-radius: unset;
  border: unset;
}

#featured-work.section {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-radius: 12px;
  border: none;
}

.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.work-more-link {
  color: var(--primary-accent);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  transition: color 0.2s, background 0.2s, text-decoration 0.2s;
  display: inline-block;
}

.work-more-link:hover,
.work-more-link:focus {
  color: var(--primary-hover);
  text-decoration: underline;
  text-decoration-color: var(--primary-accent);
  background: #f0f7ff;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
}

#featured-work.section,
#contact-cta.section {
  border-top: 1px solid #e0e0e0;
}

.btn,
.cta-buttons .btn {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* --- Global Section Titles --- */
.section-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.25em;
  display: inline-block;
  text-align: left;
  scroll-margin-top: 5rem;
}

[id] {
  scroll-margin-top: 5rem;
}

.project-row {
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.project-row:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.quote-attribution {
  color: #888;
  font-variant: small-caps;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* --- Section Divider --- */
.section-divider {
  text-align: center;
  color: #bbb;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.2em;
}

/* --- Pull Quote --- */
.pullquote {
  border-left: 3px solid var(--primary-accent);
  color: var(--text-color);
  font-style: normal;
  margin: 2rem 2.5rem 2rem 0;
  padding-left: 2.25rem;
  font-size: 1.15rem;
  background: #f8f9fa;
  max-width: 38rem;
  position: relative;
  text-align: left;
}
.pullquote .quote-mark {
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 2.5rem;
  color: #bdbdbd;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pullquote .quote-text {
  font-style: italic;
  color: var(--primary-accent);
}

/* --- Skill Badges --- */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

/* Work page grid modifier */
.skills-grid-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .skills-grid-badges {
    grid-template-columns: 1fr;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skills-category h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--primary-accent);
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.skill-badges li:hover {
  opacity: 0.7;
}

/* --- CTA Block --- */
.cta-block {
  background: #f5f7fa;
  border-radius: 14px;
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 38rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(33,150,243,0.04);
}
.cta-block p { margin-bottom: 0.75rem; font-size:1.15rem; color:var(--primary-accent); }

/* --- About Hero Title/Sub --- */
.hero-title { padding: 2.5rem 0 0.5rem 0; margin-top: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: #888; font-style: italic; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  .pullquote { margin: 1.5rem 0.5rem 1.5rem 0; padding-left: 1.25rem; }
  .cta-block { padding: 1.5rem 0.5rem 2.5rem 0.5rem; }
}

/* --- Nav Active State --- */
.nav-links .active {
  color: var(--primary-accent);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-accent);
}

/* --- Fade In Up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About Hero Title Spacing --- */
.about-hero-title {
  margin-top: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.mt-1 { margin-top: 0.75rem !important; }
.mt-2 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.75rem !important; }
.mb-2 { margin-bottom: 1.5rem !important; }
.pt-1 { padding-top: 0.75rem !important; }
.pt-2 { padding-top: 1.5rem !important; }
.pb-1 { padding-bottom: 0.75rem !important; }
.pb-2 { padding-bottom: 1.5rem !important; }

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

.external-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.external-link:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.external-link span[aria-hidden="true"] {
  font-size: 0.95em;
  margin-left: 0.2em;
  vertical-align: text-top;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: start;
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

.skill-badges li {
  min-width: 160px;
  max-width: 180px;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
  border-radius: 999px;
  background: var(--card-background);
  color: var(--primary-accent);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
  cursor: default;
  gap: 0.5em;
  box-sizing: border-box;
}
.skill-badges .spacer {
  visibility: hidden;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skill-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .skill-badges li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .skill-badges {
    grid-template-columns: 1fr;
  }
}

#skills-tools .cta-block {
  background: #fff;
}

/* Callout labels for packages */
.package-label {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 1em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.package-label.popular {
  background: #ede9fe;
  color: var(--primary-accent);
}
.package-label.entry {
  background: #e0f2f1;
  color: var(--secondary-accent);
}
.package-label.premium {
  background: #fff3e0;
  color: #f57c00;
}

/* Featured/premium card elevation */
.service-item.featured, .service-item.premium {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  border: 1.5px solid #e3f2fd;
  z-index: 1;
  position: relative;
}

/* Timeline badge */
.timeline-badge {
  display: inline-block;
  background: var(--background-color);
  color: var(--primary-accent);
  font-size: 0.95em;
  font-weight: 500;
  border-radius: 1em;
  padding: 0.15em 0.8em 0.15em 0.5em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Section intro/subheader */
.section-intro {
  font-size: 1.1rem;
  color: var(--primary-accent);
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Process step rhythm */
.process-steps {
  gap: 1.25rem;
  margin: 1.5rem 0 1.5rem 0;
}
.process-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.process-step p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Anchor link style */
.anchor-link {
  color: var(--primary-accent);
  text-decoration: underline dotted;
  font-size: 0.98em;
  margin-left: 0.25em;
  cursor: pointer;
}

/* For card alignment: invisible label placeholder */
.package-label.invisible {
  visibility: hidden;
  height: 1.8em;
  display: inline-block;
  margin-bottom: 0.5em;
}

#services-cta .cta-block {
  background: #fff;
}

/* Contact page layout */
.contact-flex {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact-info-block {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-card {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
  font-size: 1.1rem;
}
.contact-icon {
  font-size: 1.1em;
  margin-right: 0.5em;
  vertical-align: middle;
}
.social-block {
  margin-top: 0.5rem;
}
.social-block h3 {
  font-size: 1.05rem;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--primary-accent);
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.2s;
}
.social-link .social-icon {
  font-size: 1.15em;
  opacity: 0.7;
  margin-right: 0.3em;
  transition: opacity 0.2s;
}
.social-link:hover {
  color: var(--primary-hover);
}
.social-link:hover .social-icon {
  opacity: 1;
}
.contact-form-block {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 420px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}
.form-title {
  font-size: 1.15rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
  margin-top: 0;
}
.form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 0.3em;
  color: var(--text-color);
}
.form-group input,
.form-group textarea {
  padding: 0.6em 0.9em;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  background: var(--card-background);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-color);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-accent);
  outline: none;
  box-shadow: 0 0 0 2px #ede9fe;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form .btn {
  margin-top: 1rem;
}

/* Social Links Section */
#social-links {
  text-align: center;
}

#social-links a {
  color: var(--heading-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

#social-links a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#identity.section {
  padding-top: 3rem;
}

.identity-content {
  margin-top: 0;
  padding-top: 0.5rem;
}

/* Alternate Section Background */
.section-alt {
  background: #f5f7fa;
  box-shadow: none;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

/* Remove previous section-specific background rules */
#services-preview.section,
#featured-work.section,
#contact-cta.section {
  background: unset;
  box-shadow: unset;
  border-radius: unset;
  border: unset;
}

#featured-work.section {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-radius: 12px;
  border: none;
}

.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.work-more-link {
  color: var(--primary-accent);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  transition: color 0.2s, background 0.2s, text-decoration 0.2s;
  display: inline-block;
}

.work-more-link:hover,
.work-more-link:focus {
  color: var(--primary-hover);
  text-decoration: underline;
  text-decoration-color: var(--primary-accent);
  background: #f0f7ff;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
}

#featured-work.section,
#contact-cta.section {
  border-top: 1px solid #e0e0e0;
}

.btn,
.cta-buttons .btn {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* --- Global Section Titles --- */
.section-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.25em;
  display: inline-block;
  text-align: left;
  scroll-margin-top: 5rem;
}

[id] {
  scroll-margin-top: 5rem;
}

.project-row {
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.project-row:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.quote-attribution {
  color: #888;
  font-variant: small-caps;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* --- Section Divider --- */
.section-divider {
  text-align: center;
  color: #bbb;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.2em;
}

/* --- Pull Quote --- */
.pullquote {
  border-left: 3px solid var(--primary-accent);
  color: var(--text-color);
  font-style: normal;
  margin: 2rem 2.5rem 2rem 0;
  padding-left: 2.25rem;
  font-size: 1.15rem;
  background: #f8f9fa;
  max-width: 38rem;
  position: relative;
  text-align: left;
}
.pullquote .quote-mark {
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 2.5rem;
  color: #bdbdbd;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pullquote .quote-text {
  font-style: italic;
  color: var(--primary-accent);
}

/* --- Skill Badges --- */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

/* Work page grid modifier */
.skills-grid-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .skills-grid-badges {
    grid-template-columns: 1fr;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skills-category h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--primary-accent);
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.skill-badges li:hover {
  opacity: 0.7;
}

/* --- CTA Block --- */
.cta-block {
  background: #f5f7fa;
  border-radius: 14px;
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 38rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(33,150,243,0.04);
}
.cta-block p { margin-bottom: 0.75rem; font-size:1.15rem; color:var(--primary-accent); }

/* --- About Hero Title/Sub --- */
.hero-title { padding: 2.5rem 0 0.5rem 0; margin-top: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: #888; font-style: italic; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  .pullquote { margin: 1.5rem 0.5rem 1.5rem 0; padding-left: 1.25rem; }
  .cta-block { padding: 1.5rem 0.5rem 2.5rem 0.5rem; }
}

/* --- Nav Active State --- */
.nav-links .active {
  color: var(--primary-accent);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-accent);
}

/* --- Fade In Up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About Hero Title Spacing --- */
.about-hero-title {
  margin-top: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.mt-1 { margin-top: 0.75rem !important; }
.mt-2 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.75rem !important; }
.mb-2 { margin-bottom: 1.5rem !important; }
.pt-1 { padding-top: 0.75rem !important; }
.pt-2 { padding-top: 1.5rem !important; }
.pb-1 { padding-bottom: 0.75rem !important; }
.pb-2 { padding-bottom: 1.5rem !important; }

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

.external-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.external-link:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.external-link span[aria-hidden="true"] {
  font-size: 0.95em;
  margin-left: 0.2em;
  vertical-align: text-top;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: start;
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

.skill-badges li {
  min-width: 160px;
  max-width: 180px;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
  border-radius: 999px;
  background: var(--card-background);
  color: var(--primary-accent);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
  cursor: default;
  gap: 0.5em;
  box-sizing: border-box;
}
.skill-badges .spacer {
  visibility: hidden;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skill-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .skill-badges li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .skill-badges {
    grid-template-columns: 1fr;
  }
}

#skills-tools .cta-block {
  background: #fff;
}

/* Callout labels for packages */
.package-label {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 1em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.package-label.popular {
  background: #ede9fe;
  color: var(--primary-accent);
}
.package-label.entry {
  background: #e0f2f1;
  color: var(--secondary-accent);
}
.package-label.premium {
  background: #fff3e0;
  color: #f57c00;
}

/* Featured/premium card elevation */
.service-item.featured, .service-item.premium {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  border: 1.5px solid #e3f2fd;
  z-index: 1;
  position: relative;
}

/* Timeline badge */
.timeline-badge {
  display: inline-block;
  background: var(--background-color);
  color: var(--primary-accent);
  font-size: 0.95em;
  font-weight: 500;
  border-radius: 1em;
  padding: 0.15em 0.8em 0.15em 0.5em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Section intro/subheader */
.section-intro {
  font-size: 1.1rem;
  color: var(--primary-accent);
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Process step rhythm */
.process-steps {
  gap: 1.25rem;
  margin: 1.5rem 0 1.5rem 0;
}
.process-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.process-step p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Anchor link style */
.anchor-link {
  color: var(--primary-accent);
  text-decoration: underline dotted;
  font-size: 0.98em;
  margin-left: 0.25em;
  cursor: pointer;
}

/* For card alignment: invisible label placeholder */
.package-label.invisible {
  visibility: hidden;
  height: 1.8em;
  display: inline-block;
  margin-bottom: 0.5em;
}

#services-cta .cta-block {
  background: #fff;
}

/* Contact page layout */
.contact-flex {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact-info-block {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-card {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
  font-size: 1.1rem;
}
.contact-icon {
  font-size: 1.1em;
  margin-right: 0.5em;
  vertical-align: middle;
}
.social-block {
  margin-top: 0.5rem;
}
.social-block h3 {
  font-size: 1.05rem;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--primary-accent);
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.2s;
}
.social-link .social-icon {
  font-size: 1.15em;
  opacity: 0.7;
  margin-right: 0.3em;
  transition: opacity 0.2s;
}
.social-link:hover {
  color: var(--primary-hover);
}
.social-link:hover .social-icon {
  opacity: 1;
}
.contact-form-block {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 420px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}
.form-title {
  font-size: 1.15rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
  margin-top: 0;
}
.form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 0.3em;
  color: var(--text-color);
}
.form-group input,
.form-group textarea {
  padding: 0.6em 0.9em;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  background: var(--card-background);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-color);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-accent);
  outline: none;
  box-shadow: 0 0 0 2px #ede9fe;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form .btn {
  margin-top: 1rem;
}

/* Social Links Section */
#social-links {
  text-align: center;
}

#social-links a {
  color: var(--heading-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

#social-links a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#identity.section {
  padding-top: 3rem;
}

.identity-content {
  margin-top: 0;
  padding-top: 0.5rem;
}

/* Alternate Section Background */
.section-alt {
  background: #f5f7fa;
  box-shadow: none;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

/* Remove previous section-specific background rules */
#services-preview.section,
#featured-work.section,
#contact-cta.section {
  background: unset;
  box-shadow: unset;
  border-radius: unset;
  border: unset;
}

#featured-work.section {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-radius: 12px;
  border: none;
}

.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.work-more-link {
  color: var(--primary-accent);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  transition: color 0.2s, background 0.2s, text-decoration 0.2s;
  display: inline-block;
}

.work-more-link:hover,
.work-more-link:focus {
  color: var(--primary-hover);
  text-decoration: underline;
  text-decoration-color: var(--primary-accent);
  background: #f0f7ff;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
}

#featured-work.section,
#contact-cta.section {
  border-top: 1px solid #e0e0e0;
}

.btn,
.cta-buttons .btn {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* --- Global Section Titles --- */
.section-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.25em;
  display: inline-block;
  text-align: left;
  scroll-margin-top: 5rem;
}

[id] {
  scroll-margin-top: 5rem;
}

.project-row {
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.project-row:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.quote-attribution {
  color: #888;
  font-variant: small-caps;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* --- Section Divider --- */
.section-divider {
  text-align: center;
  color: #bbb;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.2em;
}

/* --- Pull Quote --- */
.pullquote {
  border-left: 3px solid var(--primary-accent);
  color: var(--text-color);
  font-style: normal;
  margin: 2rem 2.5rem 2rem 0;
  padding-left: 2.25rem;
  font-size: 1.15rem;
  background: #f8f9fa;
  max-width: 38rem;
  position: relative;
  text-align: left;
}
.pullquote .quote-mark {
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 2.5rem;
  color: #bdbdbd;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pullquote .quote-text {
  font-style: italic;
  color: var(--primary-accent);
}

/* --- Skill Badges --- */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

/* Work page grid modifier */
.skills-grid-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .skills-grid-badges {
    grid-template-columns: 1fr;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skills-category h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--primary-accent);
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.skill-badges li:hover {
  opacity: 0.7;
}

/* --- CTA Block --- */
.cta-block {
  background: #f5f7fa;
  border-radius: 14px;
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 38rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(33,150,243,0.04);
}
.cta-block p { margin-bottom: 0.75rem; font-size:1.15rem; color:var(--primary-accent); }

/* --- About Hero Title/Sub --- */
.hero-title { padding: 2.5rem 0 0.5rem 0; margin-top: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: #888; font-style: italic; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  .pullquote { margin: 1.5rem 0.5rem 1.5rem 0; padding-left: 1.25rem; }
  .cta-block { padding: 1.5rem 0.5rem 2.5rem 0.5rem; }
}

/* --- Nav Active State --- */
.nav-links .active {
  color: var(--primary-accent);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-accent);
}

/* --- Fade In Up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About Hero Title Spacing --- */
.about-hero-title {
  margin-top: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.mt-1 { margin-top: 0.75rem !important; }
.mt-2 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.75rem !important; }
.mb-2 { margin-bottom: 1.5rem !important; }
.pt-1 { padding-top: 0.75rem !important; }
.pt-2 { padding-top: 1.5rem !important; }
.pb-1 { padding-bottom: 0.75rem !important; }
.pb-2 { padding-bottom: 1.5rem !important; }

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

.external-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.external-link:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.external-link span[aria-hidden="true"] {
  font-size: 0.95em;
  margin-left: 0.2em;
  vertical-align: text-top;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: start;
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

.skill-badges li {
  min-width: 160px;
  max-width: 180px;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
  border-radius: 999px;
  background: var(--card-background);
  color: var(--primary-accent);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
  cursor: default;
  gap: 0.5em;
  box-sizing: border-box;
}
.skill-badges .spacer {
  visibility: hidden;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skill-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .skill-badges li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .skill-badges {
    grid-template-columns: 1fr;
  }
}

#skills-tools .cta-block {
  background: #fff;
}

/* Callout labels for packages */
.package-label {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 1em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.package-label.popular {
  background: #ede9fe;
  color: var(--primary-accent);
}
.package-label.entry {
  background: #e0f2f1;
  color: var(--secondary-accent);
}
.package-label.premium {
  background: #fff3e0;
  color: #f57c00;
}

/* Featured/premium card elevation */
.service-item.featured, .service-item.premium {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  border: 1.5px solid #e3f2fd;
  z-index: 1;
  position: relative;
}

/* Timeline badge */
.timeline-badge {
  display: inline-block;
  background: var(--background-color);
  color: var(--primary-accent);
  font-size: 0.95em;
  font-weight: 500;
  border-radius: 1em;
  padding: 0.15em 0.8em 0.15em 0.5em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Section intro/subheader */
.section-intro {
  font-size: 1.1rem;
  color: var(--primary-accent);
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Process step rhythm */
.process-steps {
  gap: 1.25rem;
  margin: 1.5rem 0 1.5rem 0;
}
.process-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.process-step p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Anchor link style */
.anchor-link {
  color: var(--primary-accent);
  text-decoration: underline dotted;
  font-size: 0.98em;
  margin-left: 0.25em;
  cursor: pointer;
}

/* For card alignment: invisible label placeholder */
.package-label.invisible {
  visibility: hidden;
  height: 1.8em;
  display: inline-block;
  margin-bottom: 0.5em;
}

#services-cta .cta-block {
  background: #fff;
}

/* Contact page layout */
.contact-flex {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact-info-block {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-card {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
  font-size: 1.1rem;
}
.contact-icon {
  font-size: 1.1em;
  margin-right: 0.5em;
  vertical-align: middle;
}
.social-block {
  margin-top: 0.5rem;
}
.social-block h3 {
  font-size: 1.05rem;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--primary-accent);
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.2s;
}
.social-link .social-icon {
  font-size: 1.15em;
  opacity: 0.7;
  margin-right: 0.3em;
  transition: opacity 0.2s;
}
.social-link:hover {
  color: var(--primary-hover);
}
.social-link:hover .social-icon {
  opacity: 1;
}
.contact-form-block {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 420px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}
.form-title {
  font-size: 1.15rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
  margin-top: 0;
}
.form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 0.3em;
  color: var(--text-color);
}
.form-group input,
.form-group textarea {
  padding: 0.6em 0.9em;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  background: var(--card-background);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-color);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-accent);
  outline: none;
  box-shadow: 0 0 0 2px #ede9fe;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form .btn {
  margin-top: 1rem;
}

/* Social Links Section */
#social-links {
  text-align: center;
}

#social-links a {
  color: var(--heading-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

#social-links a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#identity.section {
  padding-top: 3rem;
}

.identity-content {
  margin-top: 0;
  padding-top: 0.5rem;
}

/* Alternate Section Background */
.section-alt {
  background: #f5f7fa;
  box-shadow: none;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

/* Remove previous section-specific background rules */
#services-preview.section,
#featured-work.section,
#contact-cta.section {
  background: unset;
  box-shadow: unset;
  border-radius: unset;
  border: unset;
}

#featured-work.section {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-radius: 12px;
  border: none;
}

.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.work-more-link {
  color: var(--primary-accent);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  transition: color 0.2s, background 0.2s, text-decoration 0.2s;
  display: inline-block;
}

.work-more-link:hover,
.work-more-link:focus {
  color: var(--primary-hover);
  text-decoration: underline;
  text-decoration-color: var(--primary-accent);
  background: #f0f7ff;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
}

#featured-work.section,
#contact-cta.section {
  border-top: 1px solid #e0e0e0;
}

.btn,
.cta-buttons .btn {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* --- Global Section Titles --- */
.section-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.25em;
  display: inline-block;
  text-align: left;
  scroll-margin-top: 5rem;
}

[id] {
  scroll-margin-top: 5rem;
}

.project-row {
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.project-row:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.quote-attribution {
  color: #888;
  font-variant: small-caps;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* --- Section Divider --- */
.section-divider {
  text-align: center;
  color: #bbb;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.2em;
}

/* --- Pull Quote --- */
.pullquote {
  border-left: 3px solid var(--primary-accent);
  color: var(--text-color);
  font-style: normal;
  margin: 2rem 2.5rem 2rem 0;
  padding-left: 2.25rem;
  font-size: 1.15rem;
  background: #f8f9fa;
  max-width: 38rem;
  position: relative;
  text-align: left;
}
.pullquote .quote-mark {
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 2.5rem;
  color: #bdbdbd;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pullquote .quote-text {
  font-style: italic;
  color: var(--primary-accent);
}

/* --- Skill Badges --- */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

/* Work page grid modifier */
.skills-grid-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .skills-grid-badges {
    grid-template-columns: 1fr;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skills-category h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--primary-accent);
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.skill-badges li:hover {
  opacity: 0.7;
}

/* --- CTA Block --- */
.cta-block {
  background: #f5f7fa;
  border-radius: 14px;
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 38rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(33,150,243,0.04);
}
.cta-block p { margin-bottom: 0.75rem; font-size:1.15rem; color:var(--primary-accent); }

/* --- About Hero Title/Sub --- */
.hero-title { padding: 2.5rem 0 0.5rem 0; margin-top: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: #888; font-style: italic; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  .pullquote { margin: 1.5rem 0.5rem 1.5rem 0; padding-left: 1.25rem; }
  .cta-block { padding: 1.5rem 0.5rem 2.5rem 0.5rem; }
}

/* --- Nav Active State --- */
.nav-links .active {
  color: var(--primary-accent);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-accent);
}

/* --- Fade In Up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About Hero Title Spacing --- */
.about-hero-title {
  margin-top: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.mt-1 { margin-top: 0.75rem !important; }
.mt-2 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.75rem !important; }
.mb-2 { margin-bottom: 1.5rem !important; }
.pt-1 { padding-top: 0.75rem !important; }
.pt-2 { padding-top: 1.5rem !important; }
.pb-1 { padding-bottom: 0.75rem !important; }
.pb-2 { padding-bottom: 1.5rem !important; }

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

.external-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.external-link:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.external-link span[aria-hidden="true"] {
  font-size: 0.95em;
  margin-left: 0.2em;
  vertical-align: text-top;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: start;
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

.skill-badges li {
  min-width: 160px;
  max-width: 180px;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
  border-radius: 999px;
  background: var(--card-background);
  color: var(--primary-accent);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
  cursor: default;
  gap: 0.5em;
  box-sizing: border-box;
}
.skill-badges .spacer {
  visibility: hidden;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skill-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .skill-badges li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .skill-badges {
    grid-template-columns: 1fr;
  }
}

#skills-tools .cta-block {
  background: #fff;
}

/* Callout labels for packages */
.package-label {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 1em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.package-label.popular {
  background: #ede9fe;
  color: var(--primary-accent);
}
.package-label.entry {
  background: #e0f2f1;
  color: var(--secondary-accent);
}
.package-label.premium {
  background: #fff3e0;
  color: #f57c00;
}

/* Featured/premium card elevation */
.service-item.featured, .service-item.premium {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  border: 1.5px solid #e3f2fd;
  z-index: 1;
  position: relative;
}

/* Timeline badge */
.timeline-badge {
  display: inline-block;
  background: var(--background-color);
  color: var(--primary-accent);
  font-size: 0.95em;
  font-weight: 500;
  border-radius: 1em;
  padding: 0.15em 0.8em 0.15em 0.5em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Section intro/subheader */
.section-intro {
  font-size: 1.1rem;
  color: var(--primary-accent);
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Process step rhythm */
.process-steps {
  gap: 1.25rem;
  margin: 1.5rem 0 1.5rem 0;
}
.process-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.process-step p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Anchor link style */
.anchor-link {
  color: var(--primary-accent);
  text-decoration: underline dotted;
  font-size: 0.98em;
  margin-left: 0.25em;
  cursor: pointer;
}

/* For card alignment: invisible label placeholder */
.package-label.invisible {
  visibility: hidden;
  height: 1.8em;
  display: inline-block;
  margin-bottom: 0.5em;
}

#services-cta .cta-block {
  background: #fff;
}

/* Contact page layout */
.contact-flex {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact-info-block {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-card {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
  font-size: 1.1rem;
}
.contact-icon {
  font-size: 1.1em;
  margin-right: 0.5em;
  vertical-align: middle;
}
.social-block {
  margin-top: 0.5rem;
}
.social-block h3 {
  font-size: 1.05rem;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--primary-accent);
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.2s;
}
.social-link .social-icon {
  font-size: 1.15em;
  opacity: 0.7;
  margin-right: 0.3em;
  transition: opacity 0.2s;
}
.social-link:hover {
  color: var(--primary-hover);
}
.social-link:hover .social-icon {
  opacity: 1;
}
.contact-form-block {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 420px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}
.form-title {
  font-size: 1.15rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
  margin-top: 0;
}
.form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 0.3em;
  color: var(--text-color);
}
.form-group input,
.form-group textarea {
  padding: 0.6em 0.9em;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  background: var(--card-background);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-color);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-accent);
  outline: none;
  box-shadow: 0 0 0 2px #ede9fe;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form .btn {
  margin-top: 1rem;
}

/* Social Links Section */
#social-links {
  text-align: center;
}

#social-links a {
  color: var(--heading-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

#social-links a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#identity.section {
  padding-top: 3rem;
}

.identity-content {
  margin-top: 0;
  padding-top: 0.5rem;
}

/* Alternate Section Background */
.section-alt {
  background: #f5f7fa;
  box-shadow: none;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

/* Remove previous section-specific background rules */
#services-preview.section,
#featured-work.section,
#contact-cta.section {
  background: unset;
  box-shadow: unset;
  border-radius: unset;
  border: unset;
}

#featured-work.section {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-radius: 12px;
  border: none;
}

.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.work-more-link {
  color: var(--primary-accent);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.25em 0.75em;
  transition: color 0.2s, background 0.2s, text-decoration 0.2s;
  display: inline-block;
}

.work-more-link:hover,
.work-more-link:focus {
  color: var(--primary-hover);
  text-decoration: underline;
  text-decoration-color: var(--primary-accent);
  background: #f0f7ff;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
}

#featured-work.section,
#contact-cta.section {
  border-top: 1px solid #e0e0e0;
}

.btn,
.cta-buttons .btn {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* --- Global Section Titles --- */
.section-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.25em;
  display: inline-block;
  text-align: left;
  scroll-margin-top: 5rem;
}

[id] {
  scroll-margin-top: 5rem;
}

.project-row {
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.project-row:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.quote-attribution {
  color: #888;
  font-variant: small-caps;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* --- Section Divider --- */
.section-divider {
  text-align: center;
  color: #bbb;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.2em;
}

/* --- Pull Quote --- */
.pullquote {
  border-left: 3px solid var(--primary-accent);
  color: var(--text-color);
  font-style: normal;
  margin: 2rem 2.5rem 2rem 0;
  padding-left: 2.25rem;
  font-size: 1.15rem;
  background: #f8f9fa;
  max-width: 38rem;
  position: relative;
  text-align: left;
}
.pullquote .quote-mark {
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 2.5rem;
  color: #bdbdbd;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pullquote .quote-text {
  font-style: italic;
  color: var(--primary-accent);
}

/* --- Skill Badges --- */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

/* Work page grid modifier */
.skills-grid-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .skills-grid-badges {
    grid-template-columns: 1fr;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skills-category h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--primary-accent);
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.skill-badges li:hover {
  opacity: 0.7;
}

/* --- CTA Block --- */
.cta-block {
  background: #f5f7fa;
  border-radius: 14px;
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 38rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(33,150,243,0.04);
}
.cta-block p { margin-bottom: 0.75rem; font-size:1.15rem; color:var(--primary-accent); }

/* --- About Hero Title/Sub --- */
.hero-title { padding: 2.5rem 0 0.5rem 0; margin-top: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: #888; font-style: italic; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  .pullquote { margin: 1.5rem 0.5rem 1.5rem 0; padding-left: 1.25rem; }
  .cta-block { padding: 1.5rem 0.5rem 2.5rem 0.5rem; }
}

/* --- Nav Active State --- */
.nav-links .active {
  color: var(--primary-accent);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-accent);
}

/* --- Fade In Up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About Hero Title Spacing --- */
.about-hero-title {
  margin-top: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.mt-1 { margin-top: 0.75rem !important; }
.mt-2 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.75rem !important; }
.mb-2 { margin-bottom: 1.5rem !important; }
.pt-1 { padding-top: 0.75rem !important; }
.pt-2 { padding-top: 1.5rem !important; }
.pb-1 { padding-bottom: 0.75rem !important; }
.pb-2 { padding-bottom: 1.5rem !important; }

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

.external-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.external-link:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.external-link span[aria-hidden="true"] {
  font-size: 0.95em;
  margin-left: 0.2em;
  vertical-align: text-top;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: start;
}

.skills-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
  max-width: 38rem;
}

.skill-badges-vertical {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .skill-badges-vertical li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0 auto;
  }
}

.skill-badges li {
  min-width: 160px;
  max-width: 180px;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
  border-radius: 999px;
  background: var(--card-background);
  color: var(--primary-accent);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
  cursor: default;
  gap: 0.5em;
  box-sizing: border-box;
}
.skill-badges .spacer {
  visibility: hidden;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    justify-items: center;
  }
  .skills-category {
    align-items: center;
    width: 100%;
  }
  .skill-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .skill-badges li {
    min-width: 120px;
    max-width: 100%;
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .skill-badges {
    grid-template-columns: 1fr;
  }
}

#skills-tools .cta-block {
  background: #fff;
}

/* Callout labels for packages */
.package-label {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 1em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.package-label.popular {
  background: #ede9fe;
  color: var(--primary-accent);
}
.package-label.entry {
  background: #e0f2f1;
  color: var(--secondary-accent);
}
.package-label.premium {
  background: #fff3e0;
  color: #f57c00;
}

/* Featured/premium card elevation */
.service-item.featured, .service-item.premium {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  border: 1.5px solid #e3f2fd;
  z-index: 1;
  position: relative;
}

/* Timeline badge */
.timeline-badge {
  display: inline-block;
  background: var(--background-color);
  color: var(--primary-accent);
  font-size: 0.95em;
  font-weight: 500;
  border-radius: 1em;
  padding: 0.15em 0.8em 0.15em 0.5em;
  margin-bottom: 0.5em;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Section intro/subheader */
.section-intro {
  font-size: 1.1rem;
  color: var(--primary-accent);
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Process step rhythm */
.process-steps {
  gap: 1.25rem;
  margin: 1.5rem 0 1.5rem 0;
}
.process-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.process-step p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Anchor link style */
.anchor-link {
  color: var(--primary-accent);
  text-decoration: underline dotted;
  font-size: 0.98em;
  margin-left: 0.25em;
  cursor: pointer;
}

/* For card alignment: invisible label placeholder */
.package-label.invisible {
  visibility: hidden;
  height: 1.8em;
  display: inline-block;
  margin-bottom: 0.5em;
}

#services-cta .cta-block {
  background: #fff;
}

/* Contact page layout */
.contact-flex {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact-info-block {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-card {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
  font-size: 1.1rem;
}
.contact-icon {
  font-size: 1.1em;
  margin-right: 0.5em;
  vertical-align: middle;
}
.social-block {
  margin-top: 0.5rem;
}
.social-block h3 {
  font-size: 1.05rem;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--primary-accent);
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.2s;
}
.social-link .social-icon {
  font-size: 1.15em;
  opacity: 0.7;
  margin-right: 0.3em;
  transition: opacity 0.2s;
}
.social-link:hover {
  color: var(--primary-hover);
}
.social-link:hover .social-icon {
  opacity: 1;
}
.contact-form-block {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 420px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.04);
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}
.form-title {
  font-size: 1.15rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
  margin-top: 0;
}
.form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 0.3em;
  color: var(--text-color);
}
.form-group input,
.form-group textarea {
  padding: 0.6em 0.9em;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  background: var(--card-background);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-color);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-accent);
  outline: none;
  box-shadow: 0 0 0 2px #ede9fe;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form .btn {
  margin-top: 1rem;
}

/* Social Links Section */
#social-links {
  text-align: center;
}

#social-links a {
  color: var(--heading-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

#social-links a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#identity.section {
  padding-top: 3rem;
}

.identity-content {
  margin-top: 0;
  padding-top: 0.5rem;
}

/* Alternate Section Background */
.section-alt.services-preview {
  background: linear-gradient(135deg, #f8f6f3 0%, #f0ece6 100%);
  border-top: 1px solid #e0dbd3;
  border-bottom: 1px solid #e0dbd3;
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.section-alt.services-preview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background: url('/assets/service-bg.png') center/cover repeat;
  opacity: 0.05;
  pointer-events: none;
}

.section-alt.services-preview::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(203, 161, 53, 0.3) 50%, transparent 100%);
  z-index: 1;
}

.services-preview {
  background: none;
  margin-top: 0;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.services-preview h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #621c38;
  font-size: 3rem;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-preview.visible h2 {
  opacity: 1;
  transform: translateY(0);
}

.services-preview h2::after {
  content: '';
  position: absolute;
  bottom: -0.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #cba135, #a6782d);
  border-radius: 2px;
}

.services-preview h2::before {
  display: none;
}

/* Enhanced Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  justify-content: center;
  align-items: start;
  padding: 3rem 0 0 0;
  background: none;
  border: none;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .services-preview h2 {
    font-size: 2.5rem;
  }
  
  .services-preview {
    padding: 0 1rem;
  }
}

/* Enhanced Service Items */
.service-item {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-item:nth-child(2) {
  margin-top: 2rem;
}

.service-item:nth-child(3) {
  margin-top: 4rem;
}

.service-item h3 {
  font-family: 'Playfair Display', serif;
  font-variant: small-caps;
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: #621c38;
  text-align: left;
  min-height: 2.8em;
  line-height: 1.3;
  margin-bottom: 1rem;
  margin-top: 0;
  position: relative;
  display: block;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item h3::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: -0.4em;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #cba135, #a6782d);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

.service-item:hover h3::after,
.service-item h3:focus::after {
  width: 100%;
}

.service-item:hover h3,
.service-item h3:focus {
  color: #cba135;
}

.service-item:hover, 
.service-item:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: #cba135;
  border-radius: 20px;
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-item p,
.service-item .service-lead {
  font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
  color: #3a3a38;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
  margin-bottom: 1.5em;
  margin-top: 0;
  font-weight: 400;
}

.service-item > :last-child {
  margin-bottom: 1.5rem;
}

/* Enhanced CTA Button */
.services-preview .cta-container {
  text-align: center;
  margin-top: 4rem;
  position: relative;
  z-index: 2;
}

.services-preview .cta-container .btn {
  background: linear-gradient(135deg, #cba135 0%, #a6782d 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(203, 161, 53, 0.3);
  border: none;
  position: relative;
  overflow: hidden;
}

.services-preview .cta-container .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.services-preview .cta-container .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(203, 161, 53, 0.4);
}

.services-preview .cta-container .btn:hover::before {
  left: 100%;
}

/* Staggered animation delays for service items */
.service-grid.visible .service-item:nth-child(1) { transition-delay: 0.1s; }
.service-grid.visible .service-item:nth-child(2) { transition-delay: 0.25s; }
.service-grid.visible .service-item:nth-child(3) { transition-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 480px) {
  .service-item {
    padding: 2.5rem 1.5rem 2rem 1.5rem;
  }
  
  .service-item h3 {
    font-size: 1.1rem;
  }
  
  .services-preview h2 {
    font-size: 2rem;
  }
}

/* === ABOUT INTRO SECTION === */
.about-intro-section {
  width: 100%;
  background: linear-gradient(135deg, #fffdf8 0%, #faf9f7 100%);
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  /* Removed opacity: 0 and transform: translateY(40px); */
  transition: none;
}

.about-intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 50% 30%, rgba(203, 161, 53, 0.08) 0%, transparent 70%),
    radial-gradient(circle at 80% 80%, rgba(98, 28, 56, 0.03) 0%, transparent 60%),
    url('/assets/css/noise.png');
  background-size: cover, cover, 340px;
  background-repeat: no-repeat, no-repeat, repeat;
  pointer-events: none;
  z-index: 1;
  opacity: 0.98;
}

.about-intro-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: none;
  z-index: 2;
}

.about-intro-bgword {
  position: absolute;
  top: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 7.5rem;
  font-weight: 900;
  color: #cba135;
  opacity: 0.06;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  white-space: nowrap;
  line-height: 1;
}

@media (max-width: 900px) {
  .about-intro-section { padding: 0 0 3.5rem 0; }
  .about-intro-inner { padding: 3.5rem 1rem 2.5rem 1rem; }
  .about-intro-bgword { font-size: 4.2rem; top: -1.2rem; }
}
@media (max-width: 600px) {
  .about-intro-section { padding: 0 0 2.2rem 0; }
  .about-intro-inner { padding: 2.2rem 1rem 1.5rem 1rem; }
  .about-intro-bgword { font-size: 2.2rem; top: -0.5rem; }
}

.about-intro-body p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #2c1810;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}
.about-intro-cta {
  margin-top: 1.7rem;
}

.about-monogram {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: auto;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: opacity 0.3s ease;
  object-fit: contain;
}

.about-intro-section:hover .about-monogram {
  opacity: 0.1;
}

.about-intro-heading-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-intro-heading-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-intro-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  font-weight: 800;
  color: #621c38;
  letter-spacing: 0.01em;
  margin-bottom: 0.2rem;
  text-align: left;
  transition: color 0.3s ease;
}

.about-intro-section:hover .about-intro-heading {
  color: #4a1629;
}

.about-intro-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #cba135 0%, #a6782d 100%);
  border-radius: 2px;
  margin-bottom: 0.5rem;
  transition: width 0.3s ease, background 0.3s ease;
}

.about-intro-section:hover .about-intro-divider {
  width: 64px;
  background: linear-gradient(90deg, #d4b44a 0%, #b88a3a 100%);
}

.about-intro-body {
  font-family: 'Inter', 'Space Grotesk', Arial, sans-serif;
  font-size: 1.13rem;
  color: #2c1810;
  line-height: 1.7;
  max-width: 600px;
  z-index: 2;
  text-align: left;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-intro-body.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-intro-body p {
  margin-bottom: 0.8rem;
  transition: transform 0.3s ease;
}

.about-intro-body p:last-child {
  margin-bottom: 0;
}

.about-intro-section:hover .about-intro-body p {
  transform: translateX(4px);
}

@media (max-width: 700px) {
  .about-intro-inner { padding: 2.2rem 1rem 1.5rem 1rem; }
  .about-monogram { width: 50%; height: auto; top: 0; left: 0; }
  .about-intro-heading { font-size: 1.3rem; }
  .about-intro-divider { width: 32px; height: 2px; }
  .about-intro-body { font-size: 1rem; line-height: 1.6; }
  .about-intro-cta { margin-top: 1.2rem; }
  .about-link { font-size: 0.9rem; }
  .about-intro-section:hover .about-intro-divider { width: 40px; }
  .about-intro-section:hover .about-intro-body p { transform: translateX(2px); }
  .about-link:hover { transform: translateX(2px); }
} 

/* === LET'S WORK TOGETHER CTA SECTION === */
#contact-cta.section {
  position: relative;
  overflow: visible;
  background: linear-gradient(135deg, #f8f6f3 0%, #f4f2ef 100%);
  border-radius: 16px;
  box-shadow: 
    0 4px 20px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

#contact-cta.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(203, 161, 53, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(98, 28, 56, 0.02) 0%, transparent 50%);
  border-radius: 16px;
  pointer-events: none;
}

#contact-cta .cta {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

#contact-cta .cta-content {
  position: relative;
  z-index: 2;
}

#contact-cta .cta h2,
#contact-cta .cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#contact-cta.visible .cta h2,
#contact-cta.visible .cta-title {
  opacity: 1;
  transform: translateY(0);
}

#contact-cta .cta h2::before,
#contact-cta .cta-title::before {
  content: 'MA';
  position: absolute;
  left: -48px;
  top: -24px;
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  font-weight: 900;
  color: var(--primary-accent);
  opacity: 0.08;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  transform: rotate(-5deg);
}

#contact-cta .cta p,
#contact-cta .cta-description {
  font-size: 1.25rem;
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.2s;
}

#contact-cta.visible .cta p,
#contact-cta.visible .cta-description {
  opacity: 1;
  transform: translateY(0);
}

#contact-cta .cta-buttons {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.4s;
}

#contact-cta.visible .cta-buttons {
  opacity: 1;
  transform: translateY(0);
}

#contact-cta .cta-buttons .btn {
  position: relative;
  padding: 1.1rem 2.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(203, 161, 53, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

#contact-cta .cta-buttons .btn-arrow {
  font-size: 1.2em;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
}

#contact-cta .cta-buttons .btn:hover .btn-arrow {
  transform: translateX(4px);
  opacity: 1;
}

#contact-cta .cta-buttons .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#contact-cta .cta-buttons .btn:hover::before {
  left: 100%;
}

#contact-cta .cta-buttons .btn-secondary {
  position: relative;
  left: 18px;
  background: transparent;
  color: var(--heading-color);
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#contact-cta .cta-buttons .btn-secondary:hover {
  background: var(--heading-color);
  color: white;
  border-color: var(--heading-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(98, 28, 56, 0.2);
}

#contact-cta .cta-buttons .btn:not(.btn-secondary) {
  background: linear-gradient(135deg, var(--primary-accent) 0%, var(--primary-hover) 100%);
  color: white;
  border: 2px solid #621c38;
  box-shadow: 0 4px 16px rgba(203,161,53,0.25);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#contact-cta .cta-buttons .btn:not(.btn-secondary):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(203, 161, 53, 0.35);
  border-color: #4a152a;
}

/* Decorative elements */
#contact-cta.section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-accent), transparent);
  border-radius: 2px;
  opacity: 0.6;
}

@media (max-width: 768px) {
  #contact-cta.section {
    margin: 3rem 1rem;
    padding: 3rem 0;
  }
  
  #contact-cta .cta {
    padding: 0 1.5rem;
  }
  
  #contact-cta .cta h2,
  #contact-cta .cta-title {
    font-size: 2.4rem;
    left: 0;
  }
  
  #contact-cta .cta h2::before,
  #contact-cta .cta-title::before {
    font-size: 4rem;
    left: -24px;
    top: -16px;
  }
  
  #contact-cta .cta p,
  #contact-cta .cta-description {
    font-size: 1.1rem;
  }
  
  #contact-cta .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  #contact-cta .cta-buttons .btn-secondary {
    left: 0;
  }
  
  #contact-cta .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  #contact-cta.section {
    margin: 2rem 0.5rem;
    padding: 2.5rem 0;
  }
  
  #contact-cta .cta h2,
  #contact-cta .cta-title {
    font-size: 2rem;
  }
  
  #contact-cta .cta h2::before,
  #contact-cta .cta-title::before {
    font-size: 3.2rem;
    left: -16px;
    top: -12px;
  }
  
  #contact-cta .cta p,
  #contact-cta .cta-description {
    font-size: 1rem;
  }
}

/* Fade-in-up for CTA section */
#contact-cta {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
#contact-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax Hero Section Layering and Centering */
.cinematic-hero {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: none;
  margin: 0;
  padding: 0;
}

.hero-parallax-stack {
  position: absolute;
  top: 0; left: 0; width: 100vw; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.hero-px-bg,
.hero-px-mg,
.hero-px-fg,
.hero-px-ctr {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero-px-mg { z-index: 2; }
.hero-px-ctr { z-index: 3; }
.hero-px-fg { z-index: 4; }

.hero-parallax-content {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero-title {
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.hero-subtitle {
  font-size: 1.4rem;
  font-style: italic;
  color: #cba135;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  font-weight: 300;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffffff;
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1.5rem;
  box-shadow: 0 2px 12px rgba(255,255,255,0.1);
}
.hero-cta-btn:hover,
.hero-cta-btn:focus {
  background: transparent;
  color: #cba135;
  border-color: #cba135;
  box-shadow: 0 4px 24px rgba(203,161,53,0.2);
  transform: translateY(-2px);
}

.about-intro-cta {
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.4s;
}

.about-intro-body.visible .about-intro-cta {
  opacity: 1;
  transform: translateY(0);
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', 'Space Grotesk', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #cba135;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.about-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #cba135 0%, #a6782d 100%);
  transition: width 0.3s ease;
}

.about-link:hover {
  color: #a6782d;
  transform: translateX(4px);
}

.about-link:hover::before {
  width: 100%;
}

.about-link span {
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.about-link:hover span {
  transform: translateX(2px);
}

/* Service Header Structure */
.service-header {
  margin-bottom: 1.5rem;
}

.service-header h3 {
  margin-bottom: 0.75rem;
}

.service-header .price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #cba135;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.service-header .timeline-badge {
  display: inline-block;
  background: rgba(203, 161, 53, 0.1);
  color: #a6782d;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(203, 161, 53, 0.2);
  font-family: 'Inter', Arial, sans-serif;
  letter-spacing: 0.02em;
}

/* Service Features List */
.service-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.service-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
  color: #3a3a38;
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #cba135;
  font-weight: bold;
  font-size: 1rem;
}

/* Service CTA Link */
.service-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', Arial, sans-serif;
  text-transform: uppercase;
  font-size: 0.875rem;
  color: #a6782d;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  padding: 0.5rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.service-cta-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, #cba135, #a6782d);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-cta-link:hover {
  color: #cba135;
  transform: translateX(4px);
}

.service-cta-link:hover::after {
  width: 100%;
}

.service-cta-link span {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-cta-link:hover span {
  transform: translateX(2px);
}

/* Package Labels */
.package-label {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: linear-gradient(135deg, #cba135, #a6782d);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Inter', Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(203, 161, 53, 0.3);
}

.package-label.popular {
  background: linear-gradient(135deg, #621c38, #4a1528);
}

.package-label.premium {
  background: linear-gradient(135deg, #cba135, #a6782d);
}

.package-label.entry {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

/* Limitations Styling */
.limitations {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(203, 161, 53, 0.05);
  border-left: 3px solid #cba135;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #3a3a38;
  font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
  line-height: 1.5;
}

.limitations strong {
  color: #621c38;
  font-weight: 600;
}

/* --- Services Section Polish --- */
.services-intro {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2.5rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.services-subheading {
  font-style: italic;
  font-weight: 300;
  color: #999;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.services-cta {
  margin-top: 1rem !important;
}

/* Services section CTA button: gold outline, gold text, no fill */
.services-btn {
  font-weight: 700 !important;
  font-size: 1.13rem !important;
  padding: 0.95em 2.2em !important;
  border-radius: 2em !important;
  letter-spacing: 0.07em !important;
  background: none !important;
  color: #cba135 !important;
  border: 2.5px solid #cba135 !important;
  box-shadow: none !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s !important;
}
.services-btn:hover, .services-btn:focus {
  background: #cba135 !important;
  color: #fff !important;
  border-color: #cba135 !important;
  box-shadow: 0 6px 24px rgba(203,161,53,0.13) !important;
}

.services-preview h2 {
  margin-bottom: 0.5rem;
}
.services-preview h2::after {
  content: '';
  position: absolute;
  bottom: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: linear-gradient(90deg, #cba135 0%, #a6782d 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(203,161,53,0.13);
}
.services-preview h2::before {
  content: '';
  position: absolute;
  bottom: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 1.5px;
  background: rgba(203, 161, 53, 0.25);
}

/* Subtle background for services section */
#services-preview {
  background: linear-gradient(120deg, #f8f6f3 60%, #f4f2ef 100%);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(98,28,56,0.04);
  padding-bottom: 3.5rem;
}

/* Service Grid Spacing & Card Polish */
.service-grid {
  gap: 3.5rem;
  padding-top: 1.5rem;
}
@media (min-width: 1200px) {
  .service-grid {
    gap: 4.5rem;
  }
}
.service-item {
  background: linear-gradient(145deg, #f9f7f4 0%, #f4f2ef 100%);
  border: 1.5px solid #d6c6ae;
  border-top: 5px solid #cba135;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(98,28,56,0.07);
  padding: 3.5rem 2.2rem 2.5rem 2.2rem;
  margin: 0 auto;
  transition: box-shadow 0.3s cubic-bezier(.4,0,.2,1), border-top 0.22s cubic-bezier(.4,0,.2,1), transform 0.22s cubic-bezier(.4,0,.2,1);
}
.service-item:hover, .service-item:focus-within {
  box-shadow: 0 16px 48px rgba(98,28,56,0.13), 0 2px 8px rgba(203,161,53,0.10);
  border-top: 5px solid transparent;
  border-image: linear-gradient(to right, #cba135, #a6782d);
  border-image-slice: 1;
  transform: translateY(-6px) scale(1.025);
}
.service-item h3 {
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  letter-spacing: 0.07em;
}
.service-item h3::after {
  height: 2.5px;
  background: linear-gradient(90deg, #cba135, #a6782d);
  border-radius: 1.5px;
  transition: width 0.32s cubic-bezier(.4,0,.2,1);
}
.service-item:hover h3::after,
.service-item h3:focus::after {
  width: 100%;
}
.service-item p,
.service-item .service-lead {
  font-size: 1.05rem;
  margin-bottom: 1.3em;
}
.service-cta-link {
  color: #a6782d;
  font-size: 1.01rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
}
.service-cta-link:hover {
  color: #cba135;
  border-bottom: 1.5px solid #cba135;
}

/* CTA Button Polish */
.services-preview .cta-container .btn {
  font-size: 1.18rem;
  padding: 1.15rem 3.2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #cba135 0%, #a6782d 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 32px rgba(203,161,53,0.18);
  border: 2px solid #cba135;
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(.4,0,.2,1);
}
.services-preview .cta-container .btn:hover {
  background: linear-gradient(135deg, #a6782d 0%, #cba135 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 40px rgba(203,161,53,0.22);
}
.services-preview .cta-container .btn::after {
  content: '';
  position: absolute;
  left: -60%;
  top: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,rgba(255,255,255,0.18) 0%,rgba(255,255,255,0.01) 100%);
  transform: skewX(-18deg);
  transition: left 0.5s;
  pointer-events: none;
}
.services-preview .cta-container .btn:hover::after {
  left: 120%;
}

/* Responsive Tweaks */
@media (max-width: 900px) {
  .service-grid {
    gap: 2.2rem;
  }
  .service-item {
    padding: 2.5rem 1.2rem 2rem 1.2rem;
  }
}
@media (max-width: 600px) {
  .services-preview h2 {
    font-size: 2rem;
  }
  .services-intro {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
  .service-item {
    padding: 1.5rem 0.7rem 1.2rem 0.7rem;
  }
  .services-preview .cta-container .btn {
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
  }
}

/* Services intro left align */
.services-intro {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 600px;
  margin-bottom: 2.2rem;
  margin-top: 0.2rem;
  margin-left: auto;
  margin-right: auto;
}

/* Remove grey line and move gold line up */
.services-preview h2::before {
  display: none;
}
.services-preview h2::after {
  bottom: -0.2rem;
}

/* Align gold divider and subtitle to left edge of section title */
.services-preview {
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}
.services-preview h2 {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  position: relative;
}
.services-preview h2::after {
  left: 0;
  transform: none;
}
.services-intro {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 600px;
  margin-bottom: 2.2rem;
  margin-top: 0.2rem;
}

/* Buttons - Sleek Boutique Design */
.btn, .btn-secondary {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-transform: none;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  backdrop-filter: blur(10px);
}

.btn::before, .btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.2),
    rgba(255, 215, 0, 0.4),
    rgba(255, 215, 0, 0.2),
    transparent
  );
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.btn::after, .btn-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.1) 0%, 
    rgba(255, 215, 0, 0.05) 50%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  border-radius: inherit;
}

.btn:hover, .btn:focus, .btn-secondary:hover, .btn-secondary:focus {
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  color: #ffffff;
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 0 1px rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.btn:hover::before, .btn:focus::before, .btn-secondary:hover::before, .btn-secondary:focus::before {
  left: 100%;
}

.btn:hover::after, .btn:focus::after, .btn-secondary:hover::after, .btn-secondary:focus::after {
  opacity: 1;
}

.btn:active, .btn-secondary:active {
  transform: translateY(0);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Secondary Button Variant */
.btn-secondary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: #ffffff;
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 215, 0, 0.15);
}

/* Button Text Styling */
.btn span, .btn-secondary span {
  position: relative;
  z-index: 3;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Special Button for Hero Section */
.hero-cta-btn {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 215, 0, 0.1);
  font-size: 1.1rem;
  padding: 1.2rem 3rem;
  font-weight: 600;
}

.hero-cta-btn:hover,
.hero-cta-btn:focus {
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 0 1px rgba(255, 215, 0, 0.2);
  transform: translateY(-3px);
}

/* Contact Form Button */
.contact-form .btn {
  width: 100%;
  max-width: 300px;
  margin: 1.5rem auto 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.contact-form .btn:hover,
.contact-form .btn:focus {
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  border-color: rgba(255, 215, 0, 0.4);
}

/* Services CTA Button */
.services-preview .cta-container .btn {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  font-size: 1rem;
  padding: 1.1rem 2.8rem;
}

.services-preview .cta-container .btn:hover,
.services-preview .cta-container .btn:focus {
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

/* Responsive Button Adjustments */
@media (max-width: 768px) {
  .btn, .btn-secondary {
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  
  .hero-cta-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }
  
  .services-preview .cta-container .btn {
    padding: 1rem 2.2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .btn, .btn-secondary {
    padding: 0.8rem 1.8rem;
    font-size: 0.85rem;
    min-height: 40px;
  }
  
  .hero-cta-btn {
    padding: 0.9rem 2.2rem;
    font-size: 0.95rem;
  }
}

/* Boutique Button Styles */
.btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #cba135;
  color: #fff;
  border: 2px solid #cba135;
  border-radius: 8px;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 2rem;
  transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(203,161,53,0.10);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.btn:hover, .btn:focus {
  background: #a6782d;
  color: #fff;
  border-color: #a6782d;
  box-shadow: 0 4px 16px rgba(166,120,45,0.18);
}

/* Secondary Button */
.btn-secondary {
  background: transparent;
  color: #cba135;
  border: 2px solid #cba135;
  border-radius: 8px;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 2rem;
  transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(203,161,53,0.10);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, #ffe9a7 40%, rgba(255,255,255,0.0) 100%);
  opacity: 0.7;
  transform: skewX(-18deg);
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}

.btn-secondary:hover::before, .btn-secondary:focus::before {
  left: 110%;
}

.btn-secondary:hover, .btn-secondary:focus {
  background: #a6782d;
  color: #fff;
  border-color: #a6782d;
  box-shadow: 0 4px 16px rgba(166,120,45,0.18);
}

/* Responsive Button Adjustments */
@media (max-width: 768px) {
  .btn, .btn-secondary {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    min-height: 44px;
  }
}
@media (max-width: 480px) {
  .btn, .btn-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    min-height: 40px;
  }
}

/* Hero Button - Special Style */
.hero-cta-btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(255,255,255,0.10);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.hero-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, #ffe9a7 40%, rgba(255,255,255,0.0) 100%);
  opacity: 0;
  transform: skewX(-18deg);
  transition: left 0.6s cubic-bezier(.4,0,.2,1), opacity 0.4s;
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}

.hero-cta-btn:hover::before, .hero-cta-btn:focus::before {
  left: 110%;
  opacity: 0.8;
}

.hero-cta-btn:hover, .hero-cta-btn:focus {
  background: transparent;
  color: #cba135;
  border-color: #cba135;
  box-shadow: 0 4px 16px rgba(203,161,53,0.25);
  transform: translateY(-2px);
}

/* Responsive Hero Button */
@media (max-width: 768px) {
  .hero-cta-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-cta-btn {
    padding: 0.9rem 2.2rem;
    font-size: 0.95rem;
  }
}

/* --- Featured Work Grid --- */
}


  color: white;
  max-width: 90%;
}

  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

}

    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  

.featured-work-intro {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .featured-work-header {
    margin-bottom: 2rem;
  }
  
  .featured-work-intro {
    font-size: 1rem;
  }
}

/* Featured work grid animations */
  transform: translateY(0);
}

/* Stagger delays for featured work cards */
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.10), 0 1.5px 6px rgba(0,0,0,0.07);
  border-left-color: var(--primary-hover);
  transform: translateY(-2px);
}

}

  color: var(--primary-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

}


/* Remove image/overlay rules for text-only cards */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(203, 161, 53, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(98, 28, 56, 0.02) 0%, transparent 50%);
  border-radius: 16px;
  pointer-events: none;
}

.contact-cta-enhanced .cta-content {
  position: relative;
  z-index: 2;
}

.contact-cta-enhanced .cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  position: relative;
}

.contact-cta-enhanced .cta-title::before {
  content: 'MA';
  position: absolute;
  left: -40px;
  top: -20px;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary-accent);
  opacity: 0.08;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  transform: rotate(-5deg);
}

.contact-cta-enhanced .cta-description {
  font-size: 1.2rem;
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-cta-enhanced .cta-button-container {
  margin-top: 1.5rem;
}

.contact-cta-enhanced .cta-button {
  position: relative;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: transparent;
  color: var(--heading-color);
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.contact-cta-enhanced .cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-cta-enhanced .cta-button:hover::before {
  left: 100%;
}

.contact-cta-enhanced .cta-button:hover {
  background: var(--heading-color);
  color: white;
  border-color: var(--heading-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(98, 28, 56, 0.2);
}

.contact-cta-enhanced .btn-arrow {
  font-size: 1.2em;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
}

.contact-cta-enhanced .cta-button:hover .btn-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Decorative bottom line */
.contact-cta-enhanced::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-accent), transparent);
  border-radius: 2px;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .contact-cta-enhanced {
    padding: 2.5rem 1.5rem;
    margin: 2rem 1rem;
  }
  
  .contact-cta-enhanced .cta-title {
    font-size: 2.2rem;
  }
  
  .contact-cta-enhanced .cta-title::before {
    font-size: 3.5rem;
    left: -24px;
    top: -12px;
  }
  
  .contact-cta-enhanced .cta-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .contact-cta-enhanced {
    padding: 2rem 1rem;
    margin: 1.5rem 0.5rem;
  }
  
  .contact-cta-enhanced .cta-title {
    font-size: 1.8rem;
  }
  
  .contact-cta-enhanced .cta-title::before {
    font-size: 2.8rem;
    left: -16px;
    top: -8px;
  }
  
  .contact-cta-enhanced .cta-description {
    font-size: 1rem;
  }
  
  .contact-cta-enhanced .cta-button {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Section Divider Utility */
.section-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-accent), transparent);
  margin: 0 0 2.5rem 0;
  border-radius: 2px;
  opacity: 0.18;
}

#featured-work {
  margin-bottom: 0;
}

#featured-work + .section-divider {
  margin-top: 0;
}

@media (max-width: 700px) {
  .section-divider {
    margin: 0 0 1.5rem 0;
  }
}

/* Unified Button Styles */

.btn:hover .btn-arrow,
.service-cta-link:hover span,
  padding: 2rem 1.5rem;
}

@media (max-width: 700px) {
}
.section-subheading {
font-family: 'Inter', 'Space Grotesk', Arial, sans-serif;
font-variant: small-caps;
letter-spacing: 0.13em;
color: #a6782d;
font-size: 1.18rem;
margin-bottom: 2.5rem;
margin-top: 0.1rem;
opacity: 0.85;
max-width: 750px;
}