/* ==========================================================================
   APPNWEB - New Home page design system
   Everything is scoped under .nhome so it cannot leak into (or be broken by)
   the global front/css/style.css preflight.
   ========================================================================== */

.nhome {
    /* Palette */
    --nh-background: #FBFAF7;
    --nh-foreground: #100C0A;
    --nh-primary: #E5481E;
    --nh-primary-fg: #FDFCF8;
    --nh-muted: #F3F0EA;
    --nh-muted-fg: #69625D;
    --nh-border: #E1DDD8;
    --nh-ink: #0B0907;
    --nh-ink-fg: #F6F5F2;
    --nh-sand: #F4EFE7;

    /* Type - Manrope throughout, self-hosted by style.css (@font-face at
       ~line 5065, weights 200/300/400/500/600/700). Display and body stay
       separate tokens so the two roles can still be tuned independently. */
    --nh-display: "Manrope", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    --nh-sans: "Manrope", "Segoe UI", ui-sans-serif, system-ui, sans-serif;

    /* Motion */
    --nh-ease: cubic-bezier(0.16, 1, 0.3, 1);

    background: var(--nh-background);
    color: var(--nh-foreground);
    font-family: var(--nh-sans);
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: clip;
}

/* --------------------------------------------------------------- resets --
   These are written as `:where(.nhome) <element>` on purpose. `:where()`
   contributes no specificity, so each rule lands at (0,0,1) — high enough to
   beat the element-level rules in the global style.css (this file loads after
   it), but low enough that every .nh-* component class below still wins.
   Using `.nhome <element>` here instead would give (0,1,1) and silently
   outrank the components.
   ------------------------------------------------------------------------- */
:where(.nhome) *,
:where(.nhome) *::before,
:where(.nhome) *::after { box-sizing: border-box; }

:where(.nhome) p,
:where(.nhome) span,
:where(.nhome) li,
:where(.nhome) h1,
:where(.nhome) h2,
:where(.nhome) h3,
:where(.nhome) h4 {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 0;
    text-align: inherit;
}

:where(.nhome) h1,
:where(.nhome) h2,
:where(.nhome) h3,
:where(.nhome) h4 {
    font-family: var(--nh-display);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    text-transform: uppercase;
}

:where(.nhome) a { color: inherit; text-decoration: none; }
:where(.nhome) a:hover { color: inherit; }
:where(.nhome) ul { list-style: none; margin: 0; padding: 0; }

:where(.nhome) img,
:where(.nhome) video {
    display: block;
    max-width: 100%;
    height: auto;
}

:where(.nhome) button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}

:where(.nhome) svg { display: block; flex: none; }

/* ------------------------------------------------------------ primitives -- */
.nh-wrap {
    position: relative;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 20px;
}

.nh-sec { position: relative; overflow: hidden; }
.nh-sec--pad { padding-block: 62px; }
.nh-sec--ink { background: var(--nh-ink); color: var(--nh-ink-fg); }
.nh-sec--sand { background: var(--nh-sand); }

.nh-eyebrow {
    font-family: var(--nh-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--nh-primary);
}

.nh-ghost {
    position: absolute;
    font-family: var(--nh-display);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.8;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    color: rgba(16, 12, 10, 0.04);
    z-index: 0;
}
.nh-sec--ink .nh-ghost { color: rgba(255, 255, 255, 0.05); }

.nh-h2 { font-size: clamp(2rem, 6vw, 3.5rem); }
.nh-lede { font-size: 14px; line-height: 1.7; color: #000000; }
.nh-sec--ink .nh-lede { color: rgba(246, 245, 242, 0.6); }

/* Section header: title left, supporting copy right */
.nh-head { display: grid; gap: 32px; }
.nh-head__note { max-width: 24rem; }

/* --------------------------------------------------------------- buttons --
   The page CTAs reuse the site's own brand button - the global `.client-btn
   .btn-data` pair from front/css/style.css, the same one behind "Hire a
   Developer" on the hire page. That keeps the gradient, radius, type and
   hover wipe in one place, so a brand change still reaches this page.

   `.nh-cta-btn` therefore only adds layout: the icon row, and the positioning
   the global hover wipe needs. `.client-btn::after` is absolutely positioned
   at z-index -1, so the button must be a positioned stacking context or the
   wipe escapes to the nearest positioned ancestor and spans the section.
   ------------------------------------------------------------------------- */
.nh-cta-btn {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.nh-cta-btn svg {
    position: relative;
    width: 16px;
    height: 16px;
    /* style.css has `.client-btn svg { fill: #fff; stroke: #fff }`, which would
       flood this stroked chevron with a solid white fill. Same specificity, and
       new-home.css loads later, so restating the intent here wins. */
    fill: none;
    stroke: currentColor;
    transition: transform 0.3s ease;
}
.nh-cta-btn:hover svg { transform: translateX(4px); }

/* Reveal on scroll */
.nh-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--nh-ease), transform 0.7s var(--nh-ease);
    will-change: opacity, transform;
}
.nh-reveal.is-visible { opacity: 1; transform: none; }

.nh-noscroll::-webkit-scrollbar { display: none; }
.nh-noscroll { -ms-overflow-style: none; scrollbar-width: none; }

/* ================================================================= HERO == */
.nh-hero {
    border-bottom: 1px solid var(--nh-border);
    background: var(--nh-background);
}
.nh-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.nh-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
        rgba(251, 250, 247, 0.95) 0%,
        rgba(251, 250, 247, 0.95) 55%,
        rgba(251, 250, 247, 0) 100%);
}
.nh-hero .nh-wrap { padding-block: 80px; }
.nh-hero__title {
    margin-top: 24px;
    max-width: 64rem;
    font-size: 13vw;
    line-height: 0.88;
}
.nh-hero__title .nh-accent { color: var(--nh-primary); }
.nh-hero__copy {
    margin-top: 32px;
    max-width: 42rem;
    font-size: 16px;
    line-height: 1.7;
}
.nh-hero .nh-cta-btn { margin-top: 40px; }

/* ============================================================= SERVICES == */
.nh-services .nh-ghost { left: -24px; top: 24px; font-size: 24vw; }

/* Desktop expanding panels ------------------------------------------------ */
.nh-panels { display: none; }

.nh-panel {
    position: relative;
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
    background: var(--nh-ink);
    color: var(--nh-ink-fg);
    outline: none;
    transition: flex-grow 0.7s var(--nh-ease);
}
.nh-panel:focus-visible { box-shadow: inset 0 0 0 2px var(--nh-primary); }

.nh-panel__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(1);
    transform: scale(1);
    transition: opacity 0.9s var(--nh-ease), filter 0.9s var(--nh-ease), transform 0.9s var(--nh-ease);
}
.nh-panel.is-active .nh-panel__img {
    opacity: 0.7;
    filter: grayscale(0);
    transform: scale(1.03);
}
.nh-panel__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--nh-ink) 0%, rgba(11, 9, 7, 0.7) 50%, rgba(11, 9, 7, 0.2) 100%);
}
.nh-panel__bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 0;
    background: var(--nh-primary);
    transition: width 0.7s var(--nh-ease);
}
.nh-panel.is-active .nh-panel__bar { width: 100%; }

.nh-panel__inner {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
}
.nh-panel__num {
    font-family: var(--nh-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(246, 245, 242, 0.5);
    transition: color 0.5s ease;
}
.nh-panel.is-active .nh-panel__num { color: var(--nh-primary); }

.nh-panel__spine {
    position: absolute;
    bottom: 24px;
    left: 24px;
    transform-origin: bottom left;
    transform: rotate(-90deg);
    white-space: nowrap;
    font-family: var(--nh-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.nh-panel.is-active .nh-panel__spine { opacity: 0; }

.nh-panel__body {
    display: block;
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s var(--nh-ease), opacity 0.6s var(--nh-ease);
}
.nh-panel.is-active .nh-panel__body {
    transform: none;
    opacity: 1;
    pointer-events: auto;
}
.nh-panel__title {
    display: block;
    max-width: 28rem;
    font-family: var(--nh-display);
    font-size: 30px;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.02em;
    /* Now an <h3>, so the heading reset applies. Everything it sets is already
       overridden above except text-transform, which would upper-case these. */
    text-transform: none;
}
.nh-panel__text {
    display: block;
    max-width: 24rem;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(246, 245, 242, 0.65);
}
.nh-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-family: var(--nh-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--nh-primary);
}
.nh-more svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.nh-panel:hover .nh-more svg { transform: translate(4px, -4px); }

/* .nh-more is an anchor in the services panels, so it needs a link affordance */
a.nh-more:hover,
a.nh-more:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
a.nh-more:hover svg { transform: translate(4px, -4px); }

/* Mobile / tablet accordion ---------------------------------------------- */
.nh-acc {
    margin-top: 56px;
    border-top: 1px solid var(--nh-border);
}
.nh-acc__item { border-bottom: 1px solid var(--nh-border); }
/* Semantics only - the h3 must add no box and no type of its own, so the row
   renders exactly as it did when the button was a direct child of the item.
   `font: inherit` covers family/size/weight/style/line-height in one go;
   letter-spacing and text-transform are not part of that shorthand. */
.nh-acc__heading {
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
    text-transform: none;
}
.nh-acc__btn { width: 100%; padding: 28px 4px; }
.nh-acc__row { display: flex; align-items: baseline; gap: 16px; }
.nh-acc__num {
    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;
}
.nh-acc__item.is-open .nh-acc__num { color: var(--nh-primary); }
.nh-acc__title {
    flex: 1;
    min-width: 0;
    font-family: var(--nh-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.nh-acc__icon {
    width: 16px;
    height: 16px;
    flex: none;
    color: var(--nh-muted-fg);
    transition: transform 0.3s ease, color 0.3s ease;
}
.nh-acc__item.is-open .nh-acc__icon { transform: rotate(90deg); color: var(--nh-primary); }

.nh-acc__panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    padding-inline: 4px;
    transition: grid-template-rows 0.5s var(--nh-ease), opacity 0.5s var(--nh-ease);
}
.nh-acc__item.is-open .nh-acc__panel { grid-template-rows: 1fr; opacity: 1; }
.nh-acc__panel > div { overflow: hidden; }
.nh-acc__img {
    display: block;
    width: 100%;
    height: 176px;
    object-fit: cover;
}
.nh-acc__text {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--nh-muted-fg);
}
/* Closes out the row. Must be a margin on this inner element, not padding on
   the clipped wrapper, or it would show through while the row is collapsed. */
.nh-acc__cta { margin-bottom: 28px; }

/* ================================================================= WORK == */
.nh-work .nh-ghost { right: -16px; top: 32px; font-size: 26vw; }
.nh-work .nh-panel {
    background: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transition: flex-grow 0.75s var(--nh-ease);
}
.nh-work .nh-panel__img { opacity: 0.4; }
.nh-work .nh-panel.is-active .nh-panel__img { opacity: 0.9; transform: scale(1.02); }
.nh-work .nh-panel__scrim {
    background: rgba(11, 9, 7, 0.6);
    transition: background 0.7s ease;
}
.nh-work .nh-panel.is-active .nh-panel__scrim {
    background: linear-gradient(to top, var(--nh-ink) 0%, rgba(11, 9, 7, 0.5) 50%, rgba(11, 9, 7, 0) 100%);
}
.nh-work .nh-panel__inner { justify-content: flex-end; padding: 32px; }
.nh-work .nh-panel__spine { bottom: 32px; left: 32px; font-size: 24px; }
.nh-work .nh-panel__body { transform: translateY(24px); transition-duration: 0.65s; }
.nh-work .nh-panel.is-active .nh-panel__body { transform: none; }

.nh-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--nh-primary);
}
.nh-work .nh-panel__title {
    margin-top: 12px;
    font-size: 48px;
    letter-spacing: -0.03em;
}
.nh-work .nh-panel__text { margin-top: 16px; color: rgba(246, 245, 242, 0.7); }

.nh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.nh-tag {
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(246, 245, 242, 0.7);
    /* Matches the skill chips in the internship page's Career Tracks section:
       border and label pick up the accent on hover over the 300ms it uses. */
    transition: border-color 300ms var(--nh-ease), color 300ms var(--nh-ease);
}
.nh-tag:hover {
    border-color: var(--nh-primary);
    color: var(--nh-primary);
}

/* Mobile work rail */
.nh-rail {
    display: flex;
    gap: 20px;
    margin-top: 56px;
    padding-bottom: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.nh-rail__item { flex: none; width: 82vw; scroll-snap-align: start; }
.nh-card { display: block; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 24px; }
.nh-card__frame { display: block; overflow: hidden; }
.nh-card__img {
    width: 100%;
    height: 224px;
    object-fit: cover;
}
.nh-card .nh-kicker { margin-top: 20px; }
.nh-card__title { margin-top: 12px; font-size: 30px; }
.nh-card__text {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(246, 245, 242, 0.6);
}

/* =============================================================== WHY US == */
.nh-why .nh-ghost { left: -16px; bottom: 40px; font-size: 22vw; }
.nh-why__grid { display: grid; gap: 56px; }
.nh-why__copy { margin-top: 28px; max-width: 28rem; }

.nh-list { margin-top: 48px; border-top: 1px solid var(--nh-border); }
.nh-list__item { border-bottom: 1px solid var(--nh-border); }
.nh-list__btn {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    width: 100%;
    padding-block: 28px;
    outline: none;
}
.nh-list__num {
    font-family: var(--nh-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--nh-muted-fg);
    transition: color 0.3s ease;
}
.nh-list__item.is-open .nh-list__num { color: var(--nh-primary); }
.nh-list__body { min-width: 0; }
.nh-list__title {
    display: block;
    font-family: var(--nh-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: rgba(16, 12, 10, 0.7);
    transition: transform 0.5s var(--nh-ease), color 0.5s ease;
}
.nh-list__item.is-open .nh-list__title {
    transform: translateX(4px);
    color: var(--nh-foreground);
}
.nh-list__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);
}
.nh-list__item.is-open .nh-list__panel { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
.nh-list__panel > span { overflow: hidden; }
.nh-list__text {
    display: block;
    max-width: 36rem;
    font-size: 14px;
    line-height: 1.7;
    color: #000000;
}
.nh-list__img {
    display: block;
    width: 100%;
    height: 160px;
    margin-top: 16px;
    object-fit: cover;
}
.nh-list__rule {
    display: block;
    height: 1px;
    width: 0;
    margin-top: 16px;
    background: var(--nh-primary);
    transition: width 0.7s var(--nh-ease);
}
.nh-list__item.is-open .nh-list__rule { width: 100%; }

/* Sticky cross-fading visual */
.nh-why__media { display: none; }
.nh-stack {
    position: sticky;
    top: 112px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--nh-ink);
}
.nh-stack__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
    transition: opacity 0.8s var(--nh-ease), transform 0.8s var(--nh-ease);
}
.nh-stack__img.is-active { opacity: 1; transform: scale(1); }
.nh-stack__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 9, 7, 0.7), rgba(11, 9, 7, 0));
}
.nh-stack__meta { position: absolute; inset: auto 0 0 0; padding: 32px; }
.nh-stack__count {
    font-family: var(--nh-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--nh-primary);
}
.nh-stack__title {
    margin-top: 12px;
    font-family: var(--nh-display);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--nh-ink-fg);
}

/* Stats */
.nh-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 80px;
    border-top: 1px solid var(--nh-border);
    background: var(--nh-border);
}
.nh-stat { background: var(--nh-sand); }
.nh-stat__inner { padding: 40px 4px; }

/* On the two-column mobile grid the left-hand cells pick up another 20px of
   inset from .nh-wrap's padding, so their 4px reads as 24px. The right-hand
   cells butt straight against the divider instead, so match them up to the
   same 24px. Scoped to this layout: at md and lg the column count changes and
   nth-child(even) stops meaning "right-hand". .nh-clutch is excluded because
   it centres its content, which asymmetric padding would knock off-axis. */
@media (max-width: 767.98px) {
    .nh-stat:nth-child(even):not(.nh-clutch) .nh-stat__inner { padding-left: 24px; }
}
.nh-stat__num {
    font-family: var(--nh-display);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}
.nh-stat:hover .nh-stat__num { color: var(--nh-primary); }
.nh-stat__rule {
    display: block;
    height: 1px;
    width: 24px;
    margin-top: 16px;
    background: var(--nh-primary);
    transition: width 0.5s var(--nh-ease);
}
.nh-stat:hover .nh-stat__rule { width: 100%; }
.nh-stat__label {
    margin-top: 12px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #000000;
}

/* Clutch tile - the inverted sixth cell of the stats strip */
.nh-clutch {
    display: block;
    background: var(--nh-ink);
    color: var(--nh-ink-fg);
    transition: background-color 0.4s var(--nh-ease);
}
/* style.css:5155 has a global `a:hover { color: inherit }`. At (0,1,1) that
   outranks a single-class colour at (0,1,0), so on hover these links were
   falling back to the section's near-black text colour. Restating the colour
   on the :hover selector puts it at (0,2,0), which wins. */
.nh-clutch:hover {
    background: #15100d;
    color: var(--nh-ink-fg);
}
.nh-more:hover { color: var(--nh-primary); }
.nh-clutch .nh-stat__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 32px 16px;
    text-align: center;
}
.nh-clutch__logo {
    width: 100%;
    max-width: 118px;
    height: auto;
    color: var(--nh-ink-fg);
}
.nh-clutch__stars {
    width: 100%;
    max-width: 96px;
    height: auto;
    margin-top: 16px;
}
.nh-clutch__label {
    margin-top: 14px;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.06em;
    color: rgba(246, 245, 242, 0.7);
}
.nh-clutch__score {
    margin-top: 4px;
    font-family: var(--nh-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.nh-clutch__outof {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(246, 245, 242, 0.6);
}
.nh-clutch__cta {
    margin-top: 14px;
    font-family: var(--nh-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--nh-primary);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}
.nh-clutch:hover .nh-clutch__cta { color: var(--nh-ink-fg); }

/* =========================================================== TECHNOLOGY == */
.nh-tech .nh-ghost {
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    font-size: 22vw;
    white-space: normal;
}
.nh-tech__cols { display: grid; gap: 48px; margin-top: 64px; }
.nh-tech__head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.nh-tech__step {
    font-family: var(--nh-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--nh-primary);
}
.nh-tech__title { font-size: 18px; letter-spacing: -0.02em; }

.nh-chips { display: flex; flex-wrap: wrap; gap: 16px 12px; margin-top: 32px; }
.nh-chip {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    font-family: var(--nh-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(246, 245, 242, 0.85);
    transition: border-color 0.5s var(--nh-ease), color 0.5s var(--nh-ease),
                background-color 0.5s var(--nh-ease), opacity 0.5s var(--nh-ease);
}
.nh-chip:hover { border-color: var(--nh-primary); color: var(--nh-primary); }
.nh-chip.is-linked { border-color: var(--nh-primary); color: var(--nh-primary); }
.nh-chip.is-active {
    background: var(--nh-primary);
    border-color: var(--nh-primary);
    color: var(--nh-primary-fg);
}
.nh-chips.is-dimmed .nh-chip:not(.is-active):not(.is-linked) { opacity: 0.3; }

.nh-tech__note {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.nh-tech__note p {
    max-width: 48rem;
    font-family: var(--nh-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(246, 245, 242, 0.8);
}
.nh-tech__note p.is-swapping { animation: nh-fade-in 0.45s var(--nh-ease); }
.nh-tech__note em { font-style: normal; color: var(--nh-primary); }

@keyframes nh-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

/* ================================================================== CTA == */
.nh-cta .nh-wrap {
    display: flex;
    flex-direction: column;
    /* Without this the button stretches to the full row width: a column flex
       container defaults to align-items: stretch. The md rule below swaps this
       for flex-end once the band turns into a row. */
    align-items: flex-start;
    gap: 32px;
    padding-block: 62px;
}
.nh-cta__title { margin-top: 20px; max-width: 42rem; font-size: clamp(2rem, 6vw, 3.5rem); }

/* ========================================================== BREAKPOINTS == */
@media (min-width: 640px) {
    .nh-hero__title { font-size: 3.75rem; }
    .nh-rail__item { width: 60vw; }
}

@media (min-width: 768px) {
    .nh-wrap { padding-inline: 40px; }
    .nh-sec--pad { padding-block: 62px; }
    .nh-hero .nh-wrap { padding-block: 62px; }
    .nh-hero__title { font-size: 4.5rem; }
    .nh-services .nh-ghost { left: -40px; top: 40px; }
    .nh-work .nh-ghost { top: 64px; }
    .nh-head { grid-template-columns: 1fr auto; align-items: end; }
    .nh-head__note { text-align: right; }
    .nh-acc { margin-top: 88px; }
    .nh-list__btn { gap: 40px; }
    .nh-list__title { font-size: 24px; }
    .nh-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 112px; }
    .nh-stat__inner { padding: 40px 24px; }
    .nh-stat__num { font-size: clamp(40px, 7vw, 60px); }
    .nh-tech__cols { margin-top: 96px; }
    .nh-tech__note p { font-size: 20px; }
    .nh-cta .nh-wrap {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        padding-block: 62px;
    }
}

@media (min-width: 1024px) {
    .nh-hero__title { font-size: 5.5rem; }

    /* Panels take over from the accordion / rail */
    .nh-panels {
        display: flex;
        gap: 8px;
        height: 520px;
        margin-top: 96px;
    }
    .nh-work .nh-panels { gap: 12px; height: 620px; }
    .nh-acc,
    .nh-rail { display: none; }

    /* All six tiles on one row. clamp() keeps "1850+" inside the narrower cell:
       ~36px is the largest that fits at 1024px, 56px at the 1400px cap. */
    .nh-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .nh-stat__num { font-size: clamp(36px, 3.5vw, 56px); }

    .nh-why__grid { grid-template-columns: 1.05fr 0.95fr; gap: 80px; }
    .nh-why__media { display: block; }
    .nh-list__img { display: none; }
    .nh-tech__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
}

/* -------------------------------------------------- reduced motion ------- */
@media (prefers-reduced-motion: reduce) {
    .nhome *,
    .nhome *::before,
    .nhome *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .nh-reveal { opacity: 1; transform: none; }
}


    @media (max-width: 575px) {
        .nh-margin {
            margin-left: 15px;
        }
    }
