:root {
  color-scheme: light;
  --coral: #ef4b37;
  --coral-dark: #cc3a2b;
  --cream: #fff7f0;
  --ink: #141414;
  --muted: #575757;
  --navy: #1f2a44;
  --sage: #7c8b78;
  --butter: #f6d27a;
  --sky: #b8d8dc;
  --border: #161616;
  --shadow: 8px 8px 0 rgba(20, 20, 20, 0.18);
  --shadow-coral: 10px 10px 0 rgba(239, 75, 55, 0.22);
  --shadow-soft: 0 26px 60px rgba(20, 20, 20, 0.12);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Grotesk', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(1600px 900px at 18% -10%, rgba(255, 214, 190, 0.32), transparent 78%),
    radial-gradient(1600px 900px at 85% -5%, rgba(184, 216, 220, 0.28), transparent 80%);
  line-height: 1.6;
  position: relative;
}

h1,
h2,
h3,
.nav-brand span,
.work-heading {
  font-family: 'Manrope', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

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

a:hover {
  color: var(--coral);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  background: var(--coral);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus {
  top: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 247, 240, 0.96); /* var(--cream) with transparency */
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  text-transform: none;
}

.nav-brand img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-weight: 600;
}

.nav-links a {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(239, 75, 55, 0.12);
  color: var(--ink);
}

.nav-cta {
  background: var(--coral);
  color: white;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-cta:hover {
  color: white;
  background: var(--coral-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}

.hero {
  padding: 6rem 0 4.5rem;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(239, 75, 55, 0.16), transparent 80%);
  top: -420px;
  right: -320px;
  filter: blur(4px);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(246, 210, 122, 0.55), transparent 65%);
  bottom: -140px;
  left: -90px;
  z-index: 0;
}

.wave-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.wave-background canvas {
  width: 100%;
  height: 100%;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-grid > div:first-child {
  max-width: 580px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  padding: 2.25rem;
  border-radius: 28px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0;
  background: white;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
}

.tag--ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: none;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid var(--border);
}

.button.primary {
  background: var(--coral);
  color: white;
  box-shadow: var(--shadow);
}

.button.primary:hover {
  background: var(--coral-dark);
  color: white;
}

.button.secondary {
  background: white;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.button.secondary:hover {
  box-shadow: var(--shadow-coral);
  transform: translate(-2px, -2px);
}

.hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff1e6 100%);
  border: 3px solid var(--border);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: var(--shadow-coral);
  position: relative;
  transform: rotate(0.4deg);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 20px;
  border: 2px dashed rgba(20, 20, 20, 0.12);
  pointer-events: none;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  color: var(--muted);
}

.hero-card li {
  position: relative;
  padding-left: 2rem;
  font-size: 1.15rem;
  line-height: 1.5;
}

.hero-card li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.hero-card li strong {
  color: var(--coral-dark);
  font-weight: 700;
  font-size: 1.2rem;
}

.section {
  padding: 4.5rem 0;
  position: relative;
  background-color: var(--cream);
  background-image: linear-gradient(135deg, rgba(255, 235, 222, 0.35), rgba(255, 255, 255, 0.95));
}

section.section:last-of-type {
  padding-bottom: 6rem;
}

section.section:nth-of-type(3n+2) {
  background-image: linear-gradient(135deg, rgba(216, 236, 238, 0.35), rgba(255, 255, 255, 0.95));
}

section.section:nth-of-type(3n) {
  background-image: linear-gradient(135deg, rgba(255, 239, 207, 0.35), rgba(255, 255, 255, 0.95));
}

.section--tint {
  background: linear-gradient(120deg, rgba(246, 210, 122, 0.18) 0%, rgba(255, 255, 255, 0.9) 55%);
  border-top: 2px solid rgba(0, 0, 0, 0.08);
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 3vw, 3rem);
  position: relative;
  padding-bottom: 0.75rem;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--coral);
  margin: 0.75rem auto 0;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-heading p {
  color: var(--muted);
  max-width: 720px;
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 26px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  position: relative;
}

.card[data-tone="warm"] {
  background: linear-gradient(140deg, rgba(255, 235, 222, 0.9), rgba(255, 255, 255, 0.95));
}

.card[data-tone="cool"] {
  background: linear-gradient(140deg, rgba(216, 236, 238, 0.85), rgba(255, 255, 255, 0.95));
}

.card[data-tone="sun"] {
  background: linear-gradient(140deg, rgba(255, 239, 207, 0.9), rgba(255, 255, 255, 0.95));
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.process-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.process-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 28px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
}

.process-card:nth-child(1) {
  background: linear-gradient(140deg, rgba(255, 235, 222, 0.9), rgba(255, 255, 255, 0.98));
}

.process-card:nth-child(2) {
  background: linear-gradient(140deg, rgba(216, 236, 238, 0.9), rgba(255, 255, 255, 0.98));
}

.process-card:nth-child(3) {
  background: linear-gradient(140deg, rgba(255, 239, 207, 0.92), rgba(255, 255, 255, 0.98));
}

.process-step {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: white;
  box-shadow: 3px 3px 0 rgba(20, 20, 20, 0.12);
  margin-bottom: 1rem;
}

.process-card p {
  color: var(--muted);
}

.process-card ul {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
}

.process-card li {
  position: relative;
  padding-left: 1.25rem;
}

.process-card li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: var(--coral-dark);
  font-size: 1rem;
}

.logo-strip {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: center;
  justify-items: center;
}

@media (min-width: 768px) {
  .logo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.logo-strip a {
  display: block;
  width: 100%;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-strip img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  opacity: 0.95;
  padding: 1.25rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  filter: saturate(0.95);
}

.logo-strip a:hover {
  transform: translate(-2px, -2px);
}

.logo-strip a:hover img {
  opacity: 1;
  box-shadow: var(--shadow-coral);
}


.logo-strip a:nth-child(4) img,
.logo-strip a:nth-child(5) img,
.logo-strip a:nth-child(6) img {
  height: 130px;
}

.team-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.team-card {
  background: linear-gradient(180deg, #f7f1ea 0%, #ffffff 100%);
  border: 2px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.team-card img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  image-rendering: auto;
}


.team-card .content {
  padding: 1.5rem;
}

.team-card .content p {
  margin-bottom: 1rem;
}

.team-card .content p:last-of-type {
  margin-bottom: 0;
}

.team-card .team-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
}

#team {
  background: linear-gradient(135deg, #f04e35 0%, #f7a86b 100%);
  position: relative;
}

#team::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.25;
  pointer-events: none;
}

#team .section-heading h2 {
  color: white;
}

#team .section-heading h2::after {
  background: white;
}

.team-card .location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--coral-dark);
}

.team-card .social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.team-card .social-links a {
  color: var(--coral-dark);
  font-weight: 600;
  text-decoration: underline;
  font-size: 0.95rem;
}

.team-card .social-links a:hover {
  text-decoration: underline;
}

.testimonial {
  background: white;
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 2.2rem 1.6rem 1.6rem;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem;
  left: 1rem;
  font-size: 3rem;
  color: rgba(239, 75, 55, 0.2);
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
}

.testimonial p {
  color: var(--muted);
}

.testimonial .author {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--coral-dark);
}

.blog-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

#talks .blog-card:nth-child(1) {
  background: linear-gradient(140deg, rgba(255, 235, 222, 0.9), rgba(255, 255, 255, 0.95));
}

#talks .blog-card:nth-child(2) {
  background: linear-gradient(140deg, rgba(216, 236, 238, 0.85), rgba(255, 255, 255, 0.95));
}

#talks .blog-card:nth-child(3) {
  background: linear-gradient(140deg, rgba(255, 239, 207, 0.9), rgba(255, 255, 255, 0.95));
}

#talks .blog-card:nth-child(4) {
  background: linear-gradient(140deg, rgba(255, 235, 222, 0.9), rgba(255, 255, 255, 0.95));
}

#talks .blog-card .content {
  color: var(--ink);
}

#talks .blog-card h3 {
  color: var(--ink);
}

#talks .blog-card p {
  color: var(--muted);
}

.blog-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.blog-card .content {
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.blog-card h3 {
  font-size: 1.2rem;
}

.blog-card p {
  color: var(--muted);
}

.blog-meta {
  font-size: 0.95rem;
  color: var(--muted);
}

.contact {
  background: linear-gradient(135deg, #f04e35 0%, #f7a86b 100%);
  color: white;
  border-radius: 32px;
  padding: 3rem;
  border: 3px solid var(--border);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.25;
  pointer-events: none;
}

.contact form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.contact form p {
  margin: 0;
}

.contact form label {
  display: block;
  width: 100%;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.contact input,
.contact textarea,
.contact select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(20, 20, 20, 0.15);
  font-family: inherit;
  background: white;
  color: var(--ink);
}

.contact button {
  justify-self: start;
}

.contact a {
  color: white;
  font-weight: 600;
  text-decoration: underline;
}

.site-footer {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(135deg, #2a1810 0%, #1a1a1a 50%, #1a2228 100%);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(239, 75, 55, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.4;
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1rem;
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: white;
}

.footer-about p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 42px;
  width: auto;
  opacity: 0.95;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: white;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

.page-hero {
  padding: 4rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 720px;
}

.work-heading {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 2rem;
  text-align: left;
}

.work-grid {
  display: grid;
  gap: 2rem;
}

.work-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.5rem;
}

.work-card h2 {
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 3px solid var(--coral);
  display: inline-block;
}

.work-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--coral-dark);
}

.work-card > a {
  display: block;
  width: fit-content;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card img {
  width: 280px;
  max-height: 140px;
  object-fit: contain;
  background: white;
  padding: 1.25rem;
  border-radius: 16px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0.9;
}

.work-card > a:hover {
  transform: translate(-2px, -2px);
}

.work-card > a:hover img {
  opacity: 1;
  box-shadow: var(--shadow-coral);
}

.work-card ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.work-card a {
  color: var(--coral-dark);
  text-decoration: underline;
  font-weight: 600;
}

.work-card a:hover {
  color: var(--coral);
  text-decoration: underline;
}

.publications {
  background: linear-gradient(135deg, #fffef7 0%, #fff8f0 100%);
  padding: 4rem 0;
  border-radius: 32px;
}

.publications h3 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  color: var(--ink);
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--coral);
  display: inline-block;
}

.publications ul {
  list-style: none;
  padding-left: 0;
}

.publications li {
  margin-bottom: 1.25rem;
  list-style: none;
}

.publications li a {
  display: block;
  padding: 1.25rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: var(--ink);
  line-height: 1.8;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publications li a:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-coral);
  color: var(--ink);
}

.publications strong {
  color: var(--coral-dark);
  font-weight: 700;
}

.publications a {
  color: var(--coral-dark);
  font-weight: 600;
  text-decoration: underline;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.publications a:hover {
  background-color: rgba(238, 79, 53, 0.1);
  color: var(--coral);
  text-decoration: underline;
}

.blog-post {
  max-width: 840px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.blog-post h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
}

.blog-post .subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.blog-post .hero-image {
  border-radius: 24px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.blog-post .content {
  display: grid;
  gap: 1.2rem;
  color: #2b2b2b;
}

.blog-post .content img {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.12);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.blog-post .content pre {
  background: #f5f5f5;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.blog-post .content code {
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

.blog-post .content pre code {
  background: transparent;
  padding: 0;
}

.blog-post .content h2,
.blog-post .content h3 {
  margin-top: 1.5rem;
}

.blog-post .content a {
  color: var(--coral);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.blog-post .content a:hover {
  color: var(--coral-dark);
  text-decoration: underline;
}

.card,
.team-card,
.testimonial,
.blog-card,
.work-card,
.hero-card,
.nav-cta,
.button.primary,
.button.secondary,
.s-blog-footer-btn,
.s-blog-footer-back-link,
.s-redirect-origin-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
  box-shadow: var(--shadow-coral);
  transform: translate(-2px, -2px);
}

.button.primary:hover,
.nav-cta:hover,
.s-blog-footer-btn:hover,
.s-redirect-origin-btn:hover {
  box-shadow: var(--shadow-coral);
  transform: translate(-2px, -2px);
}

.s-blog-footer-inner {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.s-blog-footer-inner .section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.s-blog-footer-nav {
  flex: 1 1 100%;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 1rem;
}

.s-redirect-wrap,
.s-blog-footer-toolbar {
  flex: 0 0 auto;
}

.s-blog-footer-btn {
  display: block;
  border: 2px solid var(--border);
  border-radius: 18px;
  background: white;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.s-blog-footer-btn a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.s-blog-title {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.s-blog-footer-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: white;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.s-blog-footer-back-link:hover {
  box-shadow: var(--shadow-coral);
  transform: translate(-2px, -2px);
  color: var(--ink);
}

.s-redirect-origin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 600;
  text-decoration: none;
}

.s-redirect-origin-btn:hover {
  color: white;
  background: var(--coral-dark);
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-grid > div {
    animation: float-in 0.7s ease both;
  }

  .hero-grid > div:nth-child(2) {
    animation-delay: 0.12s;
  }

  .card-grid .card {
    animation: float-in 0.7s ease both;
  }

  .card-grid .card:nth-child(1) {
    animation-delay: 0.04s;
  }

  .card-grid .card:nth-child(2) {
    animation-delay: 0.08s;
  }

  .card-grid .card:nth-child(3) {
    animation-delay: 0.12s;
  }

  .process-grid .process-card {
    animation: float-in 0.7s ease both;
  }

  .process-grid .process-card:nth-child(2) {
    animation-delay: 0.1s;
  }

  .process-grid .process-card:nth-child(3) {
    animation-delay: 0.18s;
  }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 72px;
    right: 4vw;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    padding: 1rem;
    flex-direction: column;
    display: none;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3.5rem 0;
  }

  .hero-card {
    transform: none;
  }

  .hero-card::after {
    inset: 12px;
  }

  .contact {
    padding: 2.5rem 1.5rem;
  }
}

@media (min-width: 900px) {
  .card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .testimonial {
    grid-column: span 1;
  }

  .card-grid .testimonial:nth-child(1),
  .card-grid .testimonial:nth-child(2),
  .card-grid .testimonial:nth-child(3) {
    grid-column: span 1;
  }

  .card-grid--testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Message pages (404, thank-you) */
.message-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-container {
  text-align: center;
  max-width: 640px;
}

.message-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.message-text {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.message-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
