:root {
  --ih-brand-font: "Montserrat", sans-serif;

  --ih-brand-ink: #313030;
  --ih-brand-muted: #5B5A58;
  --ih-brand-grey: #969694;
  --ih-brand-line: rgba(49, 48, 48, 0.09);
  --ih-brand-soft: #F3F2F0;
  --ih-brand-white: #FFFFFF;

  --ih-brand-teal: #159EA5;
  --ih-brand-teal-dark: #0E8F96;
  --ih-brand-teal-soft: #DDF3F4;
  --ih-brand-navy: #1D4F91;
  --ih-brand-pink: #F23F73;
  --ih-brand-peach: #FFF0E7;

  --ih-brand-radius: 8px;
  --ih-brand-shell: 1240px;
  --ih-brand-page-gutter: 48px;
  --ih-brand-shadow: 0 12px 32px rgba(49, 48, 48, 0.07);
  --ih-brand-shadow-strong: 0 18px 44px rgba(49, 48, 48, 0.12);

  --ih-type-hero: 2.2rem;
  --ih-type-section: 1.96rem;
  --ih-type-card: 1.25rem;
  --ih-type-body: 1rem;
  --ih-type-small: 0.88rem;
  --ih-type-kicker: 0.78rem;

  --ih-space-1: 8px;
  --ih-space-2: 12px;
  --ih-space-3: 18px;
  --ih-space-4: 24px;
  --ih-space-5: 32px;
  --ih-space-6: 48px;
  --ih-space-7: 64px;
}

.ih-brand-page {
  background: var(--ih-brand-white);
  color: var(--ih-brand-ink);
  font-family: var(--ih-brand-font);
}

.ih-brand-shell {
  width: min(var(--ih-brand-shell), calc(100% - var(--ih-brand-page-gutter)));
  margin: 0 auto;
}

.ih-brand-section {
  padding: var(--ih-space-7) 0;
}

.ih-brand-kicker {
  display: inline-flex;
  margin: 0 0 var(--ih-space-2);
  color: var(--ih-brand-grey);
  font-size: var(--ih-type-kicker);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ih-brand-heading {
  margin: 0 0 var(--ih-space-3);
  color: var(--ih-brand-ink);
  font-family: var(--ih-brand-font);
  font-size: var(--ih-type-section);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
}

.ih-brand-copy {
  margin: 0;
  color: var(--ih-brand-muted);
  font-size: var(--ih-type-body);
  line-height: 1.72;
}

.ih-brand-card {
  border: 1px solid var(--ih-brand-line);
  border-radius: var(--ih-brand-radius);
  background: var(--ih-brand-white);
  box-shadow: var(--ih-brand-shadow);
}

.ih-brand-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ih-brand-teal-dark);
  border-radius: var(--ih-brand-radius);
  background: var(--ih-brand-teal-dark);
  color: var(--ih-brand-white);
  font-family: var(--ih-brand-font);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.ih-brand-button:hover,
.ih-brand-button:focus-visible {
  background: var(--ih-brand-teal);
  box-shadow: 0 12px 24px rgba(14, 143, 150, 0.2);
  transform: translateY(-1px);
}

.ih-brand-button-secondary {
  border-color: var(--ih-brand-line);
  background: var(--ih-brand-white);
  color: var(--ih-brand-ink);
}

.ih-brand-button-secondary:hover,
.ih-brand-button-secondary:focus-visible {
  border-color: rgba(21, 158, 165, 0.35);
  background: var(--ih-brand-teal-soft);
  color: var(--ih-brand-ink);
}

@media (max-width: 767px) {
  :root {
    --ih-brand-page-gutter: 32px;
    --ih-type-hero: 2rem;
    --ih-type-section: 1.7rem;
    --ih-type-card: 1.15rem;
    --ih-space-7: 48px;
  }
}

/* Top navigation pages: Blog, Categories, Our Work, How it works */
.ih-blog-modern-template,
.ih-blog-full-width,
.ih-portfolio-template,
.ih-portfolio-full-width,
.ih-how-full-width,
.ih-how-full-width-inner,
.ih-blog-page,
.ih-portfolio-page,
.ih-how-page {
  background: var(--ih-brand-white) !important;
  color: var(--ih-brand-ink) !important;
  font-family: var(--ih-brand-font) !important;
}

.ih-categories-page {
  font-family: var(--ih-brand-font) !important;
}

.ih-blog-shell,
.ih-portfolio-shell,
.ih-how-shell {
  width: min(var(--ih-brand-shell), calc(100% - var(--ih-brand-page-gutter))) !important;
  margin-inline: auto !important;
}

.ih-blog-page h1,
.ih-portfolio-page h1,
.ih-how-page h1 {
  color: var(--ih-brand-ink) !important;
  font-size: var(--ih-type-hero) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
}

.ih-blog-page h2,
.ih-portfolio-page h2,
.ih-how-page h2 {
  color: var(--ih-brand-ink) !important;
  font-size: var(--ih-type-section) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.12 !important;
}

.ih-blog-page h3,
.ih-portfolio-page h3,
.ih-how-page h3 {
  color: var(--ih-brand-ink) !important;
  font-size: var(--ih-type-card) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.18 !important;
}

.ih-blog-page p,
.ih-portfolio-page p,
.ih-how-page p {
  color: var(--ih-brand-muted) !important;
  font-size: var(--ih-type-body) !important;
  line-height: 1.72 !important;
}

.ih-categories-page h1,
.ih-categories-page h2,
.ih-categories-page h3,
.ih-categories-page p {
  font-family: var(--ih-brand-font) !important;
}

.ih-categories-page h1 {
  font-size: var(--ih-type-hero) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
}

.ih-categories-page h2 {
  font-size: var(--ih-type-section) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.12 !important;
}

.ih-categories-page h3 {
  font-size: var(--ih-type-card) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.18 !important;
}

.ih-categories-page p {
  font-size: var(--ih-type-body) !important;
  line-height: 1.72 !important;
}

.ih-blog-kicker,
.ih-portfolio-kicker,
.ih-how-kicker {
  display: inline-flex !important;
  margin: 0 0 var(--ih-space-2) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ih-brand-grey) !important;
  font-size: var(--ih-type-kicker) !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
}

.ih-blog-hero,
.ih-portfolio-hero,
.ih-how-hero,
.ih-blog-topics,
.ih-blog-editorial,
.ih-portfolio-showcase,
.ih-portfolio-highlight,
.ih-how-steps,
.ih-how-timeline,
.ih-how-deliverables,
.ih-how-testimonials {
  background: var(--ih-brand-white) !important;
}

.ih-blog-hero-panel,
.ih-portfolio-hero-panel,
.ih-how-hero-panel {
  border: 1px solid var(--ih-brand-line) !important;
  border-radius: var(--ih-brand-radius) !important;
  background: var(--ih-brand-white) !important;
  box-shadow: var(--ih-brand-shadow) !important;
}

.ih-blog-hero-panel::before,
.ih-portfolio-hero-panel::before,
.ih-how-hero-panel::before {
  content: none !important;
}

.ih-blog-button,
.ih-portfolio-button,
.ih-how-button,
.ih-how-process-cta {
  min-height: 48px !important;
  padding: 0 24px !important;
  border: 1px solid var(--ih-brand-teal-dark) !important;
  border-radius: var(--ih-brand-radius) !important;
  background: var(--ih-brand-teal-dark) !important;
  color: var(--ih-brand-white) !important;
  box-shadow: none !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
  text-transform: none !important;
}

.ih-blog-button:hover,
.ih-blog-button:focus-visible,
.ih-portfolio-button:hover,
.ih-portfolio-button:focus-visible,
.ih-how-button:hover,
.ih-how-button:focus-visible,
.ih-how-process-cta:hover,
.ih-how-process-cta:focus-visible {
  background: var(--ih-brand-teal) !important;
  border-color: var(--ih-brand-teal) !important;
  box-shadow: 0 12px 24px rgba(14, 143, 150, 0.2) !important;
  transform: translateY(-1px) !important;
}

.ih-blog-link,
.ih-blog-featured-link,
.ih-portfolio-link,
.ih-how-link {
  color: var(--ih-brand-ink) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.ih-blog-card,
.ih-blog-featured,
.ih-blog-hero-stats span,
.ih-blog-topics-panel,
.ih-blog-editorial-panel,
.ih-blog-cta-panel,
.ih-portfolio-tile,
.ih-portfolio-highlight-panel,
.ih-portfolio-highlight-stack article,
.ih-portfolio-cta-panel,
.ih-portfolio-page-control,
.ih-portfolio-page-button,
.ih-how-step-card,
.ih-how-step-panel,
.ih-how-board,
.ih-how-timeline-card,
.ih-how-deliverables-panel,
.ih-how-deliverable-card,
.ih-how-testimonial,
.ih-how-guarantee-panel,
.ih-how-faq-panel,
.ih-how-cta-panel {
  border: 1px solid var(--ih-brand-line) !important;
  border-radius: var(--ih-brand-radius) !important;
  background: var(--ih-brand-white) !important;
  box-shadow: var(--ih-brand-shadow) !important;
}

.ih-blog-card:hover,
.ih-blog-featured:hover,
.ih-portfolio-tile:hover,
.ih-portfolio-page-button:hover,
.ih-portfolio-page-control:hover:not(:disabled),
.ih-how-step-card:hover,
.ih-how-step-card:focus-within {
  box-shadow: var(--ih-brand-shadow-strong) !important;
  transform: translateY(-2px) !important;
}

.ih-portfolio-chip-row button.is-active,
.ih-portfolio-chip-row button:hover,
.ih-portfolio-page-button.is-active,
.ih-blog-topic-list a:hover,
.ih-blog-topic-list a:focus-visible {
  border-color: var(--ih-brand-teal-dark) !important;
  background: var(--ih-brand-teal-dark) !important;
  color: var(--ih-brand-white) !important;
}

.ih-how-step-top i,
.ih-how-board-dot,
.ih-how-art-mark,
.ih-how-floating-note {
  background: var(--ih-brand-teal-soft) !important;
  color: var(--ih-brand-teal-dark) !important;
}

.ih-blog-meta span,
.ih-portfolio-tile small,
.ih-how-step-count,
.ih-how-step-top span {
  color: var(--ih-brand-grey) !important;
  font-size: var(--ih-type-kicker) !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

.ih-blog-card-media,
.ih-blog-featured-media,
.ih-portfolio-tile,
.ih-portfolio-hero-card,
.ih-how-step-art,
.ih-how-deliverables-image {
  border-radius: var(--ih-brand-radius) !important;
  overflow: hidden !important;
}

.ih-blog-card-img,
.ih-blog-featured-img,
.ih-portfolio-tile img,
.ih-portfolio-hero-media img {
  transition: transform 240ms ease !important;
}

.ih-blog-card-media:hover .ih-blog-card-img,
.ih-blog-featured-media:hover .ih-blog-featured-img,
.ih-portfolio-tile:hover img {
  transform: scale(1.025) !important;
}

.ih-blog-hero-stats,
.ih-blog-grid,
.ih-portfolio-grid,
.ih-how-step-grid {
  gap: var(--ih-space-3) !important;
}

/* Our Work: align the newer hero and approach section with the brand system. */
.ih-phero-outer {
  padding: var(--ih-space-6) 0 var(--ih-space-5) !important;
  background: var(--ih-brand-white) !important;
}

.ih-phero-panel {
  min-height: 0 !important;
  padding: clamp(32px, 4vw, 54px) !important;
  border: 1px solid var(--ih-brand-line) !important;
  border-left: 0 !important;
  border-radius: var(--ih-brand-radius) !important;
  background:
    radial-gradient(circle at 85% 14%, rgba(242, 63, 115, 0.1), transparent 32%),
    var(--ih-brand-white) !important;
  box-shadow: var(--ih-brand-shadow) !important;
}

.ih-phero-eyebrow {
  margin-bottom: var(--ih-space-3) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ih-brand-grey) !important;
  font-size: var(--ih-type-kicker) !important;
  letter-spacing: 0.12em !important;
}

.ih-phero-eyebrow::before {
  color: var(--ih-brand-pink) !important;
}

.ih-phero-headline {
  margin-bottom: var(--ih-space-3) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em !important;
}

.ih-phero-line-thin,
.ih-phero-line-bold,
.ih-phero-line-accent {
  font-style: normal !important;
  letter-spacing: -0.04em !important;
}

.ih-phero-line-thin {
  color: var(--ih-brand-ink) !important;
  font-size: clamp(2.45rem, 4.4vw, 4.9rem) !important;
  font-weight: 700 !important;
}

.ih-phero-line-bold {
  color: var(--ih-brand-ink) !important;
  font-size: clamp(2.45rem, 4.4vw, 4.9rem) !important;
  font-weight: 700 !important;
}

.ih-phero-line-bold em,
.ih-phero-line-accent {
  color: var(--ih-brand-teal-dark) !important;
}

.ih-phero-line-accent {
  margin-top: var(--ih-space-1) !important;
  font-size: clamp(1.35rem, 2.2vw, 2.35rem) !important;
  font-weight: 700 !important;
}

.ih-phero-sub p {
  max-width: 520px !important;
  color: var(--ih-brand-muted) !important;
  font-size: var(--ih-type-body) !important;
  line-height: 1.72 !important;
}

.ih-phero-btn {
  min-height: 48px !important;
  height: auto !important;
  padding: 0 24px !important;
  border-radius: var(--ih-brand-radius) !important;
  background: var(--ih-brand-teal-dark) !important;
  color: var(--ih-brand-white) !important;
  box-shadow: none !important;
  font-size: 0.92rem !important;
}

.ih-phero-btn:hover,
.ih-phero-btn:focus-visible {
  background: var(--ih-brand-teal) !important;
  box-shadow: 0 12px 24px rgba(14, 143, 150, 0.2) !important;
}

.ih-phero-img {
  border-radius: var(--ih-brand-radius) !important;
  box-shadow: var(--ih-brand-shadow) !important;
}

.ih-phero-img-label,
.ih-phero-badge {
  background: var(--ih-brand-pink) !important;
}

.ih-phero-stat strong {
  color: var(--ih-brand-ink) !important;
}

.ih-portfolio-highlight {
  padding: var(--ih-space-6) 0 !important;
  background: var(--ih-brand-white) !important;
}

.ih-portfolio-highlight-panel {
  align-items: stretch !important;
  gap: clamp(32px, 5vw, 72px) !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr) !important;
  padding: clamp(34px, 4vw, 56px) clamp(42px, 5vw, 68px) !important;
  border: 1px solid var(--ih-brand-line) !important;
  border-radius: var(--ih-brand-radius) !important;
  background:
    linear-gradient(90deg, rgba(243, 242, 240, 0.58), rgba(255, 255, 255, 0) 48%),
    var(--ih-brand-white) !important;
  box-shadow: var(--ih-brand-shadow) !important;
}

.ih-portfolio-highlight-panel > div:first-child {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.ih-portfolio-highlight h2 {
  max-width: 18ch !important;
  margin: 0 0 var(--ih-space-3) !important;
  color: var(--ih-brand-ink) !important;
  font-size: clamp(1.72rem, 2.15vw, 2.1rem) !important;
  line-height: 1.12 !important;
}

.ih-portfolio-highlight p,
.ih-portfolio-highlight li {
  color: var(--ih-brand-muted) !important;
  font-size: 0.96rem !important;
  line-height: 1.68 !important;
}

.ih-portfolio-highlight ul {
  gap: var(--ih-space-2) !important;
  margin-top: var(--ih-space-3) !important;
}

.ih-portfolio-highlight ul li::before {
  color: var(--ih-brand-teal-dark) !important;
}

.ih-portfolio-highlight-stack {
  align-self: center !important;
  gap: var(--ih-space-2) !important;
}

.ih-portfolio-highlight-stack article {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 4px var(--ih-space-2) !important;
  align-content: center !important;
  min-height: 92px !important;
  padding: 18px 20px !important;
  border: 1px solid var(--ih-brand-line) !important;
  border-radius: var(--ih-brand-radius) !important;
  background: var(--ih-brand-white) !important;
  box-shadow: 0 10px 24px rgba(49, 48, 48, 0.06) !important;
}

.ih-portfolio-highlight-stack span {
  grid-row: span 2 !important;
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: var(--ih-brand-teal-soft) !important;
}

.ih-portfolio-highlight-stack span svg {
  width: 17px !important;
  height: 17px !important;
  fill: var(--ih-brand-teal-dark) !important;
}

.ih-portfolio-highlight-stack strong {
  display: block !important;
  color: var(--ih-brand-ink) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.ih-portfolio-highlight-stack p {
  margin: 0 !important;
  color: var(--ih-brand-muted) !important;
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
}

/* Product showcase pages that should inherit the home brand typography only. */
.ih-product-showcase--brand-font {
  font-family: var(--ih-brand-font) !important;
}

.ih-product-showcase--brand-font h1 {
  font-family: var(--ih-brand-font) !important;
  font-size: var(--ih-type-hero) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
}

.ih-product-showcase--brand-font h2:not([class*="text-[18vw]"]):not([class*="text-[clamp(4rem"]) {
  font-family: var(--ih-brand-font) !important;
  font-size: var(--ih-type-section) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.12 !important;
}

.ih-product-showcase--brand-font h3,
.ih-product-showcase--brand-font h4 {
  font-family: var(--ih-brand-font) !important;
  font-size: var(--ih-type-card) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.18 !important;
}

.ih-product-showcase--brand-font p {
  font-family: var(--ih-brand-font) !important;
  font-size: var(--ih-type-body) !important;
  line-height: 1.72 !important;
}

.ih-product-showcase--brand-font #philosophy p[class*="text-[clamp(1.8rem"] {
  font-size: clamp(1.8rem, 4vw, 3.5rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.12 !important;
}

.ih-product-showcase--brand-font .kicker,
.ih-product-showcase--brand-font span[class*="uppercase"],
.ih-product-showcase--brand-font div[class*="uppercase"],
.ih-product-showcase--brand-font a[class*="uppercase"] {
  font-family: var(--ih-brand-font) !important;
  font-size: var(--ih-type-kicker) !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
}

.ih-product-showcase--brand-font a {
  font-family: var(--ih-brand-font) !important;
}

@media (max-width: 767px) {
  .ih-blog-page h1,
  .ih-portfolio-page h1,
  .ih-how-page h1 {
    font-size: var(--ih-type-hero) !important;
  }

  .ih-blog-hero-panel,
  .ih-portfolio-hero-panel,
  .ih-how-hero-panel {
    border-radius: var(--ih-brand-radius) !important;
  }

  .ih-phero-panel,
  .ih-portfolio-highlight-panel {
    padding: var(--ih-space-4) !important;
  }

  .ih-phero-actions {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .ih-portfolio-highlight-panel {
    grid-template-columns: 1fr !important;
  }

  .ih-portfolio-highlight h2 {
    max-width: 100% !important;
  }
}
