/* ==========================================================================
   APPNWEB - Service pages (shared by every parent and child service page, and the case-study pages)
   Extends the New Home design system (front/css/new-home.css) and is loaded
   AFTER it. It declares no colours, fonts or type scale of its own: every value
   comes from the --nh-* tokens that .nhome defines, so a brand change in
   new-home.css reaches these pages too. The pieces below (timeline, stage
   cards, industry rows, tech cards, contact form) only add layout and motion.
   Everything is scoped under .sd-page, set on the same element as .nhome.
   ========================================================================== */

html:has(.sd-page) { scroll-behavior: smooth; }
.sd-page [id] { scroll-margin-top: 96px; }

/* new-home.css gives every .nh-sec `overflow: hidden`, which turns each section
   into its own scroll container and stops `position: sticky` from ever sticking
   (the sticky heading columns below would just sit 112px low). `overflow: clip`
   clips the oversized ghost words exactly the same way without creating a scroll
   container. Browsers without `clip` keep the old behaviour. */
@supports (overflow: clip) {
    .sd-page .nh-sec { overflow: clip; }
}

/* ------------------------------------------------------------ shared bits -- */
/* The brand is written "SaaS", never "SAAS". Headings and eyebrow labels are all-caps, so "SaaS" is wrapped in this span
   to keep its own casing there (the span is only needed inside text that is upper-cased by CSS). */
.sd-saas { text-transform: none; }
.sd-h2 { margin-top: 20px; }
/* Split layouts give the heading a narrower column, so it steps down one size. */
.sd-h2--md { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }

.sd-intro { display: grid; gap: 14px; margin-top: 28px; max-width: 46rem; }
.sd-head { max-width: 62rem; }
/* Short single-line headings (e.g. Services) can use the full container width; on narrow screens they still wrap. */
.sd-head--wide { max-width: none; }

.sd-lead {
    margin-bottom: 20px;
    font-family: var(--nh-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nh-muted-fg);
}
.nh-sec--ink .sd-lead { color: rgba(246, 245, 242, 0.55); }

/* Position + size for the decorative ghost word behind a section heading
   (the home page does this per section; these are reusable equivalents). */
.sd-ghost--l { left: -24px; top: 24px; font-size: 22vw; }
.sd-ghost--r { right: -16px; top: 32px; font-size: 22vw; }

.sd-split { display: grid; gap: 48px; }
@media (min-width: 1024px) {
    .sd-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
    .sd-split__sticky { position: sticky; top: 112px; }
}

/* Links in body text: written in the admin as [[link text|page-slug]] (App\Support\ServiceSectionView::rich). */
.sd-page .ss-link {
    color: var(--nh-primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.25s ease, text-decoration-color 0.25s ease;
}
.sd-page .ss-link:hover { color: var(--nh-foreground); }
.nh-sec--ink .ss-link:hover { color: #fff; }

/* Icons uploaded as PNG / JPG instead of SVG (SVG icons are printed inline and sized by each component's
   `svg` rule): same box as the SVG they stand in for. */
.sd-page .sd-icon-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sd-page .sd-who__icon .sd-icon-img { width: 38px; height: 38px; }
.sd-page .sd-step__icon .sd-icon-img { width: 22px; height: 22px; }
.sd-page .sd-orbit__node .sd-icon-img { width: 44%; height: 44%; }
.sd-page .sd-check__icon .sd-icon-img { width: 12px; height: 12px; }
@media (min-width: 640px) { .sd-page .sd-step__icon .sd-icon-img { width: 24px; height: 24px; } }

/* A second, outlined button next to the site's red .client-btn. Same size,
   radius, type and arrow as the primary so the pair reads as one family. */
.sd-btn-ghost {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: 1px solid var(--nh-foreground);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.75px;
    color: var(--nh-foreground);
    overflow: hidden;
    transition: color 0.35s var(--nh-ease), border-color 0.35s var(--nh-ease);
}
.sd-btn-ghost::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--nh-foreground);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--nh-ease);
}
.sd-btn-ghost svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.sd-btn-ghost:hover { color: var(--nh-primary-fg); }
.sd-btn-ghost:hover::before { transform: scaleX(1); }
.sd-btn-ghost:hover svg { transform: translateX(4px); }
.sd-btn-ghost--light { border-color: rgba(255, 255, 255, 0.4); color: var(--nh-ink-fg); }
.sd-btn-ghost--light::before { background: var(--nh-ink-fg); }
.sd-btn-ghost--light:hover { color: var(--nh-ink); border-color: var(--nh-ink-fg); }

.sd-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.sd-actions .nh-cta-btn { margin-top: 0; }

/* Reveal wrappers that sit inside a grid must not collapse the card inside */
.sd-fill { height: 100%; }
.sd-fill > * { height: 100%; }

/* ================================================================= HERO == */
/* Background photo: fills the hero and drifts very slowly (the motion the old
   background video gave). The scrim is the site's own off-white, so the dark
   text keeps the contrast it has everywhere else: an even wash on small
   screens where the copy spans the full width, and from 1024px a gradient that
   stays almost solid behind the text column and opens up over the dashboard. */
.sd-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% center;
    pointer-events: none;
    transform-origin: 60% 50%;
    animation: sd-hero-drift 26s ease-in-out infinite alternate;
}
@keyframes sd-hero-drift {
    from { transform: scale(1); }
    to   { transform: scale(1.07); }
}
.sd-hero .nh-hero__scrim { background: rgba(251, 250, 247, 0.88); }
@media (min-width: 1024px) {
    .sd-hero .nh-hero__scrim {
        background: linear-gradient(100deg,
            rgba(251, 250, 247, 0.97) 0%,
            rgba(251, 250, 247, 0.94) 42%,
            rgba(251, 250, 247, 0.58) 66%,
            rgba(251, 250, 247, 0.3) 100%);
    }
}
.sd-hero .nh-wrap { padding-block: 72px; }
.sd-hero__grid { display: grid; gap: 56px; align-items: center; }
.sd-hero .nh-hero__title {
    margin-top: 24px;
    font-size: clamp(2.1rem, 10.6vw, 2.9rem);
}
.sd-hero .nh-hero__copy + .nh-hero__copy { margin-top: 18px; }
.sd-hero .sd-actions .nh-cta-btn { margin-top: 0; }

/* Breadcrumb above the hero columns: "Home > SaaS Development". Muted link, dark
   current page, chevron drawn with borders so it needs no icon file. */
.sd-crumbs { margin-bottom: 28px; }
.sd-crumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
}
.sd-crumbs__item { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--nh-foreground); }
.sd-crumbs__item + .sd-crumbs__item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-top: 1.5px solid var(--nh-muted-fg);
    border-right: 1.5px solid var(--nh-muted-fg);
    transform: rotate(45deg);
}
.sd-crumbs__link { color: var(--nh-muted-fg); transition: color 0.25s ease; }
.sd-crumbs__link:hover { color: var(--nh-primary); }

/* Hero form column (the card itself is .sd-form-card.sd-hero-card, styled with the form below) */
.sd-hero__form { position: relative; width: 100%; max-width: 580px; margin-inline: auto; }

/* "Build a SaaS Product..." strip */
.sd-build {
    margin-top: 72px;
    padding-top: 32px;
    border-top: 1px solid var(--nh-border);
}
.sd-build__title {
    font-family: var(--nh-display);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.sd-build__list { display: grid; gap: 12px; margin-top: 24px; grid-template-columns: 1fr; }
.sd-build__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--nh-border);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform 0.45s var(--nh-ease), border-color 0.45s var(--nh-ease),
                box-shadow 0.45s var(--nh-ease), background-color 0.45s var(--nh-ease);
}
.sd-build__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--nh-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.45s var(--nh-ease);
}
.sd-build__item:hover {
    transform: translateY(-4px);
    border-color: var(--nh-primary);
    background: #fff;
    box-shadow: 0 18px 40px -24px rgba(229, 72, 30, 0.5);
}
.sd-build__item:hover::before { transform: scaleY(1); }
.sd-build__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border: 1px solid var(--nh-border);
    color: var(--nh-primary);
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.sd-build__icon svg { width: 14px; height: 14px; transition: transform 0.4s var(--nh-ease); }
.sd-build__item:hover .sd-build__icon {
    background: var(--nh-primary);
    border-color: var(--nh-primary);
    color: var(--nh-primary-fg);
}
.sd-build__item:hover .sd-build__icon svg { transform: translateX(2px); }

/* ============================================================ TRUST BAR == */
.sd-trust { border-bottom: 1px solid var(--nh-border); }
.sd-trust .nh-wrap { padding-block: 0; }
.sd-trust .nh-stats { margin-top: 0; border-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* The home page draws its dividers by letting the grid's grey background show
   through a 1px gap. At fractional pixel widths (browser zoom, Windows display
   scaling) that grey can also peek out along the outer edge as a stray line, so
   here the dividers are borders on the tiles themselves - inner edges only. */
.sd-trust .nh-stats { gap: 0; background: transparent; }
.sd-trust .nh-stat:nth-child(even) { border-left: 1px solid var(--nh-border); }
.sd-trust .nh-stat:nth-child(n+3) { border-top: 1px solid var(--nh-border); }
.sd-trust .nh-stat__inner { padding: 36px 4px; }
/* Every figure sits in a box as tall as the home page's counter (same clamp as
   .nh-stat__num), so the "UK office" tile - which uses a smaller size so the
   words fit - still lines up with the numbers beside it. */
.sd-trust { --sd-num-h: 36px; }
.sd-trust .nh-stat__num { display: flex; align-items: center; height: var(--sd-num-h); line-height: 1; }
.sd-trust .nh-stat__num--text { font-size: clamp(22px, 6.2vw, 30px); }
.sd-trust .nh-stat__rule { margin-top: 14px; }
@media (min-width: 768px) {
    .sd-trust { --sd-num-h: clamp(40px, 7vw, 60px); }
    .sd-trust .nh-stats { margin-top: 0; }
    .sd-trust .nh-stat__inner { padding: 40px 24px; }
    .sd-trust .nh-stat__num--text { font-size: 40px; }
}
@media (min-width: 1024px) {
    .sd-trust { --sd-num-h: clamp(36px, 3.5vw, 56px); }
    .sd-trust .nh-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sd-trust .nh-stat:nth-child(n+3) { border-top: 0; }
    .sd-trust .nh-stat + .nh-stat { border-left: 1px solid var(--nh-border); }
    .sd-trust .nh-stat__num--text { font-size: clamp(26px, 2.7vw, 40px); }
}

/* ============================================================= SERVICES == */
.sd-services .nh-panel__text { max-width: 30rem; margin-top: 14px; }
/* The service photos are bright, so the dark overlay behind each panel's text is
   deepened (home page uses 0.7 / 0.2): near-solid ink under the title and copy,
   easing off toward the top so the picture still reads. */
.sd-services .nh-panel__scrim {
    background: linear-gradient(to top,
        var(--nh-ink) 0%,
        rgba(11, 9, 7, 0.9) 38%,
        rgba(11, 9, 7, 0.5) 68%,
        rgba(11, 9, 7, 0.25) 100%);
}
.sd-services .nh-panels { margin-top: 72px; }
.sd-services .nh-acc { margin-top: 56px; }
@media (min-width: 768px) { .sd-services .nh-acc { margin-top: 88px; } }
/* closes out each open row (the home page does this on its Explore link; here
   the text closes the row only when there is no Explore link after it) */
.sd-services .nh-acc__text:last-child { margin-bottom: 28px; }

/* Clickable service panels. The Explore link's ::after is stretched over the whole
   panel, so the entire box is the link - but only once the panel is open: a closed
   panel's body has pointer-events: none, so the first hover/tap just expands it and
   the next click follows the link. (Same behaviour on touch laptops.) */
.sd-services .nh-panel__body .nh-more::after {
    content: "";
    position: absolute;
    inset: 0;
}
.sd-services .nh-panel:has(.nh-more:focus-visible) { box-shadow: inset 0 0 0 2px var(--nh-primary); }

/* Services is a dark section (the page alternates light and dark): the desktop panels get a hairline edge
   against the ink, and the mobile accordion gets light-on-dark colours. */
.sd-services.nh-sec--ink .nh-panel { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.sd-services.nh-sec--ink .nh-acc,
.sd-services.nh-sec--ink .nh-acc__item { border-color: rgba(255, 255, 255, 0.15); }
.sd-services.nh-sec--ink .nh-acc__num,
.sd-services.nh-sec--ink .nh-acc__icon { color: rgba(246, 245, 242, 0.55); }
.sd-services.nh-sec--ink .nh-acc__item.is-open .nh-acc__num,
.sd-services.nh-sec--ink .nh-acc__item.is-open .nh-acc__icon { color: var(--nh-primary); }
.sd-services.nh-sec--ink .nh-acc__text { color: rgba(246, 245, 242, 0.72); }

/* ================================================================ CARDS ==
   Used by "Our approach" and "A dedicated team". The hover wipes an accent bar
   across the top edge, lifts the card and follows the pointer with a soft glow. */
.sd-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sd-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sd-card {
    position: relative;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    overflow: hidden;
    padding: 28px 26px 30px;
    background: #fff;
    color: var(--nh-foreground); /* cards stay dark-on-white even inside a dark section */
    border: 1px solid var(--nh-border);
    transition: transform 0.5s var(--nh-ease), box-shadow 0.5s var(--nh-ease), border-color 0.4s ease;
}
.sd-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 0;
    z-index: 2;
    background: var(--nh-primary);
    transition: width 0.6s var(--nh-ease);
}
.sd-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(229, 72, 30, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.sd-card:hover {
    transform: translateY(-6px);
    border-color: rgba(229, 72, 30, 0.45);
    box-shadow: 0 28px 50px -30px rgba(16, 12, 10, 0.35);
}
.sd-card:hover::before { width: 100%; }
.sd-card:hover::after { opacity: 1; }

.sd-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sd-card__num {
    display: block;
    font-family: var(--nh-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--nh-muted-fg);
    transition: color 0.3s ease;
}
.sd-card:hover .sd-card__num { color: var(--nh-primary); }
.sd-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--nh-border);
    color: var(--nh-primary);
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.5s var(--nh-ease);
}
.sd-card__icon svg { width: 22px; height: 22px; }
.sd-card:hover .sd-card__icon {
    background: var(--nh-primary);
    border-color: var(--nh-primary);
    color: var(--nh-primary-fg);
    transform: rotate(-6deg);
}
.sd-card__title {
    display: block;
    margin-top: 18px;
    font-family: var(--nh-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-transform: none;
}
.sd-card__text { flex: 1; margin-top: 12px; font-size: 14px; line-height: 1.7; color: #000; }
.sd-card__stack {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--nh-border);
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    transition: border-color 0.4s ease;
}
.sd-card:hover .sd-card__stack { border-color: var(--nh-primary); }
.sd-card__label { font-weight: 700; color: var(--nh-primary); }

/* Technology logos in the tech-stack cards: one small chip per logo (name on hover via the title attribute) */
.sd-tech-icons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.sd-tech-icons__item {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    background: var(--nh-background);
    border: 1px solid var(--nh-border);
    border-radius: 8px;
    transition: transform 0.35s var(--nh-ease), border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.35s var(--nh-ease);
}
.sd-tech-icons__item img { display: block; width: 26px; height: 26px; object-fit: contain; }
.sd-tech-icons__item:hover {
    transform: translateY(-3px);
    background: #fff;
    border-color: var(--nh-primary);
    box-shadow: 0 12px 18px -12px rgba(229, 72, 30, 0.55);
}

/* 12-column bento: first row of three (or four) wide cards, remainder below */
.sd-bento { display: grid; gap: 16px; margin-top: 64px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sd-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
    .sd-bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
    .sd-bento--3-4 > :nth-child(-n+3) { grid-column: span 4; }
    .sd-bento--3-4 > :nth-child(n+4) { grid-column: span 3; }
    .sd-bento--4-3 > :nth-child(-n+4) { grid-column: span 3; }
    .sd-bento--4-3 > :nth-child(n+5) { grid-column: span 4; }
}

/* ================================================================ STRIP == */
/* Compact call-to-action band. The flex layout (column on phones, row from 768px)
   comes from the home page's .nh-cta in new-home.css; this only sets the sand
   look, a tighter size for a strip, and centres the button against the copy. */
.sd-strip { border-block: 1px solid var(--nh-border); }
.sd-strip .nh-wrap { padding-block: 48px; gap: 28px; }
.sd-strip .nh-cta__title { margin-top: 0; max-width: 46rem; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.sd-strip__copy { margin-top: 16px; max-width: 46rem; }
@media (min-width: 768px) {
    .sd-strip .nh-wrap { align-items: center; gap: 56px; }
    .sd-strip .nh-cta-btn { flex: none; }
}

/* Boxed strip (.sd-strip--box, used on the SaaS Development and SaaS Security pages only).
   Instead of a full-width band that touches the sections above and below, the strip is a
   sand box floating on the page background. The section itself is plain page background
   with space above and below, so the box never touches its neighbours. The box is the
   .nh-wrap (copy left, button right, as before), kept 20px / 40px in from the screen edge
   and capped at 1320px, so its edges line up with the content of the other sections. */
.sd-strip.sd-strip--box {
    background: var(--nh-background);
    border-block: 0;
    padding-block: 40px;
}
.sd-strip.sd-strip--box .nh-wrap {
    width: calc(100% - 40px);
    max-width: 1320px;
    padding: 32px 24px;
    gap: 24px;
    background: var(--nh-sand);
    border: 1px solid var(--nh-border);
    border-radius: 6px;
}
@media (min-width: 768px) {
    .sd-strip.sd-strip--box { padding-block: 56px; }
    .sd-strip.sd-strip--box .nh-wrap { width: calc(100% - 80px); padding: 48px 56px; }
}

/* ============================================================== PROCESS == */
.sd-process .nh-ghost { right: -16px; top: 32px; font-size: 22vw; }
.sd-process__grid { display: grid; gap: 56px; }
.sd-process__counter { display: none; }
@media (min-width: 1024px) {
    .sd-process__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 96px; align-items: start; }
    .sd-process__sticky { position: sticky; top: 112px; }
    .sd-process__counter {
        display: flex;
        align-items: baseline;
        gap: 12px;
        margin-top: 40px;
        font-family: var(--nh-display);
        font-weight: 800;
        letter-spacing: -0.04em;
        line-height: 0.9;
        font-variant-numeric: tabular-nums;
    }
    .sd-process__now { font-size: clamp(64px, 7vw, 112px); color: var(--nh-primary); }
    .sd-process__now.is-swapping { animation: nh-fade-in 0.45s var(--nh-ease); }
    .sd-process__total { font-size: 28px; color: rgba(246, 245, 242, 0.35); }
}

.sd-steps { position: relative; margin: 0; padding: 0; list-style: none; }
/* Each <li> is its own stacking context (the reveal adds will-change), so the
   rail sits at z-index 0 and the steps at 1 - otherwise the fill line paints
   over the number markers. */
.sd-steps::before,
.sd-steps::after { content: ""; position: absolute; z-index: 0; left: 23px; top: 24px; width: 2px; }
.sd-steps::before { bottom: 24px; background: rgba(255, 255, 255, 0.14); }
.sd-steps::after {
    height: calc((100% - 48px) * var(--sd-progress, 0) / 100);
    background: var(--nh-primary);
    transition: height 0.2s linear;
}
.sd-step {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 28px;
}
.sd-step:last-child { padding-bottom: 0; }
.sd-step__marker {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.22);
    background: var(--nh-ink);
    font-family: var(--nh-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(246, 245, 242, 0.6);
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.sd-step.is-done .sd-step__marker { border-color: var(--nh-primary); color: var(--nh-primary); }
.sd-step.is-active .sd-step__marker {
    background: var(--nh-primary);
    border-color: var(--nh-primary);
    color: var(--nh-primary-fg);
    box-shadow: 0 0 0 8px rgba(229, 72, 30, 0.18);
}
.sd-step__body {
    padding: 26px 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.4s ease, background-color 0.4s ease, transform 0.5s var(--nh-ease);
}
.sd-step:hover .sd-step__body {
    border-color: var(--nh-primary);
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(6px);
}
.sd-step__title {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-transform: none;
}
.sd-step__text { margin-top: 14px; font-size: 14px; line-height: 1.7; color: rgba(246, 245, 242, 0.62); }
.sd-step__title + .sd-step__text,
.sd-step__head + .sd-step__text { margin-top: 16px; }
/* heading row: title on the left, the step's icon on the right */
.sd-step__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sd-step__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    color: var(--nh-primary);
    border: 1px solid rgba(229, 72, 30, 0.4);
    background: rgba(229, 72, 30, 0.08);
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.5s var(--nh-ease), box-shadow 0.4s ease;
}
.sd-step__icon svg { width: 22px; height: 22px; }
@media (min-width: 640px) { .sd-step__icon { width: 52px; height: 52px; } .sd-step__icon svg { width: 24px; height: 24px; } }
/* the icon lights up with the timeline marker (current step) and when the card is hovered */
.sd-step.is-active .sd-step__icon,
.sd-step:hover .sd-step__icon {
    background: var(--nh-primary);
    border-color: var(--nh-primary);
    color: var(--nh-primary-fg);
}
.sd-step:hover .sd-step__icon { transform: rotate(-8deg) scale(1.06); box-shadow: 0 0 0 6px rgba(229, 72, 30, 0.16); }
.sd-step__deliver {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.18);
    font-size: 14px;
    line-height: 1.65;
    color: rgba(246, 245, 242, 0.88);
}
.sd-step__label { font-weight: 700; color: var(--nh-primary); }

/* ================================================================= WHY == */
.sd-why__intro { display: grid; gap: 14px; margin-top: 28px; max-width: 34rem; }
/* Some of the photos have white desks along the bottom edge, so the dark overlay
   behind the caption (count + title) is deepened here (home page: 0.7 fading to 0):
   near-solid under the text, easing off by the middle so the picture still reads. */
.sd-why .nh-stack__scrim {
    background: linear-gradient(to top,
        rgba(11, 9, 7, 0.94) 0%,
        rgba(11, 9, 7, 0.82) 24%,
        rgba(11, 9, 7, 0.45) 46%,
        rgba(11, 9, 7, 0) 76%);
}
.sd-reason__row { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding-block: 26px; }
.sd-reason__title { margin: 0; font: inherit; letter-spacing: inherit; text-transform: none; }
.sd-reason__btn {
    display: block;
    width: 100%;
    font-family: var(--nh-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: rgba(16, 12, 10, 0.7);
    outline: none;
    transition: transform 0.5s var(--nh-ease), color 0.5s ease;
}
.sd-reason__btn:focus-visible { outline: 2px solid var(--nh-primary); outline-offset: 6px; }
.sd-reason.is-open .sd-reason__btn { transform: translateX(4px); color: var(--nh-foreground); }
.sd-reason__panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.5s var(--nh-ease), opacity 0.5s var(--nh-ease), margin-top 0.5s var(--nh-ease);
}
.sd-reason.is-open .sd-reason__panel { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
.sd-reason__panel > div { overflow: hidden; }
@media (min-width: 768px) {
    .sd-reason__row { gap: 40px; }
    .sd-reason__btn { font-size: 24px; }
}

/* ============================================================== STAGES == */
.sd-stages { display: grid; gap: 20px; margin-top: 64px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .sd-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

.sd-stage {
    position: relative;
    height: 100%;
    overflow: hidden;
    padding: 40px 34px 38px;
    background: #fff;
    border: 1px solid var(--nh-border);
    transition: background-color 0.6s var(--nh-ease), color 0.6s var(--nh-ease), transform 0.6s var(--nh-ease),
                border-color 0.6s ease, box-shadow 0.6s var(--nh-ease);
}
.sd-stage__ghost {
    position: absolute;
    right: 20px;
    top: 14px;
    font-family: var(--nh-display);
    font-size: 96px;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    color: rgba(16, 12, 10, 0.05);
    pointer-events: none;
    user-select: none;
    transition: color 0.6s ease, transform 0.6s var(--nh-ease);
}
.sd-stage:hover {
    transform: translateY(-10px);
    background: var(--nh-ink);
    border-color: var(--nh-ink);
    color: var(--nh-ink-fg);
    box-shadow: 0 40px 70px -40px rgba(11, 9, 7, 0.7);
}
.sd-stage:hover .sd-stage__ghost { color: rgba(229, 72, 30, 0.2); transform: translateY(6px); }
.sd-stage__title {
    position: relative;
    max-width: 14em;
    padding-right: 56px; /* keeps the heading clear of the ghost number */
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: none;
}
.sd-stage__text { position: relative; margin-top: 16px; font-size: 14px; line-height: 1.7; opacity: 0.85; }
.sd-stage__lead {
    position: relative;
    margin-top: 24px;
    font-family: var(--nh-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nh-primary);
}
.sd-stage .nh-speclist { position: relative; margin-top: 14px; gap: 8px; }
.sd-stage .nh-speclist li { color: inherit; opacity: 0.9; }

/* ================================================================= WHO ==
   "Who we help": four poster cards, heading first. At rest a card shows only a number, an icon and
   its heading; the description rises over it like a dark curtain on hover, keyboard focus or tap, with
   an orange leading edge, staggered text and a glow that follows the pointer.
   The face and the curtain share one grid cell, so every card is as tall as its longest text, at any width. */
.sd-who { display: grid; gap: 20px; margin-top: 64px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sd-who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .sd-who { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

.sd-who__card {
    position: relative;
    display: grid;
    min-height: 360px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, #fff 0%, var(--nh-background) 100%);
    border: 1px solid var(--nh-border);
    outline: none;
    transition: transform 0.6s var(--nh-ease), box-shadow 0.6s var(--nh-ease), border-color 0.4s ease;
}
@media (min-width: 1280px) { .sd-who__card { min-height: 440px; } }
.sd-who__card:focus-visible { outline: 2px solid var(--nh-primary); outline-offset: 3px; }

/* resting face */
.sd-who__face {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    padding: 26px 26px 30px;
}
.sd-who__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sd-who__num {
    font-family: var(--nh-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--nh-muted-fg);
}
.sd-who__plus {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--nh-border);
    border-radius: 50%;
    color: var(--nh-foreground);
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.6s var(--nh-ease);
}
.sd-who__plus svg { width: 16px; height: 16px; }
.sd-who__icon {
    display: grid;
    place-items: center;
    flex: none;
    margin-top: 40px; /* same height on every card; the heading below is pushed to the bottom */
    width: 84px;
    height: 84px;
    color: var(--nh-primary);
    border: 1px solid rgba(229, 72, 30, 0.35);
    background: rgba(229, 72, 30, 0.06);
    transition: transform 0.7s var(--nh-ease);
}
.sd-who__icon svg { width: 38px; height: 38px; }
.sd-who__headline {
    margin-top: auto;
    padding-top: 32px;
    font-family: var(--nh-display);
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

/* the curtain */
.sd-who__reveal {
    grid-area: 1 / 1;
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 26px 26px 30px;
    background: var(--nh-ink);
    color: var(--nh-ink-fg);
    transform: translateY(101%);
    transition: transform 0.7s var(--nh-ease);
}
.sd-who__reveal::before { /* leading edge */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 2;
    height: 3px;
    background: var(--nh-primary);
}
.sd-who__reveal::after { /* glow that follows the pointer (service-page.js sets --mx / --my) */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(340px circle at var(--mx, 85%) var(--my, 100%), rgba(229, 72, 30, 0.32), transparent 62%);
}
.sd-who__big {
    position: absolute;
    right: 14px;
    top: 44px;
    z-index: 0;
    font-family: var(--nh-display);
    font-size: 150px;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.045);
    pointer-events: none;
    user-select: none;
}
.sd-who__body { position: relative; z-index: 1; display: flex; flex-direction: column; }
.sd-who__reveal .sd-who__num { color: var(--nh-primary); }
.sd-who__reveal .sd-who__plus { border-color: rgba(255, 255, 255, 0.3); color: var(--nh-ink-fg); }
.sd-who__title {
    margin-top: 36px;
    font-size: clamp(1.4rem, 1.9vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-transform: none;
}
.sd-who__text { margin-top: 16px; font-size: 14px; line-height: 1.75; color: rgba(246, 245, 242, 0.78); }
/* the content steps in once the curtain is on its way up */
.sd-who__body > * { opacity: 0; transform: translateY(18px); transition: opacity 0.35s ease, transform 0.45s var(--nh-ease); }

/* OPEN state (.is-open): exactly one card is open at a time. The first card is open by default (it is set in the markup)
   so visitors can see what the other cards will do. service-page.js moves .is-open to the card the pointer is over,
   that is focused or that is tapped, and back to the first card when the pointer leaves the group. */
.sd-who__card.is-open {
    transform: translateY(-8px);
    border-color: var(--nh-ink);
    box-shadow: 0 40px 70px -40px rgba(11, 9, 7, 0.7);
}
.sd-who__card.is-open .sd-who__reveal { transform: translateY(0); }
.sd-who__card.is-open .sd-who__face .sd-who__plus { background: var(--nh-primary); border-color: var(--nh-primary); color: var(--nh-primary-fg); transform: rotate(90deg); }
.sd-who__card.is-open .sd-who__icon { transform: scale(0.9) rotate(-8deg); }
.sd-who__card.is-open .sd-who__body > * { opacity: 1; transform: none; }
.sd-who__card.is-open .sd-who__body > :nth-child(1) { transition-delay: 0.14s; }
.sd-who__card.is-open .sd-who__body > :nth-child(2) { transition-delay: 0.22s; }
.sd-who__card.is-open .sd-who__body > :nth-child(3) { transition-delay: 0.3s; }

/* ================================================================ CASES == */
/* "Our featured SaaS work": two cards side by side. Each is a project picture with a category tag,
   the case-study title and a button. The accent bar sweeps across the picture on hover. */
.sd-cases { display: grid; gap: 24px; margin-top: 64px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .sd-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
.sd-case {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--nh-border);
    transition: transform 0.5s var(--nh-ease), box-shadow 0.5s var(--nh-ease), border-color 0.4s ease;
}
.sd-case:hover {
    transform: translateY(-6px);
    border-color: rgba(229, 72, 30, 0.45);
    box-shadow: 0 28px 50px -30px rgba(16, 12, 10, 0.35);
}
.sd-case__media { position: relative; display: block; overflow: hidden; aspect-ratio: 1917 / 906; background: var(--nh-ink); }
.sd-case__media::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    height: 3px;
    width: 0;
    background: var(--nh-primary);
    transition: width 0.7s var(--nh-ease);
}
.sd-case:hover .sd-case__media::after { width: 100%; }
.sd-case__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--nh-ease); }
.sd-case:hover .sd-case__img { transform: scale(1.05); }
/* category label above the title (same look as the site's orange eyebrows) */
.sd-case__tag {
    margin: 0 0 -10px;
    font-family: var(--nh-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--nh-primary);
}
.sd-case__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 24px; padding: 28px 28px 32px; }
.sd-case__title {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-transform: none;
}
.sd-case__body .nh-cta-btn { margin-top: auto; }

/* ============================================================ FAQ / Q&A ==
   Re-uses the home page's mobile accordion pieces (.nh-acc__*) at every width;
   only the wrapper is new, because .nh-acc itself is hidden from 1024px up. */
.sd-faq { border-top: 1px solid var(--nh-border); }
.sd-faq .nh-acc__btn { padding: 26px 4px; }
.sd-faq .nh-acc__title { font-size: 18px; line-height: 1.3; transition: color 0.3s ease; }
.sd-faq .nh-acc__btn:hover .nh-acc__title { color: var(--nh-primary); }
.sd-faq .nh-acc__btn:focus-visible { outline: 2px solid var(--nh-primary); outline-offset: -2px; }
.sd-faq .nh-acc__text { max-width: 44rem; color: #000; }
.sd-faq .nh-acc__text:last-child { margin-bottom: 28px; }
@media (min-width: 768px) { .sd-faq .nh-acc__title { font-size: 20px; } }

/* ============================================================ INDUSTRIES == */
/* "Industries we build SaaS for" as an orbit: six icon nodes sit on a ring around a glowing hub. The node you hover,
   focus or tap lights up, the beam turns to it, its icon fills the hub and its description shows beside the orbit.
   (Behaviour: service-page.js. Without JavaScript the descriptions are simply listed one under another.) */
.sd-orbit { display: grid; gap: 56px; margin-top: 64px; align-items: center; }
@media (min-width: 1024px) { .sd-orbit { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 96px; } }

.sd-orbit__visual { display: grid; justify-items: center; gap: 30px; min-width: 0; }
.sd-orbit__stage { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; }

/* "how do I use this?" cue under the orbit: a pill with a little cursor that glides onto the spot and clicks (a ripple),
   and wording that follows the device (mouse: "Hover", touch: "Tap"). It dims once the visitor has used the orbit. */
.sd-orbit__hint {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    padding: 8px 22px 8px 9px;
    border: 1px solid rgba(229, 72, 30, 0.45);
    border-radius: 999px;
    background: rgba(229, 72, 30, 0.07);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: rgba(246, 245, 242, 0.92);
    transition: opacity 0.6s ease;
}
.sd-orbit__cursor {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(229, 72, 30, 0.16);
    color: var(--nh-primary);
}
.sd-orbit__cursor svg { position: relative; width: 19px; height: 19px; animation: sd-cursor-tap 2.8s var(--nh-ease) infinite; }
.sd-orbit__cursor::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--nh-primary);
    opacity: 0;
    animation: sd-cursor-ripple 2.8s ease-out infinite;
}
@keyframes sd-cursor-tap {
    0%   { transform: translate(7px, 7px); opacity: 0.35; }
    32%  { transform: translate(0, 0); opacity: 1; }
    42%  { transform: scale(0.82); }
    54%  { transform: scale(1); }
    100% { transform: none; opacity: 1; }
}
@keyframes sd-cursor-ripple {
    0%, 38% { transform: scale(0.5); opacity: 0; }
    44%     { transform: scale(0.7); opacity: 0.9; }
    80%, 100% { transform: scale(1.55); opacity: 0; }
}
.sd-orbit__hint-text--touch { display: inline; }
.sd-orbit__hint-text--mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
    .sd-orbit__hint-text--touch { display: none; }
    .sd-orbit__hint-text--mouse { display: inline; }
}
.sd-orbit.is-engaged .sd-orbit__hint { opacity: 0.5; }
.sd-orbit.is-engaged .sd-orbit__cursor svg,
.sd-orbit.is-engaged .sd-orbit__cursor::before { animation: none; }
.sd-orbit.is-engaged .sd-orbit__cursor::before { opacity: 0; }
.sd-orbit:not(.is-ready) .sd-orbit__hint { display: none; }
.sd-orbit__ring { position: absolute; border-radius: 50%; pointer-events: none; }
.sd-orbit__ring--outer { inset: 0; border: 1px dashed rgba(255, 255, 255, 0.14); animation: sd-orbit-spin 90s linear infinite; }
.sd-orbit__ring--track { inset: 9%; border: 1px solid rgba(255, 255, 255, 0.16); } /* the nodes sit on this ring (radius 41%) */
.sd-orbit__ring--inner { inset: 27%; border: 1px solid rgba(255, 255, 255, 0.07); }
@keyframes sd-orbit-spin { to { transform: rotate(360deg); } }

/* beam from the hub to the active node (service-page.js sets --beam, in degrees) */
.sd-orbit__beam {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 41%;
    height: 2px;
    margin-top: -1px;
    transform-origin: 0 50%;
    transform: rotate(var(--beam, -90deg));
    transition: transform 0.8s var(--nh-ease);
    background: linear-gradient(90deg, rgba(229, 72, 30, 0), var(--nh-primary));
    pointer-events: none;
}

/* hub: glows orange, pulses outward, and shows the active industry's icon */
.sd-orbit__hub {
    position: absolute;
    inset: 34%;
    z-index: 2;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, rgba(229, 72, 30, 0.42), rgba(229, 72, 30, 0.1) 62%), var(--nh-ink);
    border: 1px solid rgba(229, 72, 30, 0.5);
    box-shadow: 0 0 60px -10px rgba(229, 72, 30, 0.55), inset 0 0 30px rgba(229, 72, 30, 0.18);
    pointer-events: none;
}
.sd-orbit__hub::before,
.sd-orbit__hub::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(229, 72, 30, 0.55);
    animation: sd-orbit-pulse 3.6s ease-out infinite;
}
.sd-orbit__hub::after { animation-delay: 1.8s; }
@keyframes sd-orbit-pulse {
    from { transform: scale(1); opacity: 0.65; }
    to   { transform: scale(1.75); opacity: 0; }
}
.sd-orbit__hubicon {
    position: absolute;
    display: grid;
    place-items: center;
    width: 46%;
    aspect-ratio: 1;
    color: #fff;
    opacity: 0;
    transform: scale(0.55) rotate(-25deg);
    transition: opacity 0.45s ease, transform 0.7s var(--nh-ease);
}
.sd-orbit__hubicon svg { width: 100%; height: 100%; }
.sd-orbit__hubicon.is-active { opacity: 1; transform: none; }

/* the six industry nodes */
.sd-orbit__tabs { position: absolute; inset: 0; z-index: 3; }
.sd-orbit__node {
    position: absolute;
    display: grid;
    place-items: center;
    width: max(44px, 14%);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--nh-ink);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(246, 245, 242, 0.85);
    cursor: pointer;
    transition: transform 0.5s var(--nh-ease), background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.5s ease;
}
.sd-orbit__node svg { width: 44%; height: 44%; }
.sd-orbit__node:hover { border-color: var(--nh-primary); color: #fff; }
.sd-orbit__node.is-active {
    transform: translate(-50%, -50%) scale(1.14);
    background: var(--nh-primary);
    border-color: var(--nh-primary);
    color: var(--nh-primary-fg);
    box-shadow: 0 0 0 8px rgba(229, 72, 30, 0.18), 0 0 40px rgba(229, 72, 30, 0.5);
}
.sd-orbit__node:focus-visible { outline: 2px solid var(--nh-ink-fg); outline-offset: 5px; }

/* the descriptions: stacked in one grid cell, so the area never changes height when the text swaps */
.sd-orbit__panels { display: grid; }
.sd-orbit__panel {
    grid-area: 1 / 1;
    align-self: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity 0.4s ease, transform 0.5s var(--nh-ease), visibility 0s linear 0.4s;
}
.sd-orbit__panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.55s ease 0.12s, transform 0.65s var(--nh-ease) 0.12s, visibility 0s;
}
.sd-orbit__count {
    font-family: var(--nh-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--nh-primary);
}
.sd-orbit__count span { color: rgba(246, 245, 242, 0.4); }
.sd-orbit__title { margin-top: 18px; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 0.98; letter-spacing: -0.03em; }
.sd-orbit__text { margin-top: 24px; max-width: 34rem; font-size: 15px; line-height: 1.8; color: rgba(246, 245, 242, 0.75); }

/* no JavaScript: no tabs to switch, so list every description */
.sd-orbit:not(.is-ready) .sd-orbit__panels { gap: 40px; }
.sd-orbit:not(.is-ready) .sd-orbit__panel { grid-area: auto; opacity: 1; visibility: visible; transform: none; }

/* =============================================================== GDPR == */
.sd-checks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 32px;
    border-top: 1px solid var(--nh-border);
}
@media (min-width: 640px) { .sd-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sd-check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--nh-border);
    font-size: 14px;
    line-height: 1.5;
    transition: padding-left 0.4s var(--nh-ease);
}
.sd-check__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    border: 1px solid var(--nh-primary);
    color: var(--nh-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.sd-check__icon svg { width: 12px; height: 12px; }
.sd-check:hover { padding-left: 8px; }
.sd-check:hover .sd-check__icon { background: var(--nh-primary); color: var(--nh-primary-fg); }
/* On the dark CTA band */
.sd-checks--ink { border-top-color: rgba(255, 255, 255, 0.15); grid-template-columns: 1fr; }
.sd-checks--ink .sd-check { border-bottom-color: rgba(255, 255, 255, 0.15); color: rgba(246, 245, 242, 0.85); }

.sd-callout {
    position: relative;
    display: grid;
    gap: 32px;
    margin-top: 72px;
    padding: 40px 28px 40px 32px;
    background: var(--nh-ink);
    color: var(--nh-ink-fg);
    overflow: hidden;
}
.sd-callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--nh-primary); }
.sd-callout__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.05; text-transform: none; }
.sd-callout__body { display: grid; gap: 14px; font-size: 14px; line-height: 1.7; color: rgba(246, 245, 242, 0.72); }
@media (min-width: 1024px) {
    .sd-callout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; padding: 56px 56px 56px 60px; }
}

/* ======================================================== TESTIMONIALS == */
.sd-testimonials { background: #fff; }
.sd-testimonials__head { padding-top: 62px; }

/* ========================================================= CTA + FORM == */
.sd-cta__grid { display: grid; gap: 48px; padding-block: 72px; }
.sd-cta .sd-checks--ink { margin-top: 28px; }
/* Contact rows (Phone / Email / Office): orange label, value or link beside it */
.sd-check__label { margin-right: 6px; font-weight: 700; color: var(--nh-primary); }
.sd-check a { color: inherit; overflow-wrap: anywhere; transition: color 0.25s ease; }
.sd-check a:hover { color: var(--nh-primary); }
@media (min-width: 1024px) {
    .sd-cta__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 80px; align-items: start; }
}

.sd-form-card {
    padding: 32px 26px 34px;
    background: #fff;
    color: var(--nh-foreground);
    border-top: 4px solid var(--nh-primary);
}
.sd-form-card.is-pulse { animation: sd-pulse 1.1s ease-out 1; }
@keyframes sd-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(229, 72, 30, 0.55); }
    100% { box-shadow: 0 0 0 24px rgba(229, 72, 30, 0); }
}
.sd-form-card__title { font-size: 28px; letter-spacing: -0.03em; line-height: 1; text-transform: none; }
.sd-form { display: grid; gap: 14px; margin-top: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .sd-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sd-form__full { grid-column: 1 / -1; }
    .sd-form-card { padding: 40px 36px 40px; }
}
.sd-input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: var(--nh-background);
    border: 1px solid var(--nh-border);
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    color: var(--nh-foreground);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.sd-input::placeholder { color: var(--nh-muted-fg); }
.sd-input:focus { border-color: var(--nh-primary); background-color: #fff; box-shadow: 0 0 0 3px rgba(229, 72, 30, 0.15); }
textarea.sd-input { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
.sd-input.is-invalid { border-color: #C0000E; }
.sd-form .invalid-feedback { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; color: #C0000E; }
.sd-form .red-text { font-size: 12px; color: #C0000E; }

/* select2 skinned to match .sd-input */
.sd-form .select2-container { width: 100% !important; }
.sd-form .select2-container .select2-selection--single {
    height: 52px;
    background: var(--nh-background);
    border: 1px solid var(--nh-border);
    border-radius: 6px;
    transition: border-color 0.3s ease;
}
.sd-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 16px;
    padding-right: 34px;
    line-height: 50px;
    font-size: 14px;
    color: var(--nh-foreground);
}
.sd-form .select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; right: 8px; height: 50px; }
.sd-form .select2-container--focus .select2-selection--single,
.sd-form .select2-container--open .select2-selection--single { border-color: var(--nh-primary); }

.sd-captcha { display: flex; align-items: center; gap: 12px; }
.sd-captcha img { width: auto; height: 46px; border: 1px solid var(--nh-border); }
.sd-captcha__refresh {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--nh-border);
    border-radius: 6px;
    color: var(--nh-foreground);
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.5s var(--nh-ease);
}
.sd-captcha__refresh svg { width: 18px; height: 18px; fill: currentColor; }
.sd-captcha__refresh:hover { border-color: var(--nh-primary); color: var(--nh-primary); transform: rotate(180deg); }
.sd-form__submit { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.sd-form__submit .nh-cta-btn { margin-top: 0; }

/* ------------------------------------------------ hero enquiry form -------- */
/* Same card, inputs, type and red button as the form at the bottom of the page
   (they all read the --nh-* tokens); this block only adds what is new: a single
   column, the custom select arrow, the attach button, and the lifted card. */
.sd-form-card.sd-hero-card {
    padding: 26px 20px 22px;
    box-shadow: 0 40px 80px -40px rgba(16, 12, 10, 0.55);
}
@media (min-width: 640px) {
    .sd-form-card.sd-hero-card { padding: 34px 34px 28px; }
}
.sd-eform { display: grid; gap: 12px; grid-template-columns: 1fr; }
.sd-eform__field { min-width: 0; }
/* Two fields per row (Name | Email, Country code | Mobile, Enquiry type | Website); the message, captcha and buttons stay full width.
   Phones keep one column, where two would be too narrow for the placeholders. */
@media (min-width: 480px) {
    .sd-eform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sd-eform__full { grid-column: 1 / -1; }
}
.sd-eform textarea.sd-input { min-height: 110px; }
.sd-eform .invalid-feedback { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; color: #C0000E; }

/* Native <select> with the site's chevron (the text stays muted until a choice is made) */
.sd-select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 46px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23100C0A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    cursor: pointer;
}
.sd-select:required:invalid { color: var(--nh-muted-fg); }
.sd-select option { color: var(--nh-foreground); }

/* Captcha row: image + refresh + the code field, wrapping on very narrow cards */
.sd-eform__captcha { flex-wrap: wrap; }
.sd-eform__captcha-input { flex: 1 1 140px; width: auto; min-width: 0; }

/* Attach + Send Now sit side by side and stack on narrow cards */
.sd-eform__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.sd-eform__actions .nh-cta-btn { flex: 1 1 150px; justify-content: center; margin-top: 0; min-height: 52px; }
.sd-eform__actions .nh-cta-btn:disabled { opacity: 0.7; cursor: progress; }
/* The real file input is visually hidden (it must stay focusable) and the label is the button */
.sd-attach__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.sd-attach {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 200px;
    min-width: 0;
    min-height: 52px;
    padding: 0 18px;
    background: var(--nh-muted);
    border: 1px solid var(--nh-border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--nh-foreground);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.sd-attach svg { flex: none; width: 20px; height: 20px; transition: color 0.3s ease; }
.sd-attach span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-attach:hover,
.sd-attach.has-files { border-color: var(--nh-primary); background: #fff; }
.sd-attach:hover svg,
.sd-attach.has-files svg { color: var(--nh-primary); }
.sd-attach__input:focus-visible + .sd-attach { border-color: var(--nh-primary); box-shadow: 0 0 0 3px rgba(229, 72, 30, 0.15); }
.sd-eform__hint { font-size: 12px; line-height: 1.5; color: var(--nh-muted-fg); }
.sd-eform__hint.is-error { color: #C0000E; }

/* ========================================================== BREAKPOINTS == */
@media (min-width: 640px) {
    .sd-hero .nh-hero__title { font-size: 3.25rem; }
    .sd-build__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .sd-hero .nh-wrap { padding-block: 62px 72px; }
}
@media (min-width: 1024px) {
    .sd-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; }
    .sd-hero .nh-hero__title { font-size: clamp(3rem, 4.7vw, 4.4rem); }
    .sd-build__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sd-step { gap: 28px; }
}

/* ------------------------------------------- LOGO STRIP (auto-scroll) ------- */
/* A full-width row of logo tiles that slides on its own: the technologies on this page and the tools on the SaaS
   security page. Markup: front/includes/logo-strip.blade.php. Pure CSS: the list is printed 4 times in a row and the
   track slides left by half its width (= 2 copies), then restarts, so the loop has no visible jump and still covers
   very wide screens. --sd-dur is set from the number of logos, so the speed stays the same however many there are. */
.sd-marquees { margin-top: 56px; }
.sd-marquee {
    overflow: hidden;
    padding-block: 12px; /* room for the hover lift and shadow, which overflow:hidden would otherwise clip */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.sd-marquee__track {
    display: flex;
    width: max-content;
    animation: sd-marquee var(--sd-dur, 48s) linear infinite;
    will-change: transform;
}
/* pause while someone is reading or pointing at a logo */
.sd-marquee:hover .sd-marquee__track,
.sd-marquee:focus-within .sd-marquee__track { animation-play-state: paused; }
@keyframes sd-marquee { to { transform: translateX(-50%); } }

/* trailing padding = the gap, so every copy has the same width and the loop is exact */
.sd-marquee__set { display: flex; flex: none; gap: 14px; margin: 0; padding: 0 14px 0 0; list-style: none; }

/* one logo tile: white, square-cornered like the rest of the page, dark text even inside the dark section */
.sd-tool {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 172px;
    margin: 0;
    padding: 22px 14px 20px;
    text-align: center;
    background: #fff;
    color: var(--nh-foreground);
    border: 1px solid var(--nh-border);
    transition: transform 0.45s var(--nh-ease), border-color 0.3s ease, box-shadow 0.45s var(--nh-ease);
}
.sd-tool:hover {
    transform: translateY(-5px);
    border-color: var(--nh-primary);
    box-shadow: 0 18px 28px -18px rgba(229, 72, 30, 0.65);
}
.sd-tool__logo { display: block; width: 48px; height: 48px; object-fit: contain; transition: transform 0.45s var(--nh-ease); }
.sd-tool:hover .sd-tool__logo { transform: scale(1.1); }
.sd-tool__name { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; color: #000; }
.sd-tool__sub { display: block; margin-top: -4px; font-size: 12px; font-weight: 500; line-height: 1.45; color: var(--nh-muted-fg); }
@media (min-width: 768px) {
    .sd-marquee__set { gap: 18px; padding-right: 18px; }
    .sd-tool { width: 208px; padding: 26px 18px 24px; }
    .sd-tool__logo { width: 56px; height: 56px; }
}

/* Reduced motion: no endless movement (the site-wide rule would turn it into a flicker). The strip becomes a normal
   row that can be swiped or scrolled by hand, with a single copy of the list. */
@media (prefers-reduced-motion: reduce) {
    .sd-page .sd-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .sd-page .sd-marquee__track { animation: none !important; }
    .sd-marquee__set:nth-child(n+2) { display: none; }
}

/* -------------------------------------------------- reduced motion ------- */
@media (prefers-reduced-motion: reduce) {
    .sd-hero__bg { animation: none; }
    /* the orbit's decorative loops (the site-wide reduced-motion rule would make an endless loop flicker) */
    .sd-orbit__ring--outer,
    .sd-orbit__hub::before,
    .sd-orbit__hub::after,
    .sd-orbit__cursor svg,
    .sd-orbit__cursor::before { animation: none; }
    .sd-orbit__hub::before,
    .sd-orbit__hub::after,
    .sd-orbit__cursor::before { opacity: 0; }
    html:has(.sd-page) { scroll-behavior: auto; }
}
