/* ==========================================================================
   Page-specific components
   ========================================================================== */

/* ---------- Services detail rows ---------- */
.service-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.sd-index { font-family: var(--font-display); font-size: 15px; color: var(--gold-deep); letter-spacing: .1em; margin-bottom: 18px; }
.sd-icon-lg {
  width: 68px; height: 68px; border-radius: 10px;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.sd-icon-lg svg { width: 32px; height: 32px; }
.sd-head h2 { font-size: 32px; margin-bottom: 14px; }
.sd-head p { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin-bottom: 26px; }

.sd-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 34px; }
.sd-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 18px; background: var(--bg-soft); border-radius: 8px;
  font-size: 14px; color: var(--text-dark); line-height: 1.5;
  border-left: 2px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.sd-list li:hover { border-left-color: var(--gold); background: var(--bg-soft-2); }
.sd-list svg { width: 18px; height: 18px; color: var(--gold-deep); flex: none; margin-top: 1px; }
.sd-list strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 14.5px; margin-bottom: 4px; }

.sd-stack { display: flex; flex-wrap: wrap; gap: 10px; }
.sd-stack span { font-size: 12.5px; padding: 7px 14px; border: 1px solid var(--border-dark); border-radius: 20px; color: var(--text-on-dark-muted); background: var(--navy-mid); }

@media (max-width: 980px) {
  .sd-list { grid-template-columns: 1fr; }
}

/* ---------- Industries slider card pattern mixins (homepage) ---------- */
.ic-media.pattern-dots::after {
  content: ""; position: absolute; inset: 0;
  opacity: .38; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,.65) 2px, transparent 2.4px);
  background-size: 22px 22px;
}
.ic-media.pattern-diagonal::after {
  content: ""; position: absolute; inset: 0;
  opacity: .3; mix-blend-mode: overlay;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.5) 0 2px, transparent 2px 18px);
}
.ic-media.pattern-grid::after {
  content: ""; position: absolute; inset: 0;
  opacity: .28; mix-blend-mode: overlay;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 26px 26px;
}
.ic-media.pattern-circuit::after {
  content: ""; position: absolute; inset: 0;
  opacity: .34; mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255,255,255,.6) 0 2.5px, transparent 2.5px),
    radial-gradient(circle at 62% 66%, rgba(255,255,255,.6) 0 2.5px, transparent 2.5px),
    linear-gradient(90deg, transparent 17%, rgba(255,255,255,.4) 18%, rgba(255,255,255,.4) 19%, transparent 20%),
    linear-gradient(0deg, transparent 65%, rgba(255,255,255,.4) 66%, rgba(255,255,255,.4) 67%, transparent 68%);
  background-size: 70px 70px, 90px 90px, 100% 100%, 100% 100%;
}
.ic-media.pattern-waves::after {
  content: ""; position: absolute; inset: 0;
  opacity: .3; mix-blend-mode: overlay;
  background-image: repeating-radial-gradient(circle at 30% 110%, transparent 0, transparent 14px, rgba(255,255,255,.4) 15px, rgba(255,255,255,.4) 16px);
}
.ic-media.pattern-hex::after {
  content: ""; position: absolute; inset: 0;
  opacity: .32; mix-blend-mode: overlay;
  background-image: repeating-linear-gradient(120deg, rgba(255,255,255,.45) 0 1.5px, transparent 1.5px 20px),
    repeating-linear-gradient(60deg, rgba(255,255,255,.35) 0 1.5px, transparent 1.5px 20px);
}

.tech-grad-fintech { background: linear-gradient(150deg, #F3B24B 0%, #C97A2B 100%); }
.tech-grad-healthcare { background: linear-gradient(150deg, #45C79E 0%, #1C7A63 100%); }
.tech-grad-retail { background: linear-gradient(150deg, #F17D9C 0%, #B23A63 100%); }
.tech-grad-manufacturing { background: linear-gradient(150deg, #5B9CF6 0%, #2352A8 100%); }
.tech-grad-logistics { background: linear-gradient(150deg, #A47BF5 0%, #5B3AA6 100%); }
.tech-grad-realestate { background: linear-gradient(150deg, #7CD07B 0%, #2F8F4E 100%); }

/* ---------- Products ---------- */
.products-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 46px; flex-wrap: wrap; gap: 20px; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
  padding: 9px 18px; border: 1px solid var(--border); border-radius: 20px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.filter-btn.is-active { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy-mid);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -26px rgba(27,34,44,.25); }
.product-media {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex; align-items: flex-end; justify-content: flex-start;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.product-media::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(190deg, rgba(18,18,20,.1) 0%, rgba(10,10,11,.5) 75%, rgba(10,10,11,.82) 100%);
}
.product-media .pm-status {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 20px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); color: var(--white);
}
.product-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.product-body h3 { font-size: 20px; margin-bottom: 10px; }
.product-body p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border-dark); }
.product-link { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--gold-bright); }
.product-link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.product-card:hover .product-link svg { transform: translateX(4px); }
@media (max-width: 980px) { .products-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .products-grid { grid-template-columns: 1fr; } }

/* ---------- Careers ---------- */
.values-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.value-card { padding: 30px 26px; border-radius: 10px; background: var(--bg-soft); }
.value-card .vc-num { font-family: var(--font-display); font-size: 13px; color: var(--gold-deep); margin-bottom: 16px; }
.value-card h3 { font-size: 18px; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 980px) { .values-strip { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .values-strip { grid-template-columns: 1fr; } }

.perks-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.perk { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--border-dark); border-radius: 10px; background: var(--navy-mid); }
.perk .p-icon { width: 42px; height: 42px; border-radius: 8px; background: rgba(212,162,78,.14); color: var(--gold); display:flex; align-items:center; justify-content:center; flex: none; }
.perk .p-icon svg { width: 20px; height: 20px; }
.perk h4 { color: var(--white); font-size: 15px; margin-bottom: 6px; font-family: var(--font-display); }
.perk p { color: var(--text-on-dark-muted); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 900px) { .perks-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .perks-grid { grid-template-columns: 1fr; } }

.jobs-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.job-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.job-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto;
  align-items: center; gap: 20px;
  padding: 24px 6px;
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease), padding-left .3s var(--ease);
}
.job-row:hover { background: var(--bg-soft); padding-left: 14px; }
.job-title-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.job-title { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: var(--white); }
.job-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.job-status-closed { color: #E5847A; background: rgba(229,132,122,.12); border: 1px solid rgba(229,132,122,.3); }
.job-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #E5847A; flex: none; }
.job-meta { font-size: 13.5px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.job-meta svg { width: 15px; height: 15px; color: var(--gold-deep); }
.job-apply { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--gold-deep); white-space: nowrap; }
.job-apply svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.job-row:hover .job-apply svg { transform: translateX(4px); }
.job-apply-closed { color: var(--text-muted); font-weight: 600; }
.job-row.is-closed { pointer-events: none; cursor: default; }
.job-row.is-closed:hover { background: transparent; padding-left: 6px; }
.job-row.is-closed .job-title { color: var(--text-muted); }
@media (max-width: 900px) {
  .job-row { grid-template-columns: 1fr; gap: 8px; align-items: flex-start; }
  .job-apply { margin-top: 8px; }
}

/* ---------- About ---------- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content:""; position:absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border-dark); }
.t-item { position: relative; padding-bottom: 50px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before { content:""; position: absolute; left: -40px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212,162,78,.18); }
.t-year { font-family: var(--font-display); color: var(--gold-bright); font-size: 14px; margin-bottom: 8px; letter-spacing: .06em; }
.t-item h3 { color: var(--white); font-size: 19px; margin-bottom: 8px; }
.t-item p { color: var(--text-on-dark-muted); font-size: 14.5px; line-height: 1.6; max-width: 520px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card { text-align: left; }
.team-photo {
  aspect-ratio: 1; border-radius: 10px; margin-bottom: 18px;
  background: linear-gradient(150deg, var(--navy), var(--navy-soft));
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%);
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease-out);
}
.team-card:hover .team-photo { transform: translateY(-6px); }
.team-photo span { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--gold); }
.team-card h4 { font-size: 17px; margin-bottom: 4px; }
.team-card .role { font-size: 13.5px; color: var(--gold-deep); font-weight: 600; margin-bottom: 10px; }
.team-card p.bio { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }

.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mission-visual {
  aspect-ratio: 4/3.2;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-soft) 60%, var(--gold-deep) 140%);
  position: relative; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
}
.mission-visual svg { position:absolute; inset:0; width:100%; height:100%; opacity:.5; }
@media (max-width: 900px) { .mission-grid { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--white); font-family: var(--font-display); }
.field input, .field select, .field textarea {
  padding: 14px 16px; border: 1px solid var(--border-dark); border-radius: 6px;
  font-size: 14.5px; color: var(--text-dark); background: var(--navy-mid);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,162,78,.15); outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 12.5px; color: var(--text-muted); }
.form-success { display:none; padding: 16px 18px; background: rgba(212,162,78,.1); border: 1px solid var(--gold); border-radius: 8px; font-size: 14px; color: var(--gold-deep); font-weight: 600; }
.form-success.is-visible { display: block; }

.contact-info { display: flex; flex-direction: column; gap: 0; }
.info-block { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.info-block:first-child { padding-top: 0; }
.info-icon { width: 46px; height: 46px; border-radius: 8px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; flex: none; }
.info-icon svg { width: 21px; height: 21px; }
.info-block h4 { font-size: 15.5px; margin-bottom: 6px; }
.info-block p, .info-block a { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.info-block a:hover { color: var(--gold-deep); }

.map-wrap { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); margin-top: 30px; height: 260px; filter: grayscale(.15); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.offices-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.office-card { padding: 28px; border: 1px solid var(--border-dark); border-radius: 10px; background: var(--navy-mid); }
.office-card .oc-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.office-card h3 { color: var(--white); font-size: 19px; margin-bottom: 10px; }
.office-card p { color: var(--text-on-dark-muted); font-size: 13.5px; line-height: 1.7; }
.office-card p + p { margin-top: 10px; }
.office-card p a { color: var(--text-on-dark-muted); transition: color .25s var(--ease); }
.office-card p a:hover { color: var(--gold-bright); }
@media (max-width: 900px) { .offices-grid { grid-template-columns: 1fr; } .contact-grid { grid-template-columns: 1fr; gap: 50px; } .form-row { grid-template-columns: 1fr; } }

/* ---------- Approach / process mini (used in services page top) ---------- */
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--border-dark); border: 1px solid var(--border-dark); border-radius: 10px; overflow: hidden; }
.approach-item { background: var(--navy-mid); padding: 30px 24px; }
.approach-item .a-num { font-family: var(--font-display); color: var(--gold-deep); font-size: 13px; margin-bottom: 14px; }
.approach-item h4 { font-size: 15.5px; margin-bottom: 8px; }
.approach-item p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
@media (max-width: 900px) { .approach-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .approach-grid { grid-template-columns: 1fr; } }

/* generic content width helpers */
.lede { font-size: 19px; color: var(--text-muted); max-width: 700px; line-height: 1.75; }
.lede.on-dark { color: var(--text-on-dark-muted); }

/* ==========================================================================
   SERVICE DETAIL — animated visual panel per service
   ========================================================================== */
.sd-top { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: center; margin-bottom: 40px; }
.sd-head { position: static; }
@media (max-width: 980px) { .sd-top { grid-template-columns: 1fr; } }

.sv-panel {
  position: relative;
  border-radius: 14px;
  background: var(--navy);
  border: 1px solid var(--border-dark);
  overflow: hidden;
  min-height: 300px;
  padding: 30px;
  display: flex; align-items: center; justify-content: center;
}
.sv-panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 400px 260px at 80% 0%, rgba(227,193,130,.1), transparent 65%);
  pointer-events: none;
}

.sv-chip {
  position: absolute; z-index: 3;
  padding: 8px 14px;
  background: rgba(15,16,18,.82);
  border: 1px solid rgba(227,193,130,.28);
  border-radius: 20px;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  color: var(--text-on-dark);
  backdrop-filter: blur(8px);
  animation: float-bob 5.5s ease-in-out infinite;
  white-space: nowrap;
}
@media (max-width: 620px) { .sv-chip { font-size: 10px; padding: 6px 11px; } }

/* ---- AI & ML: pulsing neural network ---- */
.sv-neural svg { width: 100%; max-width: 260px; height: auto; }
.n-node { fill: var(--text-on-dark-muted); transform-box: fill-box; transform-origin: center; animation: node-pulse 2.6s ease-in-out infinite; }
.n-node-gold { fill: var(--gold); }
@keyframes node-pulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }

/* ---- Web Dev: typing code editor ---- */
.code-window { width: 100%; max-width: 280px; background: #121316; border-radius: 8px; padding: 18px; border: 1px solid var(--border-dark); }
.code-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.code-dots span { width: 8px; height: 8px; border-radius: 50%; display: block; }
.code-dots span:nth-child(1) { background: #E5544D; }
.code-dots span:nth-child(2) { background: #E5B84D; }
.code-dots span:nth-child(3) { background: #4DBE6B; }
.code-line { height: 8px; border-radius: 3px; width: 0; opacity: .9; animation: code-type .7s var(--ease-out) forwards; margin-bottom: 11px; }
.code-line:nth-child(1) { background: #61AFEF; animation-delay: .1s; }
.code-line:nth-child(2) { background: #C678DD; animation-delay: .45s; }
.code-line:nth-child(3) { background: #98C379; animation-delay: .8s; }
.code-line:nth-child(4) { background: #E5C07B; animation-delay: 1.15s; }
.code-line:nth-child(5) { background: #61AFEF; animation-delay: 1.5s; }
@keyframes code-type { to { width: var(--w); } }
.code-cursor { width: 14px !important; height: 14px; background: var(--gold); animation: cursor-blink 1s steps(1) infinite; margin-top: 4px; }
@keyframes cursor-blink { 50% { opacity: 0; } }

/* ---- Mobile Dev: phone mockup ---- */
.phone-shell { width: 130px; height: 234px; border-radius: 22px; background: var(--navy-mid); border: 3px solid var(--border-dark); padding: 10px 9px; position: relative; }
.phone-shell::before { content:""; position:absolute; top:6px; left:50%; transform:translateX(-50%); width:36px; height:5px; border-radius:4px; background: var(--border-dark); }
.phone-screen { position: relative; height: 100%; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.phone-card { border-radius: 7px; height: 34px; opacity: 0; transform: translateY(16px); animation: phone-in .6s var(--ease-out) forwards; }
.phone-card-1 { background: linear-gradient(120deg, var(--gold-deep), var(--gold)); animation-delay: .3s; }
.phone-card-2 { background: var(--navy-soft); animation-delay: .6s; }
@keyframes phone-in { to { opacity: 1; transform: translateY(0); } }
.phone-progress { height: 5px; border-radius: 3px; background: var(--navy-soft); overflow: hidden; margin-top: 4px; }
.phone-progress span { display: block; height: 100%; width: 0%; background: var(--gold); animation: phone-progress 2.4s var(--ease-out) infinite; }
@keyframes phone-progress { 0% { width: 0%; } 60% { width: 78%; } 100% { width: 78%; } }
.phone-dot-row { display: flex; justify-content: center; gap: 6px; margin-top: auto; padding-bottom: 4px; }
.phone-dot-row span { width: 5px; height: 5px; border-radius: 50%; background: var(--border-dark); animation: dot-cycle 1.8s ease-in-out infinite; }
.phone-dot-row span:nth-child(2) { animation-delay: .3s; }
.phone-dot-row span:nth-child(3) { animation-delay: .6s; }
@keyframes dot-cycle { 0%,100% { background: var(--border-dark); } 40% { background: var(--gold); } }

/* ---- Data Engineering: dashboard mock ---- */
.dash-window { width: 100%; max-width: 280px; }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-bottom: 22px; }
.dash-bars span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep)); height: var(--h); transform: scaleY(0); transform-origin: bottom; animation: dash-grow .8s var(--ease-out) forwards; }
.dash-bars span:nth-child(1) { animation-delay: .1s; } .dash-bars span:nth-child(2) { animation-delay: .22s; }
.dash-bars span:nth-child(3) { animation-delay: .34s; } .dash-bars span:nth-child(4) { animation-delay: .46s; }
.dash-bars span:nth-child(5) { animation-delay: .58s; } .dash-bars span:nth-child(6) { animation-delay: .7s; }
@keyframes dash-grow { to { transform: scaleY(1); } }
.dash-stats { display: flex; gap: 30px; border-top: 1px solid var(--border-dark); padding-top: 16px; }
.dash-stat { display: flex; flex-direction: column; }
.ds-num { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--white); }
.ds-label { font-size: 11.5px; color: var(--text-on-dark-muted); margin-top: 2px; }

/* ---- Cloud & DevOps: deploy pipeline ---- */
.pipeline-row { display: flex; align-items: center; gap: 0; margin-bottom: 22px; }
.pipe-node {
  flex: none; padding: 8px 13px; border-radius: 20px;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  color: var(--text-on-dark-muted); border: 1.5px solid var(--border-dark);
  background: var(--navy-mid);
  animation: pipe-light 3.6s ease-in-out infinite;
}
.pipe-node-gold { color: var(--navy); }
@keyframes pipe-light { 0%, 8% { border-color: var(--border-dark); color: var(--text-on-dark-muted); background: var(--navy-mid); } 16%, 84% { border-color: var(--gold); color: var(--gold); background: rgba(227,193,130,.1); } 92%,100% { border-color: var(--border-dark); color: var(--text-on-dark-muted); background: var(--navy-mid); } }
.pipe-line { flex: 1; height: 2px; margin: 0 4px; background: var(--border-dark); position: relative; overflow: hidden; }
.pipe-line::after { content:""; position:absolute; top:0; left:-40%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: pipe-travel 2.2s linear infinite; }
@keyframes pipe-travel { to { left: 100%; } }
.pipeline-terminal { background: #121316; border-radius: 8px; padding: 14px 16px; font-family: 'Courier New', monospace; font-size: 11.5px; display: flex; flex-direction: column; gap: 7px; }
.pipeline-terminal span { color: #7FD98A; opacity: 0; animation: term-line .5s var(--ease-out) forwards; }
.pipeline-terminal span:nth-child(1) { animation-delay: .3s; }
.pipeline-terminal span:nth-child(2) { animation-delay: 1.1s; }
.pipeline-terminal span:nth-child(3) { animation-delay: 1.9s; color: var(--gold-bright); }
@keyframes term-line { to { opacity: 1; } }

/* ---- Digital Marketing: growth chart ---- */
.sv-growth { flex-direction: column; gap: 16px; width: 100%; }
.growth-svg { width: 100%; max-width: 280px; height: 90px; }
.growth-line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw-line 2s var(--ease-out) .3s forwards; }
.growth-badge { text-align: center; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--gold-bright); }
.growth-badge span { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-on-dark-muted); margin-top: 4px; }

/* ---- How We Work strip (services page) ---- */
.hw-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.hw-step { text-align: center; }
.hw-badge {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy-mid);
  border: 1.5px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  box-shadow: 0 0 0 14px var(--navy);
}
.hw-badge svg { width: 26px; height: 26px; }
.hw-step h4 { color: var(--white); font-size: 15.5px; margin-bottom: 8px; }
.hw-step p { color: var(--text-on-dark-muted); font-size: 12.5px; line-height: 1.6; }
.hw-line { position: absolute; top: 32px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--border-dark) 0 8px, transparent 8px 14px); z-index: -1; }
@media (max-width: 900px) { .hw-grid { grid-template-columns: repeat(2,1fr); row-gap: 40px; } .hw-line { display: none; } }
@media (max-width: 560px) { .hw-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   SERVICE OVERVIEW CARD BUTTONS (services.html)
   ========================================================================== */
.sd-head .sd-btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   INDIVIDUAL SERVICE PAGE — hero with animated capability card
   ========================================================================== */
.service-hero { position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 50px) 0 60px;
  background: linear-gradient(160deg, var(--navy) 0%, #1e1f22 60%, var(--navy) 100%);
  overflow: hidden; }
.service-hero .hero-hook { margin-bottom: 26px; }
.service-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(227,193,130,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(227,193,130,.08) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(200deg, black 5%, transparent 60%);
  mask-image: linear-gradient(200deg, black 5%, transparent 60%);
}
.sh-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.sh-copy h1 { font-size: clamp(32px, 4.2vw, 50px); color: var(--white); max-width: 640px; margin-bottom: 18px; }
.sh-copy .hero-sub { color: var(--text-on-dark-muted); font-size: 16.5px; max-width: 560px; line-height: 1.7; margin-bottom: 30px; }
.sh-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.sh-card-wrap { position: relative; }
@media (max-width: 980px) { .sh-grid { grid-template-columns: 1fr; } .sh-card-wrap { max-width: 460px; margin: 0 auto; } }

/* ---- Web Development: browser/website build animation (distinct from mobile) ---- */
.sv-browser { width: 100%; display: flex; justify-content: center; }
.browser-window { width: 100%; max-width: 300px; background: #121316; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-dark); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #1a1b1e; border-bottom: 1px solid var(--border-dark); }
.browser-bar .code-dots { margin: 0; }
.browser-url { flex: 1; height: 18px; border-radius: 9px; background: #232427; display: flex; align-items: center; padding: 0 10px; font-size: 9px; color: var(--text-on-dark-muted); font-family: var(--font-display); overflow: hidden; white-space: nowrap; }
.browser-url::before { content: "🔒 havenetic.com/site"; opacity: .8; }
.browser-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bb-nav { display: flex; gap: 8px; margin-bottom: 4px; }
.bb-nav span { width: 22px; height: 6px; border-radius: 3px; background: var(--navy-soft); opacity: 0; animation: bb-in .5s var(--ease-out) forwards; }
.bb-nav span:nth-child(1){animation-delay:.1s} .bb-nav span:nth-child(2){animation-delay:.2s} .bb-nav span:nth-child(3){animation-delay:.3s} .bb-nav span:nth-child(4){animation-delay:.4s}
.bb-hero { height: 46px; border-radius: 6px; background: linear-gradient(120deg, var(--gold-deep), var(--gold)); transform: scaleX(0); transform-origin: left; animation: bb-grow .7s var(--ease-out) .5s forwards; }
.bb-row { display: flex; gap: 8px; }
.bb-block { flex: 1; height: 30px; border-radius: 6px; background: var(--navy-soft); opacity: 0; transform: translateY(10px); animation: bb-in .5s var(--ease-out) forwards; }
.bb-row .bb-block:nth-child(1){animation-delay:.9s} .bb-row .bb-block:nth-child(2){animation-delay:1.05s} .bb-row .bb-block:nth-child(3){animation-delay:1.2s}
.bb-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.bb-lines span { height: 5px; border-radius: 3px; background: var(--navy-soft); width: 0; animation: bb-line 1s var(--ease-out) forwards; }
.bb-lines span:nth-child(1){width:80%; animation-delay:1.4s} .bb-lines span:nth-child(2){width:55%; animation-delay:1.55s}
.browser-cursor-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(227,193,130,.18); align-self: flex-end; margin-top: -8px; animation: cursor-move 3.6s ease-in-out infinite; }
@keyframes bb-in { to { opacity: 1; transform: translateY(0); } }
@keyframes bb-grow { to { transform: scaleX(1); } }
@keyframes bb-line { to { width: var(--w, 60%); } }
@keyframes cursor-move { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-70px,-24px); } }

/* ---- Data Engineering: fuller animated dashboard (bars + trend + live status) ---- */
.dash-window.dash-window-lg { max-width: 320px; }
.dash-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash-live { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4CD97B; }
.dash-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4CD97B; box-shadow: 0 0 0 3px rgba(76,217,123,.22); animation: node-pulse 1.8s ease-in-out infinite; }
.dash-trend { width: 100%; height: 46px; margin-bottom: 14px; }
.dash-trend-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw-line 1.8s var(--ease-out) .2s forwards; }
.dash-trend-fill { opacity: 0; animation: bb-in .6s ease-out 1.4s forwards; }

/* ---- Digital Marketing: professional funnel + trend dashboard ---- */
.sv-marketing-pro { width: 100%; max-width: 300px; display: flex; flex-direction: column; gap: 16px; }
.mkt-top { display: flex; justify-content: space-between; align-items: flex-end; }
.mkt-kpi strong { display: block; font-family: var(--font-display); font-size: 22px; color: var(--gold-bright); }
.mkt-kpi span { font-size: 10.5px; color: var(--text-on-dark-muted); }
.mkt-chart { width: 100%; height: 70px; }
.mkt-funnel { display: flex; flex-direction: column; gap: 6px; }
.mkt-funnel-row { display: flex; align-items: center; gap: 10px; }
.mkt-funnel-label { font-size: 10px; color: var(--text-on-dark-muted); width: 56px; flex: none; }
.mkt-funnel-bar { flex: 1; height: 10px; border-radius: 4px; background: var(--navy-soft); overflow: hidden; }
.mkt-funnel-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); width: 0; animation: dash-grow-w .9s var(--ease-out) forwards; transform-origin: left; }
@keyframes dash-grow-w { to { width: var(--w); } }
.mkt-funnel-row:nth-child(1) .mkt-funnel-bar span { animation-delay: .2s; }
.mkt-funnel-row:nth-child(2) .mkt-funnel-bar span { animation-delay: .4s; }
.mkt-funnel-row:nth-child(3) .mkt-funnel-bar span { animation-delay: .6s; }

/* ==========================================================================
   SUB-SERVICES / CAPABILITIES GRID
   ========================================================================== */
.subservices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.subservice-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 28px; transition: transform .3s var(--ease-out), border-color .3s var(--ease); }
.subservice-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.subservice-icon { width: 46px; height: 46px; border-radius: 8px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.subservice-icon svg { width: 22px; height: 22px; }
.subservice-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.subservice-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 900px) { .subservices-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .subservices-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   TECH STACK — animated marquee of badges
   ========================================================================== */
.tech-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.tech-track { display: flex; gap: 18px; width: max-content; animation: tech-scroll 28s linear infinite; }
.tech-marquee:hover .tech-track { animation-play-state: paused; }
@keyframes tech-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tech-badge { flex: none; width: 148px; display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--navy-mid); border: 1px solid var(--border-dark); border-radius: 10px; transition: transform .3s var(--ease-out), border-color .3s var(--ease); }
.tech-badge:hover { transform: translateY(-4px); border-color: var(--gold); }
.tech-badge-mark { width: 36px; height: 36px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; background: #fff; padding: 7px; overflow: hidden; }
.tech-badge-mark svg { width: 100%; height: 100%; display: block; }
.tech-badge-mark.tbm-badge { background: none; padding: 0; border-radius: 8px; }
.tech-badge-mark.tbm-outline { background: var(--navy); border: 1.5px solid var(--border-dark); }
.tech-badge-mark.tbm-outline .tbm-initials { font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--gold-bright); }
.tech-badge-name { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; color: var(--text-on-dark); line-height: 1.3; }

/* ==========================================================================
   PROCESS — booking to delivery, circular step grid (compact, not a long
   vertical scroll). Two rows of four connected steps with a pop-in reveal.
   ========================================================================== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 20px; position: relative; }
.process-grid::before, .process-grid::after {
  content: ""; position: absolute; left: 10%; right: 10%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-dark) 0 8px, transparent 8px 14px);
  z-index: -1;
}
.process-grid::before { top: 34px; }
.process-grid::after { top: calc(50% + 34px); }
.process-step { text-align: center; opacity: 0; transform: scale(.82); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.process-grid.is-visible .process-step { opacity: 1; transform: scale(1); }
.process-grid.is-visible .process-step:nth-child(1){transition-delay:.03s}
.process-grid.is-visible .process-step:nth-child(2){transition-delay:.1s}
.process-grid.is-visible .process-step:nth-child(3){transition-delay:.17s}
.process-grid.is-visible .process-step:nth-child(4){transition-delay:.24s}
.process-grid.is-visible .process-step:nth-child(5){transition-delay:.31s}
.process-grid.is-visible .process-step:nth-child(6){transition-delay:.38s}
.process-grid.is-visible .process-step:nth-child(7){transition-delay:.45s}
.process-grid.is-visible .process-step:nth-child(8){transition-delay:.52s}
.process-num {
  width: 68px; height: 68px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy-mid);
  border: 1.5px solid var(--border-dark);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  box-shadow: 0 0 0 14px var(--bg-soft);
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.process-step.ps-final .process-num { background: var(--gold); color: var(--navy); border-color: var(--gold); box-shadow: 0 0 0 14px var(--bg-soft); }
.process-step h4 { font-size: 15px; color: var(--white); margin-bottom: 8px; }
.process-step p { font-size: 12.5px; color: var(--text-on-dark-muted); line-height: 1.6; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2,1fr); row-gap: 44px; } .process-grid::before, .process-grid::after { display: none; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   WHY HAVENETIC
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { padding: 30px 26px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border); transition: transform .3s var(--ease-out), border-color .3s var(--ease); }
.why-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.why-icon { width: 44px; height: 44px; border-radius: 8px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.why-icon svg { width: 20px; height: 20px; }
.why-card h4 { font-size: 15.5px; margin-bottom: 8px; }
.why-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 980px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border-dark); border-radius: 10px; background: var(--navy-mid); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; text-align: left; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--white); cursor: pointer; }
.faq-q .faq-plus { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-dark); position: relative; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.faq-q .faq-plus::before, .faq-q .faq-plus::after { content: ""; position: absolute; background: var(--gold-bright); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-q .faq-plus::before { width: 9px; height: 1.5px; }
.faq-q .faq-plus::after { width: 1.5px; height: 9px; transition: opacity .25s var(--ease); }
.faq-item.is-open .faq-plus { transform: rotate(180deg); border-color: var(--gold); }
.faq-item.is-open .faq-plus::after { opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out); }
.faq-a-inner { padding: 0 24px 22px; font-size: 14px; color: var(--text-on-dark-muted); line-height: 1.7; max-width: 680px; }
.faq-item.is-open .faq-a { max-height: 320px; }

/* NOTE: this site is a dark theme throughout — .section-soft / .section-navy are
   both near-black variants, so FAQ styling stays the single dark variant everywhere. */

/* ==========================================================================
   CONSULTATION BOOKING BAR (compact, sits above footer)
   ========================================================================== */
.consult-bar { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 34px 44px; border-radius: 14px; background: linear-gradient(120deg, var(--navy-mid), var(--navy));
  border: 1px solid var(--border-dark); }
.consult-bar-text h3 { font-size: 21px; color: var(--white); margin-bottom: 6px; }
.consult-bar-text p { font-size: 13.5px; color: var(--text-on-dark-muted); }
.consult-bar-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 700px) { .consult-bar { padding: 28px; } }

/* "See Capabilities" link on the services-page animated capability cards */
.sv-caps-link {
  position: absolute; z-index: 4; bottom: 14px; right: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .02em; color: var(--gold-bright);
  padding: 7px 12px; border-radius: 16px;
  background: rgba(227,193,130,.1); border: 1px solid rgba(227,193,130,.28);
  transition: background .25s var(--ease), transform .25s var(--ease-out);
}
.sv-caps-link svg { width: 13px; height: 13px; transition: transform .25s var(--ease-out); }
.sv-caps-link:hover { background: rgba(227,193,130,.2); transform: translateY(-2px); }
.sv-caps-link:hover svg { transform: translateX(2px); }
