/* ==========================================================
   JIYANTECH — site.css
   Loaded after premium.css and tailwind.css, so these rules win ties.
   Readability, responsive and accessibility refinements, plus the
   newer components (case-study tech stack, Work search, contact form).
   ========================================================== */

/* ── Fonts ──────────────────────────────────────────────────
   Self-hosted variable fonts (Inter for text, Manrope for display), Google Fonts latin and
   latin-ext subsets. The latin files are preloaded in layouts/header.ejs. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Type system ────────────────────────────────────────────
   One fluid scale for the whole site (sizes interpolate between 390px and 1440px viewports).
   Headings use Manrope, text uses Inter. Line-height tightens and tracking narrows as size grows.
   Apply with the .t-* classes; the doubled selectors + !important beat the older per-section
   overrides in premium.css. */
:root {
  --fs-display: clamp(2.5rem, 1.85rem + 2.667vw, 4.75rem);   /* 40 → 68 (76 max) */
  --fs-h1: clamp(2.25rem, 1.786rem + 1.905vw, 3.5rem);       /* 36 → 56 */
  --fs-h2: clamp(1.875rem, 1.55rem + 1.333vw, 2.75rem);      /* 30 → 44 */
  --fs-h2-compact: clamp(1.625rem, 1.393rem + .952vw, 2.25rem); /* 26 → 36 */
  --fs-h3: clamp(1.375rem, 1.236rem + .571vw, 1.75rem);      /* 22 → 28 */
  --fs-h4: clamp(1.125rem, 1.079rem + .19vw, 1.25rem);       /* 18 → 20 */
  --fs-h5: 1.0625rem;                                        /* 17 */
  --fs-lead: clamp(1.0625rem, 1.016rem + .19vw, 1.1875rem);  /* 17 → 19 */
  --fs-body: 1rem;
  --fs-small: .9375rem;
  --fs-caption: .8125rem;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --page-gutter: 16px;
}

@media (min-width: 640px) { :root { --page-gutter: 24px; } }
@media (min-width: 1024px) { :root { --page-gutter: 48px; } }
@media (min-width: 1280px) { :root { --page-gutter: 64px; } }
@media (min-width: 1536px) { :root { --page-gutter: 80px; } }

body {
  font-size: var(--fs-body);
  line-height: 1.6;
}

main :is(h1, h2, h3) {
  text-wrap: balance;
}

main :is(p, li, dd) {
  text-wrap: pretty;
}

.t-display.t-display,
.t-h1.t-h1,
.t-h2.t-h2,
.t-h2c.t-h2c,
.t-h3.t-h3,
.t-h4.t-h4,
.t-h5.t-h5 {
  font-family: var(--font-display) !important;
}

.t-display.t-display { font-size: var(--fs-display) !important; line-height: 1.04 !important; letter-spacing: -.03em !important; font-weight: 800 !important; }
.t-h1.t-h1 { font-size: var(--fs-h1) !important; line-height: 1.08 !important; letter-spacing: -.025em !important; font-weight: 800 !important; }
.t-h2.t-h2 { font-size: var(--fs-h2) !important; line-height: 1.12 !important; letter-spacing: -.022em !important; font-weight: 800 !important; }
.t-h2c.t-h2c { font-size: var(--fs-h2-compact) !important; line-height: 1.15 !important; letter-spacing: -.02em !important; font-weight: 800 !important; }
.t-h3.t-h3 { font-size: var(--fs-h3) !important; line-height: 1.25 !important; letter-spacing: -.015em !important; font-weight: 750 !important; }
.t-h4.t-h4 { font-size: var(--fs-h4) !important; line-height: 1.32 !important; letter-spacing: -.01em !important; font-weight: 700 !important; }
.t-h5.t-h5 { font-size: var(--fs-h5) !important; line-height: 1.4 !important; letter-spacing: -.005em !important; font-weight: 700 !important; }
.t-lead.t-lead { font-size: var(--fs-lead) !important; line-height: 1.6 !important; letter-spacing: 0 !important; }
.t-body.t-body { font-size: var(--fs-body) !important; line-height: 1.65 !important; }
.t-small.t-small { font-size: var(--fs-small) !important; line-height: 1.6 !important; }
.t-caption.t-caption { font-size: var(--fs-caption) !important; line-height: 1.5 !important; }

/* An ID-based mobile rule in premium.css would otherwise outrank the classes */
#capabilities .t-h2 { font-size: var(--fs-h2) !important; }

/* Components that set their own type, mapped onto the same scale */
.cs-hero-title { font-size: clamp(1.75rem, 1.1rem + 2.667vw, 3.5rem) !important; line-height: 1.08 !important; letter-spacing: -.025em !important; font-weight: 800 !important; }
.cs-hero-subtitle { font-size: var(--fs-lead) !important; line-height: 1.55 !important; }
.cs-compact-title { font-size: var(--fs-h2-compact) !important; line-height: 1.15 !important; letter-spacing: -.02em !important; font-weight: 800 !important; }
.cs-exec-text { font-size: var(--fs-lead) !important; line-height: 1.65 !important; }
.cs-meta-value { font-size: 1rem !important; line-height: 1.4 !important; }
.jt-commitment-title { font-size: var(--fs-h4) !important; line-height: 1.3 !important; letter-spacing: -.01em !important; font-weight: 700 !important; }
.jt-commitment-cell-featured .jt-commitment-title { font-size: var(--fs-h3) !important; line-height: 1.2 !important; letter-spacing: -.015em !important; font-weight: 750 !important; }
.jt-commitment-desc { font-size: var(--fs-small) !important; line-height: 1.6 !important; }
.faq-accordion-btn { font-size: var(--fs-h5) !important; line-height: 1.45 !important; }
.faq-accordion-content { font-size: var(--fs-body) !important; line-height: 1.7 !important; }
.jt-manifesto-line-text { font-size: var(--fs-h2) !important; line-height: 1.15 !important; letter-spacing: -.022em !important; }
.jt-manifesto-line-text.jt-manifesto-muted { font-size: var(--fs-lead) !important; line-height: 1.55 !important; letter-spacing: 0 !important; }
.jt-architecture-layer h3 { font-size: var(--fs-h5) !important; line-height: 1.35 !important; letter-spacing: -.005em !important; }
.jt-architecture-layer p { font-size: var(--fs-small) !important; line-height: 1.55 !important; }
.jt-panel-title { font-size: var(--fs-h2-compact) !important; line-height: 1.15 !important; letter-spacing: -.02em !important; }
.jt-panel-problem { font-size: var(--fs-small) !important; line-height: 1.6 !important; }
.jt-footer-brand > p { font-size: var(--fs-small) !important; line-height: 1.7 !important; }
.jt-footer-bottom { font-size: .875rem !important; }
.jt-panel-subtitle { font-size: .875rem !important; line-height: 1.5 !important; }

/* ── Homepage hero ─────────────────────────────────────────── */
.jt-home-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h, 72px) + clamp(36px, 5.5vw, 88px)) 0 clamp(56px, 7vw, 104px);
  background: linear-gradient(160deg, #f8fbff 0%, #f0f5fe 55%, #e8f1fc 100%);
  color: var(--jt-ink);
}

.jt-home-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 104px);
  padding-inline: var(--page-gutter);
}

@media (min-width: 1024px) {
  .jt-home-hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  }
}

.jt-home-hero-copy {
  max-width: 46rem;
}

.jt-home-hero-kicker {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  color: #1d4ed8;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.jt-home-hero-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  flex: 0 0 auto;
  margin-top: calc(.7em - 1px); /* centred on the first line when the kicker wraps */
  border-radius: 2px;
  background: linear-gradient(90deg, #2563eb, #22a3d6);
}

.jt-home-hero-title {
  margin: 0 0 24px;
  color: var(--jt-ink);
}

.jt-home-hero-sub {
  max-width: 38rem;
  margin: 0 0 34px;
  color: #475569;
}

.jt-home-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.jt-home-hero-cta.jt-home-hero-cta {
  min-height: 54px;
  padding: 0 26px;
  font-size: 1rem;
}

.jt-home-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: clamp(28px, 4vw, 56px);
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(15, 40, 80, .12);
}

.jt-home-hero-stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}

.jt-home-hero-stats dd {
  margin: 0;
  color: var(--jt-ink);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.43rem + 1.1vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.jt-home-hero-stats dd span {
  margin-left: 2px;
  color: #2563eb;
  font-size: .62em;
  vertical-align: .32em;
}

.jt-home-hero-stats dt {
  color: #475569;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.35;
}

@media (max-width: 639px) {
  .jt-home-hero-ctas .jt-home-hero-cta {
    width: 100%;
    justify-content: center;
  }

  .jt-home-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

/* "Recently shipped" systems card */
.jt-home-systems {
  container: hs / inline-size;
  justify-self: end;
  width: 100%;
  max-width: 46rem;
  padding: 18px;
  border: 1px solid #d8e2ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 48px 90px -56px rgba(13, 42, 92, .5), 0 2px 8px rgba(13, 42, 92, .05);
}

@media (max-width: 1023px) {
  .jt-home-systems {
    justify-self: stretch;
    max-width: none;
  }
}

.jt-home-systems-head {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.jt-home-systems-label {
  padding-left: 4px;
  color: #64748b;
  font-size: .8125rem;
  font-weight: 600;
}

/* Segmented control: four across when the card has room, otherwise two by two */
.jt-home-systems-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #f1f5f9;
}

@container hs (min-width: 32rem) {
  .jt-home-systems-tabs {
    grid-template-columns: repeat(4, auto);
  }
}

@container hs (min-width: 42rem) {
  .jt-home-systems-head {
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
  }
}

.jt-home-systems-tab {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #475569;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.jt-home-systems-tab:hover {
  color: #0f172a;
}

.jt-home-systems-tab[aria-selected="true"] {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(15, 40, 80, .14);
}

.jt-home-systems-panel:not([hidden]) {
  animation: jtPanelIn .28s ease both;
}

@keyframes jtPanelIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .jt-home-systems-panel:not([hidden]) {
    animation: none;
  }
}

.jt-home-systems-title {
  padding: 2px 4px 16px;
  border-bottom: 1px solid #eef2f7;
}

.jt-home-systems-name {
  color: var(--jt-ink);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.jt-home-systems-summary {
  margin-top: 4px;
  color: #475569;
  font-size: .9375rem;
  line-height: 1.5;
}

.jt-home-stack {
  margin: 0;
  padding: 4px 0;
  list-style: none;
}

.jt-home-stack-row {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
}

.jt-home-stack-row + .jt-home-stack-row {
  border-top: 1px dashed #e2e8f0;
}

.jt-home-stack-layer {
  color: #64748b;
  font-size: .8125rem;
  font-weight: 600;
}

.jt-home-stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jt-home-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  color: #0f172a;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.2;
}

.jt-home-chip img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.jt-home-chip i {
  color: #2563eb;
  font-size: .75rem;
}

.jt-home-chip-more {
  background: #f8fafc;
  color: #64748b;
}

.jt-home-systems-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 4px;
  padding: 14px 4px 2px;
  border-top: 1px solid #eef2f7;
}

.jt-home-systems-outcome {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #047857;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.jt-home-systems-outcome i {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ecfdf5;
  font-size: .75rem;
}

.jt-home-systems-link {
  gap: 8px;
  color: #1d4ed8;
  font-size: .9375rem;
  font-weight: 700;
}

@media (max-width: 479px) {
  .jt-home-systems {
    padding: 14px;
    border-radius: 18px;
  }

  .jt-home-stack-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ── Base ───────────────────────────────────────────────── */
html {
  scroll-padding-top: calc(var(--nav-h, 72px) + 16px);
}

/* "Outfit" and "Syne" are never loaded; use the display face the rest of the site uses. */
.cs-meta-value,
.cs-section-badge,
.cs-next-v2-title,
.cs-cta-title,
.deliver-title,
.jt-footer-heading,
.jt-panel-strip-title {
  font-family: "Manrope", "Inter", sans-serif;
}

/* Visible keyboard focus. Form fields draw their own focus ring. */
:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
}

.jt-pipeline-sec :focus-visible,
.jt-cta-final :focus-visible,
.jt-showcase-box :focus-visible,
.cs-hero :focus-visible,
.cs-sticky-nav :focus-visible {
  outline-color: #93c5fd;
}

/* ── Labels and small text ──────────────────────────────────
   Section labels share one style with the homepage hero kicker: sentence case, 14px, blue, with a
   short rule before the text. Badges, metadata and diagram labels have a 12px floor; only the
   decorative text inside illustrations goes down to 11px. */
:root {
  --fs-label: .875rem;
  --fs-tag: .75rem;
  --fs-micro: .6875rem;
}

.sec-label.sec-label,
.jt-hero-eyebrow.jt-hero-eyebrow,
.cs-section-label.cs-section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #1d4ed8;
  font-family: var(--font-text);
  font-size: var(--fs-label) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.sec-label.sec-label::before,
.jt-hero-eyebrow.jt-hero-eyebrow span {
  content: "";
  width: 28px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: linear-gradient(90deg, #2563eb, #22a3d6);
}

.sec-label-on-dark.sec-label-on-dark,
.cs-label-dark.cs-section-label {
  color: #93c5fd;
}

.sec-label-on-dark.sec-label-on-dark::before {
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
}

.cs-label-accent.cs-section-label {
  color: #fcd34d;
}

/* Badges, metadata and diagram labels */
.cs-meta-label,
.cs-pill,
.cs-section-badge,
.jt-stage-label,
.jt-commitment-num,
.jt-commitment-stat span,
.jt-panel-num,
.jt-panel-cat,
.jt-panel-strip-type,
.jt-panel-strip-num,
.jt-layer-number,
.jt-architecture-meta,
.jt-architecture-footer,
.jt-pipeline-stage-num,
.jt-live-badge,
.jt-menu-label,
.jt-showcase-label,
.jt-stats-bar .text-xs {
  font-size: var(--fs-tag) !important;
}

.cs-meta-label {
  color: #64748b;
}

/* Work page slider: the collapsed strips are narrow, so the project type keeps its own casing and
   wraps only at spaces (the template swaps hyphens for non-breaking ones) */
.jt-panel-strip-type.jt-panel-strip-type {
  font-size: var(--fs-tag);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .01em;
  text-align: center;
  text-transform: none;
}

.jt-panel-meta {
  flex-wrap: wrap;
  row-gap: 6px;
}

.jt-panel-num {
  color: rgba(255, 255, 255, .5);
  white-space: nowrap;
}

@media (max-width: 1279px) {
  .jt-panel-strip-type.jt-panel-strip-type {
    font-size: var(--fs-micro) !important;
  }

  /* The active title is already on the panel; the footer copy only crowded the arrows */
  .jt-showcase-label {
    display: none;
  }
}

/* On phones the floating "01/07" badge covered the panel's own counter; keep it for screen readers only */
@media (max-width: 767px) {
  .jt-live-badge.jt-live-badge {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Case-study hero: the title block sits over busy product photography, so the veil is darker
   behind the text (left side on desktop, the whole block on phones) */
.cs-hero-veil {
  background:
    linear-gradient(180deg, rgba(7, 14, 26, .5) 0%, rgba(7, 14, 26, .3) 35%, rgba(7, 14, 26, .78) 72%, rgba(7, 14, 26, .94) 100%),
    linear-gradient(90deg, rgba(7, 14, 26, .62) 0%, rgba(7, 14, 26, .25) 55%, transparent 80%);
}

@media (max-width: 767px) {
  .cs-hero-veil {
    background: linear-gradient(180deg, rgba(7, 14, 26, .72) 0%, rgba(7, 14, 26, .62) 40%, rgba(7, 14, 26, .92) 100%);
  }
}

/* Work page showcase: the active project's type sits on a dark band */
#jt-active-type {
  color: #60a5fa;
  font-size: var(--fs-tag) !important;
}

.jt-commitment-stat span {
  color: rgba(255, 255, 255, .62);
}

/* Tech chips and short facts read as text, not decoration */
.jt-layer-tech span,
.jt-panel-stack li,
.tech-panel span,
.cs-tech-tag,
.jt-commitment-footer {
  font-size: .8125rem !important;
}

.jt-panel-industry,
.jt-panel-result,
.jt-manifesto-pill {
  font-size: .875rem !important;
}

.jt-manifesto-pill {
  color: rgba(255, 255, 255, .72);
}

/* Decorative text inside illustrations (floating stat cards, deploy logs) */
.jt-deploy-float small,
.jt-deploy-float em,
.jt-deploy-float strong,
.jt-analytics-float small,
.jt-analytics-float strong,
.jt-deploy-status,
.jt-pipeline-stage-active::before {
  font-size: var(--fs-micro) !important;
}

/* Text links get at least a 32px tall hit area */
.jt-text-link,
.svc-card-link,
.jt-contact-value {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

/* ── Header & mobile menu ─────────────────────────────── */
.jt-mobile-nav-body {
  padding-top: 28px;
}

.jt-mobile-link {
  min-height: 54px;
  font-size: 1.15rem;
}

.jt-mobile-nav-foot {
  font-size: .875rem;
}

.jt-mobile-foot-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.jt-mobile-foot-info a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #475569;
}

/* ── Capabilities explorer: every capability visible on small screens ── */
@media (max-width: 767px) {
  #capabilities .capability-nav-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
    scroll-snap-type: none !important;
  }

  #capabilities .capability-explorer-tab {
    min-width: 0 !important;
    padding: 12px !important;
  }

  #capabilities .capability-explorer-tab:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  #capabilities .capability-explorer-tab .cap-num,
  #capabilities .capability-explorer-tab .cap-cat,
  #capabilities .capability-explorer-tab .fa-arrow-right,
  #capabilities .capability-explorer-tab .cap-tab-underline {
    display: none !important;
  }

  #capabilities .capability-explorer-tab .cap-title {
    font-size: .875rem !important;
    line-height: 1.3 !important;
  }
}

/* ── Architecture section: drop the trailing gap below the last card ── */
.jt-architecture-canvas {
  margin-bottom: 0;
}

/* ── Engineering pipeline: legible deliverables on the dark band ── */
.jt-pipeline-stage-num {
  font-size: .72rem;
  color: rgba(255, 255, 255, .55);
}

.jt-pipeline-stage-name {
  font-size: .78rem;
}

.jt-pipeline-deliverables li {
  font-size: .8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .68);
}

.jt-pipeline-stage:hover .jt-pipeline-deliverables li,
.jt-pipeline-stage-active .jt-pipeline-deliverables li {
  color: rgba(255, 255, 255, .88);
}

@media (max-width: 767px) {
  .jt-pipeline-grid-stages > .jt-pipeline-stage:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ── Technology tabs: wrap instead of a hidden horizontal scroller ── */
@media (max-width: 639px) {
  div:has(> .tech-tab),
  .flex:has(> .tech-tab) {
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 8px !important;
  }

  .tech-tab {
    min-height: 40px !important;
  }
}

/* ── Final CTA strip: bigger tap target for the email link ── */
.jt-cta-brief-item a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

/* Hero headings: the left-to-right scan reveal (motion.js) stays a desktop moment. On phones it hid the
   headline for ~2s and made the logo the page's largest paint, so the heading shows immediately. */
@media (max-width: 767px) {
  .jt-scan-reveal {
    clip-path: none !important;
    animation: none !important;
  }

  .jt-scan-reveal::before,
  .jt-scan-reveal::after {
    display: none !important;
  }
}

/* ── Inner-page heroes: H1 stays the largest heading on phones ── */
@media (max-width: 480px) {
  .jt-hero-redesign h1 {
    font-size: clamp(2.1rem, 9.6vw, 2.6rem) !important;
  }
}

.jt-hero-redesign nav a,
.cs-hero-breadcrumb a {
  padding-block: 8px;
}

/* ── Services hero: globe poster + live canvas, floating cards ── */
#jt-globe-container {
  position: relative;
}

.jt-globe-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .7s ease;
}

#jt-globe-container .jt-globe-canvas {
  position: relative;
  opacity: 0;
  transition: opacity .7s ease;
}

#jt-globe-container.jt-globe-live .jt-globe-canvas {
  opacity: 1;
}

#jt-globe-container.jt-globe-live .jt-globe-poster {
  opacity: 0;
}

.jt-analytics-float small,
.jt-deploy-float small {
  font-size: .75rem;
}

.jt-analytics-float strong,
.jt-deploy-float strong {
  font-size: .82rem;
}

.jt-deploy-float em {
  font-size: .64rem;
}

@media (max-width: 767px) {
  .jt-product-stage {
    min-height: 0 !important;
  }

  /* premium.css stretches every direct child of the grid columns on phones; the cards keep their size */
  .jt-product-stage > .jt-analytics-float,
  .jt-product-stage > .jt-deploy-float {
    width: max-content !important;
    max-width: calc(100% - 16px) !important;
  }

  .jt-analytics-float {
    top: 6px !important;
    right: 6px !important;
    left: auto !important;
  }

  .jt-deploy-float {
    bottom: 6px !important;
    left: 6px !important;
    right: auto !important;
  }
}

/* ── Service detail: compact capability cards on phones ── */
@media (max-width: 639px) {
  .jt-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }

  .jt-feature-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
  }
}

/* ── About ──────────────────────────────────────────────── */
@media (max-width: 639px) {
  .jt-about-badge {
    top: -16px !important;
    left: 12px !important;
    padding: 14px 18px !important;
  }

  .jt-about-badge > div:first-child {
    font-size: 1.9rem;
  }
}

/* ── Work: featured showcase ────────────────────────────── */
.jt-panel-stack li {
  font-size: .75rem;
  color: rgba(255, 255, 255, .72);
}

.jt-panel-stack .jt-panel-stack-more {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, .35);
}

/* 24px tap targets; the visible dot is drawn inside */
.jt-showcase-dots {
  gap: 0;
}

.jt-dot {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: transparent;
}

.jt-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .28);
  transition: width .28s ease, background-color .28s ease;
}

.jt-dot.active {
  width: 32px;
  background: transparent;
}

.jt-dot.active::before {
  width: 22px;
  background: var(--jt-blue, #2864e8);
}

.jt-dot:hover:not(.active) {
  background: transparent;
}

.jt-dot:hover:not(.active)::before {
  background: rgba(255, 255, 255, .55);
}

/* ── Work: search + case cards ──────────────────────────── */
.cs-search {
  position: relative;
  flex: 0 0 min(340px, 100%);
}

.cs-search-input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 40px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cs-search-input::placeholder {
  color: #8494a7;
}

.cs-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.cs-search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}

.cs-search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #64748b;
  font-size: .85rem;
  pointer-events: none;
}

.cs-search-clear {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.cs-search-clear.hidden {
  display: none;
}

.cs-search-clear:hover {
  color: #0f172a;
  background: #f1f5f9;
}

@media (min-width: 640px) {
  .cs-search-input {
    font-size: .9rem;
  }
}

.cs-card-industry {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.cs-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
}

.cs-chip img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.cs-chip i {
  color: #2563eb;
  font-size: .7rem;
}

.cs-chip-more {
  background: #fff;
  color: #64748b;
}

/* ── Case study: technology stack by layer ──────────────── */
.cs-tech-tag-more {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.cs-tech-tag-more:hover {
  background: #dbeafe;
}

.cs-stack-intro {
  max-width: 62ch;
  margin-top: 8px;
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
}

/* Case study hero: the full title wraps instead of being cut off with an ellipsis */
.cs-hero-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  text-wrap: balance;
}

.cs-nav-link {
  flex-shrink: 0;
  white-space: nowrap;
}

/* One row per layer, top (user-facing) to bottom (infrastructure) — read like a stack diagram. */
.cs-stack-layers {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}

.cs-stack-layer {
  display: grid;
  grid-template-columns: minmax(200px, 250px) 1fr;
  align-items: center;
  gap: 12px 24px;
  padding: 16px 22px;
}

.cs-stack-layer + .cs-stack-layer {
  border-top: 1px solid #eef2f7;
}

.cs-stack-layer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #0f172a;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.3;
}

.cs-stack-layer-title > i {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eff6ff;
  color: #2563eb;
  font-size: .8rem;
}

.cs-stack-layer-count {
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 99px;
  background: #f1f5f9;
  color: #475569;
  font-family: "Inter", sans-serif;
  font-size: .75rem;
  font-weight: 700;
}

@media (max-width: 767px) {
  .cs-stack-layer {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

.cs-stack-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-stack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.cs-stack-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #2563eb;
  font-size: 1rem;
}

.cs-stack-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.cs-stack-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cs-stack-name {
  color: #0f172a;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
}

.cs-stack-role {
  color: #64748b;
  font-size: .8rem;
  line-height: 1.35;
}

/* ── Contact form ───────────────────────────────────────── */
.jt-field label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: .82rem;
  font-weight: 600;
}

.jt-field-optional {
  color: #64748b;
  font-weight: 500;
}

.jt-field input,
.jt-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 16px; /* 16px keeps iOS from zooming into the field */
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.jt-field textarea {
  min-height: 132px;
  resize: vertical;
}

.jt-field input::placeholder,
.jt-field textarea::placeholder {
  color: #8494a7;
}

.jt-field input:focus,
.jt-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.jt-field [aria-invalid="true"] {
  border-color: #dc2626;
  background: #fff;
}

.jt-field [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
}

.jt-field-error {
  margin-top: 6px;
  color: #b91c1c;
  font-size: .82rem;
  line-height: 1.4;
}

.jt-contact-form button[disabled] {
  opacity: .7;
  cursor: progress;
}

@media (min-width: 640px) {
  .jt-field input,
  .jt-field textarea {
    font-size: .92rem;
  }
}

/* Map placeholder until the visitor asks for the Google map */
.jt-map {
  position: relative;
  background:
    linear-gradient(rgba(37, 99, 235, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, #f8fbff, #eef4fd);
}

.jt-map-facade {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
}

.jt-map-pin {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 8px rgba(37, 99, 235, .14);
}

.jt-map-place {
  color: #0f172a;
  font-weight: 600;
}

.jt-map-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
}

.jt-map-show {
  min-height: 40px;
  padding: 8px 18px;
  font-size: .875rem;
}

.jt-map-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: #1d4ed8;
  font-size: .875rem;
  font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────────── */
.jt-footer-column h2 {
  margin-bottom: 16px;
  color: #0f172a;
  font-family: "Inter", sans-serif !important;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.jt-footer-column > a:not(.jt-contact-link) {
  margin-bottom: 2px;
  padding-block: 6px;
}

@media (max-width: 1023px) {
  .jt-footer-contact h2 {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .jt-footer-contact h2 {
    margin-bottom: 12px;
  }
}

@media (max-width: 420px) {
  .jt-footer-main {
    grid-template-columns: 1fr 1fr !important;
    column-gap: 20px !important;
  }

  .jt-footer-brand,
  .jt-footer-contact {
    grid-column: 1 / -1 !important;
  }

  .jt-footer-column > a:not(.jt-contact-link) {
    font-size: .9rem;
  }
}

/* ── WhatsApp chat ──────────────────────────────────────────
   Floating launcher on every page (layouts/footer.ejs). It opens a small chat card whose button
   starts a WhatsApp chat with a pre-filled message. Back to top stacks above the launcher. */
.jt-wa {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 990; /* below the mobile menu and its backdrop */
}

.jt-wa-toggle {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #1daa61;
  box-shadow: 0 12px 28px rgba(7, 28, 51, .24), 0 2px 6px rgba(7, 28, 51, .12);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}

@media (hover: hover) {
  .jt-wa-toggle:hover {
    background: #189a57;
    transform: translateY(-2px);
  }
}

/* White halo so the focus ring reads over dark bands too */
.jt-wa-toggle:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 12px 28px rgba(7, 28, 51, .24);
}

/* The WhatsApp mark turns into a close icon while the card is open */
.jt-wa-toggle i {
  grid-area: 1 / 1;
  transition: opacity .2s ease, transform .2s ease;
}

.jt-wa-toggle .fa-whatsapp {
  font-size: 30px;
}

.jt-wa-toggle .fa-xmark {
  font-size: 22px;
  opacity: 0;
  transform: rotate(-90deg) scale(.6);
}

.jt-wa.open .jt-wa-toggle .fa-whatsapp {
  opacity: 0;
  transform: rotate(90deg) scale(.6);
}

.jt-wa.open .jt-wa-toggle .fa-xmark {
  opacity: 1;
  transform: none;
}

.jt-wa-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  display: flex;
  flex-direction: column;
  width: 360px;
  max-height: calc(100vh - var(--nav-h, 72px) - 112px);
  max-height: calc(100dvh - var(--nav-h, 72px) - 112px);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 64px rgba(7, 28, 51, .22), 0 4px 14px rgba(7, 28, 51, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.97);
  transform-origin: 100% 100%;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.jt-wa.open .jt-wa-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.jt-wa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  color: #fff;
  background: #061a35;
}

.jt-wa-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
}

.jt-wa-name {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  font-weight: 700;
  line-height: 1.25;
}

.jt-wa-status {
  margin-top: 2px;
  color: rgba(255, 255, 255, .72);
  font-size: var(--fs-caption);
  line-height: 1.4;
}

.jt-wa-body {
  position: relative;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 18px 24px 26px;
  background: #f1f5f9;
}

/* Incoming message bubble, tail at the top left */
.jt-wa-msg {
  position: relative;
  border-radius: 0 14px 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .1);
}

.jt-wa-msg::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  border-top: 10px solid #fff;
  border-left: 8px solid transparent;
}

.jt-wa-bubble {
  max-width: 92%;
  padding: 10px 14px 12px;
  color: #1e293b;
  font-size: var(--fs-small);
  line-height: 1.5;
  transition: opacity .3s ease;
}

.jt-wa-bubble p + p {
  margin-top: 4px;
}

.jt-wa-typing {
  position: absolute;
  top: 20px;
  left: 26px;
  display: none;
  gap: 4px;
  padding: 14px 16px;
}

.jt-wa-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  animation: jt-wa-typing 1s ease-in-out infinite;
}

.jt-wa-typing span:nth-child(2) {
  animation-delay: .15s;
}

.jt-wa-typing span:nth-child(3) {
  animation-delay: .3s;
}

.jt-wa-panel.is-typing .jt-wa-typing {
  display: flex;
}

.jt-wa-panel.is-typing .jt-wa-bubble {
  visibility: hidden;
  opacity: 0;
}

@keyframes jt-wa-typing {
  0%, 60%, 100% { opacity: .4; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}

.jt-wa-foot {
  padding: 14px 18px 18px;
}

.jt-wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  color: #fff;
  background: #008069;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  transition: background-color .2s ease;
}

.jt-wa-cta:hover,
.jt-wa-cta:focus-visible {
  color: #fff;
  background: #006e5a;
}

.jt-wa-cta i {
  font-size: 20px;
}

/* Back to top sits above the launcher, centred on it, and steps aside while the chat card is open */
.jt-back-top {
  right: 34px;
  bottom: 98px;
}

.jt-back-top:has(~ .jt-wa.open) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 767px) {
  .jt-wa {
    right: 16px;
    bottom: 16px;
  }

  /* Pinned to the viewport so both side margins stay 16px (100vw would include a desktop scrollbar) */
  .jt-wa-panel {
    position: fixed;
    right: 16px;
    bottom: 86px;
    left: 16px;
    width: auto;
    max-width: 360px;
    max-height: calc(100vh - var(--nav-h, 64px) - 100px);
    max-height: calc(100dvh - var(--nav-h, 64px) - 100px);
    margin-left: auto;
  }

  .jt-back-top {
    right: 22px;
    bottom: 86px;
  }
}
