/* Codenta Tech — light / white theme */
:root {
  --bg-page: #f4f7fb;
  --bg-white: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent-teal: #0d9488;
  --accent-cyan: #06b6d4;
  --accent-orange: #ea580c;
  --accent-pink: #db2777;
  --gradient-hero: linear-gradient(135deg, #0d9488 0%, #06b6d4 45%, #0891b2 100%);
  --gradient-cta: linear-gradient(135deg, #ea580c, #db2777);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --content-max: 1400px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --header-total: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  /* Decorative photos (Unsplash) — swap URLs anytime */
  --img-trust: url("https://images.unsplash.com/photo-1600880292203-757bb62b4baf?auto=format&fit=crop&w=900&q=80");
  --img-why: url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=900&q=80");
  --img-process: url("https://images.unsplash.com/photo-1531482615713-2afd69097998?auto=format&fit=crop&w=1400&q=80");
  --img-portfolio: url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1400&q=80");
  --img-promise: url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=900&q=80");
  --img-faq: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1200&q=80");
  --img-cta: url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1400&q=80");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.65em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 3.2vw + 1rem, 3.35rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 2.2vw + 0.85rem, 2.25rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

@media (min-width: 1600px) {
  body {
    font-size: 1.0625rem;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  height: var(--header-h);
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 1;
}

.logo-link img {
  height: auto;
  max-height: 44px;
  width: auto;
  max-width: min(200px, 48vw);
  object-fit: contain;
  object-position: left center;
}

.nav-desktop {
  display: none;
}

/* Only the top-level list is a row; nested .nav-dropdown must stay a vertical stack */
.nav-desktop > ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-desktop > ul > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

@media (min-width: 1100px) {
  .nav-desktop > ul > li > a {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
  }
}

.nav-desktop > ul > li > a:hover,
.nav-desktop > ul > li > a:focus-visible {
  color: var(--text);
  background: var(--bg-page);
}

.nav-item-has-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-muted);
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

@media (min-width: 1100px) {
  .nav-dropdown-toggle {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
  }
}

.nav-dropdown-toggle:hover,
.nav-item-has-dropdown:hover .nav-dropdown-toggle,
.nav-item-has-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--text);
  background: var(--bg-page);
}

.nav-dropdown__caret {
  font-size: 0.65rem;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.nav-item-has-dropdown:hover .nav-dropdown__caret,
.nav-item-has-dropdown:focus-within .nav-dropdown__caret,
.nav-item-has-dropdown.is-open .nav-dropdown__caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  display: block;
  width: max-content;
  min-width: 15.75rem;
  max-width: min(20rem, calc(100vw - 2rem));
  padding: 0.4rem 0;
  margin: 0;
  list-style: none;
  text-align: left;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.25rem);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1001;
}

.nav-dropdown > li {
  display: block;
  width: 100%;
}

.nav-item-has-dropdown:hover .nav-dropdown,
.nav-item-has-dropdown:focus-within .nav-dropdown,
.nav-item-has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-muted);
  text-align: left;
  border-radius: 0;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  color: var(--text);
  background: var(--bg-page);
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown,
  .nav-dropdown__caret {
    transition: none;
  }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-total);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  padding: 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  border-top: 1px solid var(--border);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  color: var(--text);
}

.mobile-nav a:hover {
  background: var(--bg-page);
}

.mobile-nav__group {
  margin: 0;
}

.mobile-nav__parent {
  font-weight: 700;
}

.mobile-nav__sub {
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0.15rem 0 0.35rem 0.85rem;
  border-left: 2px solid rgba(13, 148, 136, 0.35);
}

.mobile-nav__sub a {
  padding: 0.55rem 1rem;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.mobile-nav__sub a:hover {
  color: var(--text);
}

.nav-mobile-cta {
  margin-top: 0.5rem;
  text-align: center;
}

.header-cta {
  display: none;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 0.65rem 1.1rem;
}

@media (min-width: 1024px) {
  .header-cta {
    font-size: 0.875rem;
    padding: 0.8rem 1.5rem;
  }
}

@media (min-width: 900px) {
  .nav-desktop {
    display: block;
    min-width: 0;
  }

  .nav-desktop > ul {
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    row-gap: 0.15rem;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--gradient-hero);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn--primary:hover {
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.42);
  filter: brightness(1.05);
}

.btn--outline {
  background: var(--bg-white);
  color: var(--text);
  border: 2px solid var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-group .btn {
  flex: 1 1 auto;
  min-width: min(100%, 11rem);
}

.btn-group--center {
  justify-content: center;
  margin-top: 2rem;
}

.btn-group--center .btn {
  flex: 0 1 auto;
  min-width: 0;
}

@media (max-width: 380px) {
  .btn-group .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Hero */
.hero {
  position: relative;
  padding-top: calc(var(--header-total) + clamp(2rem, 5vw, 3.5rem));
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  overflow-x: clip;
  overflow-y: visible;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero__grid > * {
  min-width: 0;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.25rem);
    align-items: center;
  }
}

.hero__copy {
  max-width: 36rem;
  min-width: 0;
}

@media (min-width: 960px) {
  .hero__copy {
    max-width: min(32rem, 100%);
  }
}

.hero h1 {
  color: var(--text);
  margin-bottom: 1rem;
}

.hero__visual {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0 1.5rem;
}

@media (min-width: 960px) {
  .hero__visual {
    padding: 1rem 0;
    justify-content: center;
  }
}

.hero__figure {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0;
  padding-bottom: clamp(0.5rem, 3vw, 1.25rem);
}

@media (min-width: 960px) {
  .hero__figure {
    max-width: none;
    width: 100%;
  }
}

.hero__figure-ring {
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius-lg) + 8px);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.45), rgba(6, 182, 212, 0.35), rgba(219, 39, 119, 0.2));
  z-index: 0;
  opacity: 0.9;
}

.hero__figure-main {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
  aspect-ratio: 5 / 4;
  min-height: 220px;
  max-height: min(440px, 58vh);
  background: #e2e8f0;
}

@media (min-width: 960px) {
  .hero__figure-main {
    aspect-ratio: 4 / 3;
    max-height: min(480px, 70vh);
  }
}

.hero__figure-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero__figure-accent {
  position: relative;
  z-index: 2;
  width: min(52%, 280px);
  margin: -3.5rem 0 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 4px solid var(--bg-white);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
  aspect-ratio: 4 / 3;
  background: #cbd5e1;
}

@media (min-width: 960px) {
  .hero__figure-accent {
    position: absolute;
    bottom: 8%;
    right: 0;
    left: auto;
    width: 44%;
    max-width: 272px;
    margin: 0;
  }
}

@media (min-width: 1100px) {
  .hero__figure-accent {
    width: 40%;
    max-width: 300px;
    bottom: 10%;
    right: 0;
  }
}

.hero__figure-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__figure:hover .hero__figure-main img {
    transform: scale(1.05);
  }

  .hero__figure:hover .hero__figure-accent img {
    transform: scale(1.06);
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.75rem) 0;
}

.section--alt {
  background: var(--bg-white);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.section__head--wide {
  max-width: min(56rem, 100%);
}

.section__head--wide .section__lead {
  max-width: none;
}

.portfolio__follow {
  margin-bottom: 0;
  margin-top: 1.25rem;
}

.section__head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
  display: block;
}

.section__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Trust */
.trust-strip {
  padding: clamp(2.5rem, 5.5vw, 3.5rem) 0;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.08), rgba(6, 182, 212, 0.08));
  border-block: 1px solid var(--border);
}

.trust-strip__layout {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .trust-strip__layout {
    grid-template-columns: 1fr minmax(260px, 0.42fr);
  }
}

.trust-strip__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  max-height: 320px;
  background: var(--border);
}

@media (min-width: 900px) {
  .trust-strip__photo {
    max-height: none;
    min-height: 260px;
  }
}

.trust-strip__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.trust-strip p.lead {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.45;
}

.trust-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

@media (min-width: 520px) {
  .trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .trust-list {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

@media (min-width: 1100px) {
  .trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: clamp(0.85rem, 2vw, 0.92rem);
  color: var(--text-muted);
  min-width: 0;
}

.trust-list li span {
  min-width: 0;
}

.trust-list i {
  color: var(--accent-teal);
  margin-top: 0.2rem;
}

/* Cards / services */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Flex + centered last row when items don’t fill the row (e.g. 7 → 3+3+1) */
.card-grid.card-grid--services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.card-grid.card-grid--services > .card {
  flex: 0 1 100%;
  max-width: 100%;
}

@media (min-width: 720px) {
  .card-grid.card-grid--services > .card {
    flex: 0 1 calc((100% - 1.25rem) / 2);
    max-width: calc((100% - 1.25rem) / 2);
  }
}

@media (min-width: 1024px) {
  .card-grid.card-grid--services > .card {
    flex: 0 1 calc((100% - 2 * 1.25rem) / 3);
    max-width: calc((100% - 2 * 1.25rem) / 3);
  }
}

@media (min-width: 1100px) {
  .card-grid.card-grid--services {
    gap: 1.5rem;
  }

  .card-grid.card-grid--services > .card {
    flex: 0 1 calc((100% - 2 * 1.5rem) / 3);
    max-width: calc((100% - 2 * 1.5rem) / 3);
  }
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.15rem, 3vw, 1.5rem);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  min-width: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.25);
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.25);
  }
}

.card h3 {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  color: var(--text);
  line-height: 1.35;
}

.card h3 i {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(6, 182, 212, 0.12));
  color: var(--accent-teal);
  font-size: 1rem;
}

.card .label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.card ul li {
  margin-bottom: 0.35rem;
}

/* Services — page tint, stronger cards, centered icon/title, compact lists */
#services.section--alt,
#about-services.section--alt,
#how-we-work.section--alt {
  background: var(--bg-page);
  border-block-color: var(--border);
}

.card-grid--services > .card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent-teal);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3.2vw, 1.75rem);
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(15, 23, 42, 0.03);
}

@media (prefers-reduced-motion: no-preference) {
  .card-grid--services > .card:hover {
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.22);
    border-left: 3px solid var(--accent-teal);
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-grid--services > .card:hover {
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.22);
    border-left: 3px solid var(--accent-teal);
  }
}

.card-grid--services > .card h3 {
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  font-size: clamp(1.02rem, 2.1vw, 1.14rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card-grid--services > .card h3 i {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  font-size: 1.08rem;
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.14), rgba(6, 182, 212, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 2px 10px rgba(13, 148, 136, 0.1);
}

.card-grid--services > .card > p:not(.label) {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--text-muted);
}

.card-grid--services > .card .label {
  margin-top: 1rem;
  margin-bottom: 0.45rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  letter-spacing: 0.1em;
}

.card-grid--services > .card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.card-grid--services > .card ul li {
  margin-bottom: 0.3rem;
}

.card-grid--services > .card .card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-grid--services > .card .card__read-more i {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.card-grid--services > .card .card__read-more:hover,
.card-grid--services > .card .card__read-more:focus-visible {
  color: var(--text);
  outline: none;
}

.card-grid--services > .card .card__read-more:focus-visible {
  box-shadow: 0 0 0 2px var(--bg-white), 0 0 0 4px var(--accent-teal);
  border-radius: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .card-grid--services > .card .card__read-more:hover i {
    transform: translateX(3px);
  }
}

.card--photo {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.card__media {
  height: clamp(148px, 22vw, 176px);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.card--photo .card__inner {
  padding: clamp(1.15rem, 3vw, 1.5rem);
}

.use-grid .card:nth-child(1) .card__media {
  background-image: url("https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=800&q=80");
}

.use-grid .card:nth-child(2) .card__media {
  background-image: url("https://images.unsplash.com/photo-1432888498266-38ffec3eaf0a?auto=format&fit=crop&w=800&q=80");
}

.use-grid .card:nth-child(3) .card__media {
  background-image: url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=800&q=80");
}

.use-grid .card:nth-child(4) .card__media {
  background-image: url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=800&q=80");
}

/* Why */
.why-split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .why-split {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.4fr);
    align-items: center;
  }
}

.why-split__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  max-height: 280px;
  background: var(--border);
}

@media (min-width: 900px) {
  .why-split__photo {
    max-height: none;
    min-height: 280px;
  }
}

.why-split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.why-grid > .why-item {
  flex: 0 1 100%;
  max-width: 100%;
}

@media (min-width: 640px) {
  .why-grid > .why-item {
    flex: 0 1 calc((100% - 1rem) / 2);
    max-width: calc((100% - 1rem) / 2);
  }
}

.why-item {
  display: flex;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-teal);
  min-width: 0;
  transition: box-shadow 0.25s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .why-item:hover {
    box-shadow: var(--shadow-sm);
  }
}

.why-item i {
  color: var(--accent-pink);
  margin-top: 0.2rem;
}

.why-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) and (max-width: 1199px) {
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .timeline {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
  }
}

.timeline-step {
  padding: 1.1rem 0.65rem;
  text-align: center;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .timeline-step:hover {
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
  }
}

.timeline-step strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-teal);
  margin-bottom: 0.4rem;
}

.timeline-step p {
  font-size: clamp(0.75rem, 1.5vw, 0.82rem);
  margin: 0;
  line-height: 1.45;
  hyphens: auto;
}

.process-banner {
  height: clamp(160px, 28vw, 240px);
  border-radius: var(--radius-lg);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  background: var(--img-process) center / cover no-repeat;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Use cases — flex centers short last rows */
.use-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.use-grid > .card {
  flex: 0 1 100%;
  max-width: 100%;
}

@media (min-width: 640px) {
  .use-grid > .card {
    flex: 0 1 calc((100% - 1.25rem) / 2);
    max-width: calc((100% - 1.25rem) / 2);
  }
}

@media (min-width: 1024px) {
  .use-grid {
    gap: 1.15rem;
  }

  .use-grid > .card {
    flex: 0 1 calc((100% - 3 * 1.15rem) / 4);
    max-width: calc((100% - 3 * 1.15rem) / 4);
  }

  .use-grid .card__inner h3 {
    font-size: 0.98rem;
    line-height: 1.35;
  }
}

/* Industries — flex centers last row (e.g. 4 + 3) */
.industry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.industry-list li {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  min-width: 0;
  flex: 0 1 100%;
  max-width: 100%;
}

@media (min-width: 640px) {
  .industry-list li {
    flex: 0 1 calc((100% - 1rem) / 2);
    max-width: calc((100% - 1rem) / 2);
  }
}

@media (min-width: 1024px) {
  .industry-list li {
    flex: 0 1 calc((100% - 3 * 1rem) / 4);
    max-width: calc((100% - 3 * 1rem) / 4);
  }
}

.industry-thumb {
  height: clamp(120px, 18vw, 148px);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.industry-list li:nth-child(1) .industry-thumb {
  background-image: url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=600&q=80");
}

.industry-list li:nth-child(2) .industry-thumb {
  background-image: url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=600&q=80");
}

.industry-list li:nth-child(3) .industry-thumb {
  background-image: url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=600&q=80");
}

.industry-list li:nth-child(4) .industry-thumb {
  background-image: url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=600&q=80");
}

.industry-list li:nth-child(5) .industry-thumb {
  background-image: url("https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?auto=format&fit=crop&w=600&q=80");
}

.industry-list li:nth-child(6) .industry-thumb {
  background-image: url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=600&q=80");
}

.industry-list li:nth-child(7) .industry-thumb {
  background-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=600&q=80");
}

.industry-copy {
  padding: 1.1rem 1.25rem 1.25rem;
}

@media (prefers-reduced-motion: no-preference) {
  .industry-list li:hover {
    border-color: var(--accent-teal);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .industry-list li:hover {
    border-color: var(--accent-teal);
  }
}

.industry-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.industry-list span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.portfolio-intro {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  align-items: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

/* Heading sits in the copy column with body text so the block centers vertically vs. the banner */
.portfolio-intro__copy > h2 {
  margin-bottom: clamp(0.45rem, 1.2vw, 0.65rem);
}

@media (min-width: 900px) {
  .portfolio-intro {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

.portfolio-intro__copy .section__lead {
  margin-bottom: 0;
}

.portfolio-intro__copy .section__lead + .section__lead {
  margin-top: 1rem;
}

.portfolio-banner {
  margin-top: 0;
  margin-bottom: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
  min-height: 200px;
  max-height: none;
  background: var(--img-portfolio) center / cover no-repeat;
}

.portfolio-outcomes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
}

.portfolio-outcomes > .portfolio-outcome {
  flex: 0 1 100%;
  max-width: 100%;
}

@media (min-width: 720px) {
  .portfolio-outcomes > .portfolio-outcome {
    flex: 0 1 calc((100% - 1rem) / 2);
    max-width: calc((100% - 1rem) / 2);
  }
}

@media (min-width: 1100px) {
  .portfolio-outcomes > .portfolio-outcome {
    flex: 0 1 calc((100% - 3 * 1rem) / 4);
    max-width: calc((100% - 3 * 1rem) / 4);
  }
}

.portfolio-outcome {
  padding: 1.15rem 1.2rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--accent-teal);
  min-width: 0;
}

.portfolio-outcome i {
  display: block;
  font-size: 1.35rem;
  color: var(--accent-teal);
  margin-bottom: 0.65rem;
}

.portfolio-outcome p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.promise-layout {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .promise-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    align-items: stretch;
  }
}

.promise-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 220px;
  background: var(--img-promise) center / cover no-repeat;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

.promise-photo:has(img) {
  background-image: none;
  background-color: #f1f5f9;
}

.promise-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 900px) {
  .promise-photo {
    min-height: 100%;
    aspect-ratio: auto;
  }
}

#faqs.section {
  position: relative;
  background: var(--bg-page);
}

#faqs.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--img-faq) center / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

#faqs .container {
  position: relative;
  z-index: 1;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.portfolio-card__thumb {
  height: 140px;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: var(--accent-teal);
}

.portfolio-card__body {
  padding: 1.15rem;
}

.portfolio-card__body h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.portfolio-card__body p {
  font-size: 0.86rem;
  margin: 0;
}

.testimonials {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  padding: 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.testimonial .stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.testimonial blockquote {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-muted);
}

.testimonial cite {
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

.testimonial cite span {
  display: block;
  font-weight: 400;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

/* Promise */
.promise-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  max-width: min(560px, 100%);
}

.promise-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.promise-list li span {
  min-width: 0;
}

.promise-list i {
  color: var(--accent-teal);
  font-size: 1.2rem;
}

/* FAQ */
.faq-wrap {
  max-width: min(720px, 100%);
  margin-inline: auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem clamp(0.85rem, 3vw, 1.25rem);
  box-shadow: var(--shadow-sm);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: clamp(0.9rem, 2.5vw, 0.98rem);
  font-weight: 600;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.faq-item button span {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}

.faq-item button:hover {
  color: var(--accent-teal);
}

.faq-item button i {
  color: var(--text-soft);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item.is-open button i {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-panel p {
  padding-bottom: 1.1rem;
  font-size: 0.95rem;
}

/* CTA */
.cta-band {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(219, 39, 119, 0.1));
  border: 1px solid var(--border);
  transition: box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--img-cta) center / cover no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .cta-band:hover {
    box-shadow: 0 16px 40px rgba(13, 148, 136, 0.12);
  }
}

.cta-band h2 {
  max-width: 22ch;
  margin-inline: auto;
}

.cta-band .section__lead {
  max-width: min(52ch, 100%);
  margin-inline: auto;
}

.cta-band--final .section__lead + .section__lead {
  margin-top: 0.5rem;
}

.cta-band--final h2 {
  max-width: 28ch;
}

/* Contact */
.contact-section {
  padding-bottom: 4rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-card {
  padding: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-card h3 {
  margin-bottom: 0.5rem;
}

.contact-card > .section__lead {
  margin-bottom: 1.25rem;
}

.contact-form-card {
  padding: clamp(1.35rem, 3vw, 1.85rem);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form-card--solo {
  max-width: min(640px, 100%);
  margin-inline: auto;
}

.container--narrow {
  max-width: min(720px, 100%);
}

/* Contact & Careers page hero */
.page-hero-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Clear fixed header (same idea as .hero); without this, top padding starts at y=0 and sits under the bar */
  min-height: clamp(17rem, 40vh, 26rem);
  padding-top: calc(var(--header-total) + clamp(2rem, 5vw, 3.25rem));
  padding-bottom: clamp(3rem, 7vw, 5rem);
  padding-left: 0;
  padding-right: 0;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(13, 148, 136, 0.2), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(6, 182, 212, 0.12), transparent 50%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(13, 148, 136, 0.1), transparent 55%),
    linear-gradient(165deg, #ecfdf5 0%, #f0fdfa 28%, #f8fafc 58%, #f1f5f9 100%);
}

.page-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230d9488' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.85;
  pointer-events: none;
}

.page-hero-banner::after {
  content: "";
  position: absolute;
  right: max(-8%, -4rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(380px, 70vw);
  height: min(380px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.14) 0%, rgba(6, 182, 212, 0.06) 40%, transparent 68%);
  pointer-events: none;
}

.page-hero-banner .container {
  position: relative;
  z-index: 1;
  width: 100%;
  flex-shrink: 0;
}

.page-hero-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-teal);
  margin: 0 auto 1rem;
}

.page-hero-banner__eyebrow i {
  font-size: 0.85rem;
  opacity: 0.9;
}

.page-hero-banner .section__head--center {
  margin-bottom: 0;
  text-align: center;
}

.page-hero-banner h1 {
  margin-bottom: clamp(0.65rem, 2vw, 1rem);
  text-align: center;
  background: linear-gradient(135deg, var(--text) 0%, #0f172a 50%, #134e4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .page-hero-banner h1 {
    color: var(--text);
    background: none;
  }
}

.page-hero-banner__lead {
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: min(40rem, 100%);
  margin: 0 auto;
  text-align: center;
}

.page-hero-banner__rule {
  width: 3rem;
  height: 3px;
  margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-teal), #06b6d4);
  opacity: 0.85;
}

.page-form-section {
  padding-top: clamp(2.75rem, 6.5vw, 4.75rem);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-banner::after {
    transform: translateY(-50%);
  }
}

.form-row {
  display: grid;
  gap: 0 1rem;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-white);
  color: var(--text);
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-group input[type="file"] {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-muted);
}

.form-group--file input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-page);
  cursor: pointer;
}

.form-group--file input[type="file"]::file-selector-button:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.form-group--honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-form {
  position: relative;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0 0 1rem;
  line-height: 1.45;
}

.form-required {
  color: var(--accent-teal);
  font-weight: 700;
}

.form-optional {
  font-weight: 400;
  color: var(--text-soft);
  font-size: 0.85em;
}

.form-file-name {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}

.form-file-name.is-hidden {
  display: none;
}

.form-alert {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-line;
  word-break: break-word;
}

.form-alert--success {
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.35);
  color: var(--text);
}

.form-alert--error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: var(--text);
}

.is-hidden {
  display: none !important;
}

.contact-card__details {
  padding: 0;
  list-style: none;
}

.form-hint--tight {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  position: relative;
  padding: clamp(2.75rem, 6vw, 4rem) 0 1.75rem;
  margin-top: 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, var(--bg-white) 38%);
  color: var(--text);
  border-top: 1px solid var(--border);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), #06b6d4, rgba(219, 39, 119, 0.55));
  opacity: 0.9;
}

.site-footer .container {
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.site-footer nav.footer-col a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer nav.footer-col a:not(.btn):hover {
  color: var(--accent-teal);
}

.footer-grid {
  display: grid;
  width: 100%;
  gap: clamp(1.75rem, 4vw, 2.25rem);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    justify-content: stretch;
    column-gap: clamp(1.35rem, 2.8vw, 2rem);
    row-gap: clamp(1.75rem, 3.5vw, 2.25rem);
  }
}

.footer-brand {
  max-width: 100%;
  min-width: 0;
}

.footer-col,
.footer-contact {
  min-width: 0;
}

.footer-brand__lead {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1rem 0 0.65rem;
  line-height: 1.45;
}

.footer-brand__secondary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.footer-cta .btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

.footer-col__title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  font-weight: 700;
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin: 0;
}

nav.footer-col a:not(.btn) {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.footer-contact__list {
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-contact__row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0;
}

.footer-contact__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.12rem;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.14), rgba(6, 182, 212, 0.1));
  color: var(--accent-teal);
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.footer-contact__body {
  margin: 0;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-contact__body a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact__body a:hover {
  color: var(--accent-teal);
}

.footer-social__title {
  margin: 0.5rem 0 0.85rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-white);
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.footer-icon-link:hover {
  color: var(--accent-teal);
  border-color: rgba(13, 148, 136, 0.45);
  background: rgba(13, 148, 136, 0.06);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  .footer-icon-link:hover {
    transform: translateY(-2px);
  }
}

.footer-icon-link i {
  font-size: 1.05rem;
}

.footer-icon-link--social i {
  font-size: 1.12rem;
}

.footer-bottom {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.footer-bottom__copy {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

body.nav-open {
  overflow: hidden;
}

/* About page */
.about-page__hero {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  padding-top: calc(var(--header-total) + clamp(2rem, 5vw, 3.5rem));
  padding-bottom: clamp(2.75rem, 6vw, 4.25rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 120% 90% at 100% -10%, rgba(13, 148, 136, 0.14), transparent 52%),
    radial-gradient(ellipse 90% 70% at -5% 105%, rgba(6, 182, 212, 0.1), transparent 48%),
    linear-gradient(165deg, var(--bg-white) 0%, var(--bg-page) 55%, var(--bg-page) 100%);
}

.about-page__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.about-page__hero::after {
  content: "";
  position: absolute;
  width: min(520px, 95vw);
  height: min(520px, 95vw);
  top: -140px;
  right: -100px;
  background: radial-gradient(circle, rgba(219, 39, 113, 0.07) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.about-page__hero .container {
  position: relative;
  z-index: 1;
}

.about-page__hero-grid {
  align-items: center;
}

.about-page__hero-copy {
  max-width: min(36rem, 100%);
}

@media (min-width: 960px) {
  .about-page__hero-copy {
    max-width: min(34rem, 100%);
    padding-right: 0.5rem;
  }
}

.about-page__hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.9rem, 4.2vw, 2.65rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text);
}

.about-page__tagline {
  margin: 0 0 1.35rem;
  padding: clamp(0.95rem, 2.5vw, 1.15rem) clamp(1rem, 2.5vw, 1.25rem);
  font-size: clamp(0.98rem, 2.1vw, 1.12rem);
  line-height: 1.58;
  color: var(--text);
  max-width: 42rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(10px);
}

@supports not (backdrop-filter: blur(10px)) {
  .about-page__tagline {
    background: var(--bg-white);
  }
}

.about-page__tagline strong {
  font-weight: 800;
  color: var(--accent-teal);
  display: inline;
}

.about-page__intro {
  max-width: 40rem;
  margin-bottom: 0.85rem;
}

.about-page__intro:last-of-type {
  margin-bottom: 0;
}

.about-page__hero-visual {
  padding-bottom: clamp(0.25rem, 2vw, 1rem);
}

.about-page__hero-figure .hero__figure-main img {
  object-position: center 40%;
}

.about-page__prose {
  max-width: min(44rem, 100%);
}

.about-page__prose p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.about-page__prose p:last-child {
  margin-bottom: 0;
}

.about-page__service-grid {
  margin-top: 0.25rem;
}

.about-page__how-grid {
  margin-top: 0.25rem;
}

.about-page__how-card p {
  margin: 0;
  flex-grow: 1;
}

.about-page__why-started-main,
.about-page__teams-main {
  min-width: 0;
}

.about-page__why-started-title {
  margin: 0 0 1.15rem;
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.about-page__prose--why p {
  color: var(--text-muted);
}

.about-page__teams-layout .section__head {
  margin-bottom: 1.15rem;
}

.about-page__teams-layout .section__head--wide {
  max-width: min(40rem, 100%);
}

.about-page__choose-list {
  max-width: min(40rem, 100%);
}

@media (min-width: 520px) {
  .about-page__choose-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1100px) {
  .about-page__choose-list {
    grid-template-columns: 1fr;
  }
}

.about-page__lets-talk-band h2 {
  max-width: 32ch;
}

/* Background verification service page */
.bgv-page #bgv-types.section--alt,
.bgv-page #bgv-process.section--alt,
.bgv-page #bgv-feedback.section--alt,
.bgv-page #bgv-faqs.section--alt {
  background: var(--bg-page);
  border-block-color: var(--border);
}

.use-grid--bgv .bgv-scenario-thumb {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e2e8f0;
}

.use-grid--bgv .bgv-scenario-thumb--1 {
  background-image: url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=800&q=80");
}

.use-grid--bgv .bgv-scenario-thumb--2 {
  background-image: url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=800&q=80");
}

.use-grid--bgv .bgv-scenario-thumb--3 {
  background-image: url("https://images.unsplash.com/photo-1560472354-b33ff0c44a43?auto=format&fit=crop&w=800&q=80");
}

.use-grid--bgv .bgv-scenario-thumb--4 {
  background-image: url("../assets/images/bgv-cta-image.jpg");
}

.bgv-page__feedback-banner {
  background-image: url("../assets/images/bgv-feedback.jpg");
}

.faq-preface {
  text-align: center;
  max-width: min(52ch, 100%);
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.bgv-page__timelines-main {
  min-width: 0;
}

/* HR consulting page */
.hr-page #hr-services.section--alt,
.hr-page #hr-metrics.section--alt,
.hr-page #hr-workflow.section--alt {
  background: var(--bg-page);
  border-block-color: var(--border);
}

.hr-page__service-grid,
.hr-page__approach-grid,
.hr-page__workflow-grid {
  margin-top: 0.25rem;
}

.hr-page__metrics-top {
  margin-bottom: clamp(2rem, 4.5vw, 2.75rem);
}

.hr-page__metrics-intro {
  min-width: 0;
}

.hr-page__metrics-intro .section__head {
  margin-bottom: 0;
  max-width: min(40rem, 100%);
}

.hr-page__metrics-photo {
  max-height: 280px;
}

@media (min-width: 900px) {
  .hr-page__metrics-photo {
    max-height: none;
    min-height: 240px;
  }
}

.hr-page__metrics-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .hr-page__metrics-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hr-page__metrics-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .hr-page__metrics-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hr-metric-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: clamp(1.1rem, 2.5vw, 1.35rem) clamp(1.15rem, 2.5vw, 1.4rem);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent-teal);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  min-height: 100%;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .hr-metric-card:hover {
    box-shadow: 0 10px 28px rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.22);
    border-left-color: var(--accent-teal);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hr-metric-card:hover {
    box-shadow: 0 10px 28px rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.22);
    border-left-color: var(--accent-teal);
  }
}

.hr-metric-card i {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.14), rgba(6, 182, 212, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 2px 10px rgba(13, 148, 136, 0.08);
  color: var(--accent-teal);
  font-size: 1.05rem;
}

.hr-metric-card p {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.use-grid--hr .hr-scenario-thumb {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e2e8f0;
}

.use-grid--hr .hr-scenario-thumb--1 {
  background-image: url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=800&q=80");
}

.use-grid--hr .hr-scenario-thumb--2 {
  background-image: url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=800&q=80");
}

.use-grid--hr .hr-scenario-thumb--3 {
  background-image: url("../assets/images/hr-problems.jpg");
}

.use-grid--hr .hr-scenario-thumb--4 {
  background-image: url("../assets/images/hr-what.jpg");
}

/* Website development page */
.webdev-page #webdev-services.section--alt,
.webdev-page #webdev-process.section--alt,
.webdev-page #webdev-feedback.section--alt {
  background: var(--bg-page);
  border-block-color: var(--border);
}

.webdev-page__service-grid,
.webdev-page__process-grid,
.webdev-page__seo-grid {
  margin-top: 0.25rem;
}

.webdev-page__feedback-banner {
  background-image: url("../assets/images/webdev-process.jpg");
}

/* App development page */
.app-page #app-services.section--alt,
.app-page #app-tech.section--alt,
.app-page #app-perf.section--alt,
.app-page #app-feedback.section--alt {
  background: var(--bg-page);
  border-block-color: var(--border);
}

.app-page__service-grid,
.app-page__ux-grid,
.app-page__tech-cards,
.app-page__process-grid,
.app-page__perf-grid,
.app-page__analytics-grid {
  margin-top: 0.25rem;
}

.app-page__tech-intro-row {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.35rem);
}

.app-page__feedback-banner {
  background-image: url("../assets/images/app-how.jpg");
}

/* Custom software page */
.csw-page #csw-solutions.section--alt,
.csw-page #csw-tech.section--alt,
.csw-page #csw-process.section--alt,
.csw-page #csw-engagement.section--alt {
  background: var(--bg-page);
  border-block-color: var(--border);
}

.csw-page__service-grid,
.csw-page__tech-cards,
.csw-page__process-grid,
.csw-page__engagement-grid {
  margin-top: 0.25rem;
}

.csw-page__tech-intro-row {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.35rem);
}

.csw-page__bullet-list {
  margin-top: 1rem;
}

.csw-page__feedback-banner {
  background-image: url("../assets/images/csw-who.jpg");
}

/* UI/UX design page */
.uiux-page #uiux-services.section--alt,
.uiux-page #uiux-deliverables.section--alt,
.uiux-page #uiux-access.section--alt,
.uiux-page #uiux-usecases.section--alt,
.uiux-page #uiux-faqs.section--alt {
  background: var(--bg-page);
  border-block-color: var(--border);
}

.uiux-page__service-grid,
.uiux-page__process-grid,
.uiux-page__deliverables-grid,
.uiux-page__usecases-grid {
  margin-top: 0.25rem;
}

.uiux-page__bullet-list {
  margin-top: 1rem;
}

.uiux-page__deliverables-list {
  margin-top: 0.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  max-width: min(640px, 100%);
}

.uiux-page__feedback-banner {
  background-image: url("../assets/images/uiux-means.jpg");
}

/* IT consulting page */
.itc-page #itc-challenges.section--alt,
.itc-page #itc-ux.section--alt,
.itc-page #itc-tech.section--alt,
.itc-page #itc-portfolio.section--alt,
.itc-page #itc-engagement.section--alt,
.itc-page #itc-cta.section--alt {
  background: var(--bg-page);
  border-block-color: var(--border);
}

.itc-page__service-grid,
.itc-page__ux-grid,
.itc-page__process-grid,
.itc-page__usecases-grid,
.itc-page__engagement-grid {
  margin-top: 0.25rem;
}

.itc-page__bullet-list {
  margin-top: 1rem;
}

.itc-page__tech-head {
  margin-bottom: clamp(1.15rem, 2.8vw, 1.65rem);
}

.itc-page__tech-head h2 {
  margin-bottom: clamp(0.35rem, 1vw, 0.55rem);
}

.itc-page__tech-head .section__lead {
  margin-bottom: 0;
  margin-top: 0;
  max-width: min(48rem, 100%);
  margin-inline: auto;
}

.itc-page__tech-list {
  margin-top: 0;
  margin-inline: auto;
  max-width: min(960px, 100%);
}

.itc-page__tech-list li {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 0.5rem;
  padding: 1.1rem 0.9rem;
}

.itc-page__tech-list li i {
  flex-shrink: 0;
}

@media (min-width: 720px) {
  .itc-page__tech-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: min(960px, 100%);
  }

  .itc-page__tech-list li {
    margin: 0;
  }
}

.itc-page__feedback-banner {
  background-image: url("../assets/images/itc-how.jpg");
}

/* Blog listing + detail */
.blog-page .blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.blog-layout-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.25rem;
  border-radius: 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.blog-layout-toggle a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.blog-layout-toggle a:hover {
  color: var(--text);
  background: var(--bg-page);
}

.blog-layout-toggle a[aria-current="page"] {
  color: #fff;
  background: var(--gradient-hero);
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.25);
}

.blog-shell {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.25rem);
  align-items: start;
}

@media (min-width: 1024px) {
  .blog-shell {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  }

  .blog-sidebar {
    position: sticky;
    top: calc(var(--header-total) + 1rem);
  }
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-widget {
  padding: 1.15rem 1.2rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.blog-widget h3 {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-widget a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.blog-widget a:hover {
  color: var(--accent-teal);
}

.blog-search label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.blog-search input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-page);
}

.blog-search input:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.blog-categories li + li,
.blog-recent li + li {
  margin-top: 0.55rem;
}

.blog-widget--cta {
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.1), rgba(6, 182, 212, 0.08));
  border-color: rgba(13, 148, 136, 0.2);
}

.blog-widget--cta h3 {
  border-bottom-color: rgba(13, 148, 136, 0.2);
}

.blog-widget--cta p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.blog-widget--cta .btn {
  width: 100%;
  justify-content: center;
}

/* 3-column card grid */
.blog-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  min-width: 0;
  height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .blog-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.22);
    transform: translateY(-2px);
  }
}

.blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.blog-card__media {
  aspect-ratio: 16 / 10;
  background: var(--border);
  overflow: hidden;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .blog-card:hover .blog-card__media img {
    transform: scale(1.04);
  }
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.15rem 1.2rem;
  gap: 0.5rem;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-teal);
}

.blog-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.blog-card__excerpt {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  flex-grow: 1;
}

.blog-card__more {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-teal);
}

.blog-card__link:hover .blog-card__more {
  color: var(--text);
}

/* Full-width list rows */
.blog-list-wide {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.blog-row {
  display: grid;
  gap: 1rem;
  padding: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 720px) {
  .blog-row {
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
    align-items: stretch;
  }
}

.blog-row:hover {
  border-color: rgba(13, 148, 136, 0.2);
  box-shadow: var(--shadow-md);
}

.blog-row__link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.blog-row__media {
  min-height: 180px;
  background: var(--border);
}

@media (min-width: 720px) {
  .blog-row__media {
    min-height: 100%;
  }
}

.blog-row__media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.blog-row__body {
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
}

.blog-row__meta {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-teal);
}

.blog-row__title {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.blog-row__excerpt {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.blog-row__more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-teal);
  margin-top: 0.25rem;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.35rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--border);
}

.pagination__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-white);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.pagination__control:hover:not([aria-disabled="true"]) {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: rgba(13, 148, 136, 0.06);
}

.pagination__control[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-soft);
  user-select: none;
}

.pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.pagination__page:hover {
  color: var(--accent-teal);
  background: rgba(13, 148, 136, 0.08);
}

.pagination__page[aria-current="page"] {
  color: #fff;
  background: var(--gradient-hero);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

/* Blog article (detail) */
.blog-article-hero__nav {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  text-align: start;
}

.blog-article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  margin: clamp(0.75rem, 2vw, 1rem) auto 0;
  max-width: min(40rem, 100%);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
}

.blog-article-hero__meta-sep {
  color: var(--text-soft);
  font-weight: 500;
}

.blog-back--crumb {
  margin: 0;
}

.blog-article-shell {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.25rem);
  align-items: start;
}

@media (min-width: 1024px) {
  .blog-article-shell {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  }
}

.blog-article {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
  margin-bottom: 0.75rem;
}

.blog-article h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.blog-article__lead {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.blog-article__figure {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: var(--border);
}

.blog-article__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-article__prose {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.blog-article__prose p {
  margin: 0 0 1rem;
}

.blog-article__prose h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.25rem;
  color: var(--text);
}

.blog-article__prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.blog-article__prose li {
  margin-bottom: 0.35rem;
}

.blog-article__footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.blog-back {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-back:hover {
  color: var(--text);
}

section[id] {
  scroll-margin-top: calc(var(--header-total) + 12px);
}

article[id^="service-"],
article[id^="about-service-"] {
  scroll-margin-top: calc(var(--header-total) + 12px);
}

.site-form input.input-error,
.site-form select.input-error,
.site-form textarea.input-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

.site-form small.input-error {
  display: block;
  margin-top: 0.35rem;
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 600;
}
