/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ===== TOKENS ===== */
:root {
  --accent: #40916c;
  --accent-light: #74c69d;
  --accent-teal: #1b8882;
  --slate-100: #f5f5f5;
  --slate-200: #eeeeee;
  --slate-300: #e0e0e0;
  --slate-400: #9e9e9e;
  --slate-500: #757575;
  --slate-600: #616161;
  --slate-700: #424242;
  --slate-800: #303030;
  --slate-900: #212121;
  --pastel-blue: #e3f2fd;
  --pastel-pink: #fce4ec;
  --pastel-yellow: #fffde7;
  --pastel-green: #e8f5e9;
  --pastel-purple: #f3e5f5;
  --pastel-orange: #fff3e0;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-nav: 'DM Sans', sans-serif;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; overflow-x: hidden; }

/* flex column + main { flex:1 } keeps the footer pinned to the bottom on short pages */
body {
  font-family: var(--font-body);
  color: var(--slate-800);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1; }

::selection { background-color: var(--accent); color: #fff; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ===== NAV ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
}

.nav-inner {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 2rem; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-nav);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--slate-800);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--slate-800);
  line-height: 0;
}

.menu-toggle svg { width: 1.5rem; height: 1.5rem; }

/* height can't animate to/from auto; max-height 0→24rem is the CSS workaround */
.mobile-menu {
  border-top: 1px solid var(--slate-100);
  background-color: #fff;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.open {
  max-height: 24rem;
  opacity: 1;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.mobile-menu a {
  display: block;
  padding: 0.375rem 0;
  font-family: var(--font-nav);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--slate-800);
  transition: color 0.15s;
}

.mobile-menu a:hover { color: var(--accent); }
.mobile-menu a:focus { outline: none; }
.mobile-menu a:focus-visible {
  outline: none;
  border-bottom: 2px solid var(--accent);
}

/* ===== HERO ===== */
.hero {
  padding-top: 5.5rem;
  padding-bottom: 0;
  background: linear-gradient(180deg, #e4f5ec 0%, #e8f2fb 55%, #ffffff 100%);
}

.hero-grid {
  display: block;
  overflow: hidden;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0;
  line-height: 1.25;
}

.hero-tagline {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 0.375rem;
}

.hero-tagline .highlight { color: var(--accent); }

.hero-sub { color: var(--slate-500); font-size: 0.8rem; margin: 0.5rem 0 0; }

.mobile-br { display: block; }
@media (min-width: 1024px) { .mobile-br { display: none; } }
.hero-line { display: block; margin-bottom: 10px; }
.hero-line:last-child { margin-bottom: 0; }
.hero-pipe { color: var(--slate-400); font-weight: 300; }
.hero-sub .highlight { color: var(--accent); font-weight: 500; }

.hero-photo { float: right; width: 58%; margin: 0 0 0.5rem 0; }

.hero-photo-wrapper { position: relative; padding: 0; }

/* Healing green organic blob — main backdrop */
/* calc offsets nudge the blob so it peeks above & beside the photo without clipping */
.hero-photo-accent {
  position: absolute;
  top: calc(-3.5rem + 70px);
  right: calc(0.25rem - 20px);
  width: 92%;
  height: 88%;
  background: linear-gradient(145deg, #74c69d 0%, #40916c 55%, #2d6a4f 100%);
  border-radius: 55% 45% 38% 62% / 50% 62% 38% 50%;
  z-index: 0;
}

/* Serene blue glow — soft circle, bottom-left */
.hero-photo-wrapper::before {
  content: '';
  position: absolute;
  width: 13rem;
  height: 13rem;
  background: radial-gradient(circle, rgba(74, 144, 185, 0.32) 0%, transparent 68%);
  bottom: 0.5rem;
  left: -1rem;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* Trustworthy teal dot grid — decorative, bottom-right */
.hero-photo-wrapper::after {
  content: none;
  position: absolute;
  width: 5rem;
  height: 5rem;
  background-image: radial-gradient(circle, rgba(27, 136, 130, 0.65) 1.5px, transparent 1.5px);
  background-size: 11px 11px;
  bottom: 0.75rem;
  right: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-photo-accent { display: none; }

.hero-photo-wrapper img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 0.75rem;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.96) contrast(1.02) saturate(0.88);
}

/* ===== TICKER ===== */
.ticker {
  overflow: hidden;
  padding: 0.875rem 0;
  background: var(--slate-100);
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform; /* promotes to GPU compositor layer for smooth 60fps animation */
  -webkit-animation: ticker-scroll 28s linear infinite;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-track:hover {
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  white-space: nowrap;
  padding: 0 2rem;
  font-family: var(--font-nav);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--slate-700);
  text-transform: uppercase;
}

.ticker-dot {
  color: var(--accent-teal);
  font-size: 0.5rem;
  line-height: 1;
}

@-webkit-keyframes ticker-scroll {
  from { -webkit-transform: translateX(0); transform: translateX(0); }
  to   { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

/* Track HTML is duplicated; -50% scrolls exactly one copy, creating a seamless loop */
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== SERVICES ===== */
.services {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: #f7f8f6;
}

.services h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  display: block;
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.2s;
}

.service-card:hover { transform: translateY(-0.25rem); }

.card-illustration {
  display: block;
  width: 100%;
  height: 7.5rem;
  margin-bottom: 1.25rem;
  overflow: visible;
}

.bg-pastel-blue    { background-color: var(--pastel-blue); }
.bg-pastel-yellow  { background-color: var(--pastel-yellow); }
.bg-pastel-green   { background-color: var(--pastel-green); }
.bg-pastel-purple  { background-color: var(--pastel-purple); }
.bg-pastel-orange  { background-color: var(--pastel-orange); }
.bg-pastel-pink    { background-color: var(--pastel-pink); }

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--slate-700);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate-900);
  font-weight: 600;
  font-size: 0.875rem;
}

.service-card-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}

.service-card:hover .service-card-link svg { transform: translateX(0.25rem); }

/* ===== ABOUT ===== */
/* scroll-margin-top offsets the anchor target so the fixed nav (80px) doesn't obscure the heading */
.about {
  padding-top: 3rem;
  padding-bottom: 3rem;
  scroll-margin-top: 6rem;
}

.about-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 3rem;
}

.about-content .lead {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 2rem;
}

.about-content .body-text p {
  color: var(--slate-600);
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about-content strong { color: var(--slate-900); }

.btn-outline {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s, color 0.2s;
}

.btn-outline:hover { background-color: var(--accent); color: #fff; }

.btn-outline-light {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.btn-outline-light:hover { background-color: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-brand:hover {
  opacity: 0.92;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.18);
  transform: translateY(-1px);
}
.btn-brand svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.btn-pubmed       { background-color: #1D6FA4; }
.btn-researchgate { background-color: #00CCBB; }

.btn-brand-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ===== JOURNEY TEASER (landing page) ===== */
.journey-teaser {
  padding-top: 3rem;
  padding-bottom: 3rem;
  scroll-margin-top: 6rem;
  background: linear-gradient(140deg, #f2ede6 0%, #eae8e1 100%);
}

.journey-teaser-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.journey-teaser h2 {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.25rem;
}

.journey-teaser-desc {
  color: var(--slate-600);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.journey-quote {
  color: var(--slate-500);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  border-left: 4px solid rgba(64, 145, 108, 0.3);
  padding-left: 1.25rem;
  font-style: italic;
}

.journey-teaser-cta {
  width: fit-content;
  margin-top: 0;
}

.journey-teaser-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.journey-stat .stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.journey-stat .stat-label {
  display: block;
  font-family: var(--font-nav);
  font-size: 0.725rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-top: 0.3rem;
}

.journey-teaser-photo img {
  width: 100%;
  max-width: 300px;
  border-radius: 2.5rem;
  object-fit: cover;
  max-height: 440px;
  display: block;
  margin: 0 auto;
}

/* ===== MILESTONE LAYOUT (/journey.html) ===== */
.milestone {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0;
}

.milestone:last-of-type { border-bottom: none; }

.milestone.reverse {
  background: linear-gradient(135deg, #f2fbf6 0%, #edf4f9 100%);
  border-radius: 1.25rem;
  border-bottom: none;
  padding-left: 2rem;
  padding-right: 2rem;
  margin-bottom: 0.5rem;
}

.milestone-photo img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  max-height: 380px;
  display: block;
}

.milestone-tag {
  display: block;
  font-family: var(--font-nav);
  font-size: 0.725rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.milestone-body h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.875rem;
}

.milestone-body p {
  color: var(--slate-600);
  line-height: 1.8;
  font-size: 1rem;
}

/* ===== LEVERAGE ===== */
.leverage {
  margin-top: 3rem;
  padding-top: 2.5rem;
}

.leverage h3 {
  font-weight: 700;
  color: var(--slate-900);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.leverage ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leverage li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--slate-600);
}

.leverage .arrow { color: var(--accent); flex-shrink: 0; margin-top: 0.1rem; }

/* Journey page — subtle header wash */
.page-journey .inner-page {
  background: linear-gradient(170deg, #edf8f3 0%, #ecf3f8 8%, #ffffff 22%);
}

/* ===== JOURNEY CLOSING (future section) ===== */
.journey-closing-photo {
  width: 16rem;
  height: auto;
  border-radius: 1rem;
  float: right;
  margin-left: 2rem;
  margin-bottom: 1rem;
}

/* ===== LINKEDIN STRIP ===== */
.linkedin-strip {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: #f7f8f6;
}

.linkedin-label {
  font-family: var(--font-nav);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.linkedin-strip h2 {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 2.5rem;
}

.linkedin-grid {
  display: grid;
  gap: 1.25rem;
}

.linkedin-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.linkedin-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-0.25rem);
}

.linkedin-card-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.linkedin-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.linkedin-card:hover .linkedin-card-photo img {
  transform: scale(1.03);
}

.linkedin-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem;
  flex: 1;
}

.linkedin-card-tag {
  display: block;
  font-family: var(--font-nav);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}

.linkedin-excerpt {
  color: var(--slate-700);
  font-size: 0.9375rem;
  line-height: 1.75;
  font-style: italic;
}

.linkedin-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-nav);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.linkedin-cta svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.2s;
}

.linkedin-card:hover .linkedin-cta svg {
  transform: translateX(0.2rem);
}

@media (min-width: 768px) {
  .linkedin-strip { padding-top: 5rem; padding-bottom: 5rem; }
  .linkedin-strip h2 { font-size: 2.25rem; }
  .linkedin-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== HOW CAN I HELP ===== */
.help {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: linear-gradient(150deg, #e8f4ee 0%, #e9f3f9 50%, #ffffff 80%);
}

.help h2 {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.25rem;
}

.help-header {
  max-width: 42rem;
  margin-bottom: 3rem;
}

.help-intro {
  color: var(--slate-600);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-top: 1rem;
}

.help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.help-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 2rem;
}

.help-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(64,145,108,0.1);
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
}

.help-card-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: var(--accent);
}

.help-card:nth-child(1) .help-card-icon { background: rgba(27,136,130,0.12); }
.help-card:nth-child(1) .help-card-icon svg { stroke: #1b8882; }

.help-card:nth-child(2) .help-card-icon { background: rgba(79,70,229,0.1); }
.help-card:nth-child(2) .help-card-icon svg { stroke: #4f46e5; }

.help-card:nth-child(3) .help-card-icon { background: rgba(217,119,6,0.1); }
.help-card:nth-child(3) .help-card-icon svg { stroke: #d97706; }

.help-card:nth-child(4) .help-card-icon { background: rgba(225,29,72,0.1); }
.help-card:nth-child(4) .help-card-icon svg { stroke: #e11d48; }

.help-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.625rem;
}

.help-card p {
  color: var(--slate-600);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
}

@media (min-width: 768px) {
  .help { padding-top: 5rem; padding-bottom: 5rem; }
  .help h2 { font-size: 2.25rem; }
  .help-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== CONTACT ===== */
.contact {
  padding-top: 3rem;
  padding-bottom: 3rem;
  scroll-margin-top: 6rem;
  background:
    radial-gradient(circle at 1px 1px, rgba(116,198,157,0.14) 1.5px, transparent 0),
    radial-gradient(ellipse at 92% 5%,  rgba(116,198,157,0.55) 0%, rgba(116,198,157,0.1) 40%, transparent 60%),
    radial-gradient(ellipse at 4%  92%, rgba(27,136,130,0.5)   0%, rgba(27,136,130,0.08) 42%, transparent 62%),
    radial-gradient(ellipse at 50% 50%, rgba(64,145,108,0.14)  0%, transparent 65%),
    linear-gradient(165deg, #091710 0%, #122219 50%, #09180f 100%);
  background-size: 26px 26px, auto, auto, auto, auto;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 0 30px rgba(0,0,0,0.6);
}

.contact-intro {
  color: #fff;
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
}

.contact-direct-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.1875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
  transition: color 0.2s;
}

.contact-direct-item:hover { color: var(--accent-light); }

.contact-direct-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.contact-promise {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contact-promise-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
}

.contact-promise-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}



.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 1.25rem;
  padding: 2rem;
  transform: translateY(10%); /* visually drops form card below the section midline for depth */
}

.contact-form { border-top: none; padding-top: 0; }

.form-fields { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--slate-800);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--accent); }

.form-textarea { resize: none; }

.btn-submit {
  padding: 0.75rem 2rem;
  background-color: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.15s;
  font-family: var(--font-body);
}

.btn-submit:hover { background-color: var(--accent-light); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* ===== FOOTER ===== */
.site-footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--slate-100);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-copy { color: var(--slate-400); font-size: 0.875rem; }

.footer-links { display: flex; align-items: center; gap: 1.5rem; }

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--slate-400);
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-links a svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* LinkedIn blue, Instagram pink, PathoIndia green */
.footer-links a:nth-child(1) svg { fill: #0077B5; }
.footer-links a:nth-child(2) svg { fill: #E1306C; }
.footer-links a:nth-child(3) svg { stroke: #40916c; }

.footer-links a:hover { color: var(--accent); }
.footer-links a:hover svg { fill: var(--accent); stroke: var(--accent-light); }

/* ===== DEV CREDIT ===== */
.dev-credit {
  background: var(--slate-900);
  text-align: center;
  padding: 0.6rem 1rem;
}

.dev-credit a {
  font-family: var(--font-nav);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--slate-500);
  transition: color 0.15s;
}

.dev-credit a:hover { color: var(--accent-light); }

.dev-credit strong { color: var(--accent-light); font-weight: 600; }

/* ===== BACK TO HOME (inner pages) ===== */
.back-home {
  position: fixed;
  top: 6rem;
  left: 1.25rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: none;
  border: none;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: color 0.2s, transform 0.2s, opacity 0.3s;
}
.back-home.visible { opacity: 1; pointer-events: auto; }

.back-home svg { width: 2rem; height: 2rem; stroke-width: 2.5; }

.back-home:hover {
  color: var(--accent-teal);
  transform: translateX(-3px);
}

/* ===== BACK TO TOP ===== */
/* Hidden on mobile (display:none) — shown via the ≥768px breakpoint below */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, color 0.15s;
  display: none;
  line-height: 0;
}

.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { color: var(--accent-light); }
.back-to-top svg { width: 2rem; height: 2rem; }

/* ===== INNER PAGES ===== */
.inner-page {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.inner-page h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-intro {
  color: var(--slate-500);
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 3.5rem;
  border-left: 4px solid rgba(64, 145, 108, 0.3);
  padding-left: 1.25rem;
  font-style: italic;
}

.page-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  overflow: hidden;
}

.page-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.25rem;
}

.page-section .body-text {
  max-width: 52rem;
}

/* ===== CONSULTING ILLUSTRATION ROWS ===== */
.consulting-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 1.5rem;
}
.consulting-row.alt .consulting-row__art { order: -1; }
.consulting-row__art svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}
@media (max-width: 767px) {
  .consulting-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .consulting-row__art { order: -1; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .consulting-row { gap: 2rem; }
}

.page-section .body-text p {
  color: var(--slate-600);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  list-style: none;
}

.highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--slate-700);
  font-size: 1rem;
  line-height: 1.6;
}

.highlights-list li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

.focus-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.focus-card {
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-left: 3px solid var(--accent);
  transition: border-left-color 0.2s;
}

.focus-card:hover { border-left-color: var(--accent-teal); }

.focus-card h3 {
  font-family: var(--font-nav);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.375rem;
  letter-spacing: 0.01em;
}

.focus-card p {
  color: var(--slate-500);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== CREDENTIAL GRID (profile.html) ===== */
.credential-grid {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
}

.credential-card {
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 1.25rem;
}

.credential-label {
  display: block;
  font-family: var(--font-nav);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.credential-card p {
  color: var(--slate-600);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
}

@media (min-width: 768px) {
  .credential-grid { grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
}

.philosophy-block {
  background: var(--pastel-green);
  border-radius: 1rem;
  padding: 2rem;
}

.philosophy-block p {
  color: var(--slate-700);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.philosophy-block ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.philosophy-block li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--slate-700);
  font-size: 1rem;
}

.philosophy-block li::before {
  content: '◆';
  color: var(--accent);
  font-size: 0.45rem;
  flex-shrink: 0;
}

/* ===== BLOG INDEX ===== */
.blog-index {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.blog-index h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}

.blog-intro {
  color: var(--slate-500);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.blog-list {
  display: flex;
  flex-direction: column;
}

.blog-post-card {
  display: block;
  padding: 3rem 0;
  border-bottom: 1px solid var(--slate-200);
  transition: opacity 0.2s;
}

.blog-post-card:first-child { border-top: 1px solid var(--slate-200); }

.blog-post-card:hover { opacity: 0.85; }

.blog-post-card article {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.blog-post-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-radius: 0.75rem;
  flex-shrink: 0;
  display: block;
}

.blog-post-card-body {
  flex: 1;
  min-width: 0;
}

.blog-post-card .post-date {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.blog-post-card h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.625rem;
  line-height: 1.35;
  transition: color 0.15s;
}

.blog-post-card:hover h2 { color: var(--accent); }

/* -webkit-line-clamp is the only cross-browser way to truncate after N lines of text */
.blog-post-card p {
  color: var(--slate-500);
  font-size: 0.9375rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-nav);
}

/* ===== BLOG PREVIEW (landing page) ===== */
.blog-preview {
  background: #fff;
  padding: 5rem 0 4rem;
}
.blog-preview .section-label {
  font-family: var(--font-nav);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.blog-preview h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 2.5rem;
}
.blog-preview-footer {
  text-align: center;
  margin-top: 2.5rem;
}
.blog-preview-footer a {
  font-family: var(--font-nav);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.blog-preview-footer a:hover { border-color: var(--accent); }

/* ===== BLOG CAROUSELS ===== */
.blog-category { margin-bottom: 4rem; }

.blog-category-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.75rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
  line-height: 1.2;
}

.blog-carousel-outer { position: relative; }
.blog-carousel-inner { overflow: hidden; border-radius: 0.5rem; }

.blog-carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card {
  flex: 0 0 100%;
  background: #fff;
  border-radius: 0.875rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 6px 20px rgba(0,0,0,0.07);
  transition: box-shadow 0.25s, transform 0.25s;
}
.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 20px 48px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.blog-card-img-wrap {
  overflow: hidden;
  height: 13rem;
  flex-shrink: 0;
}
.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.05); }

.blog-card-body {
  padding: 1.375rem 1.375rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 3px solid transparent;
  transition: border-color 0.2s;
}
.blog-card:hover .blog-card-body { border-color: var(--accent); }

.blog-card-tag {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  background: rgba(64,145,108,0.1);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 2rem;
  font-family: var(--font-nav);
  margin-bottom: 0.625rem;
  width: fit-content;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.4;
  margin-bottom: 0.625rem;
  transition: color 0.15s;
}
.blog-card:hover .blog-card-title { color: var(--accent); }

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  border-top: 1px solid var(--slate-100);
}
.blog-card-date {
  font-size: 0.75rem;
  font-family: var(--font-nav);
  color: var(--slate-400);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.blog-card-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-nav);
  letter-spacing: 0.02em;
}

.whats-new-placeholder {
  padding: 3rem 2rem;
  text-align: center;
  border: 2px dashed var(--slate-200);
  border-radius: 0.875rem;
  color: var(--slate-400);
  font-size: 0.9375rem;
  font-style: italic;
  background: var(--slate-100);
}

.blog-card-text {
  border-top: 4px solid var(--accent);
}
.blog-card-text .blog-card-body {
  padding-top: 1.625rem;
}
.blog-card-text .blog-card-excerpt {
  -webkit-line-clamp: 5;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(64,145,108,0.15);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.carousel-btn:hover { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(64,145,108,0.35); }
.carousel-btn:disabled { border-color: var(--slate-200); color: var(--slate-300); box-shadow: none; cursor: default; }
.carousel-btn:disabled:hover { background: #fff; color: var(--slate-300); }
.carousel-btn svg { width: 1rem; height: 1rem; }

.carousel-dots { display: flex; gap: 0.5rem; align-items: center; }
.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--slate-300);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s, width 0.2s;
}
.carousel-dot.active { background: var(--accent); width: 1.25rem; border-radius: 0.25rem; }

@media (min-width: 768px) {
  .blog-card { flex: 0 0 calc(50% - 0.75rem); }
  .blog-card-img-wrap { height: 14rem; }
}
@media (min-width: 1024px) {
  .blog-card { flex: 0 0 calc(33.333% - 1rem); }
}

/* ===== WHAT'S NEW POST PHOTO ===== */
.whats-new-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 0 0 1.75rem;
}

@media (min-width: 640px) {
  .whats-new-photo {
    float: right;
    width: 42%;
    max-width: 22rem;
    margin: 0.25rem 0 1.5rem 2.25rem;
  }
}

.journey-closing {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--accent);
  margin-top: 2rem;
}

/* ===== BLOG TITLE LIST ===== */
.blog-title-list {
  margin-top: 1.75rem;
  border-top: 1px solid var(--slate-100);
}

.blog-title-list-label {
  font-family: var(--font-nav);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 1.25rem 0.25rem 0.5rem;
}

.blog-title-list-label--spaced {
  margin-top: 0.5rem;
  border-top: 1px solid var(--slate-100);
  padding-top: 1.5rem;
}

.blog-title-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0.25rem;
  border-bottom: 1px solid var(--slate-100);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-radius: 0.25rem;
}

.blog-title-item:hover { background: rgba(64,145,108,0.04); }

.blog-title-num {
  flex-shrink: 0;
  font-family: var(--font-nav);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  width: 1.75rem;
}

.blog-title-text {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-800);
  line-height: 1.4;
  transition: color 0.15s;
}

.blog-title-item:hover .blog-title-text { color: var(--accent); }

.blog-title-meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-title-date {
  font-family: var(--font-nav);
  font-size: 0.75rem;
  color: var(--slate-400);
  font-weight: 500;
  white-space: nowrap;
}

.blog-title-arrow {
  width: 1rem;
  height: 1rem;
  color: var(--slate-300);
  transition: color 0.15s, transform 0.2s;
  flex-shrink: 0;
}

.blog-title-item:hover .blog-title-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .blog-title-item { flex-wrap: wrap; gap: 0.25rem 1rem; }
  .blog-title-text { flex-basis: calc(100% - 2.75rem); }
  .blog-title-meta { padding-left: 2.75rem; }
  .blog-title-date { font-size: 0.6875rem; }
}

/* ===== BLOG POST ===== */
.blog-article {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.back-link {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.back-link:hover { text-decoration: underline; }

.blog-article .post-date {
  color: var(--slate-400);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.blog-article h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.5rem;
}

.blog-article .header-image {
  display: block;
  max-width: 36rem;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 0 auto 2.5rem;
}

.blog-content { display: block; overflow: hidden; }

.blog-article .header-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 0 0 1.5rem;
}

.blog-inline-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 0 0 1.5rem;
}

.blog-content p {
  color: var(--slate-600);
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* ===== 404 ===== */
.not-found {
  padding-top: 5rem;
  padding-bottom: 3rem;
  text-align: center;
}

.not-found .big-number {
  font-size: 6rem;
  font-weight: 700;
  color: var(--slate-200);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.not-found p {
  font-size: 1.25rem;
  color: var(--slate-600);
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: background-color 0.15s;
}

.btn-primary:hover { background-color: var(--accent-light); }

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .container { padding-left: 3rem; padding-right: 3rem; }
  .container-narrow { padding-left: 3rem; padding-right: 3rem; }

  .menu-toggle { display: block; }

  .services { padding-top: 3rem; padding-bottom: 4rem; }
  .services h2 { font-size: 2.25rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card { padding: 2.5rem; }
  .service-card h3 { font-size: 1.875rem; }

  .about { padding-top: 5rem; padding-bottom: 5rem; }
  .about-content .lead { font-size: 1.5rem; }

  .journey-teaser { padding-top: 5rem; padding-bottom: 5rem; }
  .journey-teaser h2 { font-size: 2.25rem; }
  .journey-teaser-grid { grid-template-columns: 1fr 1fr; }
  .journey-teaser-photo { grid-column: 2; grid-row: 1 / 3; }
  .journey-teaser-cta { grid-column: 1; justify-self: start; margin-top: 0; }
  .milestone { grid-template-columns: 1fr 1fr; }
  .milestone.reverse .milestone-photo { order: 2; }
  .milestone.reverse .milestone-body { order: 1; }

  .contact { padding-top: 6rem; padding-bottom: 6rem; }
  .contact-info h2 { font-size: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; gap: 4rem; }
  .contact-form-wrap { transform: none; padding: 2.75rem; }
  .form-row { grid-template-columns: 1fr 1fr; }

  .footer-inner { flex-direction: row; justify-content: space-between; }

  .back-to-top { display: block; }

  .inner-page { padding-top: 7rem; padding-bottom: 5rem; }
  .inner-page h1 { font-size: 2.75rem; }
  .focus-grid { grid-template-columns: 1fr 1fr; }

  .blog-index { padding-top: 7rem; padding-bottom: 5rem; }
  .blog-index h1 { font-size: 2.25rem; }
  .blog-post-card article { flex-direction: row; gap: 1.75rem; }
  .blog-post-card img { width: 22rem; height: 15rem; }
  .blog-post-card h2 { font-size: 1.625rem; }

  .blog-article { padding-top: 7rem; padding-bottom: 5rem; }
  .blog-article h1 { font-size: 2.25rem; }
  .blog-article .header-image { float: right; width: 52%; max-width: 28rem; margin: 0.25rem 0 1.5rem 2.5rem; }
  .blog-inline-image { float: left; width: 50%; max-width: 26rem; margin: 0.25rem 2.5rem 1.5rem 0; }

  .not-found { padding-top: 7rem; padding-bottom: 5rem; }
  .not-found .big-number { font-size: 8rem; }
}

/* Shift background 100px right on mobile to reframe the photo subject on narrow screens */
@media (max-width: 767px) {
  .contact {
    padding-bottom: 4rem;
  }

  .contact-form-wrap { transform: none; }

  .hero-photo-wrapper::before {
    width: 8rem;
    height: 8rem;
    left: 0;
    bottom: 0;
  }

  .journey-teaser h2 { font-size: 1.5rem; }
  .journey-teaser-stats { gap: 0.75rem 1.5rem; flex-wrap: wrap; }
  .journey-stat { flex: 0 0 auto; }
  .journey-stat .stat-number { font-size: 1.75rem; }
  .journey-teaser-photo img { max-width: 100%; }
}

/* Tiny phones (≤ 319px — Galaxy Fold inner) */
@media (max-width: 319px) {
  .hero { padding-top: 5rem; }
  .hero-photo { width: 55%; }
  .hero-name { font-size: 0.9375rem; }
  .hero-tagline { font-size: 0.8rem; line-height: 1.2; }
  .hero .container { padding-left: 0.875rem; padding-right: 0.875rem; }
}

/* Very small phones (320–359px) */
@media (min-width: 320px) and (max-width: 359px) {
  .hero-photo { width: 56%; }
  .hero-name { font-size: 1rem; }
  .hero-tagline { font-size: 0.9rem; line-height: 1.25; }
}

/* Mid phones (360–429px — S8+, Pixel, iPhone SE) */
@media (min-width: 360px) and (max-width: 429px) {
  .hero-photo { width: 58%; }
  .hero-tagline { font-size: 0.95rem; line-height: 1.3; }
  .hero-line { margin-bottom: 6px; }
}

/* Large phones (430–767px — iPhone Plus/Pro Max, Galaxy Ultra) */
@media (min-width: 430px) and (max-width: 767px) {
  .hero { padding-top: 6rem; }
  .hero-photo { width: 58%; }
  .hero-name { font-size: 1.25rem; }
  .hero-tagline { font-size: 1.1rem; }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero { padding-top: 7rem; }
  .hero-photo { float: right; width: 44%; margin: 0 0 1rem 1.5rem; }
  .hero-name { font-size: 1.5rem; }
  .hero-tagline { font-size: 1.5rem; }
  .hero-photo-wrapper img { max-height: none; width: 100%; }
  .hero-photo-wrapper::before { width: 10rem; height: 10rem; left: 0; bottom: 0; }
}

/* Desktop — switch to side-by-side grid */
@media (min-width: 1024px) {
  .nav-links { display: flex; gap: 2.5rem; }
  .nav-links a { font-size: 0.75rem; letter-spacing: 0.15em; }
  .menu-toggle { display: none; }
  .hero { padding-top: 7rem; padding-bottom: 0; }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 28rem;
    grid-template-rows: auto auto auto;
    grid-template-areas: "name photo" "tagline photo" "sub photo";
    gap: 0.5rem 3rem;
    align-items: start;
  }
  .hero-name { grid-area: name; font-size: 1.75rem; }
  .hero-tagline { grid-area: tagline; font-size: 1.625rem; }
  .hero-sub { display: block; grid-area: sub; align-self: end; color: var(--slate-500); font-size: 0.9375rem; margin: 1rem 0 0; }
  .hero-photo { float: none; width: auto; margin: 0; grid-area: photo; display: flex; justify-content: flex-end; }
  .hero-photo-wrapper { padding: 1.5rem 2rem 0 1rem; }
  .hero-photo-wrapper img { width: 26rem; height: auto; max-height: none; }
  .hero-photo-wrapper::before { content: ''; display: block; }
  .hero-photo-wrapper::after { content: ''; display: block; }

  .contact {
    background:
      radial-gradient(circle at 1px 1px, rgba(116,198,157,0.13) 1.5px, transparent 0),
      radial-gradient(ellipse at 94% 4%,  rgba(116,198,157,0.6) 0%, rgba(116,198,157,0.1) 38%, transparent 56%),
      radial-gradient(ellipse at 3%  93%, rgba(27,136,130,0.55) 0%, rgba(27,136,130,0.08) 40%, transparent 58%),
      radial-gradient(ellipse at 50% 52%, rgba(64,145,108,0.14) 0%, transparent 62%),
      linear-gradient(165deg, #091710 0%, #122219 50%, #09180f 100%);
    background-size: 30px 30px, auto, auto, auto, auto;
  }
}
