/* Global reset: keeps spacing and sizing predictable across the whole site */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Design tokens: edit these first if you want to change the site style later */
:root {
  --bg: #fff7f5;
  --bg-alt: #f7ebe9;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-soft: #fff0f1;
  --text: #1f1718;
  --muted: #5f5356;
  --brand: #b51f2d;
  --brand-strong: #8f1420;
  --brand-deep: #5f0d16;
  --brand-soft: #ffe0e3;
  --brand-glow: rgba(181, 31, 45, 0.14);
  --ink: #2d1f22;
  --line: rgba(104, 45, 51, 0.14);
  --shadow: 0 22px 60px rgba(109, 29, 39, 0.12);
  --radius: 28px;
  --radius-sm: 18px;
  --max-width: 1180px;
}

/* Base document settings */
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: clip;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(181, 31, 45, 0.14), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(143, 20, 32, 0.12), transparent 20%),
    linear-gradient(180deg, #fff9f7 0%, #fdf2ef 40%, #f7ebe9 100%);
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

/* Dark mode swaps the palette while keeping the same layout */
body.dark {
  --bg: #141112;
  --bg-alt: #1d1618;
  --surface: rgba(32, 24, 26, 0.94);
  --surface-strong: #221a1c;
  --surface-soft: rgba(181, 31, 45, 0.12);
  --text: #f9f2f2;
  --muted: #d1bec0;
  --brand: #ff6775;
  --brand-strong: #ff8b95;
  --brand-deep: #ffd1d5;
  --brand-soft: rgba(255, 103, 117, 0.14);
  --brand-glow: rgba(255, 103, 117, 0.16);
  --ink: #fff5f5;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  background:
    radial-gradient(circle at top left, rgba(255, 103, 117, 0.12), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(255, 139, 149, 0.12), transparent 20%),
    linear-gradient(180deg, #141112 0%, #191315 42%, #110d0e 100%);
}

/* Background texture for a bit of depth without adding clutter */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 140px 140px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 78%);
  opacity: 0.32;
}

body.article-page::after {
  content: "";
  position: fixed;
  inset: auto -10vw 15vh auto;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow), transparent 68%);
  pointer-events: none;
  filter: blur(4px);
}

/* Basic element defaults */
a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(181, 31, 45, 0.28);
  outline-offset: 3px;
}

/* Main content width wrapper used on nearly every section */
.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 999;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  color: white;
  background: var(--brand);
}

.skip-link:focus {
  left: 1rem;
}

/* Sticky site header so navigation stays close by */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 247, 245, 0.82);
  backdrop-filter: blur(18px);
}

body.dark .site-header {
  background: rgba(20, 17, 18, 0.82);
}

/* Header layout: brand on the left, nav on the right */
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand link and logo styling */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: white;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 14px 32px rgba(181, 31, 45, 0.25);
}

.brand-text {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

/* Primary navigation */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  position: relative;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-strong));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.mobile-nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(109, 29, 39, 0.08);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.mobile-nav-toggle:hover {
  transform: translateY(-2px);
}

.mobile-nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.26rem auto;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.24s ease,
    opacity 0.2s ease;
}

body.nav-open .mobile-nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .mobile-nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .mobile-nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

.mobile-menu-head,
.mobile-menu-brand,
.mobile-menu-close {
  display: none;
}

/* Theme toggle button */
.theme-toggle {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(109, 29, 39, 0.08);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

/* Shared page section wrappers */
.hero,
.page-hero,
.article-hero {
  position: relative;
}

.hero {
  padding: 5.75rem 0 4.5rem;
}

.page-hero {
  padding: 4.5rem 0 1.75rem;
}

.article-hero {
  padding: 4.6rem 0 2.2rem;
}

/* Shared grid helpers */
.hero-grid,
.split,
.contact-page-grid,
.contact-box,
.article-shell,
.article-hero-grid {
  display: grid;
  gap: 1.75rem;
}

.hero-grid > *,
.split > *,
.contact-page-grid > *,
.contact-box > *,
.article-shell > *,
.article-hero-grid > * {
  min-width: 0;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.split,
.contact-page-grid,
.article-shell {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: start;
}

.contact-box {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: center;
}

.article-hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: stretch;
}

/* Pills and small labels used to guide the eye */
.eyebrow,
.status-pill,
.city-chip,
.service-priority,
.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow,
.article-tag {
  margin-bottom: 1rem;
  background: var(--brand-soft);
  color: var(--brand);
}

.eyebrow::before,
.status-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.status-pill {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 14px 30px rgba(181, 31, 45, 0.18);
}

.service-priority {
  color: var(--brand);
  background: var(--brand-soft);
}

.city-chip {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

body.dark .city-chip {
  background: rgba(255, 255, 255, 0.04);
}

/* Type scale */
h1,
h2,
h3,
h4 {
  font-family: "Outfit", sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--ink);
}

.hero h1,
.article-hero h1 {
  font-size: 4.75rem;
  max-width: 12ch;
}

.page-hero h1 {
  font-size: 4.25rem;
  max-width: 15ch;
}

.section-heading h2,
.split h2,
.contact-box h2,
.contact-info-card h2,
.article-content h2,
.article-sidebar h2,
.article-visual h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.article-content h2 {
  margin-top: 1.2rem;
}

/* Add scroll margin to sections to account for sticky header */
[data-section] {
  scroll-margin-top: 100px;
}

.article-content h3,
.service-card h3,
.blog-card h3,
.portfolio-item h3,
.mini-card h3,
.faq-item h3,
.blog-highlight h3 {
  font-size: 1.65rem;
  margin-bottom: 0.7rem;
}

.hero-lead,
.page-text,
.section-heading p,
.split p,
.contact-box p,
.service-card p,
.blog-card p,
.portfolio-item p,
.about-box li,
.contact-info-card p,
.mini-card p,
.faq-item p,
.blog-highlight p,
.article-content p,
.article-sidebar p,
.article-summary p,
.article-visual p,
.form-note,
.footnote,
.lead-list li {
  color: var(--muted);
}

.hero-lead,
.page-text {
  font-size: 1.18rem;
  max-width: 60ch;
}

.page-hero .page-text {
  max-width: 54ch;
  margin-top: 1.45rem;
  line-height: 1.92;
}

.hero-intro {
  max-width: 62ch;
  display: grid;
  align-content: start;
  gap: 1rem;
}

.hero-intro p + p,
.article-content p + p {
  margin-top: 1rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-badges .eyebrow,
.hero-badges .status-pill {
  margin-bottom: 0;
}

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

.hero-actions,
.contact-actions,
.article-links,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions {
  margin-top: 0.35rem;
}

.hero-meta {
  margin-top: 0.25rem;
}

.lead-list,
.about-box ul,
.contact-lines,
.faq-list,
.blog-stack,
.article-points,
.article-checklist,
.service-list,
.article-toc ul {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.lead-list {
  margin-top: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lead-list li,
.service-list li,
.article-checklist li {
  position: relative;
  padding-left: 1.55rem;
}

.lead-list li::before,
.service-list li::before,
.article-checklist li::before,
.about-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 0 0 5px rgba(181, 31, 45, 0.1);
}

/* Shared card styling */
.hero-panel,
.service-card,
.blog-card,
.portfolio-item,
.about-box,
.contact-box,
.contact-info-card,
.contact-form,
.mini-card,
.faq-item,
.impact-card,
.blog-highlight,
.article-summary,
.article-sidebar,
.article-content,
.article-visual,
.article-callout,
.toc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel,
.contact-box,
.about-box,
.contact-info-card,
.contact-form,
.article-sidebar,
.article-content,
.article-visual {
  padding: 2.1rem;
}

.service-card,
.blog-card,
.portfolio-item,
.mini-card,
.faq-item,
.impact-card,
.blog-highlight,
.article-summary,
.article-callout,
.toc-card {
  padding: 1.7rem;
}

.service-card,
.blog-card,
.portfolio-item,
.mini-card,
.faq-item,
.impact-card,
.blog-highlight {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.portrait-card {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  border-radius: calc(var(--radius) - 10px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(181, 31, 45, 0.08), rgba(181, 31, 45, 0.18));
}

.portrait-card figcaption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at top right, rgba(181, 31, 45, 0.1), transparent 30%),
    var(--surface);
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

body.dark .hero-panel {
  background:
    linear-gradient(180deg, rgba(38, 28, 31, 0.82), rgba(32, 24, 26, 0.96)),
    radial-gradient(circle at top right, rgba(255, 103, 117, 0.12), transparent 30%),
    var(--surface);
}

.hero-panel::after,
.service-card::before,
.blog-card::before,
.portfolio-item::before,
.mini-card::before,
.faq-item::before,
.blog-highlight::before,
.article-callout::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-strong));
}

.hero-panel h2 {
  font-size: 2rem;
  margin: 0.4rem 0 0.3rem;
}

.hero-panel p + p {
  margin-top: 0.8rem;
}

.hero-panel .service-list {
  margin-top: 0.2rem;
}

/* Reusable content grids */
.impact-strip,
.card-grid,
.process-grid,
.portfolio-grid,
.blog-listing,
.article-summary-grid,
.article-stat-grid {
  display: grid;
  gap: 1rem;
}

.impact-strip {
  margin-top: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.process-grid,
.portfolio-grid,
.blog-listing,
.article-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.article-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.impact-card,
.article-summary,
.service-card,
.blog-card,
.portfolio-item,
.mini-card,
.faq-item,
.blog-highlight,
.article-callout {
  position: relative;
  overflow: hidden;
}

.impact-card strong,
.count-value {
  display: block;
  margin-bottom: 0.65rem;
  font-family: "Outfit", sans-serif;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
}

/* Section spacing: large enough to breathe, small enough to feel connected */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.38);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body.dark .section-alt {
  background: rgba(255, 255, 255, 0.02);
}

.section-heading {
  max-width: 64ch;
  margin-bottom: 2.5rem;
}

.section-heading p {
  max-width: 56ch;
}

.service-card.featured {
  grid-column: span 2;
}

.service-card p + .service-list,
.article-content p + .article-checklist,
.article-content p + .article-points {
  margin-top: 1rem;
}

.service-note,
.footnote {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.portfolio-tag,
.post-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.83rem;
  font-weight: 800;
}

.portfolio-item a,
.blog-card a,
.blog-highlight a,
.article-content a,
.article-sidebar a:not(.btn) {
  color: var(--brand);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2rem;
}

.article-content a:hover,
.portfolio-item a:hover,
.blog-card a:hover,
.blog-highlight a:hover,
.article-sidebar a:not(.btn):hover {
  color: var(--brand-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 1.35rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 18px 34px rgba(181, 31, 45, 0.2);
}

.btn-secondary {
  color: var(--brand);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

body.dark .btn-ghost {
  background: rgba(255, 255, 255, 0.04);
}

.blog-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  font-weight: 800;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(255, 255, 255, 0.75);
}

body.dark .form-field input,
body.dark .form-field textarea,
body.dark .form-field select {
  background: rgba(255, 255, 255, 0.04);
}

.article-note {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
}

.article-note strong {
  color: var(--ink);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: 4px;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand), var(--brand-strong));
}

.article-sidebar {
  position: sticky;
  top: 6.3rem;
}

.article-toc ul {
  margin-top: 1rem;
}

.article-toc a {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
}

.article-toc a.active,
.article-toc a:hover {
  color: var(--brand);
}

.article-content,
.article-visual {
  display: grid;
  gap: 1rem;
}

.article-content section + section {
  margin-top: 0.6rem;
}

.article-content .article-callout,
.article-content .article-summary-grid {
  margin-top: 0.6rem;
}

.article-visual {
  align-content: start;
  position: relative;
  overflow: hidden;
}

.article-visual::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(181, 31, 45, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(143, 20, 32, 0.12), transparent 24%);
}

.article-visual-copy,
.page-hero-copy {
  position: relative;
  z-index: 1;
}

.article-lines {
  display: grid;
  gap: 0.7rem;
}

.article-line {
  height: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(181, 31, 45, 0.26), rgba(181, 31, 45, 0.04));
  animation: glide 7s ease-in-out infinite;
}

.article-line:nth-child(2) {
  width: 88%;
  animation-delay: 0.8s;
}

.article-line:nth-child(3) {
  width: 72%;
  animation-delay: 1.6s;
}

.article-line:nth-child(4) {
  width: 56%;
  animation-delay: 2.4s;
}

.article-summary-grid {
  margin-top: 1rem;
}

.article-links {
  margin-top: 1.2rem;
  gap: 1.5rem;
}

.article-points li {
  padding: 1rem 1rem 1rem 1.2rem;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(181, 31, 45, 0.06);
}

.contact-lines strong {
  color: var(--ink);
}

.blog-listing .blog-card {
  display: grid;
  align-content: start;
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--brand);
}

/* Small entrance animation used across sections */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes glide {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.55;
  }

  50% {
    transform: translateX(8px);
    opacity: 1;
  }
}

/* Accessibility: remove movement for people who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .theme-toggle,
  .btn,
  .article-line,
  .mobile-nav-toggle span,
  .site-nav,
  .nav-overlay {
    transition: none;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Tablet layout adjustments */
@media (max-width: 1080px) {
  .hero-grid,
  .split,
  .contact-page-grid,
  .contact-box,
  .article-shell,
  .article-hero-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .process-grid,
  .portfolio-grid,
  .blog-listing,
  .faq-list,
  .blog-stack,
  .lead-list,
  .impact-strip,
  .article-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card.featured {
    grid-column: span 1;
  }

  .article-sidebar {
    position: static;
  }
}

/* Mobile layout adjustments */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .header-inner {
    min-height: auto;
    padding: 0.95rem 0 1rem;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    display: grid;
  }

  .brand {
    justify-content: flex-start;
  }

  .mobile-nav-toggle {
    display: inline-block;
    position: relative;
    z-index: 91;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 89;
    display: block;
    background:
      radial-gradient(circle at top left, rgba(181, 31, 45, 0.22), transparent 28%),
      radial-gradient(circle at 78% 8%, rgba(255, 214, 219, 0.12), transparent 18%),
      linear-gradient(180deg, rgba(73, 27, 33, 0.52), rgba(26, 12, 14, 0.76));
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav {
    position: fixed;
    inset: 0.85rem;
    z-index: 90;
    width: auto;
    min-height: calc(100dvh - 1.7rem);
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 1.1rem;
    padding: 1.1rem 1.2rem 1.35rem;
    border: 1px solid rgba(255, 239, 241, 0.22);
    border-radius: 34px;
    background:
      radial-gradient(circle at top left, rgba(255, 179, 187, 0.18), transparent 34%),
      radial-gradient(circle at bottom right, rgba(181, 31, 45, 0.18), transparent 26%),
      linear-gradient(180deg, rgba(95, 26, 34, 0.94), rgba(54, 18, 23, 0.98));
    box-shadow:
      0 28px 70px rgba(13, 7, 8, 0.44),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    overflow-y: auto;
    transform: translateY(10px) scale(0.985);
    transform-origin: top right;
    transition:
      opacity 0.24s ease,
      transform 0.28s ease;
  }

  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 233, 236, 0.14);
  }

  .mobile-menu-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: #fff5f5;
  }

  .mobile-menu-brand .brand-mark {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  }

  .mobile-menu-brand .brand-text {
    color: #fff5f5;
  }

  .mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border: 1px solid rgba(255, 233, 236, 0.2);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 246, 247, 0.16), rgba(255, 246, 247, 0.07));
    color: #fff5f5;
    cursor: pointer;
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .mobile-menu-close span {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: 2rem;
    line-height: 1;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .site-nav a,
  .theme-toggle {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 1.05rem 1.1rem;
    border: 1px solid rgba(255, 233, 236, 0.14);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 246, 247, 0.12), rgba(255, 246, 247, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a {
    color: #fff5f5;
    font-family: "Outfit", sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
  }

  .site-nav a[aria-current="page"] {
    background: linear-gradient(180deg, rgba(255, 224, 227, 0.22), rgba(255, 224, 227, 0.12));
    border-color: rgba(255, 233, 236, 0.26);
  }

  .theme-toggle {
    width: 100%;
    height: 3.25rem;
    justify-content: center;
    color: #fff5f5;
    border-color: rgba(255, 233, 236, 0.18);
    background: linear-gradient(180deg, rgba(255, 246, 247, 0.16), rgba(255, 246, 247, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  body.dark .nav-overlay {
    background:
      radial-gradient(circle at top left, rgba(255, 103, 117, 0.18), transparent 28%),
      radial-gradient(circle at 78% 8%, rgba(255, 209, 213, 0.08), transparent 18%),
      linear-gradient(180deg, rgba(12, 9, 10, 0.56), rgba(7, 5, 6, 0.82));
  }

  body.dark .site-nav {
    border-color: rgba(255, 214, 219, 0.12);
    background:
      radial-gradient(circle at top left, rgba(255, 103, 117, 0.16), transparent 34%),
      radial-gradient(circle at bottom right, rgba(255, 184, 193, 0.08), transparent 26%),
      linear-gradient(180deg, rgba(28, 18, 20, 0.96), rgba(15, 11, 12, 0.99));
    box-shadow:
      0 28px 70px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  body.dark .mobile-menu-head {
    border-bottom-color: rgba(255, 214, 219, 0.1);
  }

  body.dark .mobile-menu-close {
    border-color: rgba(255, 214, 219, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    color: #fff5f5;
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  body.dark .site-nav a,
  body.dark .theme-toggle {
    border-color: rgba(255, 214, 219, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  body.dark .site-nav a[aria-current="page"] {
    background: linear-gradient(180deg, rgba(255, 214, 219, 0.14), rgba(255, 214, 219, 0.07));
    border-color: rgba(255, 214, 219, 0.18);
  }

  .hero,
  .page-hero,
  .article-hero,
  .section {
    padding-top: 3.75rem;
  }

  .hero h1,
  .article-hero h1 {
    font-size: 2.65rem;
    max-width: 100%;
  }

  .page-hero h1 {
    font-size: 2.45rem;
    max-width: 100%;
  }

  .section-heading h2,
  .split h2,
  .contact-box h2,
  .contact-info-card h2,
  .article-content h2,
  .article-sidebar h2,
  .article-visual h2 {
    font-size: 2.1rem;
  }

  .hero-lead,
  .page-text {
    font-size: 1.05rem;
  }

  .card-grid,
  .process-grid,
  .portfolio-grid,
  .blog-listing,
  .faq-list,
  .blog-stack,
  .lead-list,
  .impact-strip,
  .article-summary-grid,
  .article-stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-actions,
  .article-links,
  .hero-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-badges {
    align-items: flex-start;
  }

  .city-chip,
  .status-pill,
  .eyebrow {
    max-width: 100%;
  }

  .city-chip {
    justify-content: center;
    text-align: center;
  }

  .lead-list li,
  .service-list li,
  .article-checklist li,
  .about-box li,
  .article-points li {
    overflow-wrap: anywhere;
  }

  .btn {
    width: 100%;
  }

  .hero-panel,
  .portrait-card,
  .contact-box,
  .about-box,
  .contact-info-card,
  .contact-form,
  .article-sidebar,
  .article-content,
  .article-visual {
    padding: 1.5rem;
  }
}
