/* ==========================================================================
   Codxbyte — custom.css
   Hand-written styles that complement Tailwind: product frames, timelines,
   diagrams, concept mockups and form states. Loaded after styles.css.
   ========================================================================== */

:root {
  --shadow-frame: 0 2px 4px rgba(20, 24, 26, 0.05), 0 30px 60px -30px rgba(20, 24, 26, 0.28);
  --c-line: #e6e2d9;
  --c-line-2: #d4cfc3;
  --c-brand: #167f8f;
  --c-brand-dark: #0f6270;
  --c-ink: #14181a;
  --c-muted: #5c6366;
}

html.menu-locked,
html.menu-locked body {
  overflow: hidden;
}

/* Reveal: once revealed, always visible (class added by animations.js) */
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.anim-fail [data-img-reveal] {
  clip-path: none !important;
}

/* ---------- Hero product composition ---------- */
.hero-visual {
  position: relative;
  padding-bottom: 4.5rem;
}
.browser {
  margin: 0;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  box-shadow: var(--shadow-frame);
  overflow: hidden;
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #f1eee7;
  border-bottom: 1px solid var(--c-line);
}
.browser__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-line-2);
}
.browser__url {
  margin-left: 14px;
  flex: 1;
  max-width: 260px;
  padding: 3px 12px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--c-muted);
}
.browser img {
  display: block;
  width: 100%;
  height: auto;
}
.phone {
  position: absolute;
  left: -4%;
  bottom: 1.5rem;
  width: 24%;
  max-width: 176px;
  margin: 0;
  background: #fff;
  border: 6px solid #fff;
  border-radius: 26px;
  outline: 1px solid var(--c-line-2);
  box-shadow: var(--shadow-frame);
  overflow: hidden;
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}
.caption {
  color: var(--c-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.hero-visual__caption {
  position: absolute;
  right: 0;
  bottom: 0.4rem;
  max-width: 15rem;
  text-align: right;
  margin: 0;
}
@media (min-width: 1024px) {
  .hero-visual {
    margin-right: calc(-1 * (max(0px, (100vw - 1280px) / 2) + 3rem));
  }
  .hero-visual .browser {
    border-right: 0;
    border-radius: 10px 0 0 10px;
  }
  .hero-visual__caption {
    right: calc(max(0px, (100vw - 1280px) / 2) + 3rem);
  }
}
@media (max-width: 639px) {
  .hero-visual {
    padding-bottom: 3.5rem;
  }
  .phone {
    width: 30%;
    left: 2%;
    border-width: 4px;
    border-radius: 20px;
  }
  .phone img {
    border-radius: 16px;
  }
  .hero-visual__caption {
    max-width: 11rem;
  }
}

/* ---------- Timeline (process) ---------- */
.tl {
  position: relative;
}
.tl-track {
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--c-line-2);
}
.tl-fill {
  position: absolute;
  inset: 0;
  background: var(--c-brand);
  transform: scaleY(0);
  transform-origin: center top;
}
.tl-step {
  position: relative;
  padding: 0 0 2.5rem 2.5rem;
}
.tl-step:last-child {
  padding-bottom: 0;
}
.tl-dot {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fbfaf7;
  border: 1px solid #b9b4a8;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.tl-step.is-active .tl-dot {
  background: var(--c-brand);
  border-color: var(--c-brand);
  transform: scale(1.12);
}
.tl-step .step-num {
  color: #5c6366;
  transition: color 0.5s var(--ease);
}
.tl-step.is-active .step-num {
  color: var(--c-brand);
}
@media (min-width: 1024px) {
  .tl[data-timeline='x'] .tl-track {
    left: 0;
    right: 0;
    top: 7px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .tl[data-timeline='x'] .tl-fill {
    transform: scaleX(0);
    transform-origin: left center;
  }
  .tl[data-timeline='x'] .tl-step {
    padding: 2.5rem 0 0 0;
  }
  .tl[data-timeline='x'] .tl-step .tl-dot {
    top: -0.15rem;
  }
}
.no-js-tl .tl-fill,
.anim-fail .tl-fill {
  transform: none;
}
.anim-fail .tl-dot {
  background: var(--c-brand);
  border-color: var(--c-brand);
}

/* ---------- Architecture concept (technology portfolio hero) ---------- */
.arch {
  position: relative;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(1rem, 2.4vw, 1.75rem);
  box-shadow: var(--shadow-frame);
}
.arch-row {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 0.85rem;
}
.arch-row + .arch-row {
  border-top: 1px dashed var(--c-line-2);
}
.arch-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.arch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.arch-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  font-size: 0.8125rem;
  line-height: 1;
  color: var(--c-ink);
  background: #f7f5f0;
  border: 1px solid var(--c-line);
  border-radius: 4px;
}
.arch-chip--accent {
  background: #e7f3f5;
  border-color: #bfdde2;
  color: var(--c-brand-dark);
}
.arch-row::before {
  content: '';
  position: absolute;
  left: 2.2rem;
  top: -0.5rem;
  height: 1rem;
  width: 1px;
  background: var(--c-brand);
  opacity: 0;
}
@media (max-width: 480px) {
  .arch-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ---------- Wireframe concept mockups (clearly labelled "Illustrative concept") ---------- */
.wf {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 6px;
}
.wf-bg {
  background: #f7f5f0;
}
.wf-top {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 10px;
  background: #f1eee7;
  border-bottom: 1px solid var(--c-line);
}
.wf-top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-line-2);
}
.wf-line {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #e6e2d9;
}
.wf-line--dark {
  background: #c9c4b8;
}
.wf-line--accent {
  background: var(--c-brand);
}
.wf-w20 { width: 20%; }
.wf-w30 { width: 30%; }
.wf-w45 { width: 45%; }
.wf-w60 { width: 60%; }
.wf-w80 { width: 80%; }
.wf-block {
  background: #f1eee7;
  border-radius: 4px;
}
.wf-block--tint {
  background: #e7f3f5;
}
.wf-btn {
  display: inline-block;
  height: 16px;
  width: 56px;
  border-radius: 3px;
  background: var(--c-brand);
}
.wf-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d5ebef;
}
.wf-body {
  position: absolute;
  inset: 22px 0 0 0;
  display: flex;
}
.wf-side {
  width: 24%;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-right: 1px solid var(--c-line);
  background: #fbfaf7;
}
.wf-main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wf-phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36%;
  aspect-ratio: 9 / 17.5;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid var(--c-line-2);
  border-radius: 14px;
  box-shadow: var(--shadow-frame);
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wf-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(9px, 1.1vw, 12px);
  line-height: 1.75;
  color: #2f3638;
  padding: 14px 16px;
  white-space: pre;
  overflow: hidden;
}
.wf-code .k { color: var(--c-brand-dark); }
.wf-code .s { color: #3a7f43; }
.wf-code .c { color: #6b7275; }
.wf-code .n { color: #2f78a8; }
.wf-bubble {
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 70%;
}
.wf-bubble--user {
  align-self: flex-end;
  width: 52%;
  background: #d5ebef;
}
.wf-bubble--bot {
  align-self: flex-start;
  background: #f1eee7;
}

/* ---------- SEO · AEO · GEO Venn ---------- */
.venn text {
  font-family: 'Inter Variable', Inter, system-ui, sans-serif;
}
.venn .venn-big {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 34px;
}
.venn circle {
  transition: fill-opacity 0.5s var(--ease), stroke-opacity 0.5s var(--ease);
}
.venn g:hover circle {
  fill-opacity: 0.24;
}

/* ---------- Capability index (technology page) ---------- */
.cap-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 0.95rem;
  color: #4a5154;
  transition: color 0.3s var(--ease), padding-left 0.4s var(--ease);
}
.cap-nav a span:first-child {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #6b7275;
}
.cap-nav a:hover,
.cap-nav a.is-active {
  color: var(--c-brand-dark);
  padding-left: 0.5rem;
}
.cap-nav a.is-active span:first-child {
  color: var(--c-brand);
}

/* ---------- Form states ---------- */
.form-status {
  border-left: 3px solid var(--c-brand);
  background: #e7f3f5;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  color: #14181a;
}
.form-status--error {
  border-left-color: #b3261e;
  background: #fdf0ee;
}
.form-status a {
  color: var(--c-brand-dark);
}
#submit-btn[disabled] {
  opacity: 0.75;
  cursor: progress;
}
#submit-btn.is-loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Long-form documents (legal pages) ---------- */
.doc h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.9rem;
  font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.85rem);
  line-height: 1.2;
}
.doc p,
.doc li {
  color: #4a5154;
  line-height: 1.75;
}
.doc p + p {
  margin-top: 1rem;
}
.doc ul {
  margin-top: 0.9rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.doc li {
  margin-top: 0.4rem;
}
.doc li::marker {
  color: var(--c-brand);
}
.doc a {
  color: var(--c-brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Hero intro: transform-only (content is visible immediately → no LCP/CLS cost, works without JS) ---------- */
@keyframes heroRise {
  from {
    transform: translate3d(0, 22px, 0);
  }
  to {
    transform: none;
  }
}
.hero-rise {
  animation: heroRise 0.95s var(--ease) both;
  animation-delay: var(--d, 0s);
}

/* ---------- Site Preloader (Favicon, Progress Bar & Tagline) ---------- */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #FBFAF7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}
.site-loader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.site-loader__mark-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-loader__mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
  animation: faviconPulse 1.4s ease-in-out infinite;
}
@keyframes faviconPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.92;
    filter: drop-shadow(0 2px 8px rgba(22, 127, 143, 0.15));
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
    filter: drop-shadow(0 6px 20px rgba(22, 127, 143, 0.35));
  }
}
.site-loader__bar {
  width: 140px;
  height: 2.5px;
  background-color: #e6e2d9;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 1.25rem;
  position: relative;
}
.site-loader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--c-brand, #167f8f);
  border-radius: 9999px;
  animation: loaderFill 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes loaderFill {
  0% { width: 0%; }
  35% { width: 45%; }
  70% { width: 85%; }
  100% { width: 100%; }
}
.site-loader__tagline {
  margin-top: 0.85rem;
  margin-bottom: 0;
  font-family: 'Inter Variable', Inter, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #5c6366;
  opacity: 0;
  animation: loaderFadeIn 0.5s ease 0.1s forwards;
}
@keyframes loaderFadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}


/* ==========================================================================
   Codxbot HD Mascot Hero Showcase
   ========================================================================== */
.hero-robot-wrapper {
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.hero-robot-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.12s cubic-bezier(0.2, 0, 0.1, 1);
  will-change: transform;
}
.hero-robot-3d.is-idle {
  animation: robotMascotFloat 5s ease-in-out infinite;
}
@keyframes robotMascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.hero-robot-3d.is-laughing {
  animation: robotMascotLaugh 0.35s ease-in-out infinite alternate !important;
}
@keyframes robotMascotLaugh {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-14px) rotate(-3deg) scale(1.03); }
  100% { transform: translateY(3px) rotate(3deg) scale(0.98); }
}

/* ==========================================================================
   Codxbyte Editorial Journal & Blog Architecture (Harvey.ai Aesthetic)
   ========================================================================== */

/* Reading Progress Bar (Subtle 2.5px Top Brand Line) */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  background: var(--c-brand);
  z-index: 100000;
  width: 0%;
  transition: width 0.1s linear;
}

/* Codxbyte Native Editorial Tabs */
.codx-tabs,
.content-tabs-wrap {
  margin: 2.25rem 0;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-frame);
}
.codx-tabs__nav,
.content-tabs-header {
  display: flex;
  align-items: center;
  background: #f7f5ee;
  border-bottom: 1px solid var(--c-line);
  padding: 0.35rem 0.75rem 0;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.codx-tabs__nav::-webkit-scrollbar,
.content-tabs-header::-webkit-scrollbar {
  display: none;
}
.codx-tab-btn,
.content-tab-btn {
  padding: 0.75rem 1.15rem;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--c-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.codx-tab-btn:hover,
.content-tab-btn:hover {
  color: var(--c-ink);
}
.codx-tab-btn.is-active,
.codx-tab-btn.active,
.content-tab-btn.is-active,
.content-tab-btn.active {
  color: var(--c-brand-dark);
  border-bottom-color: var(--c-brand);
  background: transparent;
  box-shadow: none;
}
.codx-tab-pane,
.content-tab-pane {
  display: none;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: #ffffff;
}
.codx-tab-pane.is-active,
.codx-tab-pane.active,
.content-tab-pane.is-active,
.content-tab-pane.active {
  display: block;
}
.codx-tab-pane p,
.content-tab-pane p {
  font-size: 14px;
  line-height: 1.65;
  color: #2d3336;
  margin-bottom: 0;
}

/* Editorial Body Typography (Matching about.html & services.html) */
.editorial-prose,
.blog-body-text {
  font-family: 'Inter Variable', Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #2d3336;
}
.editorial-prose p,
.blog-body-text p {
  font-size: 14px !important;
  margin-bottom: 1.35rem;
  color: #2d3336;
}
.editorial-prose p:last-child,
.blog-body-text p:last-child {
  margin-bottom: 0;
}
.editorial-prose strong,
.blog-body-text strong {
  color: var(--c-ink);
  font-weight: 600;
}
.editorial-prose h3,
.blog-body-text h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--c-ink);
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
}
.editorial-prose h4,
.blog-body-text h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--c-ink);
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
}
.editorial-prose blockquote,
.blog-body-text blockquote {
  border-left: 2px solid var(--c-brand);
  padding: 1.15rem 1.5rem;
  margin: 2rem 0;
  background: #f7f5ee;
  border-radius: 0 6px 6px 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--c-ink);
  line-height: 1.5;
}
.editorial-prose pre,
.blog-body-text pre {
  background: #14181a;
  color: #fbfaf7;
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 1.75rem 0;
  border: 1px solid #2d3336;
}
.editorial-prose code,
.blog-body-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.editorial-prose p code,
.editorial-prose li code,
.blog-body-text p code,
.blog-body-text li code {
  background: #f1eee7;
  color: var(--c-brand-dark);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
}
.editorial-prose table,
.blog-body-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.875rem;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  overflow: hidden;
}
.editorial-prose th,
.blog-body-text th {
  background: #f7f5ee;
  color: var(--c-ink);
  padding: 0.85rem 1.15rem;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
}
.editorial-prose td,
.blog-body-text td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #efece6;
  color: #4a5154;
}
.editorial-prose tr:last-child td,
.blog-body-text tr:last-child td {
  border-bottom: none;
}
.editorial-prose tr:hover td,
.blog-body-text tr:hover td {
  background: #faf8f5;
}
.editorial-prose ul,
.blog-body-text ul {
  margin: 1.25rem 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.editorial-prose ol,
.blog-body-text ol {
  margin: 1.25rem 0;
  padding-left: 1.25rem;
  list-style: decimal;
}
.editorial-prose li,
.blog-body-text li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}
.editorial-prose li::marker,
.blog-body-text li::marker {
  color: var(--c-brand);
}

/* Media Frame Picture element normalization */
.media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.media picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* ==========================================================================
   Global Flagship Typography & Heading Scale Standards
   Requested Scale:
   H1 (clamp(2rem, 1.25rem + 3.6vw, 3.8rem)) > H2 (2.6rem) > H3 (1.9rem) > H4 (1.425rem) > H5 (1.2rem) > H6 (0.9375rem)
   P / Body: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem) | Lead: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem)
   High-contrast, crystal-clear paragraph visibility
   ========================================================================== */

h1:not(.label),
.t-h1,
.t-display {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 1.25rem + 3.6vw, 3.8rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.022em !important;
  font-weight: 400 !important;
  color: var(--c-ink, #14181a);
  text-wrap: balance;
}

h2:not(.label),
.t-h2,
.t-title {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.6rem) !important; /* strictly smaller than H1 */
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  font-weight: 400 !important;
  color: var(--c-ink, #14181a);
  text-wrap: balance;
}

h3:not(.label),
.t-h3 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.9rem) !important; /* strictly smaller than H2 */
  line-height: 1.22 !important;
  letter-spacing: -0.015em !important;
  font-weight: 400 !important;
  color: var(--c-ink, #14181a);
  text-wrap: balance;
}

h4:not(.label):not(.font-sans):not(.feature-title):not(.product-feature-title),
.t-h4:not(.font-sans):not(.feature-title):not(.product-feature-title) {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.1rem, 0.95rem + 0.55vw, 1.425rem) !important; /* strictly smaller than H3 */
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
  font-weight: 400 !important;
  color: var(--c-ink, #14181a);
  text-wrap: balance;
}

/* Product Feature Cards & Clean UI Typography */
.product-feature-card {
  background-color: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.product-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.625rem 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.product-feature-item:hover {
  background-color: rgba(245, 245, 244, 0.65);
}

.product-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 0.375rem;
  background-color: #f0fdfa;
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #0f766e;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.product-feature-title,
h4.product-feature-title,
.surface-card h4.product-feature-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 0.9375rem !important; /* 15px */
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
  color: #14181a !important;
  margin: 0 !important;
}

.product-feature-desc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 0.8125rem !important; /* 13px */
  line-height: 1.55 !important;
  color: #57534e !important;
  margin-top: 0.25rem !important;
}

h5:not(.label),
.t-h5 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(1rem, 0.92rem + 0.3vw, 1.2rem) !important; /* strictly smaller than H4 */
  line-height: 1.35 !important;
  letter-spacing: -0.005em !important;
  font-weight: 400 !important;
  color: var(--c-ink, #14181a);
  text-wrap: balance;
}

h6:not(.label),
.t-h6 {
  font-family: Inter Variable, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem) !important; /* strictly smaller than H5 */
  line-height: 1.4 !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--c-ink, #14181a);
}

.t-hero {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 1.25rem + 3.6vw, 3.8rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.022em !important;
  word-break: normal;
  overflow-wrap: break-word;
  color: var(--c-ink, #14181a);
}

/* ==========================================================================
   Universal Paragraph Font Scale & High Visibility Normalization
   Globally Fixed to 14px for Crisp Editorial Legibility
   ========================================================================== */
p:not(.label):not(.badge) {
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #242b2d !important;
  font-weight: 400 !important;
  text-wrap: pretty;
}

p.t-lead,
.t-lead {
  font-size: 15.5px !important;
  line-height: 1.62 !important;
  color: #171d1f !important;
  font-weight: 400 !important;
}

.t-small,
.caption,
small {
  font-size: clamp(0.75rem, 0.72rem + 0.05vw, 0.8125rem) !important;
  line-height: 1.5 !important;
}

p.t-body,
.t-body,
p.text-ink-600,
p.text-ink-700 {
  font-size: 14px !important;
  color: #242b2d !important;
  line-height: 1.65 !important;
}

/* Ensure secondary paragraph text does not get washed out */
p.text-ink-500 {
  color: #434c4f !important;
}

/* Ensure secondary paragraph text does not get washed out */
p.text-ink-500 {
  color: #434c4f !important;
}

/* Accent Em inside any heading gets the signature italic brand teal treatment */
h1 em,
h2 em,
h3 em,
h4 em,
.t-hero em,
.t-h1 em,
.t-h2 em,
.t-h3 em,
.t-h4 em,
.em-accent,
.font-serif em {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: var(--c-brand, #167f8f) !important;
  letter-spacing: -0.015em;
}

/* ==========================================================================
   Editorial Blog Cards & Surface Cards (Harvey Theme Alignment)
   ========================================================================== */
.surface-card,
.blog-card {
  background-color: #ffffff !important;
  border: 1px solid #e7e3da !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  box-shadow: 0 1px 3px 0 rgba(20, 24, 26, 0.04), 0 1px 2px -1px rgba(20, 24, 26, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: transform 0.35s cubic-bezier(0.22, 0.7, 0.2, 1), box-shadow 0.35s cubic-bezier(0.22, 0.7, 0.2, 1), border-color 0.35s ease !important;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.surface-card:hover,
.blog-card:hover {
  transform: translateY(-4px) !important;
  border-color: #167f8f !important;
  box-shadow: 0 16px 32px -8px rgba(20, 24, 26, 0.08), 0 4px 12px -2px rgba(20, 24, 26, 0.04) !important;
}

/* Aspect ratio normalization for card media */
.aspect-\[16\/10\],
.blog-card-media {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background-color: #f5f3ee !important;
  border: 1px solid #e7e3da !important;
  margin-bottom: 1.25rem !important;
}

.aspect-\[16\/10\] img,
.blog-card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.5s cubic-bezier(0.22, 0.7, 0.2, 1) !important;
}

.blog-card:hover .aspect-\[16\/10\] img,
.blog-card:hover .blog-card-media img {
  transform: scale(1.04) !important;
}

/* Strict Title 2-line clamp & alignment for blog cards */
.line-clamp-2 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.blog-card h3 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif !important;
  font-size: 1.25rem !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em !important;
  color: #14181a !important;
  font-weight: 400 !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
  min-height: 3.4rem !important; /* Perfect 2-line uniform title height */
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.blog-card:hover h3 a,
.blog-card h3 a:hover {
  color: #0f6270 !important;
}

/* Strict Description 3-line clamp & font normalization for blog cards */
.line-clamp-3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.blog-card p.t-small,
.blog-card p.blog-card-desc,
.blog-card p:not(.label) {
  font-size: 0.9375rem !important; /* Uniform legible size */
  line-height: 1.62 !important;
  color: #4a5457 !important;
  font-weight: 400 !important;
  margin-top: 0.5rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 4.5rem !important; /* Perfect 3-line uniform baseline */
  text-align: left !important;
}

/* Card footer metadata */
.blog-card-footer {
  margin-top: 1.5rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid #e7e3da !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 0.8125rem !important;
  color: #5c6366 !important;
}

/* Content cards inside articles: reset min-height and line-clamp so text reads naturally */
.editorial-prose .surface-card p,
.editorial-prose div.surface-card p,
.stage-card p,
.engine-card p,
.info-card p,
.workflow-step p {
  min-height: auto !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #242b2d !important;
  margin-top: 0.5rem !important;
}

/* Normalize any remaining text-xs paragraphs inside articles or sections */
article p.text-xs,
section p.text-xs,
.editorial-prose p.text-xs,
.surface-card p.text-xs {
  font-size: clamp(0.9375rem, 0.92rem + 0.1vw, 1rem) !important;
  line-height: 1.68 !important;
  color: #242b2d !important;
}

article ul.text-xs,
section ul.text-xs,
.editorial-prose ul.text-xs,
.surface-card ul.text-xs {
  font-size: clamp(0.9375rem, 0.92rem + 0.1vw, 1rem) !important;
  line-height: 1.68 !important;
  color: #242b2d !important;
}

/* Full width editorial reading & justified content */
.editorial-prose > p,
.blog-body-text > p,
.text-justify {
  text-align: justify;
  text-justify: inter-word;
}

/* Card lists, bullet lists & short blocks should remain naturally left-aligned */
.surface-card ul,
.surface-card ol,
.surface-card li,
.card ul,
.card li,
.stage-card p,
.engine-card p,
ul.list-disc li,
ol.list-decimal li {
  text-align: left !important;
}

/* ==========================================================================
   Thank You Modal (Reusable for Contact & Career)
   ========================================================================== */
.thankyou-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.22, 0.7, 0.2, 1), visibility 0.3s linear;
}

.thankyou-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.thankyou-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(20, 24, 26, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

.thankyou-modal__card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 26.5rem;
  background: #ffffff;
  border: 1px solid #e7e3da;
  border-radius: 20px;
  box-shadow: 0 20px 48px -10px rgba(20, 24, 26, 0.18), 0 8px 20px -4px rgba(20, 24, 26, 0.08);
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.22, 0.7, 0.2, 1), opacity 0.25s ease;
}

@media (min-width: 640px) {
  .thankyou-modal__card {
    padding: 2.75rem 2.25rem 2.25rem 2.25rem;
  }
}

.thankyou-modal.is-open .thankyou-modal__card {
  transform: translateY(0) scale(1);
}

.thankyou-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #f5f3ee;
  border: 1px solid #e7e3da;
  color: #5c6366;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
  z-index: 20;
}

.thankyou-modal__close:hover {
  background: #14181a;
  color: #ffffff;
  border-color: #14181a;
  transform: rotate(90deg);
}

.thankyou-modal__icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(22, 127, 143, 0.1);
  border: 1px solid rgba(22, 127, 143, 0.25);
  color: #167f8f;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

.thankyou-modal__icon-wrap svg {
  width: 28px;
  height: 28px;
}

.thankyou-modal__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.2;
  color: #14181a;
  margin-bottom: 0.65rem;
}

.thankyou-modal__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #5c6366;
  margin: 0 auto 1.75rem auto;
  max-width: 320px;
}

.thankyou-modal__desc strong {
  color: #14181a;
  font-weight: 600;
}

.thankyou-modal__btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 9999px;
}

.btn-md {
  padding: 0.8rem 1.4rem;
  min-height: 2.85rem;
  font-size: 0.9375rem;
}

/* ==========================================================================
   Utility Helpers & Form Elements
   ========================================================================== */
[hidden] {
  display: none !important;
}

/* ==========================================================================
   Resume File Upload Dropzone (Career Form)
   ========================================================================== */
.resume-dropzone {
  border: 2px dashed #d4cfc3;
  border-radius: 12px;
  background-color: #fbfaf7;
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
}

.resume-dropzone:hover,
.resume-dropzone.is-dragover {
  border-color: #167f8f;
  background-color: #f2f8f9;
  transform: translateY(-1px);
}

.resume-dropzone.has-file {
  border-style: solid;
  border-color: #d8e5e7;
  background-color: #f8faf9;
  padding: 0.85rem;
}

/* Idle & Selected States based on .has-file */
.resume-dropzone #dropzone-idle {
  display: flex;
}
.resume-dropzone #dropzone-selected {
  display: none;
}
.resume-dropzone.has-file #dropzone-idle {
  display: none;
}
.resume-dropzone.has-file #dropzone-selected {
  display: flex;
}

.resume-dropzone__icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background-color: #edebe6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #167f8f;
  margin: 0 auto 0.75rem auto;
}

.resume-dropzone__icon-circle svg {
  width: 24px;
  height: 24px;
}

.resume-dropzone__selected-box {
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border: 1px solid #e7e3da;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  width: 100%;
}

.resume-dropzone__file-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: rgba(22, 127, 143, 0.1);
  border: 1px solid rgba(22, 127, 143, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #167f8f;
  flex-shrink: 0;
}

.resume-dropzone__file-icon svg {
  width: 20px;
  height: 20px;
}

.resume-dropzone__file-info {
  text-align: left;
  min-width: 0;
  flex: 1;
  padding-right: 0.75rem;
}

.resume-dropzone__file-info p:first-child {
  font-size: 0.875rem;
  font-weight: 600;
  color: #14181a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resume-dropzone__file-info p:last-child {
  font-size: 0.75rem;
  color: #78716c;
  margin: 2px 0 0 0;
}

.resume-dropzone__badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
  background-color: #ecfdf5;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}

.resume-dropzone__remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #78716c;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.resume-dropzone__remove-btn:hover {
  background-color: #fee2e2;
  color: #dc2626;
}

.resume-dropzone__remove-btn svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Product Details Sticky Column (Desktop lg: >= 1024px)
   Pins the left-side product metadata until right-side capabilities finish.
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .product-sticky-col {
    position: relative;
    height: 100%;
  }

  .product-sticky-pane {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-h, 76px) + 2rem);
    align-self: start;
    max-height: calc(100vh - var(--header-h, 76px) - 2.5rem);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1.5rem;
  }

  .product-sticky-pane::-webkit-scrollbar {
    display: none;
  }
}




