/* ==========================================================================
   NM Studio
   The look comes from the business card: white stock, charcoal Futura-style
   type, one blue rule, blue contour lines and outlined lettering.
   Blue is used for lines and outlines, not for filled surfaces.
   ========================================================================== */

:root {
  --paper:     #ffffff;
  --paper-alt: #f5f4f1;
  --ink:       #2a2a2a;
  --ink-soft:  #4d4d4d;
  --line:      #dddbd6;
  --blue:      #008dc6;   /* card blue: rules, outlines, large type */
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --blue-text: #0077a8;   /* darker step for small text (AA on white) */

  /* Card fonts. 'century-gothic' and 'futura-pt' are the Adobe Fonts names (set the kit ID
     in functions.php); the quoted names pick up locally installed copies; Outfit and Jost
     are the free look-alikes everyone else gets. */
  --font-head: 'century-gothic', 'Century Gothic', 'CenturyGothic', 'Outfit', 'Avenir Next', system-ui, sans-serif;
  --font:      'futura-pt', 'Futura PT', 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;

  --wrap:   1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --space:  clamp(64px, 9vw, 120px);
  --radius: 14px;         /* the rounded frame around the QR code */
  --ease:   cubic-bezier(.3, 0, .2, 1);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.2; letter-spacing: -.015em; }
h4 { font-size: 1.1rem; line-height: 1.25; letter-spacing: 0; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--blue); color: #fff; }

.nm-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; text-decoration: none;
}
.nm-skip:focus { top: 12px; color: #fff; }

/* ── Layout ───────────────────────────────────────────────────────────── */
.nm-container { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.nm-section { padding-block: var(--space); }
.nm-section--alt { background: var(--paper-alt); }
.nm-section--ink { background: #1d1d1d; color: #fff; }
.nm-section--ink .nm-lead, .nm-section--ink p, .nm-section--ink .nm-head p { color: rgba(255,255,255,.78); }
.nm-section--ink h1, .nm-section--ink h2 { color: #fff; }
.nm-section--ink a:not(.nm-btn) { color: #fff; }
.nm-section--tight { padding-top: 0; }

.nm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.nm-split--top { align-items: start; }
.nm-split--wide-right { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.nm-split--wide-left  { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }

.nm-grid { display: grid; gap: clamp(28px, 3.4vw, 44px) clamp(20px, 2.6vw, 36px); }
.nm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.nm-stack > * + * { margin-top: var(--space); }

@media (max-width: 900px) {
  .nm-split, .nm-split--wide-right, .nm-split--wide-left { grid-template-columns: minmax(0, 1fr); }
  .nm-grid--3, .nm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nm-split--media-first > :last-child { order: -1; }
}
@media (max-width: 600px) {
  .nm-grid--2, .nm-grid--3 { grid-template-columns: minmax(0, 1fr); }
}

/* ── Type helpers ─────────────────────────────────────────────────────── */
.nm-lead {
  max-width: 34em;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* The blue rule from the front of the card. */
.nm-rule, .nm-head h2::after, .nm-pagehead h1::after {
  content: '';
  display: block;
  width: clamp(72px, 9vw, 120px);
  height: 5px;
  background: var(--blue);
}
.nm-rule { margin-block: clamp(22px, 3vw, 34px); }
.nm-head h2::after, .nm-pagehead h1::after { margin-top: .42em; }

/* The outlined lettering from the back of the card: white fill, hairline blue stroke. */
.nm-outline {
  color: var(--paper);
  -webkit-text-stroke: max(1px, .012em) var(--blue);
}
@supports not (-webkit-text-stroke: 1px #000) { .nm-outline { color: var(--blue); } }

.nm-head { max-width: 46em; margin-bottom: clamp(32px, 4.5vw, 56px); }
.nm-head h2 { margin-bottom: .55em; }
.nm-head p { max-width: 36em; color: var(--ink); font-size: 1.2rem; font-weight: 300; }
.nm-split .nm-head { margin-bottom: 1.5em; }
.nm-split .nm-head:last-child { margin-bottom: 0; }

.nm-kicker {
  display: block; margin-bottom: .8em;
  font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-text);
}

.nm-note { font-size: 1rem; color: var(--ink-soft); }

/* ── Buttons & links ──────────────────────────────────────────────────── */
/* A circle of colour floods the button from the point where the pointer entered
   (main.js sets --fx / --fy / --fd). Solid buttons flood white, outlined ones flood blue. */
.nm-btn, .nm-nav__list > .nm-nav-cta > a {
  --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-fill: var(--blue-text); --btn-fg-hover: #fff;
  --btn-line: var(--blue-text);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  padding: .88em 1.5em;
  border: 0; border-radius: 6px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-size: 1.05rem; font-weight: 500; line-height: 1.2; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--btn-line), 0 0 0 0 rgba(0,90,126,0);
  transition: color .45s var(--ease-out), translate .45s var(--ease-out), box-shadow .45s var(--ease-out), scale .2s var(--ease-out);
}
.nm-btn::before, .nm-nav__list > .nm-nav-cta > a::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: var(--fx, 50%); top: var(--fy, 50%);
  width: var(--fd, 260%); aspect-ratio: 1; border-radius: 50%;
  background: var(--btn-fill);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .75s cubic-bezier(.33, 1, .68, 1);
}
.nm-btn::after, .nm-nav__list > .nm-nav-cta > a::after {
  content: '\2192'; display: inline-block; width: 1.05em; overflow: hidden; white-space: nowrap;
  text-shadow: -1.6em 0 0 currentColor; text-indent: 0;
  transition: text-indent .5s var(--ease-out);
}
@media (hover: hover) {
  .nm-btn:hover, .nm-nav__list > .nm-nav-cta > a:hover {
    color: var(--btn-fg-hover); translate: 0 -2px;
    box-shadow: inset 0 0 0 2px var(--btn-line), 0 14px 26px -14px rgba(0,90,126,.65);
  }
  .nm-btn:hover::before, .nm-nav__list > .nm-nav-cta > a:hover::before { transform: translate(-50%, -50%) scale(1); }
  .nm-btn:hover::after, .nm-nav__list > .nm-nav-cta > a:hover::after { text-indent: 1.6em; }
}
.nm-btn:focus-visible, .nm-nav__list > .nm-nav-cta > a:focus-visible { color: var(--btn-fg-hover); }
.nm-btn:focus-visible::before, .nm-nav__list > .nm-nav-cta > a:focus-visible::before { left: 50%; top: 50%; transform: translate(-50%, -50%) scale(1); }
.nm-btn:active, .nm-nav__list > .nm-nav-cta > a:active {
  translate: 0 0; scale: .97;
  box-shadow: inset 0 0 0 2px var(--btn-line), 0 6px 12px -10px rgba(0,90,126,.6);
  transition-duration: .15s;
}

.nm-btn--primary, .nm-nav__list > .nm-nav-cta > a {
  --btn-bg: var(--blue-text); --btn-fg: #fff; --btn-fill: var(--paper); --btn-fg-hover: var(--blue-text);
}
.nm-section--ink .nm-btn { --btn-bg: #fff; --btn-fg: var(--ink); --btn-line: #fff; --btn-fill: var(--blue-text); --btn-fg-hover: #fff; }

.nm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: clamp(26px, 3.4vw, 40px); }
.nm-actions--center { justify-content: center; }

.nm-more {
  display: inline-flex; align-items: baseline; gap: .4em;
  color: var(--ink); font-weight: 500; text-decoration: none;
  background: linear-gradient(var(--blue), var(--blue)) left bottom / 100% 2px no-repeat;
  padding-bottom: 4px;
  transition: gap .25s var(--ease), background-size .25s var(--ease), color .25s var(--ease);
}
.nm-more::after { content: '\2192'; }
.nm-more:hover { gap: .7em; color: var(--blue-text); background-size: 100% 4px; }
.nm-more[target="_blank"]::after, .nm-work[target="_blank"] .nm-more::after { content: '\2197'; }

/* ── Header ───────────────────────────────────────────────────────────── */
.nm-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nm-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; }
.nm-logo { display: block; flex-shrink: 0; }
.nm-logo img { display: block; width: auto; height: 78px; }

.nm-nav__list, .nm-nav__list ul { list-style: none; margin: 0; padding: 0; }
.nm-nav__list { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nm-nav__list a { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 500; text-decoration: none; }
.nm-nav__list > li > a { padding-block: 8px; border-bottom: 2px solid transparent; }
.nm-nav__list > li > a:hover,
.nm-nav__list > .current-menu-item > a,
.nm-nav__list > .current-menu-ancestor > a,
.nm-nav__list > .current-menu-parent > a { border-bottom-color: var(--blue); }

.nm-nav__list .menu-item-has-children { position: relative; }
.nm-nav__list .menu-item-has-children > a::after {
  content: ''; display: inline-block; width: .42em; height: .42em; margin-left: .5em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-.22em) rotate(45deg);
}
.nm-nav__list .sub-menu {
  position: absolute; top: calc(100% + 18px); left: -20px; min-width: 250px;
  padding: 10px 0; background: var(--paper);
  border: 1px solid var(--line); border-top: 3px solid var(--blue);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nm-nav__list .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.nm-nav__list li:hover > .sub-menu,
.nm-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nm-nav__list .sub-menu a { padding: 9px 20px; font-weight: 400; }
.nm-nav__list .sub-menu a:hover, .nm-nav__list .sub-menu .current-menu-item > a { color: var(--blue-text); }

.nm-nav__list > .nm-nav-cta > a { padding: .6em 1.1em; font-size: 1rem; }

.nm-nav-toggle { display: none; }

@media (max-width: 860px) {
  .nm-header__inner { min-height: 62px; }
  .nm-logo img { height: 58px; }
  .nm-nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 4px; border: 0; background: none; color: var(--ink);
    font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer;
  }
  .nm-nav-toggle__bars { position: relative; width: 22px; height: 2px; background: currentColor; transition: background .2s; }
  .nm-nav-toggle__bars::before, .nm-nav-toggle__bars::after {
    content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
    transition: transform .2s var(--ease);
  }
  .nm-nav-toggle__bars::before { transform: translateY(-7px); }
  .nm-nav-toggle__bars::after  { transform: translateY(7px); }
  .nm-nav-toggle[aria-expanded="true"] .nm-nav-toggle__bars { background: transparent; }
  .nm-nav-toggle[aria-expanded="true"] .nm-nav-toggle__bars::before { transform: rotate(45deg); }
  .nm-nav-toggle[aria-expanded="true"] .nm-nav-toggle__bars::after  { transform: rotate(-45deg); }

  .nm-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 62px); overflow-y: auto;
    padding: 8px var(--gutter) 28px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0,0,0,.3);
  }
  .nm-nav.is-open { display: block; }
  .nm-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nm-nav__list > li { border-bottom: 1px solid var(--line); }
  .nm-nav__list > li > a { padding-block: 14px; font-size: 1.25rem; border-bottom: 0; }
  .nm-nav__list .menu-item-has-children > a::after { display: none; }
  .nm-nav__list .sub-menu::before { display: none; }
  .nm-nav__list .sub-menu {
    position: static; min-width: 0; padding: 0 0 12px 14px; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nm-nav__list .sub-menu a { padding: 7px 0; color: var(--ink-soft); }
  .nm-nav__list > .nm-nav-cta { border-bottom: 0; margin-top: 20px; }
  .nm-nav__list > .nm-nav-cta > a { display: flex; padding-block: .8em; font-size: 1.15rem; }
}

/* ── Contour pattern (back of the card) ───────────────────────────────── */
/* The fade towards the text is a plain gradient laid over the pattern. A CSS mask on
   the animated layer forced a full re-composite on every frame. */
[data-nm-pattern] { position: relative; overflow: hidden; isolation: isolate; }
[data-nm-pattern] > .nm-container { position: relative; z-index: 2; }
[data-nm-pattern]::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, var(--paper) 30%, rgba(255,255,255,0) 78%);
}
.nm-pattern { position: absolute; inset: -4% -4% -4% 30%; z-index: 0; pointer-events: none; }
.nm-pattern svg { display: block; width: 100%; height: 100%; overflow: visible; opacity: .5; will-change: filter; }
.nm-pattern--static { background: url('../img/pattern.svg') center / cover no-repeat; opacity: .5; }
[data-nm-pattern="soft"] .nm-pattern { opacity: .3; }
@media (max-width: 760px) {
  .nm-pattern { inset: 0; }
  .nm-pattern--static, [data-nm-pattern="soft"] .nm-pattern { opacity: .2; }
  [data-nm-pattern]::after { background: linear-gradient(to bottom, var(--paper) 15%, rgba(255,255,255,0) 100%); }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.nm-hero { padding-block: clamp(64px, 11vw, 150px) clamp(56px, 8vw, 110px); border-bottom: 1px solid var(--line); }
.nm-hero h1 { max-width: 13em; margin: 0; font-size: clamp(2.2rem, 5.6vw, 4.6rem); line-height: 1.06; }
.nm-hero h1 span { display: block; }
.nm-hero h1 .nm-outline { display: block; }
.nm-hero .nm-lead { max-width: 31em; color: var(--ink); }
.nm-hero__phone { margin: 1em 0 0; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 300; line-height: 1.7; }
.nm-hero__phone a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.nm-hero__phone a:hover { border-bottom-color: var(--blue); }
/* Phone outline: 1px blue line with white fill, the same weight as the outlined headline. */
.nm-hero__phone::before { content: ''; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .5em; vertical-align: -.16em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff' stroke='%23008dc6' stroke-width='1' stroke-linejoin='round'%3E%3Cpath vector-effect='non-scaling-stroke' d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat; }
.nm-hero__clients { margin-top: clamp(40px, 6vw, 72px); max-width: 52em; font-size: 1rem; color: var(--ink-soft); }
.nm-hero__clients strong { font-weight: 500; color: var(--ink); }

/* Inner page headers */
.nm-pagehead { padding-block: clamp(56px, 8vw, 104px) clamp(44px, 6vw, 76px); border-bottom: 1px solid var(--line); }
.nm-pagehead h1 { max-width: 15em; margin-bottom: .5em; font-size: clamp(2.2rem, 5vw, 3.9rem); }
.nm-pagehead .nm-lead { color: var(--ink); }

/* ── Media frames ─────────────────────────────────────────────────────── */
.nm-media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-alt);
  border: 1px solid var(--line); border-radius: 4px;
}
.nm-media > img, .nm-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nm-media--wide   { aspect-ratio: 16 / 10; }
.nm-media--video  { aspect-ratio: 16 / 9; }
.nm-media--square { aspect-ratio: 1 / 1; }
.nm-media--card   { aspect-ratio: 16 / 10; border-radius: 10px; box-shadow: 0 22px 44px -26px rgba(0,0,0,.4); }
.nm-media--dark   { background: #161616; border-color: #161616; }
.nm-media--contain > img { object-fit: contain; padding: 8%; }
.nm-media__logo { position: absolute; inset: 0; margin: auto; width: auto !important; height: auto !important; max-width: 70%; max-height: 70%; object-fit: contain !important; pointer-events: none; }

/* ── Work cards ───────────────────────────────────────────────────────── */
.nm-work { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.nm-work .nm-media { margin-bottom: 18px; }
.nm-work .nm-media > img, .nm-work .nm-media > video { transition: transform .6s var(--ease); }
a.nm-work:hover .nm-media > img:not(.nm-media__logo), a.nm-work:hover .nm-media > video,
a.nm-media:hover > img:not(.nm-media__logo), a.nm-media:hover > video { transform: scale(1.035); }
.nm-work__cat { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--blue-text); }
.nm-work h3 { margin-bottom: 8px; }
.nm-work p { font-size: 1.05rem; color: var(--ink-soft); }
.nm-work p + p { margin-top: -.5em; }
a.nm-work:hover h3 { color: var(--blue-text); }
.nm-work__result { color: var(--ink) !important; }

/* ── Rows (service lists that link somewhere) ─────────────────────────── */
.nm-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.nm-rows > li { border-bottom: 1px solid var(--line); }
.nm-rows a, .nm-rows > li > span {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 15px 2px; color: var(--ink); font-weight: 500; text-decoration: none;
  transition: padding .2s var(--ease), color .2s var(--ease);
}
.nm-rows a::after { content: '\2192'; color: var(--blue); flex-shrink: 0; }
.nm-rows a:hover { padding-left: 10px; color: var(--blue-text); }
.nm-rows small { display: block; margin-top: 2px; font-size: 1rem; font-weight: 300; color: var(--ink-soft); }

/* Service blocks on the Services page */
.nm-service { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr) 8em; gap: 12px clamp(20px, 4vw, 56px); align-items: baseline; padding-block: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.nm-service:first-child { border-top: 1px solid var(--line); }
.nm-service h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.nm-service p { color: var(--ink-soft); }
.nm-service .nm-more { justify-self: end; }
@media (max-width: 820px) { .nm-service .nm-more { justify-self: start; } }
@media (max-width: 820px) { .nm-service { grid-template-columns: minmax(0, 1fr); } }

/* Plain bullet lists */
.nm-list { list-style: none; margin: 1.2em 0 0; padding: 0; }
.nm-list li { position: relative; padding: 7px 0 7px 26px; }
.nm-list li::before { content: ''; position: absolute; left: 0; top: 1.1em; width: 14px; height: 2px; background: var(--blue); }

ol.nm-list { counter-reset: nm; }
ol.nm-list li { counter-increment: nm; padding-left: 40px; }
ol.nm-list li::before { content: counter(nm); top: 7px; width: auto; height: auto; background: none; font-weight: 700; color: var(--blue-text); }

/* ── Stats ────────────────────────────────────────────────────────────── */
.nm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px clamp(20px, 3vw, 44px); }
.nm-stat__num { display: block; margin-bottom: 14px; font-family: var(--font-head); font-size: clamp(2.8rem, 5.4vw, 4.4rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.nm-stat__unit { margin-left: .06em; font-family: var(--font); font-size: .6em; font-weight: 500; letter-spacing: 0; }
.nm-stat__label { display: block; max-width: 15em; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); line-height: 1.4; }
@media (max-width: 900px) { .nm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Points / steps ───────────────────────────────────────────────────── */
.nm-point { padding-top: 18px; border-top: 1px solid var(--line); }
.nm-point h3, .nm-point h4 { margin-bottom: 6px; font-size: 1.2rem; }
.nm-point p { color: var(--ink-soft); font-size: 1.05rem; }

.nm-steps { counter-reset: step; }
.nm-steps .nm-point { counter-increment: step; }
.nm-steps .nm-point::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 10px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700; letter-spacing: .04em; color: var(--blue-text);
}

/* ── Panels (the rounded blue outline around the QR code) ─────────────── */
.nm-panel { padding: clamp(24px, 3.4vw, 40px); border: 2px solid var(--blue); border-radius: var(--radius); background: var(--paper); }
.nm-panel--plain { border: 1px solid var(--line); }
.nm-panel h3 { margin-bottom: .6em; }
.nm-panel > .nm-list:first-of-type { margin-top: 0; }

.nm-area { text-align: center; padding: clamp(40px, 6vw, 80px) clamp(22px, 5vw, 64px); }
.nm-area h2 { margin-bottom: .5em; }
.nm-area p { max-width: 36em; margin-inline: auto; color: var(--ink-soft); }
.nm-area .nm-actions { justify-content: center; }

/* Pricing-style option cards */
.nm-tier { display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.nm-tier--popular { border: 2px solid var(--blue); }
.nm-tier h3 { font-size: 1.5rem; }
.nm-tier > p { color: var(--ink-soft); font-size: 1.05rem; }
.nm-tier .nm-list { margin-top: .4em; font-size: 1.05rem; }
.nm-badge { align-self: flex-start; margin-bottom: 14px; padding: 3px 10px; border: 1.5px solid var(--blue); border-radius: 4px; font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-text); }

/* ── Video reel (click to load YouTube) ───────────────────────────────── */
.nm-reel { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; cursor: pointer; }
.nm-reel img, .nm-reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.nm-reel__play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px;
  display: grid; place-items: center; padding: 0;
  border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nm-reel__play::before { content: ''; margin-left: 6px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent currentColor; }
.nm-reel:hover .nm-reel__play { background: var(--blue); transform: scale(1.06); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.nm-faq { max-width: 820px; border-top: 1px solid var(--line); }
.nm-faq details { border-bottom: 1px solid var(--line); }
.nm-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 2px; font-size: 1.25rem; font-weight: 500; line-height: 1.3; cursor: pointer; list-style: none;
}
.nm-faq summary::-webkit-details-marker { display: none; }
.nm-faq summary::after {
  content: ''; flex-shrink: 0; width: 16px; height: 16px;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 2px 100% no-repeat;
  transition: transform .25s var(--ease);
}
.nm-faq details[open] summary::after { transform: rotate(45deg); }
.nm-faq summary:hover { color: var(--blue-text); }
.nm-faq details > p { max-width: 40em; padding: 0 2px 24px; color: var(--ink-soft); }

/* ── Contact lines (front of the card) ────────────────────────────────── */
.nm-lines { list-style: none; margin: 1.6em 0 0; padding: 0; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 300; line-height: 1.7; }
.nm-lines a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.nm-lines a:hover { border-bottom-color: var(--blue); }
.nm-lines small { display: block; font-size: 1rem; color: var(--ink-soft); }

/* ── Form ─────────────────────────────────────────────────────────────── */
.nm-form { display: block; }
.nm-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 560px) { .nm-form__row { grid-template-columns: minmax(0, 1fr); } }
.nm-field { margin: 0 0 20px; }
.nm-field label { display: block; margin-bottom: 6px; font-size: 1rem; font-weight: 500; }
.nm-field__opt { font-weight: 300; color: var(--ink-soft); }
.nm-field input, .nm-field select, .nm-field textarea {
  display: block; width: 100%; padding: 13px 14px;
  border: 1.5px solid #bdbab3; border-radius: 0; background: #fff; color: var(--ink);
  font: inherit; font-size: 1.05rem; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.nm-field select { appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 21px) 55%, calc(100% - 15px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.nm-field textarea { min-height: 150px; resize: vertical; }
.nm-field input:focus, .nm-field select:focus, .nm-field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,141,198,.2); }
.nm-field ::placeholder { color: #8a8780; }
.nm-field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nm-form__note { display: inline-block; margin: 0 0 0 16px; font-size: 1rem; color: var(--ink-soft); }
.nm-form__status { display: none; margin: 18px 0 0; padding: 12px 16px; border-left: 4px solid; border-radius: 2px; font-size: 1.05rem; }
.nm-form__status.is-ok    { display: block; background: #eef7ee; border-color: #2c7a3d; color: #1e5a2b; }
.nm-form__status.is-error { display: block; background: #fbeeec; border-color: #b3261e; color: #8c1d18; }
.nm-form.is-sending .nm-btn { opacity: .6; pointer-events: none; }

/* ── About facts ──────────────────────────────────────────────────────── */
.nm-facts { margin: 0; }
.nm-facts div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.nm-facts div:first-child { padding-top: 0; }
.nm-facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.nm-facts dt { font-size: .82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.nm-facts dd { margin: 2px 0 0; font-weight: 500; }

.nm-prose { max-width: 44em; }
.nm-prose h2 { margin-top: 1.6em; }
.nm-prose h2:first-child { margin-top: 0; }
.nm-prose h3 { margin-top: 2em; }
.nm-prose p { color: var(--ink-soft); }
.nm-prose .nm-lead { color: var(--ink); }

.nm-aside { margin-top: 1.6em; padding: 4px 0 4px 20px; border-left: 4px solid var(--blue); color: var(--ink); font-size: 1.1rem; }

.nm-divider { height: 0; margin: var(--space) 0; border: 0; border-top: 1px solid var(--line); }

/* ── Closing call to action ───────────────────────────────────────────── */
.nm-cta { padding-block: var(--space); border-top: 1px solid var(--line); }
.nm-cta h2 { margin-bottom: .35em; font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -.03em; }
.nm-cta .nm-lead { color: var(--ink); }

/* ── Footer (laid out like the front of the card) ─────────────────────── */
.nm-footer { padding-block: clamp(48px, 7vw, 88px) 32px; background: var(--paper-alt); border-top: 1px solid var(--line); }
.nm-footer__card { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px clamp(32px, 8vw, 120px); }
.nm-footer__name { margin: 0; font-family: var(--font-head); font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.nm-footer__role { margin: 10px 0 0; font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 300; }
.nm-footer__role::after { content: ''; display: block; width: 100%; max-width: 250px; height: 5px; margin-top: 18px; background: var(--blue); }
.nm-footer__lines { list-style: none; margin: 20px 0 0; padding: 0; font-size: 1.2rem; font-weight: 300; line-height: 1.75; }
.nm-footer a { color: var(--ink); text-decoration: none; }
.nm-footer a:hover { color: var(--blue-text); text-decoration: underline; }
.nm-footer__nav { display: flex; flex-wrap: wrap; gap: 24px clamp(32px, 6vw, 80px); }
.nm-footer__nav ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.nm-footer__legal { margin: clamp(40px, 6vw, 72px) 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }

/* ── Mobile contact bar ───────────────────────────────────────────────── */
.nm-mobile-bar { display: none; }
@media (max-width: 760px) {
  .nm-mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .nm-mobile-bar.is-visible { transform: none; }
  .no-js .nm-mobile-bar { transform: none; }
  .nm-mobile-bar a { padding: 11px 6px; border: 1.5px solid var(--blue); border-radius: 6px; color: var(--ink); font-size: 1rem; font-weight: 500; text-align: center; text-decoration: none; }
  .nm-mobile-bar a.is-primary { border-color: var(--blue-text); background: var(--blue-text); color: #fff; }
  body { padding-bottom: 70px; }
  body.page-id-18 { padding-bottom: 0; }
  .nm-form__note { display: block; margin: 14px 0 0; }
}

/* ── Prices ───────────────────────────────────────────────────────────── */
.nm-price { margin: 0 0 .7em; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink) !important; }
.nm-price small { font-family: var(--font); font-size: .95rem; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); }
.nm-pricelist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.nm-pricelist li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.nm-pricelist a { color: var(--ink); font-weight: 500; text-decoration: none; }
.nm-pricelist a:hover { color: var(--blue-text); }
.nm-pricelist span:last-child { flex-shrink: 0; font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; }

/* ── Business card coverflow ──────────────────────────────────────────── */
.nm-coverflow { overflow: hidden; padding-block: 48px 96px; margin-block: -20px -52px; user-select: none; -webkit-user-select: none; cursor: grab; }
.nm-coverflow:active { cursor: grabbing; }
.nm-coverflow__track { display: flex; align-items: center; justify-content: center; perspective: 1400px; }
.nm-coverflow__item {
  position: relative; flex: 0 0 auto; overflow: hidden;
  width: clamp(320px, 33vw, 460px); aspect-ratio: 16 / 10; margin-inline: -26px;
  border-radius: 10px; background: #fff;
  box-shadow: 0 10px 34px rgba(0,0,0,.18);
  transition: transform .45s var(--ease), opacity .45s var(--ease), box-shadow .45s var(--ease);
}
.nm-coverflow__item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.nm-coverflow__item--nfc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; background: var(--ink); color: rgba(255,255,255,.78); text-align: center; font-size: 1rem; line-height: 1.5; }
.nm-coverflow__item--nfc strong { font-family: var(--font-head); font-size: 1.3rem; color: #fff; }
.nm-coverflow__item--nfc strong::after { content: ''; display: block; width: 56px; height: 4px; margin: 10px auto 0; background: var(--blue); }
.nm-coverflow__item[data-pos="0"]  { transform: none; opacity: 1; z-index: 5; box-shadow: 0 16px 48px rgba(0,0,0,.24); }
.nm-coverflow__item[data-pos="-1"] { transform: translateX(-38px) rotateY(40deg) scale(.82); opacity: .8; z-index: 4; }
.nm-coverflow__item[data-pos="1"]  { transform: translateX(38px) rotateY(-40deg) scale(.82); opacity: .8; z-index: 4; }
.nm-coverflow__item[data-pos="-2"] { transform: translateX(-66px) rotateY(55deg) scale(.66); opacity: .5; z-index: 3; }
.nm-coverflow__item[data-pos="2"]  { transform: translateX(66px) rotateY(-55deg) scale(.66); opacity: .5; z-index: 3; }
@media (max-width: 768px) {
  .nm-coverflow { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: default; padding-block: 16px 36px; margin-block: 0; }
  .nm-coverflow::-webkit-scrollbar { display: none; }
  .nm-coverflow__track { justify-content: flex-start; gap: 16px; width: max-content; perspective: none; padding-inline: calc(50vw - 140px); }
  .nm-coverflow__item, .nm-coverflow__item[data-pos] { width: 280px; margin-inline: 0; transform: none; opacity: 1; scroll-snap-align: center; box-shadow: 0 6px 22px rgba(0,0,0,.16); }
}

/* ── Rotating website previews ────────────────────────────────────────── */
.nm-rotator > video { opacity: 0; transition: opacity .9s var(--ease); }
.nm-rotator > video.is-active { opacity: 1; }
.nm-rotator__cap { margin-top: 14px; font-size: 1rem; color: var(--ink-soft); }

/* ── Client logo carousel ─────────────────────────────────────────────── */
/* main.js moves the track: it drifts on its own, follows the pointer while dragged and
   coasts back to its normal speed after release. */
.nm-clients { padding-block: 26px 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.nm-clients__label { margin: 0 0 14px; font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.nm-marquee { position: relative; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.nm-marquee.is-dragging { cursor: grabbing; }
.nm-marquee::before, .nm-marquee::after { content: ''; position: absolute; top: 0; bottom: 0; z-index: 1; width: 80px; pointer-events: none; }
.nm-marquee::before { left: 0; background: linear-gradient(to right, var(--paper), rgba(255,255,255,0)); }
.nm-marquee::after { right: 0; background: linear-gradient(to left, var(--paper), rgba(255,255,255,0)); }
.nm-marquee__track { display: flex; width: max-content; will-change: transform; }
.nm-marquee__set { display: flex; align-items: center; flex-shrink: 0; margin: 0; padding: 0; list-style: none; }
.nm-marquee__set li { display: flex; align-items: center; justify-content: center; height: 92px; padding-inline: clamp(22px, 2.8vw, 40px); font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; color: var(--ink-soft); }
.nm-marquee__set img { display: block; width: auto; height: var(--h, 56px); max-width: none; pointer-events: none; -webkit-user-drag: none; }
.no-js .nm-marquee { overflow-x: auto; }
@media (max-width: 760px) {
  .nm-marquee__set li { height: 72px; padding-inline: 18px; font-size: 1rem; }
  .nm-marquee__set img { height: calc(var(--h, 56px) * .76); }
}

/* ── Back to top ──────────────────────────────────────────────────────── */
.nm-top {
  position: fixed; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); z-index: 45;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1.5px solid var(--blue); border-radius: 6px; background: var(--paper); color: var(--blue-text); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background .25s var(--ease), color .25s var(--ease);
}
.nm-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.nm-top::before { content: ''; width: 12px; height: 12px; margin-top: 6px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease); }
.nm-top:hover { background: var(--blue-text); border-color: var(--blue-text); color: #fff; }
.nm-top:hover::before { transform: translateY(-3px) rotate(45deg); }
@media (max-width: 760px) { .nm-top { bottom: 84px; width: 44px; height: 44px; } }

/* ── Reveal on scroll (only when JS is running) ───────────────────────── */
.js .nm-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .nm-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .nm-reveal { opacity: 1; transform: none; }
}

@media print {
  .nm-header, .nm-mobile-bar, .nm-pattern, .nm-form, .nm-top { display: none !important; }
  .js .nm-reveal { opacity: 1; transform: none; }
}
