/* Services page: a normal scrolling page in the homepage theme. Layered on
   top of styles.css, which supplies tokens, header, buttons, glass, footer. */

.page-services {
  background: radial-gradient(900px 600px at 85% -10%, rgba(13, 130, 116, 0.35), transparent 70%),
    radial-gradient(800px 600px at -10% 40%, rgba(69, 216, 195, 0.06), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 60%);
  background-attachment: fixed;
}

.page-services .hdr {
  position: sticky;
  background: rgba(3, 17, 18, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.page-services .nav a[aria-current='page'] {
  color: var(--ink);
  background: rgba(69, 216, 195, 0.14);
}

/* Fixed particle canvas: the mark in the hero morphing into the cube. It
   sits behind the content; the header and chip bar stay above it. */
.resilience {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.page-services main,
.page-services .site-foot {
  position: relative;
  z-index: 1;
}

/* ---------- hero ---------- */

.svc-hero-mark {
  width: min(78vw, 340px);
  aspect-ratio: 1;
  margin: 28px auto 0;
}

.svc-hero {
  padding: 56px 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.svc-hero h1 {
  font-size: clamp(38px, 9vw, 72px);
  line-height: 1.04;
}
.svc-hero .lede {
  color: var(--ink-2);
  font-size: 18px;
  margin-top: 18px;
  max-width: 560px;
}

/* Sticky, horizontally scrollable on mobile; a wrapped row on desktop. */
.chips-nav {
  position: sticky;
  top: var(--hdr-h, 74px);
  z-index: 10;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 4px 0 0;
  padding: 10px 20px;
  background: linear-gradient(180deg, rgba(3, 17, 18, 0.9), rgba(3, 17, 18, 0.6));
}
.chips-nav::-webkit-scrollbar {
  display: none;
}
.chips-nav a {
  flex: none;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.chips-nav a:hover {
  color: var(--ink);
  border-color: rgba(69, 216, 195, 0.4);
}
.chips-nav a.on {
  color: #032220;
  background: var(--mint);
  border-color: var(--mint);
}

/* ---------- body: sticky mark + service list ---------- */

.svc-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.svc-aside {
  display: none;
}

.svc {
  padding: 56px 0 24px;
  scroll-margin-top: 140px;
}
.svc + .svc {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.svc-head .idx {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--mint);
}
.svc-head h2 {
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.12;
  margin-top: 10px;
}
.svc-head p {
  color: var(--ink-2);
  font-size: 17px;
  margin-top: 14px;
  max-width: 640px;
}

.offers {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.offer {
  border-radius: 18px;
  padding: 22px 22px 20px;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.offer:hover {
  border-color: rgba(69, 216, 195, 0.35);
}
.offer h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.offer p,
.offer li {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.offer ul:not(.tags) {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.offer ul:not(.tags) li {
  position: relative;
  padding-inline-start: 18px;
}
.offer ul:not(.tags) li::before {
  content: '';
  position: absolute;
  inset-inline-start: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.7;
}
.offer .tags {
  margin-top: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.tags li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  background: rgba(69, 216, 195, 0.05);
}

.refs {
  margin-top: 24px;
}
.refs > p {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 18px;
}
.refs > p:first-child {
  margin-top: 0;
}

/* Reveal on scroll (class added by services.js). */
.js-reveal .offer,
.js-reveal .svc-head {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.3s;
}
.js-reveal .in .offer,
.js-reveal .in .svc-head {
  opacity: 1;
  transform: none;
}
.js-reveal .in .offer:nth-child(2) { transition-delay: 0.05s; }
.js-reveal .in .offer:nth-child(3) { transition-delay: 0.1s; }
.js-reveal .in .offer:nth-child(4) { transition-delay: 0.15s; }
.js-reveal .in .offer:nth-child(5) { transition-delay: 0.2s; }
.js-reveal .in .offer:nth-child(n + 6) { transition-delay: 0.25s; }

/* Overview: link from each service to its own page. */
.svc-head h2 a {
  color: inherit;
  text-decoration: none;
}
.svc-head h2 a:hover {
  color: var(--mint);
}
.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--mint);
  text-decoration: none;
}
.svc-more svg {
  transition: transform 0.25s var(--ease-out);
}
.svc-more:hover svg {
  transform: translateX(4px);
}
[dir='rtl'] .svc-more:hover svg {
  transform: scaleX(-1) translateX(4px);
}

/* ---------- single service page ---------- */

.crumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 0;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
.crumbs li + li::before {
  content: '/';
  margin-inline-end: 6px;
  opacity: 0.6;
}
.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--mint);
}
.crumbs [aria-current] {
  color: var(--ink);
}

.page-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 24px;
}
.page-hero h1 {
  font-size: clamp(34px, 8vw, 60px);
  line-height: 1.06;
}
.page-hero .lede {
  color: var(--ink-2);
  font-size: 18px;
  margin-top: 18px;
  max-width: 580px;
}
.page-hero .cube-slot {
  width: min(80vw, 340px);
  aspect-ratio: 1;
  margin: 24px auto 0;
}

.sec {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px 8px;
}
.sec > h2 {
  font-size: clamp(26px, 6vw, 36px);
  line-height: 1.12;
}
.sec .offers {
  margin-top: 24px;
}

.why-grid,
.related-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.why {
  border-radius: 18px;
  padding: 22px;
}
.why h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.why p {
  color: var(--ink-2);
  font-size: 14.5px;
}

.faq {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  max-width: 860px;
}
.faq details {
  border-radius: 16px;
  padding: 0 22px;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--mint);
  font-size: 18px;
  font-weight: 500;
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--ink-2);
  padding-bottom: 20px;
  font-size: 15px;
}

.related {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 18px;
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.related:hover {
  border-color: rgba(69, 216, 195, 0.45);
  transform: translateY(-3px);
}
.related .idx {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--mint);
}
.related b {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
}
.related .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

.js-reveal .sec .why,
.js-reveal .sec .vm,
.js-reveal .sec .related {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.3s;
}
.js-reveal .sec.in .why,
.js-reveal .sec.in .vm,
.js-reveal .sec.in .related {
  opacity: 1;
  transform: none;
}

/* "Is this you?" checklist (CISO as a Service). */
.signals {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.signals li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 15px;
  color: var(--ink);
}
.signals svg {
  flex: none;
  margin-top: 2px;
  padding: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(69, 216, 195, 0.15);
  color: var(--mint);
}
.signals-note {
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--mint);
}

.related-alt {
  border-style: dashed;
}

/* ---------- about page ---------- */

.sec-lede {
  color: var(--ink-2);
  font-size: 17px;
  margin-top: 12px;
  max-width: 640px;
}
.vm-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.vm {
  border-radius: 20px;
  padding: 28px;
}
.vm svg {
  color: var(--mint);
}
.vm h3 {
  font-size: 22px;
  margin: 16px 0 10px;
}
.vm p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}
.why .idx {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--mint);
}
.about-certs {
  margin-top: 28px;
}
.hq {
  display: grid;
  gap: 24px;
  border-radius: 24px;
  padding: 32px 28px;
}
.hq h2 {
  font-size: clamp(26px, 6vw, 34px);
}
.hq p:not(.eyebrow) {
  color: var(--ink-2);
  margin-top: 10px;
}
.hq .actions {
  margin-top: 0;
}

.foot-h {
  font-size: 15px;
  color: var(--mint);
  margin-bottom: 14px;
}
.foot-h a {
  color: inherit;
}

/* ---------- closing CTA + footer ---------- */

.svc-cta {
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 72px 20px 96px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.svc-cta h2 {
  font-size: clamp(30px, 7vw, 48px);
}
.svc-cta p {
  color: var(--ink-2);
  margin-top: 14px;
}
.svc-cta .actions {
  justify-content: center;
}

/* The homepage footer slides in from the story; here it is just static. */
.foot.site-foot {
  position: relative;
  opacity: 1;
  transform: none;
  padding: 0 20px 40px;
}

/* ---------- desktop ---------- */

@media (min-width: 900px) {
  .page-services .hdr {
    position: sticky;
    padding: 14px 40px;
  }

  .svc-hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    align-items: center;
    gap: 64px;
    padding: 56px 40px 24px;
  }
  .svc-hero-mark {
    width: 100%;
    margin: 0;
  }

  .chips-nav {
    position: static;
    flex-wrap: wrap;
    overflow: visible;
    max-width: 1200px;
    margin: -8px auto 56px;
    padding: 0 40px;
    background: none;
  }

  /* Content on the left, the sticky cube on the right — directly below the
     hero mark, so the dots fall straight down into it. */
  .svc-body {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    padding: 0 40px;
  }
  .svc-list {
    grid-column: 1;
    grid-row: 1;
  }
  .svc-aside {
    grid-column: 2;
    grid-row: 1;
    display: block;
    position: sticky;
    top: 100px;
    align-self: start;
    height: calc(100vh - 120px);
    min-height: 560px;
  }
  .svc-mark {
    position: relative;
  }
  /* Empty slot the particle cube is drawn over (js/resilience.js). */
  .cube-slot {
    width: 100%;
    aspect-ratio: 1;
  }
  .svc-now {
    margin-top: 4px;
    text-align: center;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 600;
  }
  .svc-now .idx {
    color: var(--mint);
    margin-inline-end: 6px;
  }
  .svc-index {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    gap: 2px;
  }
  .svc-index a {
    display: flex;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink-3);
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
  }
  .svc-index a span {
    font-family: var(--font-head);
    color: inherit;
    opacity: 0.8;
  }
  .svc-index a:hover {
    color: var(--ink);
  }
  .svc-index a.on {
    color: var(--ink);
    background: rgba(69, 216, 195, 0.1);
  }
  .svc-index a.on span {
    color: var(--mint);
    opacity: 1;
  }

  .svc {
    padding: 72px 0 40px;
    scroll-margin-top: 90px;
  }
  .svc:first-child {
    padding-top: 24px;
  }
  .offers {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .offer-wide {
    grid-column: 1 / -1;
  }

  .svc-cta {
    margin-top: 96px;
    padding: 96px 40px 120px;
  }

  .crumbs {
    padding: 28px 40px 0;
  }
  .page-hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    align-items: center;
    gap: 64px;
    padding: 32px 40px 24px;
  }
  .page-hero .cube-slot {
    width: 100%;
    margin: 0;
  }
  .sec {
    padding: 80px 40px 8px;
  }
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .related-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
  .signals {
    grid-template-columns: repeat(2, 1fr);
  }
  .vm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .vm {
    padding: 36px;
  }
  .offer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* styles.css positions .certs on the homepage stage; here it's in flow. */
  .about-certs {
    position: static;
    width: auto;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }
  .hq {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 40px 44px;
  }
  .foot.site-foot .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
  }

  .foot.site-foot {
    padding: 0 120px 48px;
  }
  .foot.site-foot .copy-note {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .offer,
  .js-reveal .svc-head {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js-reveal .sec .why,
  .js-reveal .sec .vm,
  .js-reveal .sec .related {
    opacity: 1;
    transform: none;
  }
  .related,
  .faq summary::after,
  .svc-more svg,
  .chips-nav a,
  .svc-index a,
  .offer,
  .svc-index a {
    transition: none;
  }
}

/* ---------- long-form guide sections (scripts/seo-content*.mjs) ---------- */

.guide-p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
  margin-top: 14px;
  max-width: 760px;
}
.guide-dl {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}
.guide-dl > div {
  border-radius: 16px;
  padding: 18px 20px;
}
.guide-dl dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.guide-dl dd {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.guide-steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: none;
}
.guide-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.guide-steps .idx {
  flex: none;
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--mint);
  padding-top: 3px;
  min-width: 22px;
}
.guide-steps b {
  font-size: 16px;
}
.guide-steps p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  margin-top: 4px;
}
.guide-table {
  margin-top: 22px;
  border-radius: 16px;
  overflow-x: auto;
}
.guide-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}
.guide-table th,
.guide-table td {
  text-align: start;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
  line-height: 1.5;
}
.guide-table thead th {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--mint);
}
.guide-table tbody th {
  font-weight: 600;
  color: var(--ink);
}
.guide-table td {
  color: var(--ink-2);
}
.guide-table tbody tr:last-child > * {
  border-bottom: 0;
}
.guide-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.guide-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}
.guide-list svg {
  flex: none;
  color: var(--mint);
  margin-top: 3px;
}
@media (min-width: 900px) {
  .guide-dl {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 28px;
  }
}

/* contact: incident box */
.incident {
  border-radius: 20px;
  padding: 24px;
  margin-top: 8px;
  border-inline-start: 3px solid #ff9b7a;
}
.incident h2 {
  font-size: clamp(20px, 4.5vw, 24px);
}
.incident p {
  color: var(--ink-2);
  margin-top: 10px;
  line-height: 1.6;
  max-width: 820px;
}
.incident-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.incident-actions a:not(.btn) {
  color: var(--mint);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
[dir='rtl'] .incident-actions svg {
  transform: scaleX(-1);
}
