/*!
 * TIQRI — Service inner page template (.sv-*)
 * Used by: artificial-intelligence.html
 *
 * Sections are in cascade order: later sections intentionally refine earlier
 * ones, so add new rules to the section that owns the component rather than
 * appending a new block at the end of the file.
 *
 * Loads after css/tiqri.css and reuses its tokens (:root custom properties).
 *
 * Contents
 *  01. Service page
 */

/* ==========================================================================
   01. Service page
   Template for every service page (duplicate artificial-intelligence.html).
   ========================================================================== */

/* SERVICE INNER PAGE (template) ==================== Shares homepage tokens, header,
   footer, buttons and ribbon. Scoped with .sv-  */
:root {
  --sv-lime: #bded80;
  --sv-green: #74ad40;
  --sv-pale: #bdceed;
  --sv-soft: #8fa6cf;
  --sv-line: #ffffff1c;
}
.nav-links a[aria-current="page"] {
  opacity: 1;
}
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}
.sv-dark {
  color: #fff;
}

/* ---------- ---------- 1. Hero ---------- ---------- */
.sv-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #040e32;
  padding: calc(var(--header-h) + 64px) 0 0;
}
.sv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(
      ellipse at 88% 94%,
      rgba(120, 188, 67, 0.22) 0%,
      rgba(66, 164, 94, 0.1) 29%,
      rgba(66, 164, 94, 0) 60%
    ),
    radial-gradient(ellipse at 5% 12%, rgba(96, 179, 79, 0.085) 0%, rgba(96, 179, 79, 0) 43%),
    radial-gradient(ellipse at 79% 39%, #1851c09c 0%, #12328445 32%, transparent 59%),
    radial-gradient(ellipse at 20% 110%, #163d9660, transparent 58%),
    linear-gradient(120deg, #040d2a 0%, #0a1b50 48%, #09296d 100%);
}
/* Inner-page hero: identical geometry to the About hero so every inner page shares one
   banner size. */
.sv-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.sv-hero-copy {
  padding-bottom: clamp(56px, 7vw, 104px);
}
.sv-hero-eyebrow {
  margin-top: 30px;
}
.sv-hero h1 {
  font-size: clamp(44px, 5vw, 74px);
  font-weight: 550;
  line-height: 1.06;
  letter-spacing: -0.055em;
  margin-top: 18px;
}
.sv-hero h1 span {
  display: block;
}
.sv-hero h1 .accent {
  color: var(--sv-lime);
}
.sv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 36px;
}
.sv-actions .text-link {
  color: #e2ebfb;
  border-bottom-color: #6f8cc2;
}

/* The AI visual: a living neural sphere (echoes the homepage dot globe). */
.sv-visual {
  position: relative;
  aspect-ratio: 1.18/1;
  max-height: 600px;
  width: 100%;
}
.sv-visual canvas {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  height: 100%;
  width: auto;
  aspect-ratio: 1/1;
  transform: translateX(-50%);
}
.sv-visual::before {
  content: "";
  position: absolute;
  inset: 12% 22%;
  border-radius: 50%;
  background: radial-gradient(circle, #2d6bff3d, transparent 68%);
  filter: blur(20px);
  z-index: -1;
}
.sv-kicker {
  position: absolute;
  right: 0;
  bottom: 16%;
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
  border-left: 1px solid #bded8066;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 2.1;
  color: #c5d7f2;
  text-transform: uppercase;
}
.sv-kicker li:last-child {
  color: var(--sv-lime);
}

/* ---------- ---------- 2. Approach ---------- ---------- */

/* ---------- ---------- 3. Case Studies ---------- ---------- */

/* Service page: case studies sit straight under the section title */
#work .usecases {
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
}
#work .usecases::before {
  display: none;
}

/* ---------- ---------- 4. Cta ---------- ---------- */
.sv-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 8vw, 120px) 0 clamp(110px, 11vw, 170px);
  background: linear-gradient(180deg, #071640, #040e32);
}
.sv-cta .button {
  justify-self: end;
}
.sv-cta h2 {
  font-size: clamp(30px, 3.3vw, 48px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.12;
  color: #fff;
  max-width: 24ch;
}
.sv-cta h2 span {
  color: var(--sv-lime);
}

/* ---------- Motion & a11y ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sv-hero {
    padding-top: calc(var(--header-h) + 36px);
  }
  .sv-hero-grid {
    grid-template-columns: 1fr;
  }
  .sv-hero-copy {
    padding-bottom: 0;
  }
  .sv-visual {
    aspect-ratio: 1/1;
    max-width: 560px;
    margin-inline: auto;
    margin-top: 12px;
    display: none;
  }
  .sv-cta .button {
    justify-self: start;
  }
  .sv-kicker {
    bottom: 4%;
  }
}
@media (max-width: 640px) {
  .container {
    width: calc(100% - 40px);
  }
  .sv-kicker {
    font-size: 10px;
    letter-spacing: 0.18em;
  }
  .sv-visual {
    aspect-ratio: 1/1.08;
  }
}

/* About-theme alignment */
.ab-cta-grid {
  grid-template-columns: 1.9fr 1fr;
}
.ab-cta h2 {
  text-wrap: balance;
}
@media (max-width: 900px) {
  .ab-cta-grid {
    grid-template-columns: 1fr;
  }
}
/* Full-bleed, darker AI hero (client reference): portrait + lime swoosh + kicker. Banner
   size unchanged. */
.sv-hero::before {
  background:
    radial-gradient(ellipse at 72% 45%, #123a8a66 0%, transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(120, 188, 67, 0.1), transparent 50%),
    linear-gradient(115deg, #020a22 0%, #04112f 45%, #071a45 100%);
}
.sv-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.sv-hero-img {
  position: absolute;
  top: 0;
  bottom: 0;
  right: max(0px, calc((100vw - 1248px) / 2 - 20px));
  height: 100%;
  width: auto;
  max-width: none;
  mix-blend-mode: screen;
  opacity: 0.95;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 24%, #000 58%, transparent 92%),
    linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 24%, #000 58%, transparent 92%),
    linear-gradient(180deg, #000 70%, transparent 100%);
  mask-composite: intersect;
}
.sv-art .sv-kicker {
  position: absolute;
  right: max(24px, calc((100vw - 1248px) / 2));
  bottom: auto;
  top: 52%;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 2.1;
  text-transform: uppercase;
  color: #c9d6ee;
}
.sv-art .sv-kicker li:last-child {
  color: #c9d6ee;
}
@media (min-width: 901px) and (max-width: 1300px) {
  .sv-hero-img {
    top: auto;
    height: 82%;
    right: 0;
    opacity: 0.7;
  }
}
@media (max-width: 900px) {
  .sv-art {
    position: relative;
    inset: auto;
    height: 420px;
    margin-top: -20px;
    order: 2;
  }
  .sv-hero-img {
    right: 50%;
    transform: translateX(50%);
  }
  .sv-art .sv-kicker {
    top: auto;
    bottom: 24px;
    right: 20px;
    font-size: 10px;
  }
}
/* Why work with us: About "Why TIQRI" pillars, 3 x 2 */
.sv-why-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(52px, 6vw, 80px);
}
.sv-why-grid .ab-pillar:nth-child(3n + 1) {
  border-left: 0;
}
.sv-why-grid .ab-pillar:nth-child(n + 4) {
  margin-top: 34px;
}
.sv-why-grid .ab-pillar::before {
  left: clamp(18px, 2vw, 30px);
  margin-left: 0;
}
/* Powering AI: ledger rows in About light style */
.sv-stack-list {
  margin: clamp(52px, 6vw, 80px) 0 0;
  border-top: 1px solid #d6e2f2;
}
.sv-stack-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid #d6e2f2;
  position: relative;
}
.sv-stack-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 44px;
  height: 2px;
  background: #74ad40;
}
.sv-stack-row dt {
  font-family: var(--heading);
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #132b50;
}
.sv-stack-row dd {
  margin: 0;
}
.sv-stack-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sv-stack-row li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cddcf0;
  background: #fff;
  font-weight: 500;
  color: #173767;
  box-shadow: 0 6px 18px #0b2a6a0a;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.35s var(--ease);
  flex-direction: column;
  justify-content: center;
  min-width: 132px;
  min-height: 112px;
  padding: 20px 18px 16px;
  border-radius: 18px;
  font-size: 13.5px;
  text-align: center;
}
.sv-stack-row li:hover {
  border-color: #74ad40;
  background: #f3fbe9;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px #0b2a6a14;
}
@media (max-width: 1100px) {
  .sv-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sv-why-grid .ab-pillar:nth-child(3n + 1) {
    border-left: 1px solid #ffffff14;
  }
  .sv-why-grid .ab-pillar:nth-child(odd) {
    border-left: 0;
  }
  .sv-why-grid .ab-pillar:nth-child(n + 3) {
    margin-top: 34px;
  }
}
@media (max-width: 700px) {
  .sv-why-grid {
    grid-template-columns: 1fr;
  }
  .sv-why-grid .ab-pillar {
    border-left: 0 !important;
  }
  .sv-stack-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.sv-stack-row li svg {
  flex: none;
  width: 40px;
  height: 40px;
}
.sv-mono {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #173767;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}
/* Prominent logo tiles */
.sv-stack-row ul {
  gap: 14px;
}
.sv-stack-row li {
  gap: 12px;
}
.sv-stack-row .sv-mono {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
}
@media (max-width: 700px) {
  .sv-stack-row li {
    min-width: calc(50% - 7px);
    min-height: 96px;
  }
  .sv-stack-row li svg,
  .sv-stack-row .sv-mono {
    width: 34px;
    height: 34px;
  }
}
.sv-cta-lines path {
  vector-effect: non-scaling-stroke;
}
#work #usecase-toggle {
  display: none;
}
/* Why work with us: prominent green icons (no badge, default stroke) */
.sv-why-grid .ab-pillar svg {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: #a6e15f;
}
/* Related services carousel (homepage "Built for what's next" style) */
.sv-rs {
  position: relative;
  isolation: isolate;
  padding: clamp(80px, 8vw, 120px) 0;
  background:
    radial-gradient(ellipse at 15% 20%, #e6effe, transparent 55%),
    linear-gradient(180deg, #f6f9ff, #eef4ff);
  border-top: 1px solid #dfe8f6;
  overflow: hidden;
}
.sv-rs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.sv-rs .ab-h2 .green {
  color: #4f8a2b;
}
.sv-rs-controls {
  display: flex;
  gap: 10px;
}
.sv-rs .usecase-control {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #c9d8ee;
  background: #fff;
  color: #173767;
  cursor: pointer;
  transition:
    background 0.3s,
    border-color 0.3s,
    opacity 0.3s;
}
.sv-rs .usecase-control svg {
  width: 18px;
  height: 18px;
}
.sv-rs .usecase-control:hover:not(:disabled) {
  border-color: #74ad40;
  background: #f3fbe9;
}
.sv-rs .usecase-control:disabled {
  opacity: 0.35;
  cursor: default;
}
.sv-rs .usecase-control:focus-visible {
  outline: 2px solid #4f8a2b;
  outline-offset: 3px;
}
.sv-rs-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 28px) / 3);
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  list-style: none;
  margin: clamp(44px, 5vw, 64px) 0 0;
  padding: 4px 2px 18px;
  scrollbar-width: none;
}
.sv-rs-rail::-webkit-scrollbar {
  display: none;
}
.sv-rs-rail:focus-visible {
  outline: 2px solid #4f8a2b;
  outline-offset: 6px;
  border-radius: 12px;
}
.sv-rs-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sv-rs-visual {
  position: relative;
  width: 100%;
  height: 230px;
  isolation: isolate;
  margin-bottom: 22px;
  transition: transform 0.6s var(--ease);
}
.sv-rs-card:hover .sv-rs-visual {
  transform: translateY(-6px);
}
.sv-rs-glow {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, #c9dcff99, transparent 70%);
  filter: blur(10px);
  z-index: -1;
}
.sv-rs-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sv-rs-layer > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.sv-rs-layer[data-l="1"] {
  filter: drop-shadow(0 16px 22px #3868aa0c);
}
.sv-rs-layer[data-l="2"] {
  filter: drop-shadow(0 13px 16px #3868aa1a);
}
.sv-rs-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #506b90;
}
.sv-rs-card h3 {
  margin-top: 12px;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: #173767;
}
.sv-rs-desc {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
  color: #576e90;
  max-width: 34ch;
}
.sv-rs-link {
  margin-top: 20px;
  color: #2a5aa8;
  border-bottom-color: #b8cbe6;
  font-size: 13px;
}
.sv-rs-link:hover {
  color: #173767;
  border-bottom-color: #74ad40;
}
.sv-rs-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.sv-rs-dot {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  border: 0;
  padding: 0;
  background: #c3d3ea;
  cursor: pointer;
  transition:
    width 0.4s var(--ease),
    background 0.3s;
}
.sv-rs-dot[aria-current="true"] {
  width: 28px;
  background: #74ad40;
}
.sv-rs-dot:focus-visible {
  outline: 2px solid #4f8a2b;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .sv-rs-rail {
    scroll-behavior: auto;
  }
  .sv-rs-visual,
  .sv-rs-dot {
    transition: none;
  }
}
@media (max-width: 1000px) {
  .sv-rs-rail {
    grid-auto-columns: calc((100% - 28px) / 2);
  }
}
@media (max-width: 640px) {
  .sv-rs-rail {
    grid-auto-columns: 86%;
    gap: 18px;
  }
  .sv-rs-visual {
    height: 190px;
  }
  .sv-rs-controls {
    display: none;
  }
}
.sv-rs-dots {
  display: none !important;
}
.site-header {
  padding-top: env(safe-area-inset-top, 0px);
}
.footer {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
