:root {
  --navy-950: #081525;
  --navy-900: #0c1d33;
  --navy-800: #142b48;
  --slate-700: #40516a;
  --slate-500: #6b7b90;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --surface: #ffffff;
  --surface-muted: #f6f8fb;
  --text: #132238;
  --text-muted: #5b6b80;
  --border: #dfe6ef;
  --accent: #087762;
  --accent-dark: #065c4c;
  --accent-soft: #e7f7f3;
  --shadow-sm: 0 8px 24px rgba(8, 21, 37, 0.07);
  --shadow-lg: 0 24px 60px rgba(8, 21, 37, 0.14);
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
  --nav-height: 76px;
  --transition: 220ms ease;
}

[data-theme="dark"] {
  --surface: #0c1a2c;
  --surface-muted: #101f33;
  --text: #edf4fb;
  --text-muted: #aebdce;
  --border: #263a52;
  --accent: #5fe0c3;
  --accent-dark: #8aead5;
  --accent-soft: #133c38;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--surface);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

p {
  color: var(--text-muted);
}

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  background: var(--accent);
  color: #fff;
  left: 1rem;
  padding: 0.65rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 2000;
}

.skip-link:focus {
  top: 1rem;
}

.site-navbar {
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  border-bottom: 1px solid transparent;
  min-height: var(--nav-height);
  transition: background-color var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-navbar.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-brand,
.footer-brand {
  color: var(--text);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.navbar-brand span,
.footer-brand span {
  color: var(--accent);
}

.site-navbar .nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0.18rem;
  padding: 0.55rem 0.75rem;
  position: relative;
}

.site-navbar .nav-link::after {
  background: var(--accent);
  bottom: 0.25rem;
  content: "";
  height: 2px;
  left: 0.75rem;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  width: calc(100% - 1.5rem);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
  color: var(--text);
}

.site-navbar .nav-link.active::after,
.site-navbar .nav-link:hover::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border-color: var(--border);
  box-shadow: none !important;
}

[data-theme="dark"] .navbar-toggler-icon {
  filter: invert(1);
}

.theme-toggle {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
  width: 2.35rem;
}

.theme-toggle:hover,
.theme-toggle:focus {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(8deg);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.btn {
  border-radius: 0.7rem;
  font-weight: 700;
  padding: 0.7rem 1.15rem;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 10px 26px rgba(22, 160, 133, 0.24);
  color: #fff;
}

.btn-outline-primary {
  border-color: var(--border);
  color: var(--text);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

.hero-section {
  background:
    radial-gradient(circle at 86% 20%, rgba(22, 160, 133, 0.14), transparent 28rem),
    linear-gradient(180deg, var(--surface-muted), var(--surface));
  min-height: 100vh;
  overflow: hidden;
  padding: calc(var(--nav-height) + 3rem) 0 5rem;
  position: relative;
}

.hero-section::before {
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 50%;
  content: "";
  height: 33rem;
  position: absolute;
  right: -16rem;
  top: 6rem;
  width: 33rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.display-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  margin-bottom: 1.15rem;
  max-width: 15ch;
}

.display-title span {
  color: var(--accent);
}

.hero-copy {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 41rem;
}

.trust-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin: 2.2rem 0;
}

.trust-strip div {
  border-left: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  padding-left: 0.75rem;
}

.trust-strip strong {
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.2;
}

.trust-strip span {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.35;
  margin-top: 0.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.availability-note {
  align-items: center;
  display: flex;
  font-size: 0.88rem;
  gap: 0.55rem;
  margin: 1.5rem 0 0;
}

.availability-note i {
  color: var(--accent);
}

.portrait-wrap {
  margin: 0 auto;
  max-width: 27rem;
  position: relative;
}

.portrait-frame {
  background: var(--accent);
  border: 0.65rem solid var(--surface);
  border-radius: 45% 45% 1.5rem 1.5rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.portrait-frame img {
  aspect-ratio: 0.87;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  width: 100%;
}

.portrait-badge {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  bottom: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.65rem;
  left: -2rem;
  padding: 0.75rem 1rem;
  position: absolute;
}

.portrait-badge i {
  color: var(--accent);
  font-size: 1.55rem;
}

.portrait-badge span {
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.2;
}

.portrait-badge strong {
  color: var(--text);
  font-size: 0.92rem;
}

.section-padding {
  padding: 6.5rem 0;
}

.section-muted {
  background: var(--surface-muted);
}

.ad-section {
  background: var(--surface);
  padding-bottom: 2.5rem;
  padding-top: 2.5rem;
}

.ad-panel {
  align-items: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(22, 160, 133, 0.16), transparent 18rem),
    var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: auto 1fr auto;
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.ad-icon {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 1rem;
  color: var(--accent);
  display: flex;
  font-size: 2rem;
  height: 4rem;
  justify-content: center;
  width: 4rem;
}

.ad-copy h2 {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.ad-copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 3rem;
  max-width: 48rem;
}

.section-heading > p:last-child {
  font-size: 1.05rem;
  margin: 1rem 0 0;
}

.section-heading.text-center {
  margin-left: auto;
  margin-right: auto;
}

.heading-row {
  align-items: end;
  display: flex;
  justify-content: space-between;
  max-width: none;
}

.heading-row > div {
  max-width: 48rem;
}

.text-link {
  color: var(--accent);
  flex: 0 0 auto;
  font-weight: 700;
  padding-bottom: 0.4rem;
}

.text-link:hover,
.text-link:focus {
  color: var(--accent-dark);
}

.trust-card,
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.trust-card:hover,
.service-card:hover {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
  box-shadow: var(--shadow-sm);
  transform: translateY(-5px);
}

.trust-card > i {
  color: var(--accent);
  font-size: 1.9rem;
}

.trust-card h3,
.service-card h3 {
  font-size: 1.22rem;
  margin: 1.15rem 0 0.7rem;
}

.trust-card p,
.service-card p {
  font-size: 0.92rem;
  margin: 0;
}

.skill-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-chip-grid span,
.tag-list span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.58rem 0.9rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: block;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

a.project-card:hover,
a.project-card:focus {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.project-image {
  aspect-ratio: 16 / 10;
  background: var(--slate-100);
  overflow: hidden;
  position: relative;
}

.project-image img {
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 450ms ease;
  width: 100%;
}

a.project-card:hover .project-image img,
a.project-card:focus .project-image img {
  transform: scale(1.035);
}

.project-overlay {
  align-items: center;
  background: rgba(8, 21, 37, 0.78);
  color: #fff;
  display: flex;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 0.5rem;
  inset: 0;
  justify-content: center;
  opacity: 0;
  position: absolute;
  transition: opacity var(--transition);
}

.project-card:hover .project-overlay,
.project-card:focus .project-overlay {
  opacity: 1;
}

.project-body {
  padding: 1.35rem;
}

.project-body h3 {
  font-size: 1.25rem;
  margin: 0.8rem 0 0;
}

.project-body p {
  font-size: 0.86rem;
  margin: 0.5rem 0 0;
}

.tech-badge {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  padding: 0.4rem 0.65rem;
}

[data-theme="dark"] .tech-badge {
  color: var(--accent-dark);
}

.project-placeholder {
  align-items: center;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(22, 160, 133, 0.15), transparent),
    var(--navy-900);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.project-placeholder i {
  color: #5fe0c3;
  font-size: 2.2rem;
}

.project-placeholder span {
  font-weight: 700;
}

.project-placeholder small {
  color: #aebdce;
}

.project-card-static .project-overlay {
  background: rgba(8, 21, 37, 0.7);
}

.project-card-static:hover .project-overlay {
  opacity: 1;
}

.link-unavailable {
  color: var(--slate-500);
  font-style: italic;
}

.testimonial-carousel {
  margin: 0 auto;
  max-width: 52rem;
}

.testimonial-carousel blockquote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0 4rem;
  padding: 3rem 4rem;
  text-align: center;
}

.testimonial-carousel blockquote > i {
  color: var(--accent);
  font-size: 2.4rem;
}

.testimonial-carousel blockquote p {
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 600;
  margin: 1rem 0 1.2rem;
}

.testimonial-carousel blockquote footer {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.carousel-control-prev,
.carousel-control-next {
  opacity: 1;
  width: 3rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--navy-900);
  background-size: 55%;
  border-radius: 50%;
  height: 2.5rem;
  width: 2.5rem;
}

.cta-section {
  background: var(--surface);
  padding: 2rem 0 6.5rem;
}

.cta-panel {
  align-items: center;
  background:
    radial-gradient(circle at 85% 10%, rgba(95, 224, 195, 0.18), transparent 18rem),
    var(--navy-900);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.cta-panel .eyebrow {
  color: #5fe0c3;
  margin-bottom: 0.6rem;
}

.cta-panel h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0;
}

.page-hero {
  background:
    radial-gradient(circle at 85% 30%, rgba(22, 160, 133, 0.15), transparent 25rem),
    var(--surface-muted);
  padding: calc(var(--nav-height) + 5rem) 0 5.5rem;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  max-width: 14ch;
}

.page-hero > .container > p:last-child {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  margin: 1.35rem 0 0;
  max-width: 48rem;
}

.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.about-photo img {
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  width: 100%;
}

.inline-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.inline-proof span {
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.inline-proof strong {
  color: var(--accent);
  font-size: 1.5rem;
}

.timeline {
  margin: 0 auto;
  max-width: 58rem;
  padding-left: 2rem;
  position: relative;
}

.timeline::before {
  background: var(--border);
  bottom: 0;
  content: "";
  left: 0.43rem;
  position: absolute;
  top: 0;
  width: 2px;
}

.timeline-item {
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-marker {
  background: var(--accent);
  border: 4px solid var(--surface-muted);
  border-radius: 50%;
  height: 1.2rem;
  left: -2.15rem;
  position: absolute;
  top: 1.8rem;
  width: 1.2rem;
  z-index: 1;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
}

.timeline-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.timeline-head h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.timeline-head p {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
}

.timeline-head time {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-dark);
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.65rem;
}

[data-theme="dark"] .timeline-head time {
  color: var(--accent-dark);
}

.timeline-card ul {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 1.1rem 0 0;
  padding-left: 1.2rem;
}

.timeline-card li + li {
  margin-top: 0.35rem;
}

.service-icon {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 0.8rem;
  color: var(--accent);
  display: flex;
  font-size: 1.55rem;
  height: 3.25rem;
  justify-content: center;
  width: 3.25rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.tag-list span {
  font-size: 0.7rem;
  padding: 0.35rem 0.55rem;
}

.check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.check-list li {
  color: var(--text-muted);
  display: flex;
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.check-list i {
  color: var(--accent);
  flex: 0 0 auto;
}

.skill-meter + .skill-meter {
  margin-top: 1.55rem;
}

.meter-label {
  display: flex;
  font-size: 0.88rem;
  font-weight: 700;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.meter-label strong {
  color: var(--accent);
}

.progress {
  background: var(--border);
  border-radius: 999px;
  height: 0.65rem;
}

.progress-bar {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 999px;
  transition: width 1s ease;
  width: 0;
}

.contact-section {
  background: var(--surface);
}

.contact-links {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0;
}

.contact-links > a {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 1rem;
  padding: 0.85rem;
  transition: border-color var(--transition), transform var(--transition);
}

.contact-links > a:hover,
.contact-links > a:focus {
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact-links > a > span {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 0.65rem;
  color: var(--accent);
  display: flex;
  flex: 0 0 auto;
  font-size: 1.15rem;
  height: 2.8rem;
  justify-content: center;
  width: 2.8rem;
}

.contact-links small,
.contact-links strong {
  display: block;
}

.contact-links small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.contact-links strong {
  color: var(--text);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.resume-button {
  margin-bottom: 1.5rem;
}

.response-note {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: 0.84rem;
  gap: 0.65rem;
}

.response-note i {
  color: var(--accent);
}

.contact-form-card {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.contact-form-card h2 {
  font-size: 1.75rem;
}

.form-label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.form-control {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  color: var(--text);
  padding: 0.85rem 1rem;
}

.form-control:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(22, 160, 133, 0.14);
  color: var(--text);
}

.turnstile-wrap {
  display: flex;
  justify-content: center;
  min-height: 70px;
}

.turnstile-config-warning {
  color: #b42318;
  font-size: 0.84rem;
  margin: 0;
  text-align: center;
}

.form-status {
  font-size: 0.82rem;
  margin: 0.8rem 0 0;
  min-height: 1.4rem;
  text-align: center;
}

.form-status.success {
  color: var(--accent-dark);
  font-weight: 700;
}

.site-footer {
  background: var(--navy-950);
  color: #fff;
  padding: 5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 2fr 1fr 1.4fr;
}

.footer-brand {
  color: #fff;
}

.footer-grid p {
  color: #9fb0c3;
  font-size: 0.88rem;
  margin: 0.8rem 0 0;
  max-width: 24rem;
}

.footer-grid h2 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 0.55rem;
}

.footer-grid a:not(.footer-brand) {
  color: #9fb0c3;
  font-size: 0.86rem;
  transition: color var(--transition);
}

.footer-grid a:hover,
.footer-grid a:focus {
  color: #5fe0c3;
}

.footer-bottom {
  border-top: 1px solid #22344c;
  color: #75879d;
  display: flex;
  font-size: 0.75rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
}

body.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

body.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-top: 0.75rem;
    padding: 1rem;
  }

  .site-navbar .navbar-nav {
    align-items: stretch !important;
  }

  .site-navbar .nav-item {
    margin: 0.1rem 0 !important;
  }

  .site-navbar .theme-toggle {
    margin-top: 0.5rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 2.75rem);
  }

  .portrait-badge {
    left: -1rem;
  }

  .heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .ad-panel {
    grid-template-columns: 1fr;
  }

  .ad-panel .btn {
    justify-self: start;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 4.5rem 0;
  }

  .hero-section {
    padding-bottom: 4.5rem;
  }

  .display-title {
    font-size: clamp(2.25rem, 11vw, 3.35rem);
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .portrait-wrap {
    max-width: 22rem;
  }

  .portrait-badge {
    bottom: 1rem;
    left: 0.25rem;
  }

  .page-hero {
    padding: calc(var(--nav-height) + 3.5rem) 0 4rem;
  }

  .page-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }

  .timeline {
    padding-left: 1.4rem;
  }

  .timeline::before {
    left: 0.24rem;
  }

  .timeline-marker {
    left: -1.73rem;
  }

  .timeline-card {
    padding: 1.35rem;
  }

  .timeline-head {
    flex-direction: column;
  }

  .testimonial-carousel blockquote {
    margin: 0 2.75rem;
    padding: 2rem 1.4rem;
  }

  .cta-section {
    padding-bottom: 4.5rem;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (max-width: 399.98px) {
  .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-strip {
    gap: 1.25rem 0.7rem;
  }

  .trust-strip strong {
    font-size: 1rem;
  }

  .portrait-badge {
    position: static;
    margin: 1rem auto 0;
    width: max-content;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .contact-form-card {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  a:not(.btn) {
    text-decoration: underline;
    text-underline-offset: 0.18em;
  }

  .btn,
  .form-control,
  .project-card,
  .service-card,
  .trust-card {
    border-width: 2px;
  }
}
