:root {
  --ip-orange: #f05836;
  --ip-orange-dark: #c94326;
  --ip-ink: #1d1d1b;
  --ip-charcoal: #292f2b;
  --ip-muted: #65615c;
  --ip-cream: #f7f3ee;
  --ip-surface: #ffffff;
  --ip-line: #ded7ce;
  --ip-green: #0f766e;
}

.ip-page {
  background: var(--ip-cream);
  color: var(--ip-ink);
  font-family: "Poppins", sans-serif;
}

.ip-page * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.ip-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ip-hero,
.ip-page-hero {
  padding: 150px 0 76px;
  background: var(--ip-charcoal);
  color: #fff;
}

.ip-hero-grid,
.ip-page-hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}

.ip-hero-grid > *,
.ip-page-hero-grid > *,
.ip-contact-grid > * {
  min-width: 0;
}

.ip-hero-copy h1,
.ip-page-hero h1,
.ip-final-cta h2 {
  margin: 0;
  max-width: 900px;
  font-size: 62px;
  line-height: 1.03;
  font-weight: 800;
  overflow-wrap: normal;
}

.ip-page-hero h1 {
  font-size: 56px;
}

.ip-eyebrow {
  margin: 0 0 14px;
  color: var(--ip-orange);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ip-lead {
  margin: 24px 0 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.55;
}

.ip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.ip-microcopy {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.5;
}

.ip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ip-btn:hover {
  transform: translateY(-2px);
}

.ip-btn-primary {
  background: var(--ip-orange);
  color: #fff;
  border-color: var(--ip-orange);
}

.ip-btn-primary:hover {
  background: var(--ip-orange-dark);
  border-color: var(--ip-orange-dark);
  color: #fff;
}

.ip-btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.ip-btn-secondary:hover {
  border-color: #fff;
  color: #fff;
}

.ip-hero-visual,
.ip-page-image {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #111;
}

.ip-hero-visual img,
.ip-page-image img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.ip-hero-visual::after,
.ip-page-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46));
}

.ip-visual-panel {
  position: absolute;
  left: 22px;
  z-index: 2;
  width: min(320px, calc(100% - 44px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(29, 29, 27, 0.84);
  color: #fff;
}

.ip-panel-top {
  top: 22px;
}

.ip-panel-bottom {
  bottom: 22px;
  left: auto;
  right: 22px;
}

.ip-visual-panel span,
.ip-process-visual span,
.ip-card-metric span,
.ip-method-step > span,
.ip-tag {
  display: block;
  margin-bottom: 6px;
  color: var(--ip-orange);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ip-visual-panel strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.ip-band {
  padding: 82px 0;
  background: var(--ip-surface);
}

.ip-band-light {
  background: var(--ip-cream);
}

.ip-band-dark {
  background: var(--ip-charcoal);
  color: #fff;
}

.ip-problem,
.ip-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.ip-band h2,
.ip-section-head h2,
.ip-case h2,
.ip-method-step h2 {
  margin: 0;
  color: inherit;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 800;
}

.ip-section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.ip-section-head p:not(.ip-eyebrow) {
  margin: 16px 0 0;
  color: var(--ip-muted);
  font-size: 17px;
  line-height: 1.6;
}

.ip-band-dark .ip-section-head p:not(.ip-eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.ip-problem-list {
  display: grid;
  gap: 12px;
}

.ip-problem-list p,
.ip-copy-block p,
.ip-card p,
.ip-use-card p,
.ip-case p,
.ip-method-step p {
  margin: 0;
  color: var(--ip-muted);
  font-size: 17px;
  line-height: 1.65;
}

.ip-band-dark .ip-copy-block p,
.ip-band-dark .ip-card p,
.ip-band-dark .ip-method-step p {
  color: rgba(255, 255, 255, 0.72);
}

.ip-problem-list p {
  padding: 16px 18px;
  border-left: 4px solid var(--ip-orange);
  background: #fff;
}

.ip-strong {
  color: var(--ip-ink) !important;
  font-weight: 800;
}

.ip-band-dark .ip-strong {
  color: #fff !important;
}

.ip-copy-block {
  display: grid;
  gap: 18px;
}

.ip-grid {
  display: grid;
  gap: 18px;
}

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

.ip-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.ip-card,
.ip-use-card {
  padding: 24px;
  border: 1px solid var(--ip-line);
  border-radius: 8px;
  background: #fff;
}

.ip-band-dark .ip-card,
.ip-card-dark {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.ip-card h3,
.ip-use-card h3,
.ip-case h3,
.ip-method-step h3 {
  margin: 0 0 12px;
  color: inherit;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
}

.ip-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.ip-steps article {
  min-height: 260px;
  padding: 24px;
  border-top: 4px solid var(--ip-orange);
  border-radius: 8px;
  background: var(--ip-cream);
}

.ip-steps span {
  display: block;
  margin-bottom: 36px;
  color: var(--ip-orange);
  font-size: 14px;
  font-weight: 800;
}

.ip-steps h3 {
  margin: 0 0 12px;
  color: var(--ip-ink);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.ip-steps p {
  margin: 0;
  color: var(--ip-muted);
  font-size: 16px;
  line-height: 1.55;
}

.ip-use-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ip-use-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
}

.ip-use-card a,
.ip-text-link,
.ip-patent-card a {
  display: inline-flex;
  margin-top: auto;
  color: var(--ip-orange);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.ip-use-card a:hover,
.ip-text-link:hover,
.ip-patent-card a:hover {
  color: var(--ip-orange-dark);
}

.ip-card-metric {
  min-height: 230px;
}

.ip-final-cta {
  padding: 86px 0;
  background: var(--ip-ink);
  color: #fff;
  text-align: center;
}

.ip-final-cta .ip-shell {
  display: grid;
  justify-items: center;
}

.ip-final-cta p:not(.ip-eyebrow) {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.6;
}

.ip-final-cta .ip-btn {
  margin-top: 28px;
}

.ip-process-visual,
.ip-method-map {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.ip-process-visual div,
.ip-method-map div {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.ip-process-visual strong {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1.35;
}

.ip-offer-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
}

.ip-offer-featured {
  border-color: var(--ip-orange);
  box-shadow: 0 18px 40px rgba(29, 29, 27, 0.08);
}

.ip-offer-card ul,
.ip-check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ip-offer-card li,
.ip-check-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ip-muted);
  font-size: 16px;
  line-height: 1.55;
}

.ip-offer-card li::before,
.ip-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ip-green);
}

.ip-band-dark .ip-check-list li {
  color: rgba(255, 255, 255, 0.76);
}

.ip-case-stack,
.ip-method-stack {
  display: grid;
  gap: 26px;
}

.ip-case,
.ip-method-step {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  padding: 34px;
  border: 1px solid var(--ip-line);
  border-radius: 8px;
  background: #fff;
}

.ip-case-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ip-method-step {
  grid-template-columns: 80px minmax(0, 1fr);
}

.ip-method-step > span {
  margin: 0;
  color: var(--ip-orange);
  font-size: 28px;
  line-height: 1;
}

.ip-method-map {
  grid-template-columns: repeat(2, 1fr);
}

.ip-method-map div {
  min-height: 150px;
  display: flex;
  align-items: end;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.ip-patent-card {
  min-height: 220px;
}

.ip-patent-card p {
  font-weight: 800;
}

.ip-contact-page {
  min-height: 100vh;
  padding: 150px 0 80px;
  background:
    linear-gradient(90deg, rgba(41, 47, 43, 0.96), rgba(41, 47, 43, 0.9)),
    url("../../img/gallery/background.jpg") center / cover no-repeat;
  color: #fff;
}

.ip-contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 58px;
  align-items: start;
}

.ip-contact-copy h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.05;
  font-weight: 800;
}

.ip-contact-copy .ip-lead {
  color: rgba(255, 255, 255, 0.82);
}

.ip-contact-prompts {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.ip-contact-prompts p {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--ip-orange);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.45;
}

.ip-contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 28px;
}

.ip-contact-details a,
.ip-contact-details span {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.ip-contact-form-wrap {
  width: 100%;
}

.ip-contact-form {
  padding: 30px;
  border-radius: 8px;
  background: #fff;
  color: var(--ip-ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

.ip-form-head {
  margin-bottom: 22px;
}

.ip-form-head h2 {
  margin: 0;
  color: var(--ip-ink);
  font-size: 28px;
  line-height: 1.2;
}

.ip-form-head p {
  margin: 8px 0 0;
  color: var(--ip-muted);
  font-size: 15px;
  line-height: 1.5;
}

.ip-contact-form .input-form--contact {
  display: grid;
  gap: 14px;
}

.ip-contact-form .form-group {
  display: grid;
}

.ip-contact-form .form-group label {
  margin-bottom: 6px;
  color: var(--ip-ink);
  font-size: 14px;
  font-weight: 800;
}

.ip-contact-form .form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--ip-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ip-ink);
  font: inherit;
}

.ip-contact-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.ip-contact-form .form-group-row {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 12px;
}

.ip-contact-form .form-group-row .form-group {
  width: 100%;
}

.ip-contact-form .form-privacy,
.ip-contact-form .form-marketing {
  margin: 14px 0 0;
}

.ip-contact-form .privacy-label,
.ip-contact-form .marketing-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ip-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ip-contact-form .privacy-label a {
  color: var(--ip-orange);
}

.ip-contact-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.ip-submit-btn {
  width: 100%;
  margin-top: 22px;
}

#message-container {
  display: none;
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

#message-container.show {
  display: block;
}

#message-container.success {
  background: #0f766e;
  color: #fff;
}

#message-container.error {
  background: #b42318;
  color: #fff;
}

@media (max-width: 1100px) {
  .ip-hero-copy h1,
  .ip-page-hero h1,
  .ip-contact-copy h1 {
    font-size: 48px;
  }

  .ip-grid-4,
  .ip-use-grid,
  .ip-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .ip-case,
  .ip-case-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .ip-shell {
    width: calc(100vw - 28px);
    max-width: 640px;
  }

  .ip-hero,
  .ip-page-hero,
  .ip-contact-page {
    padding-top: 120px;
  }

  .ip-hero-grid,
  .ip-page-hero-grid,
  .ip-problem,
  .ip-split,
  .ip-contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ip-hero-copy h1,
  .ip-page-hero h1,
  .ip-final-cta h2,
  .ip-contact-copy h1 {
    font-size: 40px;
    max-width: 100%;
  }

  .ip-band h2,
  .ip-section-head h2,
  .ip-case h2,
  .ip-method-step h2 {
    font-size: 32px;
  }

  .ip-lead {
    font-size: 18px;
  }

  .ip-hero-visual,
  .ip-page-image,
  .ip-hero-visual img,
  .ip-page-image img {
    min-height: 320px;
  }

  .ip-grid-3,
  .ip-grid-4,
  .ip-use-grid,
  .ip-steps,
  .ip-method-map {
    grid-template-columns: 1fr;
  }

  .ip-band {
    padding: 58px 0;
  }

  .ip-method-step {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ip-shell {
    width: calc(100vw - 24px);
    max-width: 520px;
  }

  .ip-hero-copy,
  .ip-page-hero-grid > div:first-child,
  .ip-contact-copy {
    max-width: 340px;
  }

  .ip-hero-copy h1,
  .ip-page-hero h1,
  .ip-final-cta h2,
  .ip-contact-copy h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .ip-actions {
    display: grid;
    max-width: 340px;
  }

  .ip-btn {
    width: 100%;
  }

  .ip-card,
  .ip-use-card,
  .ip-case,
  .ip-method-step,
  .ip-contact-form {
    padding: 20px;
  }

  .ip-contact-form .form-group-row {
    grid-template-columns: 1fr;
  }

  .ip-panel-bottom {
    right: 12px;
  }

  .ip-visual-panel {
    left: 12px;
    width: calc(100% - 24px);
  }

  .chat-window-wrapper {
    right: 12px !important;
    bottom: 12px !important;
  }

  .chat-window-wrapper .chat-window-toggle.has-label {
    max-width: calc(100vw - 24px);
    padding: 0 16px !important;
    font-size: 14px !important;
  }
}
