/* ============================================================
   NORRKUST — "MODERN" LAYOUT (jämförelseversion av startsidan)
   Fristående stilmall, delar inga klasser med style.css.
   ============================================================ */

:root{
  --black:      #060606;
  --ink:        #0E0E0E;
  --ink-soft:   #58585a;
  --off-white:  #F2F1ED;
  --white:      #FFFFFF;
  --gray:       #9A9A9A;
  --gray-light: #C7C7C7;
  --border:     rgba(14,14,14,0.12);
  --border-dark:rgba(255,255,255,0.12);

  --font-serif: 'Fraunces', serif;
  --font-sans:  'Inter', sans-serif;

  --header-h: 76px;
  --container: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }
body{
  font-family:var(--font-sans);
  background:var(--white);
  color:var(--ink);
  line-height:1.6;
  overflow-x:hidden;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }

.nm-container{ width:min(100% - 48px, var(--container)); margin-inline:auto; }
.nm-container-narrow{ width:min(100% - 48px, 760px); margin-inline:auto; }

.nm-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:0.68rem; font-weight:600; letter-spacing:0.16em;
  text-transform:uppercase; color:var(--gray);
}

/* === HEADER =============================================== */
.nm-header{
  position:sticky; top:0; z-index:500;
  background:rgba(255,255,255,0.86);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  border-bottom:1px solid var(--border);
}
.nm-header-inner{
  width:min(100% - 48px, var(--container)); margin-inline:auto;
  height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  transition:height .25s var(--ease);
}
.nm-logo{ display:inline-flex; align-items:center; flex-shrink:0; }
.nm-logo img{ height:46px; width:124px; filter:none; transition:height .25s var(--ease), width .25s var(--ease); }
.nm-header--compact .nm-header-inner{ height:56px; }
.nm-header--compact .nm-logo img{ height:32px; width:86px; }
.nm-nav{
  display:flex; align-items:center; gap:4px;
  margin-inline:auto;
}
.nm-nav a{
  font-size:0.86rem; font-weight:500; color:var(--ink-soft);
  padding:8px 16px; transition:color .2s;
}
.nm-nav a:hover{ color:var(--ink); }
.nm-nav-cta{
  background:var(--ink); border-radius:999px;
  padding:9px 18px !important; margin-left:8px; font-weight:600 !important;
}
.nm-nav-cta,
.nm-nav-cta:hover{ color:var(--white) !important; }

.nm-nav-dropdown{ position:relative; display:flex; align-items:center; }
.nm-nav-dropdown summary{ list-style:none; }
.nm-nav-dropdown summary::-webkit-details-marker{ display:none; }
.nm-nav-dropdown-toggle{
  display:flex; align-items:center; gap:7px; cursor:pointer;
  font-size:0.86rem; font-weight:500; color:var(--ink-soft);
  padding:8px 16px; transition:color .2s;
}
.nm-nav-dropdown-toggle::after{
  content:''; width:6px; height:6px;
  border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor;
  transform:rotate(45deg) translateY(-2px); transition:transform .25s var(--ease);
}
.nm-nav-dropdown:hover .nm-nav-dropdown-toggle,
.nm-nav-dropdown[open] .nm-nav-dropdown-toggle{ color:var(--ink); }
.nm-nav-dropdown[open] .nm-nav-dropdown-toggle::after{ transform:rotate(-135deg) translateY(2px); }
.nm-nav-dropdown-menu{
  position:absolute; top:calc(100% + 12px); left:8px;
  min-width:220px; padding:8px; display:grid; gap:2px;
  background:var(--white); border:1px solid var(--border);
  box-shadow:0 18px 40px rgba(0,0,0,0.10);
}
.nm-nav-dropdown-menu a{
  display:block; padding:10px 12px; font-size:0.84rem; font-weight:500;
  color:var(--ink-soft); transition:background .2s, color .2s;
}
.nm-nav-dropdown-menu a:hover{ background:var(--off-white); color:var(--ink); }

.nm-header-actions{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.nm-switch-link{
  font-size:0.78rem; font-weight:600; color:var(--ink-soft);
  border-bottom:1px solid var(--border); padding-bottom:2px;
  white-space:nowrap; transition:color .2s, border-color .2s;
}
.nm-switch-link:hover{ color:var(--ink); border-color:var(--ink); }
.nm-menu-toggle{
  display:none; width:38px; height:38px; flex-direction:column; align-items:center;
  justify-content:center; gap:5px; background:none; border:none; cursor:pointer;
}
.nm-menu-toggle span{ width:19px; height:1px; background:var(--ink); display:block; transition:transform .3s var(--ease), opacity .2s; }
.nm-menu-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.nm-menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nm-menu-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

/* === BUTTONS ================================================ */
.nm-btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-sans); font-size:0.84rem; font-weight:600;
  padding:14px 28px; border-radius:999px;
  transition:background .2s, color .2s, border-color .2s, transform .3s var(--ease);
  white-space:nowrap;
}
.nm-btn:hover{ transform:translateY(-1px); }
.nm-btn-sm{ padding:10px 20px; font-size:0.78rem; }
.nm-btn-primary{ background:var(--ink); color:var(--white); }
.nm-btn-primary:hover{ background:#000; }
.nm-btn-white{ background:var(--white); color:var(--ink); }
.nm-btn-white:hover{ background:var(--off-white); }
.nm-btn-outline{ background:transparent; color:var(--white); border:1px solid rgba(255,255,255,0.35); }
.nm-btn-outline:hover{ border-color:#fff; }
.nm-btn-dark-outline{ background:transparent; color:var(--ink); border:1px solid var(--border); }
.nm-btn-dark-outline:hover{ border-color:var(--ink); }

/* === HERO ==================================================== */
.nm-hero{
  position:relative; overflow:hidden;
  padding:clamp(64px,10vw,120px) 0 clamp(56px,8vw,92px);
  background:linear-gradient(155deg, #000 0%, #171717 46%, #3a3a3a 100%);
}
.nm-hero-bg{
  position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse 90% 60% at 88% 0%, rgba(255,255,255,0.10) 0%, transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 34px);
}
.nm-hero-inner{
  position:relative;
}
.nm-hero .nm-eyebrow{ color:var(--gray-light); margin-bottom:22px; }
.nm-hero-title{
  font-family:var(--font-serif); font-weight:600;
  font-size:clamp(2.4rem, 5.4vw, 4.6rem);
  line-height:1.08; letter-spacing:-0.01em;
  color:var(--white); max-width:15em; margin-bottom:22px;
}
.nm-hero-sub{
  font-size:1.02rem; line-height:1.7; color:rgba(255,255,255,0.62);
  max-width:38em; margin-bottom:34px;
}
.nm-hero-actions{ display:flex; flex-wrap:wrap; gap:14px; }
.nm-hero-actions + .nm-hero-sub{ margin-top:26px; }

.nm-hero-video{
  position:absolute; inset:0; z-index:0;
  width:100%; height:100%; object-fit:cover;
  opacity:0.4;
}
.nm-hero-video-overlay{
  position:absolute; inset:0; z-index:0;
  background:linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 60%, #000 100%);
}

.nm-hero-stats{
  position:relative; display:flex; flex-wrap:wrap;
  margin-top:clamp(48px,7vw,72px);
  border-top:1px solid var(--border-dark);
}
.nm-hero-stat{
  flex:1 1 auto; min-width:140px;
  padding:22px clamp(16px,3vw,32px) 0;
  border-right:1px solid var(--border-dark);
}
.nm-hero-stat:last-child{ border-right:none; }
.nm-hero-stat-val{
  font-family:var(--font-serif); font-weight:600; color:var(--white);
  font-size:clamp(1.5rem,2.6vw,2.1rem); margin-bottom:4px;
}
.nm-hero-stat-lbl{ font-size:0.72rem; color:rgba(255,255,255,0.45); }

/* Scrollberättelsen hör endast till startsidan. */
.nm-home .nm-hero,
.nm-heights .nm-hero{
  min-height:180svh;
  padding:0;
  overflow:clip;
}
.nm-home .nm-header-inner,
.nm-heights .nm-header-inner,
.nm-home .nm-logo img,
.nm-heights .nm-logo img{
  transition:none;
  will-change:height,width;
}
.nm-home .nm-hero-video,
.nm-heights .nm-hero-video{
  position:sticky;
  top:var(--header-h);
  height:calc(100svh - var(--header-h));
  margin-bottom:calc(-100svh + var(--header-h));
}
.nm-home .nm-hero{
  background:var(--black);
}
.nm-home .nm-hero-inner,
.nm-heights .nm-hero-inner{
  position:sticky;
  top:var(--header-h);
  z-index:2;
  min-height:calc(100svh - var(--header-h));
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-block:clamp(42px,7vh,76px);
}
.nm-home .nm-hero-title{
  opacity:0;
  transform:translateY(42px) scale(.985);
  filter:blur(8px);
  animation:nm-hero-title-reveal 1.15s .18s var(--ease) forwards;
  will-change:transform,opacity,filter;
}
.nm-home .nm-hero-sub,
.nm-heights .nm-hero-sub{
  opacity:0;
  transform:translateY(36px) scale(.98);
  filter:blur(7px);
  will-change:transform,opacity,filter;
}
.nm-home .nm-hero-story-copy{ display:contents; }
.nm-heights .nm-hero-title{
  will-change:transform,opacity,filter;
}
.nm-heights .nm-hero-story-copy{
  width:100%;
  display:grid;
  align-items:center;
  min-height:clamp(190px,25vw,330px);
  transform:translateY(-32px);
}
.nm-heights .nm-hero .nm-eyebrow{
  transform:translateY(-32px);
}
.nm-heights .nm-hero-story-copy > .nm-hero-title,
.nm-heights .nm-hero-story-copy > .nm-hero-sub{
  grid-area:1 / 1;
  margin-inline:auto;
  margin-bottom:0;
}
.nm-heights .nm-hero-story-copy > .nm-hero-sub{
  max-width:46em;
  text-align:center;
}
.nm-heights .nm-hero-inner{
  padding-bottom:clamp(150px,20vh,190px);
}
.nm-heights .nm-hero-stats{
  position:absolute;
  left:0;
  right:0;
  bottom:clamp(54px,7vh,82px);
  margin-top:0;
}
@keyframes nm-hero-title-reveal{
  to{
    opacity:1;
    transform:translateY(0) scale(1);
    filter:blur(0);
  }
}
.nm-home .nm-hero-bg{
  background:
    radial-gradient(circle at 88% 4%, rgba(154,154,154,0.09) 0%, transparent 36%),
    radial-gradient(circle at 4% 82%, rgba(154,154,154,0.055) 0%, transparent 32%),
    linear-gradient(rgba(255,255,255,0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.065) 1px, transparent 1px);
  background-size:auto, auto, 72px 72px, 72px 72px;
  -webkit-mask-image:linear-gradient(180deg, rgba(0,0,0,0.35) 0%, #000 16%, #000 86%, rgba(0,0,0,0.45) 100%);
  mask-image:linear-gradient(180deg, rgba(0,0,0,0.35) 0%, #000 16%, #000 86%, rgba(0,0,0,0.45) 100%);
}

/* === SIMPLE NUMBERED ROW LIST (text-only, no image) ============ */
.nm-svc-list{ display:flex; flex-direction:column; }
.nm-svc-row{
  display:grid; grid-template-columns:64px 1fr 24px;
  align-items:center; gap:20px;
  padding:clamp(24px,3vw,32px) 0;
  border-top:1px solid var(--border);
  transition:background .2s;
}
.nm-svc-list .nm-svc-row:last-child{ border-bottom:1px solid var(--border); }
.nm-svc-row:hover{ background:var(--off-white); }
.nm-svc-num{
  font-family:var(--font-serif); font-weight:600; color:var(--gray);
  font-size:1.1rem;
}
.nm-svc-title{ font-size:1.08rem; font-weight:600; margin-bottom:6px; }
.nm-svc-desc{ font-size:0.92rem; line-height:1.6; color:var(--ink-soft); max-width:56em; }
.nm-svc-arrow{ color:var(--ink); transition:transform .25s var(--ease); }
.nm-svc-row:hover .nm-svc-arrow{ transform:translateX(4px); }

/* === INTRO / STATEMENT ====================================== */
.nm-intro-statement{
  display:grid; grid-template-columns:1fr 1fr;
  gap:clamp(40px,6vw,80px); align-items:start;
  padding:clamp(56px,7vw,84px) 0;
}
.nm-intro-text{ font-size:1.05rem; line-height:1.75; color:var(--ink-soft); }
.nm-statement-quote{
  font-family:var(--font-serif); font-style:italic; font-weight:500;
  font-size:clamp(1.3rem, 2.4vw, 1.7rem); line-height:1.5; color:var(--ink);
}

.nm-divider{ width:min(100% - 48px, var(--container)); margin:0 auto clamp(40px,6vw,64px); }
.nm-divider svg{ width:100%; height:10px; display:block; }

/* === SECTION HEAD ============================================ */
.nm-section-head{
  display:grid; grid-template-columns:1fr 1fr;
  gap:clamp(32px,5vw,80px); align-items:end;
  padding:0 0 clamp(32px,5vw,52px);
  width:min(100% - 48px, var(--container)); margin-inline:auto;
  text-align:left;
  border-bottom:1px solid var(--border);
}
.nm-section-head .nm-eyebrow{ justify-content:flex-start; margin-bottom:14px; }
.nm-section-head h2{
  font-family:var(--font-serif); font-weight:600;
  font-size:clamp(1.7rem, 3.2vw, 2.5rem); line-height:1.2; color:var(--ink);
}
.nm-section-head em{ font-style:italic; }
.nm-section-head p{ color:var(--ink-soft); font-size:0.98rem; line-height:1.65; }

/* === ALTERNATING SERVICE ROWS ================================ */
.nm-services{ padding-bottom:clamp(40px,6vw,64px); }
.nm-service{
  display:flex; align-items:center; flex-wrap:wrap;
  width:min(100% - 64px, 1400px);
  margin-inline:auto;
  gap:clamp(28px,4vw,64px);
  padding:clamp(24px,3vw,40px) 0;
  border-top:1px solid var(--border);
}
.nm-service:last-child{ border-bottom:1px solid var(--border); }
.nm-service--reverse{ flex-direction:row-reverse; }
.nm-service-visual{
  flex:1 1 42%; min-width:320px;
  background:var(--off-white); position:relative; overflow:hidden;
  aspect-ratio:4/3;
  border-radius:18px;
  box-shadow:0 18px 50px rgba(14,14,14,0.14);
}
.nm-service-visual img{ width:100%; height:100%; object-fit:cover; object-position:center; }
.nm-service-copy{
  flex:1 1 46%; min-width:320px;
  padding:clamp(24px,3vw,44px);
  display:flex; flex-direction:column; justify-content:center;
}
.nm-service-num{
  font-family:var(--font-serif); font-size:0.8rem; font-weight:600;
  letter-spacing:0.06em; text-transform:uppercase; color:var(--gray);
  margin-bottom:12px; display:block;
}
.nm-service-copy h3{
  font-family:var(--font-serif); font-weight:600;
  font-size:clamp(1.35rem, 2.2vw, 1.8rem); color:var(--ink); margin-bottom:12px;
}
.nm-service-copy p{ color:var(--ink-soft); font-size:0.98rem; line-height:1.7; max-width:38em; }
.nm-service-focus{
  margin-top:16px; font-size:0.9rem; color:var(--ink-soft);
}
.nm-service-focus b{ color:var(--ink); font-weight:600; }
.nm-link{
  display:inline-flex; align-items:center; gap:8px; margin-top:22px;
  font-size:0.86rem; font-weight:600; color:var(--ink);
  border-bottom:1px solid var(--ink); padding-bottom:2px; width:fit-content;
}
.nm-link svg{ transition:transform .25s var(--ease); }
.nm-link:hover svg{ transform:translateX(4px); }

/* === PROCESS / ARBETSSÄTT ==================================== */
.nm-process{ padding:clamp(56px,7vw,84px) 0; background:var(--off-white); }
.nm-process-list{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--border); border:1px solid var(--border);
}
.nm-process-item{ background:var(--off-white); padding:clamp(24px,3vw,34px); }
.nm-process-num{
  font-family:var(--font-serif); font-size:1.4rem; font-weight:600;
  color:var(--gray); display:block; margin-bottom:14px;
}
.nm-process-item h4{ font-size:1.02rem; font-weight:700; margin-bottom:8px; }
.nm-process-item p{ font-size:0.88rem; line-height:1.6; color:var(--ink-soft); }

/* === WHY US =================================================== */
.nm-why{ padding:clamp(56px,7vw,84px) 0; }
.nm-why-list{ width:min(100% - 48px, 820px); margin-inline:auto; display:flex; flex-direction:column; }
.nm-why-row{
  display:flex; gap:24px; padding:22px 0; border-top:1px solid var(--border);
}
.nm-why-list .nm-why-row:last-child{ border-bottom:1px solid var(--border); }
.nm-why-num{ font-family:var(--font-serif); font-weight:600; color:var(--gray); font-size:1rem; flex-shrink:0; width:2.4em; }
.nm-why-row strong{ display:block; font-size:1rem; margin-bottom:4px; }
.nm-why-row p{ font-size:0.9rem; color:var(--ink-soft); }

/* === TESTIMONIALS ============================================= */
.nm-testi{ padding:clamp(56px,7vw,84px) 0; background:var(--ink); }
.nm-testi .nm-section-head{ border-bottom-color:var(--border-dark); }
.nm-testi .nm-section-head h2,
.nm-testi .nm-section-head p{ color:var(--white); }
.nm-testi .nm-section-head .nm-eyebrow{ color:var(--gray-light); }
.nm-testi-grid{
  width:min(100% - 48px, var(--container)); margin-inline:auto;
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--border-dark); border:1px solid var(--border-dark);
}
.nm-testi-card{ background:var(--ink); padding:clamp(26px,3vw,34px); display:flex; flex-direction:column; gap:18px; }
.nm-testi-quote{
  font-family:var(--font-serif); font-style:italic; font-size:1.05rem;
  line-height:1.6; color:rgba(255,255,255,0.86);
}
.nm-testi-author{ display:flex; flex-direction:column; gap:2px; margin-top:auto; }
.nm-testi-author strong{ font-size:0.9rem; color:var(--white); }
.nm-testi-author span{ font-size:0.78rem; color:var(--gray-light); }

/* === CASE STUDY ================================================ */
.nm-case{ padding:clamp(56px,7vw,84px) 0; }
.nm-case-grid{
  width:min(100% - 48px, var(--container)); margin-inline:auto;
  display:grid; grid-template-columns:0.9fr 1.1fr; gap:clamp(32px,5vw,64px);
  align-items:center;
}
.nm-case-image{ position:relative; aspect-ratio:4/3; overflow:hidden; }
.nm-case-image img{ width:100%; height:100%; object-fit:cover; }
.nm-case-badge{
  position:absolute; left:16px; bottom:16px;
  background:var(--white); padding:8px 14px;
  font-size:0.7rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase;
}
.nm-case-steps{ display:flex; flex-direction:column; gap:22px; margin-top:26px; }
.nm-case-step-label{
  display:block; font-size:0.7rem; font-weight:700; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--gray); margin-bottom:6px;
}
.nm-case-step p{ font-size:0.95rem; line-height:1.65; color:var(--ink-soft); }

/* === CTA BLOCK ================================================= */
.nm-cta{ background:var(--black); padding:clamp(56px,8vw,96px) 0; text-align:center; }
.nm-cta h2{
  font-family:var(--font-serif); font-weight:600; color:var(--white);
  font-size:clamp(1.7rem, 3.4vw, 2.6rem); line-height:1.3;
  max-width:20em; margin:0 auto 16px;
}
.nm-cta p{ color:rgba(255,255,255,0.6); max-width:34em; margin:0 auto 30px; font-size:0.98rem; }
.nm-cta .nm-btn{ margin-bottom:14px; }
.nm-cta-note{ font-size:0.8rem; color:rgba(255,255,255,0.4); }

/* === CONTACT ==================================================== */
.nm-contact{ padding:clamp(56px,8vw,96px) 0; }
.nm-contact-grid{
  width:min(100% - 48px, var(--container)); margin-inline:auto;
  display:grid; grid-template-columns:0.85fr 1.15fr; gap:clamp(40px,6vw,72px);
}
.nm-contact-info p{ color:var(--ink-soft); font-size:0.98rem; line-height:1.7; margin:16px 0 28px; }
.nm-cdi{ display:flex; align-items:center; gap:14px; padding:14px 0; border-top:1px solid var(--border); }
.nm-contact-info .nm-cdi:last-of-type{ border-bottom:1px solid var(--border); }
.nm-cdi-icon{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--border);
  display:grid; place-items:center; flex-shrink:0; color:var(--ink-soft);
}
.nm-cdi-lbl{ font-size:0.7rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--gray); }
.nm-cdi-val{ font-size:0.94rem; font-weight:600; }
.nm-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.nm-tag-pill{
  font-size:0.72rem; font-weight:600; padding:7px 14px; border-radius:999px;
  border:1px solid var(--border); color:var(--ink-soft);
}

.nm-form{ display:flex; flex-direction:column; gap:16px; }
.nm-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.nm-form-group{ display:flex; flex-direction:column; gap:6px; }
.nm-form-label{ font-size:0.76rem; font-weight:600; color:var(--ink-soft); }
.nm-form-input{
  font-family:var(--font-sans); font-size:0.94rem; color:var(--ink);
  border:1px solid var(--border); border-radius:2px; padding:13px 14px;
  background:var(--white); transition:border-color .2s;
}
.nm-form-input:focus{ outline:none; border-color:var(--ink); }
.nm-form-input.invalid{ border-color:#b3372c; }
textarea.nm-form-input{ resize:vertical; min-height:110px; }
.nm-form-error{ font-size:0.76rem; color:#b3372c; min-height:1em; }
.nm-form-select-wrap{ position:relative; }
.nm-select-arrow{ position:absolute; right:14px; top:50%; transform:translateY(-50%); pointer-events:none; color:var(--ink-soft); }
.nm-form-select{ appearance:none; width:100%; }
.nm-btn-form{
  position:relative; border:none; cursor:pointer; margin-top:6px;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
}
.nm-btn-form.loading .nm-btn-text{ opacity:0; }
.nm-btn-form .nm-btn-spinner{
  display:none; position:absolute; width:16px; height:16px;
  border:2px solid rgba(255,255,255,0.35); border-top-color:#fff; border-radius:50%;
}
.nm-btn-form.loading .nm-btn-spinner{ display:block; animation:nm-spin .7s linear infinite; }
.nm-btn-form.loading .nm-btn-arrow{ display:none; }
@keyframes nm-spin{ to{ transform:rotate(360deg); } }
.nm-form-success{
  display:flex; align-items:center; gap:10px; font-size:0.92rem; font-weight:600;
  color:#1c7a4d; padding:14px 0;
}
.nm-form-success[hidden]{ display:none !important; }

/* === FOOTER ====================================================== */
.nm-footer{ padding:clamp(48px,7vw,72px) 0 32px; text-align:center; border-top:1px solid var(--border); }
.nm-footer-logo{ display:inline-flex; margin-bottom:16px; }
.nm-footer-logo img{ height:70px; width:auto; filter:none; }
.nm-footer-tagline{ font-size:0.92rem; color:var(--ink-soft); margin-bottom:22px; }
.nm-footer-links{
  display:flex; flex-wrap:wrap; justify-content:center; gap:8px 20px;
  margin-bottom:22px;
}
.nm-footer-links a{ font-size:0.82rem; font-weight:500; color:var(--ink-soft); transition:color .2s; }
.nm-footer-links a:hover{ color:var(--ink); }
.nm-footer-meta{
  display:flex; flex-wrap:wrap; justify-content:center; gap:6px 18px;
  font-size:0.76rem; color:var(--gray); margin-bottom:18px;
}
.nm-footer .nm-switch-link{ display:inline-block; }

/* === SCROLL TO TOP =============================================== */
.nm-scroll-top{
  position:fixed; right:24px; bottom:24px; z-index:400;
  width:44px; height:44px; border-radius:50%; border:1px solid var(--border);
  background:var(--white); color:var(--ink); display:grid; place-items:center;
  opacity:0; pointer-events:none; transform:translateY(8px); cursor:pointer;
  transition:opacity .3s, transform .3s;
  box-shadow:0 8px 24px rgba(0,0,0,0.08);
}
.nm-scroll-top.visible{ opacity:1; pointer-events:auto; transform:none; }

/* === SCROLL REVEAL (shared .fade-up hook from script.js) ========= */
.fade-up{ opacity:0; transform:translateY(24px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.fade-up.visible{ opacity:1; transform:none; }

/* === RESPONSIVE ==================================================== */
@media(max-width:960px){
  .nm-header-inner{ height:60px; }
  .nm-logo img{ height:36px; width:97px; }
  .nm-header--compact .nm-header-inner{ height:44px; }
  .nm-header--compact .nm-logo img{ height:26px; width:70px; }
  .nm-nav{
    display:none;
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch;
    background:var(--white); border-bottom:1px solid var(--border);
    padding:8px 24px 16px;
  }
  .nm-nav.is-open{ display:flex; }
  .nm-nav a{ padding:13px 4px; border-bottom:1px solid var(--border); }
  .nm-nav-cta{ margin:12px 0 0; text-align:center; }
  .nm-nav-dropdown{ display:block; }
  .nm-nav-dropdown-toggle{ width:100%; justify-content:space-between; padding:13px 4px; border-bottom:1px solid var(--border); }
  .nm-nav-dropdown-menu{
    position:static; min-width:0; margin:0; padding:0 0 0 10px;
    background:transparent; border:0; box-shadow:none;
  }
  .nm-nav-dropdown-menu a{ padding:11px 4px; border-bottom:1px solid var(--border); }
  .nm-menu-toggle{ display:flex; }
  .nm-process-list{ grid-template-columns:repeat(2,1fr); }
  .nm-testi-grid{ grid-template-columns:1fr; }
  .nm-case-grid{ grid-template-columns:1fr; }
  .nm-contact-grid{ grid-template-columns:1fr; }
}
@media(max-width:768px){
  .nm-hero-title{ font-size:clamp(1.9rem,7.2vw,2.6rem); letter-spacing:-0.01em; margin-bottom:14px; }
  .nm-hero-sub{ font-size:0.92rem; line-height:1.6; margin-bottom:22px; }
  .nm-section-head{ grid-template-columns:1fr; gap:16px; text-align:left; }
  .nm-hero-stat{ flex:1 1 50%; border-right:none; border-bottom:1px solid var(--border-dark); padding-bottom:16px; }
  .nm-svc-row{ grid-template-columns:40px 1fr; }
  .nm-svc-arrow{ display:none; }
  .nm-intro-statement{ grid-template-columns:1fr; gap:28px; }
  .nm-service, .nm-service--reverse{ flex-direction:column; }
  .nm-service{ gap:8px; }
  .nm-service-visual{ aspect-ratio:3/2; width:100%; min-width:0; }
  .nm-service-copy{ width:100%; min-width:0; padding-inline:4px; }
  .nm-form-row{ grid-template-columns:1fr; }
}
@media(max-width:500px){
  .nm-process-list{ grid-template-columns:1fr; }
  .nm-home .nm-hero,
  .nm-heights .nm-hero{ min-height:175svh; padding:0; }
  .nm-home .nm-hero-video,
  .nm-heights .nm-hero-video{
    top:44px;
    height:calc(100svh - 44px);
    margin-bottom:calc(-100svh + 44px);
  }
  .nm-home .nm-hero-inner,
  .nm-heights .nm-hero-inner{
    top:44px;
    min-height:calc(100svh - 44px);
    padding-block:34px;
  }
  .nm-heights .nm-hero-inner{ padding-bottom:190px; }
  .nm-heights .nm-hero-story-copy,
  .nm-heights .nm-hero .nm-eyebrow{ transform:translateY(-44px); }
  .nm-home .nm-hero-story-copy{
    width:100%;
    display:grid;
    align-items:center;
    min-height:170px;
  }
  .nm-home .nm-hero-title{
    animation:none;
    opacity:1;
    transform:none;
    filter:none;
  }
  .nm-home .nm-hero-story-copy > .nm-hero-title,
  .nm-home .nm-hero-story-copy > .nm-hero-sub{
    grid-area:1 / 1;
    margin-inline:auto;
    margin-bottom:0;
  }
  .nm-home .nm-hero-story-copy > .nm-hero-sub{
    text-align:center;
    max-width:34em;
  }
  .nm-heights .nm-hero-stats{ bottom:28px; margin-top:0; }
  .nm-heights .nm-hero-stat:nth-child(-n+2){
    transform-origin:center bottom;
    will-change:opacity,transform;
  }
  .nm-hero-title{ font-size:clamp(1.6rem,7.6vw,2.1rem); }
  .nm-hero-sub{ font-size:0.88rem; }
  .nm-hero-stats{ margin-top:32px; }
  .nm-hero-actions{ flex-wrap:nowrap; gap:8px; }
  .nm-hero-actions .nm-btn{ flex:1 1 0; justify-content:center; padding:12px 10px; font-size:0.72rem; gap:5px; }
}

@media(prefers-reduced-motion:reduce){
  .nm-home .nm-hero-title,
  .nm-home .nm-hero-sub,
  .nm-heights .nm-hero-sub{
    opacity:1; transform:none; filter:none; animation:none;
  }
}
